diff --git a/.github/workflows/patrol-prepare.yaml b/.github/workflows/patrol-prepare.yaml
index 6d8c6bac6..6b669996d 100644
--- a/.github/workflows/patrol-prepare.yaml
+++ b/.github/workflows/patrol-prepare.yaml
@@ -154,13 +154,14 @@ jobs:
- name: Run unit tests
working-directory: packages/patrol/example/ios
run: |
+ set -o pipefail
xcodebuild test \
-workspace Runner.xcworkspace \
-scheme Runner \
-only-testing RunnerTests \
-configuration Debug \
-sdk iphoneos -destination 'platform=iOS Simulator,name=iPhone 14' \
- -derivedDataPath ../build/ios_unit | xcbeautify
+ -derivedDataPath ../build/ios_unit | xcbeautify --renderer github-actions
prepare-flutter:
name: Flutter ${{ matrix.flutter-version }}
diff --git a/.github/workflows/patrol_gen-prepare.yaml b/.github/workflows/patrol_gen-prepare.yaml
new file mode 100644
index 000000000..f8a7ab0d3
--- /dev/null
+++ b/.github/workflows/patrol_gen-prepare.yaml
@@ -0,0 +1,41 @@
+name: patrol_gen prepare
+
+on:
+ workflow_dispatch:
+ pull_request:
+ paths:
+ - 'packages/patrol_gen/**'
+
+jobs:
+ prepare:
+ name: Flutter ${{ matrix.flutter-version }}
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ sdk: ['3.0.0', stable]
+
+ defaults:
+ run:
+ working-directory: packages/patrol_gen
+
+ steps:
+ - name: Clone repository
+ uses: actions/checkout@v3
+
+ - name: Set up Dart
+ uses: dart-lang/setup-dart@v1
+ with:
+ sdk: ${{ matrix.sdk }}
+
+ - name: dart pub get
+ run: dart pub get
+
+ - name: dart analyze
+ if: success() || failure()
+ run: dart analyze
+
+ - name: dart format
+ if: success() || failure()
+ run: dart format --set-exit-if-changed .
diff --git a/.github/workflows/test-android-device.yaml b/.github/workflows/test-android-device.yaml
index eb44186c6..e53ea4a75 100644
--- a/.github/workflows/test-android-device.yaml
+++ b/.github/workflows/test-android-device.yaml
@@ -47,7 +47,7 @@ jobs:
uses: google-github-actions/setup-gcloud@v1
- name: Gradle cache
- uses: gradle/gradle-build-action@v2.8.0
+ uses: gradle/gradle-build-action@v2
with:
generate-job-summary: false
diff --git a/.github/workflows/test-android-emulator-2.yaml b/.github/workflows/test-android-emulator-2.yaml
deleted file mode 100644
index 539f677da..000000000
--- a/.github/workflows/test-android-emulator-2.yaml
+++ /dev/null
@@ -1,128 +0,0 @@
-name: test android emulator 2
-
-on:
- workflow_dispatch:
-
-env:
- ANDROID_IMAGE: system-images;android-31;default;x86_64
-
-jobs:
- main:
- name: Test on Android Emulator
- runs-on: macos-latest
- timeout-minutes: 60
-
- defaults:
- run:
- working-directory: ${{ github.workspace }}/packages/patrol/example
-
- steps:
- - name: Clone repository
- uses: actions/checkout@v3
- with:
- lfs: true
-
- - name: Set up Java
- run: export JAVA_HOME="$JAVA_HOME_11_X64"
-
- - name: Set up Flutter
- uses: subosito/flutter-action@v2
- with:
- channel: stable
-
- - name: Preload Flutter artifacts
- run: flutter precache
-
- - name: Install patrol_cli
- run: |
- dart pub global activate \
- --source git https://github.com/leancodepl/patrol.git \
- --git-path packages/patrol_cli \
- --git-ref patrol_cli-v
uint64 findTimeoutMillis = 1;
- */
- public var findTimeoutMillis: kotlin.Long
- @JvmName("getFindTimeoutMillis")
- get() = _builder.getFindTimeoutMillis()
- @JvmName("setFindTimeoutMillis")
- set(value) {
- _builder.setFindTimeoutMillis(value)
- }
- /**
- * `uint64 findTimeoutMillis = 1;`
- */
- public fun clearFindTimeoutMillis() {
- _builder.clearFindTimeoutMillis()
- }
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.ConfigureRequest.copy(block: pl.leancode.patrol.contracts.ConfigureRequestKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.ConfigureRequest =
- pl.leancode.patrol.contracts.ConfigureRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/Contracts.java b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/Contracts.java
deleted file mode 100644
index 22199865b..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/Contracts.java
+++ /dev/null
@@ -1,12512 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-package pl.leancode.patrol.contracts;
-
-public final class Contracts {
- private Contracts() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
- public interface ListDartTestsResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:patrol.ListDartTestsResponse)
- com.google.protobuf.MessageLiteOrBuilder {
-
- /**
- * .patrol.DartTestGroup group = 1;
- * @return Whether the group field is set.
- */
- boolean hasGroup();
- /**
- * .patrol.DartTestGroup group = 1;
- * @return The group.
- */
- pl.leancode.patrol.contracts.Contracts.DartTestGroup getGroup();
- }
- /**
- * Protobuf type {@code patrol.ListDartTestsResponse}
- */
- public static final class ListDartTestsResponse extends
- com.google.protobuf.GeneratedMessageLite<
- ListDartTestsResponse, ListDartTestsResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.ListDartTestsResponse)
- ListDartTestsResponseOrBuilder {
- private ListDartTestsResponse() {
- }
- public static final int GROUP_FIELD_NUMBER = 1;
- private pl.leancode.patrol.contracts.Contracts.DartTestGroup group_;
- /**
- * .patrol.DartTestGroup group = 1;
- */
- @java.lang.Override
- public boolean hasGroup() {
- return group_ != null;
- }
- /**
- * .patrol.DartTestGroup group = 1;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.DartTestGroup getGroup() {
- return group_ == null ? pl.leancode.patrol.contracts.Contracts.DartTestGroup.getDefaultInstance() : group_;
- }
- /**
- * .patrol.DartTestGroup group = 1;
- */
- private void setGroup(pl.leancode.patrol.contracts.Contracts.DartTestGroup value) {
- value.getClass();
- group_ = value;
-
- }
- /**
- * .patrol.DartTestGroup group = 1;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeGroup(pl.leancode.patrol.contracts.Contracts.DartTestGroup value) {
- value.getClass();
- if (group_ != null &&
- group_ != pl.leancode.patrol.contracts.Contracts.DartTestGroup.getDefaultInstance()) {
- group_ =
- pl.leancode.patrol.contracts.Contracts.DartTestGroup.newBuilder(group_).mergeFrom(value).buildPartial();
- } else {
- group_ = value;
- }
-
- }
- /**
- * .patrol.DartTestGroup group = 1;
- */
- private void clearGroup() { group_ = null;
-
- }
-
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.ListDartTestsResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.ListDartTestsResponse)
- pl.leancode.patrol.contracts.Contracts.ListDartTestsResponseOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * .patrol.DartTestGroup group = 1;
- */
- @java.lang.Override
- public boolean hasGroup() {
- return instance.hasGroup();
- }
- /**
- * .patrol.DartTestGroup group = 1;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.DartTestGroup getGroup() {
- return instance.getGroup();
- }
- /**
- * .patrol.DartTestGroup group = 1;
- */
- public Builder setGroup(pl.leancode.patrol.contracts.Contracts.DartTestGroup value) {
- copyOnWrite();
- instance.setGroup(value);
- return this;
- }
- /**
- * .patrol.DartTestGroup group = 1;
- */
- public Builder setGroup(
- pl.leancode.patrol.contracts.Contracts.DartTestGroup.Builder builderForValue) {
- copyOnWrite();
- instance.setGroup(builderForValue.build());
- return this;
- }
- /**
- * .patrol.DartTestGroup group = 1;
- */
- public Builder mergeGroup(pl.leancode.patrol.contracts.Contracts.DartTestGroup value) {
- copyOnWrite();
- instance.mergeGroup(value);
- return this;
- }
- /**
- * .patrol.DartTestGroup group = 1;
- */
- public Builder clearGroup() { copyOnWrite();
- instance.clearGroup();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.ListDartTestsResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "group_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\t";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring name = 1;
- * @return The name.
- */
- java.lang.String getName();
- /**
- * string name = 1;
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- java.util.Listrepeated .patrol.DartTestCase tests = 2;
- */
- pl.leancode.patrol.contracts.Contracts.DartTestCase getTests(int index);
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- int getTestsCount();
-
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- java.util.Listrepeated .patrol.DartTestGroup groups = 3;
- */
- pl.leancode.patrol.contracts.Contracts.DartTestGroup getGroups(int index);
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- int getGroupsCount();
- }
- /**
- * Protobuf type {@code patrol.DartTestGroup}
- */
- public static final class DartTestGroup extends
- com.google.protobuf.GeneratedMessageLite<
- DartTestGroup, DartTestGroup.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.DartTestGroup)
- DartTestGroupOrBuilder {
- private DartTestGroup() {
- name_ = "";
- tests_ = emptyProtobufList();
- groups_ = emptyProtobufList();
- }
- public static final int NAME_FIELD_NUMBER = 1;
- private java.lang.String name_;
- /**
- * string name = 1;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- return name_;
- }
- /**
- * string name = 1;
- * @return The bytes for name.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getNameBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(name_);
- }
- /**
- * string name = 1;
- * @param value The name to set.
- */
- private void setName(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- name_ = value;
- }
- /**
- * string name = 1;
- */
- private void clearName() {
-
- name_ = getDefaultInstance().getName();
- }
- /**
- * string name = 1;
- * @param value The bytes for name to set.
- */
- private void setNameBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- name_ = value.toStringUtf8();
-
- }
-
- public static final int TESTS_FIELD_NUMBER = 2;
- private com.google.protobuf.Internal.ProtobufListrepeated .patrol.DartTestCase tests = 2;
- */
- @java.lang.Override
- public java.util.Listrepeated .patrol.DartTestCase tests = 2;
- */
- public java.util.List extends pl.leancode.patrol.contracts.Contracts.DartTestCaseOrBuilder>
- getTestsOrBuilderList() {
- return tests_;
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- @java.lang.Override
- public int getTestsCount() {
- return tests_.size();
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.DartTestCase getTests(int index) {
- return tests_.get(index);
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- public pl.leancode.patrol.contracts.Contracts.DartTestCaseOrBuilder getTestsOrBuilder(
- int index) {
- return tests_.get(index);
- }
- private void ensureTestsIsMutable() {
- com.google.protobuf.Internal.ProtobufListrepeated .patrol.DartTestCase tests = 2;
- */
- private void setTests(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestCase value) {
- value.getClass();
- ensureTestsIsMutable();
- tests_.set(index, value);
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- private void addTests(pl.leancode.patrol.contracts.Contracts.DartTestCase value) {
- value.getClass();
- ensureTestsIsMutable();
- tests_.add(value);
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- private void addTests(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestCase value) {
- value.getClass();
- ensureTestsIsMutable();
- tests_.add(index, value);
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- private void addAllTests(
- java.lang.Iterable extends pl.leancode.patrol.contracts.Contracts.DartTestCase> values) {
- ensureTestsIsMutable();
- com.google.protobuf.AbstractMessageLite.addAll(
- values, tests_);
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- private void clearTests() {
- tests_ = emptyProtobufList();
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- private void removeTests(int index) {
- ensureTestsIsMutable();
- tests_.remove(index);
- }
-
- public static final int GROUPS_FIELD_NUMBER = 3;
- private com.google.protobuf.Internal.ProtobufListrepeated .patrol.DartTestGroup groups = 3;
- */
- @java.lang.Override
- public java.util.Listrepeated .patrol.DartTestGroup groups = 3;
- */
- public java.util.List extends pl.leancode.patrol.contracts.Contracts.DartTestGroupOrBuilder>
- getGroupsOrBuilderList() {
- return groups_;
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- @java.lang.Override
- public int getGroupsCount() {
- return groups_.size();
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.DartTestGroup getGroups(int index) {
- return groups_.get(index);
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- public pl.leancode.patrol.contracts.Contracts.DartTestGroupOrBuilder getGroupsOrBuilder(
- int index) {
- return groups_.get(index);
- }
- private void ensureGroupsIsMutable() {
- com.google.protobuf.Internal.ProtobufListrepeated .patrol.DartTestGroup groups = 3;
- */
- private void setGroups(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestGroup value) {
- value.getClass();
- ensureGroupsIsMutable();
- groups_.set(index, value);
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- private void addGroups(pl.leancode.patrol.contracts.Contracts.DartTestGroup value) {
- value.getClass();
- ensureGroupsIsMutable();
- groups_.add(value);
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- private void addGroups(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestGroup value) {
- value.getClass();
- ensureGroupsIsMutable();
- groups_.add(index, value);
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- private void addAllGroups(
- java.lang.Iterable extends pl.leancode.patrol.contracts.Contracts.DartTestGroup> values) {
- ensureGroupsIsMutable();
- com.google.protobuf.AbstractMessageLite.addAll(
- values, groups_);
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- private void clearGroups() {
- groups_ = emptyProtobufList();
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- private void removeGroups(int index) {
- ensureGroupsIsMutable();
- groups_.remove(index);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestGroup parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.DartTestGroup prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.DartTestGroup}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.DartTestGroup, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.DartTestGroup)
- pl.leancode.patrol.contracts.Contracts.DartTestGroupOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.DartTestGroup.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string name = 1;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- return instance.getName();
- }
- /**
- * string name = 1;
- * @return The bytes for name.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getNameBytes() {
- return instance.getNameBytes();
- }
- /**
- * string name = 1;
- * @param value The name to set.
- * @return This builder for chaining.
- */
- public Builder setName(
- java.lang.String value) {
- copyOnWrite();
- instance.setName(value);
- return this;
- }
- /**
- * string name = 1;
- * @return This builder for chaining.
- */
- public Builder clearName() {
- copyOnWrite();
- instance.clearName();
- return this;
- }
- /**
- * string name = 1;
- * @param value The bytes for name to set.
- * @return This builder for chaining.
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setNameBytes(value);
- return this;
- }
-
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- @java.lang.Override
- public java.util.Listrepeated .patrol.DartTestCase tests = 2;
- */
- @java.lang.Override
- public int getTestsCount() {
- return instance.getTestsCount();
- }/**
- * repeated .patrol.DartTestCase tests = 2;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.DartTestCase getTests(int index) {
- return instance.getTests(index);
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- public Builder setTests(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestCase value) {
- copyOnWrite();
- instance.setTests(index, value);
- return this;
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- public Builder setTests(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestCase.Builder builderForValue) {
- copyOnWrite();
- instance.setTests(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- public Builder addTests(pl.leancode.patrol.contracts.Contracts.DartTestCase value) {
- copyOnWrite();
- instance.addTests(value);
- return this;
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- public Builder addTests(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestCase value) {
- copyOnWrite();
- instance.addTests(index, value);
- return this;
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- public Builder addTests(
- pl.leancode.patrol.contracts.Contracts.DartTestCase.Builder builderForValue) {
- copyOnWrite();
- instance.addTests(builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- public Builder addTests(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestCase.Builder builderForValue) {
- copyOnWrite();
- instance.addTests(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- public Builder addAllTests(
- java.lang.Iterable extends pl.leancode.patrol.contracts.Contracts.DartTestCase> values) {
- copyOnWrite();
- instance.addAllTests(values);
- return this;
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- public Builder clearTests() {
- copyOnWrite();
- instance.clearTests();
- return this;
- }
- /**
- * repeated .patrol.DartTestCase tests = 2;
- */
- public Builder removeTests(int index) {
- copyOnWrite();
- instance.removeTests(index);
- return this;
- }
-
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- @java.lang.Override
- public java.util.Listrepeated .patrol.DartTestGroup groups = 3;
- */
- @java.lang.Override
- public int getGroupsCount() {
- return instance.getGroupsCount();
- }/**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.DartTestGroup getGroups(int index) {
- return instance.getGroups(index);
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- public Builder setGroups(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestGroup value) {
- copyOnWrite();
- instance.setGroups(index, value);
- return this;
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- public Builder setGroups(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestGroup.Builder builderForValue) {
- copyOnWrite();
- instance.setGroups(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- public Builder addGroups(pl.leancode.patrol.contracts.Contracts.DartTestGroup value) {
- copyOnWrite();
- instance.addGroups(value);
- return this;
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- public Builder addGroups(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestGroup value) {
- copyOnWrite();
- instance.addGroups(index, value);
- return this;
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- public Builder addGroups(
- pl.leancode.patrol.contracts.Contracts.DartTestGroup.Builder builderForValue) {
- copyOnWrite();
- instance.addGroups(builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- public Builder addGroups(
- int index, pl.leancode.patrol.contracts.Contracts.DartTestGroup.Builder builderForValue) {
- copyOnWrite();
- instance.addGroups(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- public Builder addAllGroups(
- java.lang.Iterable extends pl.leancode.patrol.contracts.Contracts.DartTestGroup> values) {
- copyOnWrite();
- instance.addAllGroups(values);
- return this;
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- public Builder clearGroups() {
- copyOnWrite();
- instance.clearGroups();
- return this;
- }
- /**
- * repeated .patrol.DartTestGroup groups = 3;
- */
- public Builder removeGroups(int index) {
- copyOnWrite();
- instance.removeGroups(index);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.DartTestGroup)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.DartTestGroup();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "name_",
- "tests_",
- pl.leancode.patrol.contracts.Contracts.DartTestCase.class,
- "groups_",
- pl.leancode.patrol.contracts.Contracts.DartTestGroup.class,
- };
- java.lang.String info =
- "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0002\u0000\u0001\u0208\u0002\u001b" +
- "\u0003\u001b";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring name = 1;
- * @return The name.
- */
- java.lang.String getName();
- /**
- * string name = 1;
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString
- getNameBytes();
- }
- /**
- * Protobuf type {@code patrol.DartTestCase}
- */
- public static final class DartTestCase extends
- com.google.protobuf.GeneratedMessageLite<
- DartTestCase, DartTestCase.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.DartTestCase)
- DartTestCaseOrBuilder {
- private DartTestCase() {
- name_ = "";
- }
- public static final int NAME_FIELD_NUMBER = 1;
- private java.lang.String name_;
- /**
- * string name = 1;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- return name_;
- }
- /**
- * string name = 1;
- * @return The bytes for name.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getNameBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(name_);
- }
- /**
- * string name = 1;
- * @param value The name to set.
- */
- private void setName(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- name_ = value;
- }
- /**
- * string name = 1;
- */
- private void clearName() {
-
- name_ = getDefaultInstance().getName();
- }
- /**
- * string name = 1;
- * @param value The bytes for name to set.
- */
- private void setNameBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- name_ = value.toStringUtf8();
-
- }
-
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.DartTestCase parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.DartTestCase prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.DartTestCase}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.DartTestCase, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.DartTestCase)
- pl.leancode.patrol.contracts.Contracts.DartTestCaseOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.DartTestCase.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string name = 1;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- return instance.getName();
- }
- /**
- * string name = 1;
- * @return The bytes for name.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getNameBytes() {
- return instance.getNameBytes();
- }
- /**
- * string name = 1;
- * @param value The name to set.
- * @return This builder for chaining.
- */
- public Builder setName(
- java.lang.String value) {
- copyOnWrite();
- instance.setName(value);
- return this;
- }
- /**
- * string name = 1;
- * @return This builder for chaining.
- */
- public Builder clearName() {
- copyOnWrite();
- instance.clearName();
- return this;
- }
- /**
- * string name = 1;
- * @param value The bytes for name to set.
- * @return This builder for chaining.
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setNameBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.DartTestCase)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.DartTestCase();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "name_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0208";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring name = 1;
- * @return The name.
- */
- java.lang.String getName();
- /**
- * string name = 1;
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString
- getNameBytes();
- }
- /**
- * Protobuf type {@code patrol.RunDartTestRequest}
- */
- public static final class RunDartTestRequest extends
- com.google.protobuf.GeneratedMessageLite<
- RunDartTestRequest, RunDartTestRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.RunDartTestRequest)
- RunDartTestRequestOrBuilder {
- private RunDartTestRequest() {
- name_ = "";
- }
- public static final int NAME_FIELD_NUMBER = 1;
- private java.lang.String name_;
- /**
- * string name = 1;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- return name_;
- }
- /**
- * string name = 1;
- * @return The bytes for name.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getNameBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(name_);
- }
- /**
- * string name = 1;
- * @param value The name to set.
- */
- private void setName(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- name_ = value;
- }
- /**
- * string name = 1;
- */
- private void clearName() {
-
- name_ = getDefaultInstance().getName();
- }
- /**
- * string name = 1;
- * @param value The bytes for name to set.
- */
- private void setNameBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- name_ = value.toStringUtf8();
-
- }
-
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.RunDartTestRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.RunDartTestRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.RunDartTestRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.RunDartTestRequest)
- pl.leancode.patrol.contracts.Contracts.RunDartTestRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.RunDartTestRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string name = 1;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- return instance.getName();
- }
- /**
- * string name = 1;
- * @return The bytes for name.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getNameBytes() {
- return instance.getNameBytes();
- }
- /**
- * string name = 1;
- * @param value The name to set.
- * @return This builder for chaining.
- */
- public Builder setName(
- java.lang.String value) {
- copyOnWrite();
- instance.setName(value);
- return this;
- }
- /**
- * string name = 1;
- * @return This builder for chaining.
- */
- public Builder clearName() {
- copyOnWrite();
- instance.clearName();
- return this;
- }
- /**
- * string name = 1;
- * @param value The bytes for name to set.
- * @return This builder for chaining.
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setNameBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.RunDartTestRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.RunDartTestRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "name_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0208";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser.patrol.RunDartTestResponse.Result result = 1;
- * @return The enum numeric value on the wire for result.
- */
- int getResultValue();
- /**
- * .patrol.RunDartTestResponse.Result result = 1;
- * @return The result.
- */
- pl.leancode.patrol.contracts.Contracts.RunDartTestResponse.Result getResult();
-
- /**
- * optional string details = 2;
- * @return Whether the details field is set.
- */
- boolean hasDetails();
- /**
- * optional string details = 2;
- * @return The details.
- */
- java.lang.String getDetails();
- /**
- * optional string details = 2;
- * @return The bytes for details.
- */
- com.google.protobuf.ByteString
- getDetailsBytes();
- }
- /**
- * Protobuf type {@code patrol.RunDartTestResponse}
- */
- public static final class RunDartTestResponse extends
- com.google.protobuf.GeneratedMessageLite<
- RunDartTestResponse, RunDartTestResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.RunDartTestResponse)
- RunDartTestResponseOrBuilder {
- private RunDartTestResponse() {
- details_ = "";
- }
- /**
- * Protobuf enum {@code patrol.RunDartTestResponse.Result}
- */
- public enum Result
- implements com.google.protobuf.Internal.EnumLite {
- /**
- * SUCCESS = 0;
- */
- SUCCESS(0),
- /**
- * SKIPPED = 1;
- */
- SKIPPED(1),
- /**
- * FAILURE = 2;
- */
- FAILURE(2),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * SUCCESS = 0;
- */
- public static final int SUCCESS_VALUE = 0;
- /**
- * SKIPPED = 1;
- */
- public static final int SKIPPED_VALUE = 1;
- /**
- * FAILURE = 2;
- */
- public static final int FAILURE_VALUE = 2;
-
-
- @java.lang.Override
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @param value The number of the enum to look for.
- * @return The enum associated with the given number.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static Result valueOf(int value) {
- return forNumber(value);
- }
-
- public static Result forNumber(int value) {
- switch (value) {
- case 0: return SUCCESS;
- case 1: return SKIPPED;
- case 2: return FAILURE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap.patrol.RunDartTestResponse.Result result = 1;
- * @return The enum numeric value on the wire for result.
- */
- @java.lang.Override
- public int getResultValue() {
- return result_;
- }
- /**
- * .patrol.RunDartTestResponse.Result result = 1;
- * @return The result.
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.RunDartTestResponse.Result getResult() {
- pl.leancode.patrol.contracts.Contracts.RunDartTestResponse.Result result = pl.leancode.patrol.contracts.Contracts.RunDartTestResponse.Result.forNumber(result_);
- return result == null ? pl.leancode.patrol.contracts.Contracts.RunDartTestResponse.Result.UNRECOGNIZED : result;
- }
- /**
- * .patrol.RunDartTestResponse.Result result = 1;
- * @param value The enum numeric value on the wire for result to set.
- */
- private void setResultValue(int value) {
- result_ = value;
- }
- /**
- * .patrol.RunDartTestResponse.Result result = 1;
- * @param value The result to set.
- */
- private void setResult(pl.leancode.patrol.contracts.Contracts.RunDartTestResponse.Result value) {
- result_ = value.getNumber();
-
- }
- /**
- * .patrol.RunDartTestResponse.Result result = 1;
- */
- private void clearResult() {
-
- result_ = 0;
- }
-
- public static final int DETAILS_FIELD_NUMBER = 2;
- private java.lang.String details_;
- /**
- * optional string details = 2;
- * @return Whether the details field is set.
- */
- @java.lang.Override
- public boolean hasDetails() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * optional string details = 2;
- * @return The details.
- */
- @java.lang.Override
- public java.lang.String getDetails() {
- return details_;
- }
- /**
- * optional string details = 2;
- * @return The bytes for details.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getDetailsBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(details_);
- }
- /**
- * optional string details = 2;
- * @param value The details to set.
- */
- private void setDetails(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
- bitField0_ |= 0x00000001;
- details_ = value;
- }
- /**
- * optional string details = 2;
- */
- private void clearDetails() {
- bitField0_ = (bitField0_ & ~0x00000001);
- details_ = getDefaultInstance().getDetails();
- }
- /**
- * optional string details = 2;
- * @param value The bytes for details to set.
- */
- private void setDetailsBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- details_ = value.toStringUtf8();
- bitField0_ |= 0x00000001;
- }
-
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.RunDartTestResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.RunDartTestResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.RunDartTestResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.RunDartTestResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.RunDartTestResponse)
- pl.leancode.patrol.contracts.Contracts.RunDartTestResponseOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.RunDartTestResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * .patrol.RunDartTestResponse.Result result = 1;
- * @return The enum numeric value on the wire for result.
- */
- @java.lang.Override
- public int getResultValue() {
- return instance.getResultValue();
- }
- /**
- * .patrol.RunDartTestResponse.Result result = 1;
- * @param value The result to set.
- * @return This builder for chaining.
- */
- public Builder setResultValue(int value) {
- copyOnWrite();
- instance.setResultValue(value);
- return this;
- }
- /**
- * .patrol.RunDartTestResponse.Result result = 1;
- * @return The result.
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.RunDartTestResponse.Result getResult() {
- return instance.getResult();
- }
- /**
- * .patrol.RunDartTestResponse.Result result = 1;
- * @param value The enum numeric value on the wire for result to set.
- * @return This builder for chaining.
- */
- public Builder setResult(pl.leancode.patrol.contracts.Contracts.RunDartTestResponse.Result value) {
- copyOnWrite();
- instance.setResult(value);
- return this;
- }
- /**
- * .patrol.RunDartTestResponse.Result result = 1;
- * @return This builder for chaining.
- */
- public Builder clearResult() {
- copyOnWrite();
- instance.clearResult();
- return this;
- }
-
- /**
- * optional string details = 2;
- * @return Whether the details field is set.
- */
- @java.lang.Override
- public boolean hasDetails() {
- return instance.hasDetails();
- }
- /**
- * optional string details = 2;
- * @return The details.
- */
- @java.lang.Override
- public java.lang.String getDetails() {
- return instance.getDetails();
- }
- /**
- * optional string details = 2;
- * @return The bytes for details.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getDetailsBytes() {
- return instance.getDetailsBytes();
- }
- /**
- * optional string details = 2;
- * @param value The details to set.
- * @return This builder for chaining.
- */
- public Builder setDetails(
- java.lang.String value) {
- copyOnWrite();
- instance.setDetails(value);
- return this;
- }
- /**
- * optional string details = 2;
- * @return This builder for chaining.
- */
- public Builder clearDetails() {
- copyOnWrite();
- instance.clearDetails();
- return this;
- }
- /**
- * optional string details = 2;
- * @param value The bytes for details to set.
- * @return This builder for chaining.
- */
- public Builder setDetailsBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setDetailsBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.RunDartTestResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.RunDartTestResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "bitField0_",
- "result_",
- "details_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0000\u0000\u0001\f\u0002\u1208" +
- "\u0000";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parseruint64 findTimeoutMillis = 1;
- * @return The findTimeoutMillis.
- */
- long getFindTimeoutMillis();
- }
- /**
- * Protobuf type {@code patrol.ConfigureRequest}
- */
- public static final class ConfigureRequest extends
- com.google.protobuf.GeneratedMessageLite<
- ConfigureRequest, ConfigureRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.ConfigureRequest)
- ConfigureRequestOrBuilder {
- private ConfigureRequest() {
- }
- public static final int FINDTIMEOUTMILLIS_FIELD_NUMBER = 1;
- private long findTimeoutMillis_;
- /**
- * uint64 findTimeoutMillis = 1;
- * @return The findTimeoutMillis.
- */
- @java.lang.Override
- public long getFindTimeoutMillis() {
- return findTimeoutMillis_;
- }
- /**
- * uint64 findTimeoutMillis = 1;
- * @param value The findTimeoutMillis to set.
- */
- private void setFindTimeoutMillis(long value) {
-
- findTimeoutMillis_ = value;
- }
- /**
- * uint64 findTimeoutMillis = 1;
- */
- private void clearFindTimeoutMillis() {
-
- findTimeoutMillis_ = 0L;
- }
-
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.ConfigureRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.ConfigureRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.ConfigureRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.ConfigureRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.ConfigureRequest)
- pl.leancode.patrol.contracts.Contracts.ConfigureRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.ConfigureRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * uint64 findTimeoutMillis = 1;
- * @return The findTimeoutMillis.
- */
- @java.lang.Override
- public long getFindTimeoutMillis() {
- return instance.getFindTimeoutMillis();
- }
- /**
- * uint64 findTimeoutMillis = 1;
- * @param value The findTimeoutMillis to set.
- * @return This builder for chaining.
- */
- public Builder setFindTimeoutMillis(long value) {
- copyOnWrite();
- instance.setFindTimeoutMillis(value);
- return this;
- }
- /**
- * uint64 findTimeoutMillis = 1;
- * @return This builder for chaining.
- */
- public Builder clearFindTimeoutMillis() {
- copyOnWrite();
- instance.clearFindTimeoutMillis();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.ConfigureRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.ConfigureRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "findTimeoutMillis_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0003";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring appId = 1;
- * @return The appId.
- */
- java.lang.String getAppId();
- /**
- * string appId = 1;
- * @return The bytes for appId.
- */
- com.google.protobuf.ByteString
- getAppIdBytes();
- }
- /**
- * Protobuf type {@code patrol.OpenAppRequest}
- */
- public static final class OpenAppRequest extends
- com.google.protobuf.GeneratedMessageLite<
- OpenAppRequest, OpenAppRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.OpenAppRequest)
- OpenAppRequestOrBuilder {
- private OpenAppRequest() {
- appId_ = "";
- }
- public static final int APPID_FIELD_NUMBER = 1;
- private java.lang.String appId_;
- /**
- * string appId = 1;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return appId_;
- }
- /**
- * string appId = 1;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(appId_);
- }
- /**
- * string appId = 1;
- * @param value The appId to set.
- */
- private void setAppId(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- appId_ = value;
- }
- /**
- * string appId = 1;
- */
- private void clearAppId() {
-
- appId_ = getDefaultInstance().getAppId();
- }
- /**
- * string appId = 1;
- * @param value The bytes for appId to set.
- */
- private void setAppIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- appId_ = value.toStringUtf8();
-
- }
-
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.OpenAppRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.OpenAppRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.OpenAppRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.OpenAppRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.OpenAppRequest)
- pl.leancode.patrol.contracts.Contracts.OpenAppRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.OpenAppRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string appId = 1;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return instance.getAppId();
- }
- /**
- * string appId = 1;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return instance.getAppIdBytes();
- }
- /**
- * string appId = 1;
- * @param value The appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppId(
- java.lang.String value) {
- copyOnWrite();
- instance.setAppId(value);
- return this;
- }
- /**
- * string appId = 1;
- * @return This builder for chaining.
- */
- public Builder clearAppId() {
- copyOnWrite();
- instance.clearAppId();
- return this;
- }
- /**
- * string appId = 1;
- * @param value The bytes for appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppIdBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setAppIdBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.OpenAppRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.OpenAppRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "appId_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0208";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parseruint32 index = 1;
- * @return Whether the index field is set.
- */
- boolean hasIndex();
- /**
- * uint32 index = 1;
- * @return The index.
- */
- int getIndex();
-
- /**
- * .patrol.Selector selector = 2;
- * @return Whether the selector field is set.
- */
- boolean hasSelector();
- /**
- * .patrol.Selector selector = 2;
- * @return The selector.
- */
- pl.leancode.patrol.contracts.Contracts.Selector getSelector();
-
- public pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest.FindByCase getFindByCase();
- }
- /**
- * Protobuf type {@code patrol.TapOnNotificationRequest}
- */
- public static final class TapOnNotificationRequest extends
- com.google.protobuf.GeneratedMessageLite<
- TapOnNotificationRequest, TapOnNotificationRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.TapOnNotificationRequest)
- TapOnNotificationRequestOrBuilder {
- private TapOnNotificationRequest() {
- }
- private int findByCase_ = 0;
- private java.lang.Object findBy_;
- public enum FindByCase {
- INDEX(1),
- SELECTOR(2),
- FINDBY_NOT_SET(0);
- private final int value;
- private FindByCase(int value) {
- this.value = value;
- }
- /**
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static FindByCase valueOf(int value) {
- return forNumber(value);
- }
-
- public static FindByCase forNumber(int value) {
- switch (value) {
- case 1: return INDEX;
- case 2: return SELECTOR;
- case 0: return FINDBY_NOT_SET;
- default: return null;
- }
- }
- public int getNumber() {
- return this.value;
- }
- };
-
- @java.lang.Override
- public FindByCase
- getFindByCase() {
- return FindByCase.forNumber(
- findByCase_);
- }
-
- private void clearFindBy() {
- findByCase_ = 0;
- findBy_ = null;
- }
-
- public static final int INDEX_FIELD_NUMBER = 1;
- /**
- * uint32 index = 1;
- * @return Whether the index field is set.
- */
- @java.lang.Override
- public boolean hasIndex() {
- return findByCase_ == 1;
- }
- /**
- * uint32 index = 1;
- * @return The index.
- */
- @java.lang.Override
- public int getIndex() {
- if (findByCase_ == 1) {
- return (java.lang.Integer) findBy_;
- }
- return 0;
- }
- /**
- * uint32 index = 1;
- * @param value The index to set.
- */
- private void setIndex(int value) {
- findByCase_ = 1;
- findBy_ = value;
- }
- /**
- * uint32 index = 1;
- */
- private void clearIndex() {
- if (findByCase_ == 1) {
- findByCase_ = 0;
- findBy_ = null;
- }
- }
-
- public static final int SELECTOR_FIELD_NUMBER = 2;
- /**
- * .patrol.Selector selector = 2;
- */
- @java.lang.Override
- public boolean hasSelector() {
- return findByCase_ == 2;
- }
- /**
- * .patrol.Selector selector = 2;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Selector getSelector() {
- if (findByCase_ == 2) {
- return (pl.leancode.patrol.contracts.Contracts.Selector) findBy_;
- }
- return pl.leancode.patrol.contracts.Contracts.Selector.getDefaultInstance();
- }
- /**
- * .patrol.Selector selector = 2;
- */
- private void setSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- value.getClass();
- findBy_ = value;
- findByCase_ = 2;
- }
- /**
- * .patrol.Selector selector = 2;
- */
- private void mergeSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- value.getClass();
- if (findByCase_ == 2 &&
- findBy_ != pl.leancode.patrol.contracts.Contracts.Selector.getDefaultInstance()) {
- findBy_ = pl.leancode.patrol.contracts.Contracts.Selector.newBuilder((pl.leancode.patrol.contracts.Contracts.Selector) findBy_)
- .mergeFrom(value).buildPartial();
- } else {
- findBy_ = value;
- }
- findByCase_ = 2;
- }
- /**
- * .patrol.Selector selector = 2;
- */
- private void clearSelector() {
- if (findByCase_ == 2) {
- findByCase_ = 0;
- findBy_ = null;
- }
- }
-
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.TapOnNotificationRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.TapOnNotificationRequest)
- pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
- @java.lang.Override
- public FindByCase
- getFindByCase() {
- return instance.getFindByCase();
- }
-
- public Builder clearFindBy() {
- copyOnWrite();
- instance.clearFindBy();
- return this;
- }
-
-
- /**
- * uint32 index = 1;
- * @return Whether the index field is set.
- */
- @java.lang.Override
- public boolean hasIndex() {
- return instance.hasIndex();
- }
- /**
- * uint32 index = 1;
- * @return The index.
- */
- @java.lang.Override
- public int getIndex() {
- return instance.getIndex();
- }
- /**
- * uint32 index = 1;
- * @param value The index to set.
- * @return This builder for chaining.
- */
- public Builder setIndex(int value) {
- copyOnWrite();
- instance.setIndex(value);
- return this;
- }
- /**
- * uint32 index = 1;
- * @return This builder for chaining.
- */
- public Builder clearIndex() {
- copyOnWrite();
- instance.clearIndex();
- return this;
- }
-
- /**
- * .patrol.Selector selector = 2;
- */
- @java.lang.Override
- public boolean hasSelector() {
- return instance.hasSelector();
- }
- /**
- * .patrol.Selector selector = 2;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Selector getSelector() {
- return instance.getSelector();
- }
- /**
- * .patrol.Selector selector = 2;
- */
- public Builder setSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- copyOnWrite();
- instance.setSelector(value);
- return this;
- }
- /**
- * .patrol.Selector selector = 2;
- */
- public Builder setSelector(
- pl.leancode.patrol.contracts.Contracts.Selector.Builder builderForValue) {
- copyOnWrite();
- instance.setSelector(builderForValue.build());
- return this;
- }
- /**
- * .patrol.Selector selector = 2;
- */
- public Builder mergeSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- copyOnWrite();
- instance.mergeSelector(value);
- return this;
- }
- /**
- * .patrol.Selector selector = 2;
- */
- public Builder clearSelector() {
- copyOnWrite();
- instance.clearSelector();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.TapOnNotificationRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.TapOnNotificationRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "findBy_",
- "findByCase_",
- pl.leancode.patrol.contracts.Contracts.Selector.class,
- };
- java.lang.String info =
- "\u0000\u0002\u0001\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001>\u0000\u0002<" +
- "\u0000";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser- * We're defining our own Empty instead of using google.protobuf.Empty because - * the Dart plugin can't easily generate it. - * - * See: - * * https://github.com/google/protobuf.dart/issues/170 - *- * - * Protobuf type {@code patrol.Empty} - */ - public static final class Empty extends - com.google.protobuf.GeneratedMessageLite< - Empty, Empty.Builder> implements - // @@protoc_insertion_point(message_implements:patrol.Empty) - EmptyOrBuilder { - private Empty() { - } - public static pl.leancode.patrol.contracts.Contracts.Empty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static pl.leancode.patrol.contracts.Contracts.Empty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static pl.leancode.patrol.contracts.Contracts.Empty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static pl.leancode.patrol.contracts.Contracts.Empty parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static pl.leancode.patrol.contracts.Contracts.Empty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static pl.leancode.patrol.contracts.Contracts.Empty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static pl.leancode.patrol.contracts.Contracts.Empty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static pl.leancode.patrol.contracts.Contracts.Empty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static pl.leancode.patrol.contracts.Contracts.Empty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static pl.leancode.patrol.contracts.Contracts.Empty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static pl.leancode.patrol.contracts.Contracts.Empty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static pl.leancode.patrol.contracts.Contracts.Empty parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); - } - public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.Empty prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); - } - - /** - *
- * We're defining our own Empty instead of using google.protobuf.Empty because - * the Dart plugin can't easily generate it. - * - * See: - * * https://github.com/google/protobuf.dart/issues/170 - *- * - * Protobuf type {@code patrol.Empty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - pl.leancode.patrol.contracts.Contracts.Empty, Builder> implements - // @@protoc_insertion_point(builder_implements:patrol.Empty) - pl.leancode.patrol.contracts.Contracts.EmptyOrBuilder { - // Construct using pl.leancode.patrol.contracts.Contracts.Empty.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - // @@protoc_insertion_point(builder_scope:patrol.Empty) - } - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new pl.leancode.patrol.contracts.Contracts.Empty(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = null;java.lang.String info = - "\u0000\u0000"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser
string appId = 1;
- * @return The appId.
- */
- java.lang.String getAppId();
- /**
- * string appId = 1;
- * @return The bytes for appId.
- */
- com.google.protobuf.ByteString
- getAppIdBytes();
- }
- /**
- * Protobuf type {@code patrol.DarkModeRequest}
- */
- public static final class DarkModeRequest extends
- com.google.protobuf.GeneratedMessageLite<
- DarkModeRequest, DarkModeRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.DarkModeRequest)
- DarkModeRequestOrBuilder {
- private DarkModeRequest() {
- appId_ = "";
- }
- public static final int APPID_FIELD_NUMBER = 1;
- private java.lang.String appId_;
- /**
- * string appId = 1;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return appId_;
- }
- /**
- * string appId = 1;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(appId_);
- }
- /**
- * string appId = 1;
- * @param value The appId to set.
- */
- private void setAppId(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- appId_ = value;
- }
- /**
- * string appId = 1;
- */
- private void clearAppId() {
-
- appId_ = getDefaultInstance().getAppId();
- }
- /**
- * string appId = 1;
- * @param value The bytes for appId to set.
- */
- private void setAppIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- appId_ = value.toStringUtf8();
-
- }
-
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.DarkModeRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.DarkModeRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.DarkModeRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.DarkModeRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.DarkModeRequest)
- pl.leancode.patrol.contracts.Contracts.DarkModeRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.DarkModeRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string appId = 1;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return instance.getAppId();
- }
- /**
- * string appId = 1;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return instance.getAppIdBytes();
- }
- /**
- * string appId = 1;
- * @param value The appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppId(
- java.lang.String value) {
- copyOnWrite();
- instance.setAppId(value);
- return this;
- }
- /**
- * string appId = 1;
- * @return This builder for chaining.
- */
- public Builder clearAppId() {
- copyOnWrite();
- instance.clearAppId();
- return this;
- }
- /**
- * string appId = 1;
- * @param value The bytes for appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppIdBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setAppIdBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.DarkModeRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.DarkModeRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "appId_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0208";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser.patrol.Selector selector = 1;
- * @return Whether the selector field is set.
- */
- boolean hasSelector();
- /**
- * .patrol.Selector selector = 1;
- * @return The selector.
- */
- pl.leancode.patrol.contracts.Contracts.Selector getSelector();
-
- /**
- * string appId = 2;
- * @return The appId.
- */
- java.lang.String getAppId();
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- com.google.protobuf.ByteString
- getAppIdBytes();
- }
- /**
- * Protobuf type {@code patrol.GetNativeViewsRequest}
- */
- public static final class GetNativeViewsRequest extends
- com.google.protobuf.GeneratedMessageLite<
- GetNativeViewsRequest, GetNativeViewsRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.GetNativeViewsRequest)
- GetNativeViewsRequestOrBuilder {
- private GetNativeViewsRequest() {
- appId_ = "";
- }
- public static final int SELECTOR_FIELD_NUMBER = 1;
- private pl.leancode.patrol.contracts.Contracts.Selector selector_;
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public boolean hasSelector() {
- return selector_ != null;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Selector getSelector() {
- return selector_ == null ? pl.leancode.patrol.contracts.Contracts.Selector.getDefaultInstance() : selector_;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- private void setSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- value.getClass();
- selector_ = value;
-
- }
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- value.getClass();
- if (selector_ != null &&
- selector_ != pl.leancode.patrol.contracts.Contracts.Selector.getDefaultInstance()) {
- selector_ =
- pl.leancode.patrol.contracts.Contracts.Selector.newBuilder(selector_).mergeFrom(value).buildPartial();
- } else {
- selector_ = value;
- }
-
- }
- /**
- * .patrol.Selector selector = 1;
- */
- private void clearSelector() { selector_ = null;
-
- }
-
- public static final int APPID_FIELD_NUMBER = 2;
- private java.lang.String appId_;
- /**
- * string appId = 2;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return appId_;
- }
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(appId_);
- }
- /**
- * string appId = 2;
- * @param value The appId to set.
- */
- private void setAppId(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- appId_ = value;
- }
- /**
- * string appId = 2;
- */
- private void clearAppId() {
-
- appId_ = getDefaultInstance().getAppId();
- }
- /**
- * string appId = 2;
- * @param value The bytes for appId to set.
- */
- private void setAppIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- appId_ = value.toStringUtf8();
-
- }
-
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.GetNativeViewsRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.GetNativeViewsRequest)
- pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public boolean hasSelector() {
- return instance.hasSelector();
- }
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Selector getSelector() {
- return instance.getSelector();
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder setSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- copyOnWrite();
- instance.setSelector(value);
- return this;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder setSelector(
- pl.leancode.patrol.contracts.Contracts.Selector.Builder builderForValue) {
- copyOnWrite();
- instance.setSelector(builderForValue.build());
- return this;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder mergeSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- copyOnWrite();
- instance.mergeSelector(value);
- return this;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder clearSelector() { copyOnWrite();
- instance.clearSelector();
- return this;
- }
-
- /**
- * string appId = 2;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return instance.getAppId();
- }
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return instance.getAppIdBytes();
- }
- /**
- * string appId = 2;
- * @param value The appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppId(
- java.lang.String value) {
- copyOnWrite();
- instance.setAppId(value);
- return this;
- }
- /**
- * string appId = 2;
- * @return This builder for chaining.
- */
- public Builder clearAppId() {
- copyOnWrite();
- instance.clearAppId();
- return this;
- }
- /**
- * string appId = 2;
- * @param value The bytes for appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppIdBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setAppIdBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.GetNativeViewsRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "selector_",
- "appId_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\u0208" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserrepeated .patrol.NativeView nativeViews = 2;
- */
- java.util.Listrepeated .patrol.NativeView nativeViews = 2;
- */
- pl.leancode.patrol.contracts.Contracts.NativeView getNativeViews(int index);
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- int getNativeViewsCount();
- }
- /**
- * Protobuf type {@code patrol.GetNativeViewsResponse}
- */
- public static final class GetNativeViewsResponse extends
- com.google.protobuf.GeneratedMessageLite<
- GetNativeViewsResponse, GetNativeViewsResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.GetNativeViewsResponse)
- GetNativeViewsResponseOrBuilder {
- private GetNativeViewsResponse() {
- nativeViews_ = emptyProtobufList();
- }
- public static final int NATIVEVIEWS_FIELD_NUMBER = 2;
- private com.google.protobuf.Internal.ProtobufListrepeated .patrol.NativeView nativeViews = 2;
- */
- @java.lang.Override
- public java.util.Listrepeated .patrol.NativeView nativeViews = 2;
- */
- public java.util.List extends pl.leancode.patrol.contracts.Contracts.NativeViewOrBuilder>
- getNativeViewsOrBuilderList() {
- return nativeViews_;
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- @java.lang.Override
- public int getNativeViewsCount() {
- return nativeViews_.size();
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.NativeView getNativeViews(int index) {
- return nativeViews_.get(index);
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- public pl.leancode.patrol.contracts.Contracts.NativeViewOrBuilder getNativeViewsOrBuilder(
- int index) {
- return nativeViews_.get(index);
- }
- private void ensureNativeViewsIsMutable() {
- com.google.protobuf.Internal.ProtobufListrepeated .patrol.NativeView nativeViews = 2;
- */
- private void setNativeViews(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView value) {
- value.getClass();
- ensureNativeViewsIsMutable();
- nativeViews_.set(index, value);
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- private void addNativeViews(pl.leancode.patrol.contracts.Contracts.NativeView value) {
- value.getClass();
- ensureNativeViewsIsMutable();
- nativeViews_.add(value);
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- private void addNativeViews(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView value) {
- value.getClass();
- ensureNativeViewsIsMutable();
- nativeViews_.add(index, value);
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- private void addAllNativeViews(
- java.lang.Iterable extends pl.leancode.patrol.contracts.Contracts.NativeView> values) {
- ensureNativeViewsIsMutable();
- com.google.protobuf.AbstractMessageLite.addAll(
- values, nativeViews_);
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- private void clearNativeViews() {
- nativeViews_ = emptyProtobufList();
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- private void removeNativeViews(int index) {
- ensureNativeViewsIsMutable();
- nativeViews_.remove(index);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.GetNativeViewsResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.GetNativeViewsResponse)
- pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponseOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- @java.lang.Override
- public java.util.Listrepeated .patrol.NativeView nativeViews = 2;
- */
- @java.lang.Override
- public int getNativeViewsCount() {
- return instance.getNativeViewsCount();
- }/**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.NativeView getNativeViews(int index) {
- return instance.getNativeViews(index);
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- public Builder setNativeViews(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView value) {
- copyOnWrite();
- instance.setNativeViews(index, value);
- return this;
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- public Builder setNativeViews(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView.Builder builderForValue) {
- copyOnWrite();
- instance.setNativeViews(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- public Builder addNativeViews(pl.leancode.patrol.contracts.Contracts.NativeView value) {
- copyOnWrite();
- instance.addNativeViews(value);
- return this;
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- public Builder addNativeViews(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView value) {
- copyOnWrite();
- instance.addNativeViews(index, value);
- return this;
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- public Builder addNativeViews(
- pl.leancode.patrol.contracts.Contracts.NativeView.Builder builderForValue) {
- copyOnWrite();
- instance.addNativeViews(builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- public Builder addNativeViews(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView.Builder builderForValue) {
- copyOnWrite();
- instance.addNativeViews(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- public Builder addAllNativeViews(
- java.lang.Iterable extends pl.leancode.patrol.contracts.Contracts.NativeView> values) {
- copyOnWrite();
- instance.addAllNativeViews(values);
- return this;
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- public Builder clearNativeViews() {
- copyOnWrite();
- instance.clearNativeViews();
- return this;
- }
- /**
- * repeated .patrol.NativeView nativeViews = 2;
- */
- public Builder removeNativeViews(int index) {
- copyOnWrite();
- instance.removeNativeViews(index);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.GetNativeViewsResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "nativeViews_",
- pl.leancode.patrol.contracts.Contracts.NativeView.class,
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0002\u0002\u0001\u0000\u0001\u0000\u0002\u001b";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserrepeated .patrol.Notification notifications = 2;
- */
- java.util.Listrepeated .patrol.Notification notifications = 2;
- */
- pl.leancode.patrol.contracts.Contracts.Notification getNotifications(int index);
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- int getNotificationsCount();
- }
- /**
- * Protobuf type {@code patrol.GetNotificationsResponse}
- */
- public static final class GetNotificationsResponse extends
- com.google.protobuf.GeneratedMessageLite<
- GetNotificationsResponse, GetNotificationsResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.GetNotificationsResponse)
- GetNotificationsResponseOrBuilder {
- private GetNotificationsResponse() {
- notifications_ = emptyProtobufList();
- }
- public static final int NOTIFICATIONS_FIELD_NUMBER = 2;
- private com.google.protobuf.Internal.ProtobufListrepeated .patrol.Notification notifications = 2;
- */
- @java.lang.Override
- public java.util.Listrepeated .patrol.Notification notifications = 2;
- */
- public java.util.List extends pl.leancode.patrol.contracts.Contracts.NotificationOrBuilder>
- getNotificationsOrBuilderList() {
- return notifications_;
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- @java.lang.Override
- public int getNotificationsCount() {
- return notifications_.size();
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Notification getNotifications(int index) {
- return notifications_.get(index);
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- public pl.leancode.patrol.contracts.Contracts.NotificationOrBuilder getNotificationsOrBuilder(
- int index) {
- return notifications_.get(index);
- }
- private void ensureNotificationsIsMutable() {
- com.google.protobuf.Internal.ProtobufListrepeated .patrol.Notification notifications = 2;
- */
- private void setNotifications(
- int index, pl.leancode.patrol.contracts.Contracts.Notification value) {
- value.getClass();
- ensureNotificationsIsMutable();
- notifications_.set(index, value);
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- private void addNotifications(pl.leancode.patrol.contracts.Contracts.Notification value) {
- value.getClass();
- ensureNotificationsIsMutable();
- notifications_.add(value);
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- private void addNotifications(
- int index, pl.leancode.patrol.contracts.Contracts.Notification value) {
- value.getClass();
- ensureNotificationsIsMutable();
- notifications_.add(index, value);
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- private void addAllNotifications(
- java.lang.Iterable extends pl.leancode.patrol.contracts.Contracts.Notification> values) {
- ensureNotificationsIsMutable();
- com.google.protobuf.AbstractMessageLite.addAll(
- values, notifications_);
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- private void clearNotifications() {
- notifications_ = emptyProtobufList();
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- private void removeNotifications(int index) {
- ensureNotificationsIsMutable();
- notifications_.remove(index);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.GetNotificationsResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.GetNotificationsResponse)
- pl.leancode.patrol.contracts.Contracts.GetNotificationsResponseOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- @java.lang.Override
- public java.util.Listrepeated .patrol.Notification notifications = 2;
- */
- @java.lang.Override
- public int getNotificationsCount() {
- return instance.getNotificationsCount();
- }/**
- * repeated .patrol.Notification notifications = 2;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Notification getNotifications(int index) {
- return instance.getNotifications(index);
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- public Builder setNotifications(
- int index, pl.leancode.patrol.contracts.Contracts.Notification value) {
- copyOnWrite();
- instance.setNotifications(index, value);
- return this;
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- public Builder setNotifications(
- int index, pl.leancode.patrol.contracts.Contracts.Notification.Builder builderForValue) {
- copyOnWrite();
- instance.setNotifications(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- public Builder addNotifications(pl.leancode.patrol.contracts.Contracts.Notification value) {
- copyOnWrite();
- instance.addNotifications(value);
- return this;
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- public Builder addNotifications(
- int index, pl.leancode.patrol.contracts.Contracts.Notification value) {
- copyOnWrite();
- instance.addNotifications(index, value);
- return this;
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- public Builder addNotifications(
- pl.leancode.patrol.contracts.Contracts.Notification.Builder builderForValue) {
- copyOnWrite();
- instance.addNotifications(builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- public Builder addNotifications(
- int index, pl.leancode.patrol.contracts.Contracts.Notification.Builder builderForValue) {
- copyOnWrite();
- instance.addNotifications(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- public Builder addAllNotifications(
- java.lang.Iterable extends pl.leancode.patrol.contracts.Contracts.Notification> values) {
- copyOnWrite();
- instance.addAllNotifications(values);
- return this;
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- public Builder clearNotifications() {
- copyOnWrite();
- instance.clearNotifications();
- return this;
- }
- /**
- * repeated .patrol.Notification notifications = 2;
- */
- public Builder removeNotifications(int index) {
- copyOnWrite();
- instance.removeNotifications(index);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.GetNotificationsResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "notifications_",
- pl.leancode.patrol.contracts.Contracts.Notification.class,
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0002\u0002\u0001\u0000\u0001\u0000\u0002\u001b";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser.patrol.Selector selector = 1;
- * @return Whether the selector field is set.
- */
- boolean hasSelector();
- /**
- * .patrol.Selector selector = 1;
- * @return The selector.
- */
- pl.leancode.patrol.contracts.Contracts.Selector getSelector();
-
- /**
- * string appId = 2;
- * @return The appId.
- */
- java.lang.String getAppId();
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- com.google.protobuf.ByteString
- getAppIdBytes();
- }
- /**
- * Protobuf type {@code patrol.TapRequest}
- */
- public static final class TapRequest extends
- com.google.protobuf.GeneratedMessageLite<
- TapRequest, TapRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.TapRequest)
- TapRequestOrBuilder {
- private TapRequest() {
- appId_ = "";
- }
- public static final int SELECTOR_FIELD_NUMBER = 1;
- private pl.leancode.patrol.contracts.Contracts.Selector selector_;
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public boolean hasSelector() {
- return selector_ != null;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Selector getSelector() {
- return selector_ == null ? pl.leancode.patrol.contracts.Contracts.Selector.getDefaultInstance() : selector_;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- private void setSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- value.getClass();
- selector_ = value;
-
- }
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- value.getClass();
- if (selector_ != null &&
- selector_ != pl.leancode.patrol.contracts.Contracts.Selector.getDefaultInstance()) {
- selector_ =
- pl.leancode.patrol.contracts.Contracts.Selector.newBuilder(selector_).mergeFrom(value).buildPartial();
- } else {
- selector_ = value;
- }
-
- }
- /**
- * .patrol.Selector selector = 1;
- */
- private void clearSelector() { selector_ = null;
-
- }
-
- public static final int APPID_FIELD_NUMBER = 2;
- private java.lang.String appId_;
- /**
- * string appId = 2;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return appId_;
- }
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(appId_);
- }
- /**
- * string appId = 2;
- * @param value The appId to set.
- */
- private void setAppId(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- appId_ = value;
- }
- /**
- * string appId = 2;
- */
- private void clearAppId() {
-
- appId_ = getDefaultInstance().getAppId();
- }
- /**
- * string appId = 2;
- * @param value The bytes for appId to set.
- */
- private void setAppIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- appId_ = value.toStringUtf8();
-
- }
-
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.TapRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.TapRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.TapRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.TapRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.TapRequest)
- pl.leancode.patrol.contracts.Contracts.TapRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.TapRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public boolean hasSelector() {
- return instance.hasSelector();
- }
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Selector getSelector() {
- return instance.getSelector();
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder setSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- copyOnWrite();
- instance.setSelector(value);
- return this;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder setSelector(
- pl.leancode.patrol.contracts.Contracts.Selector.Builder builderForValue) {
- copyOnWrite();
- instance.setSelector(builderForValue.build());
- return this;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder mergeSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- copyOnWrite();
- instance.mergeSelector(value);
- return this;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder clearSelector() { copyOnWrite();
- instance.clearSelector();
- return this;
- }
-
- /**
- * string appId = 2;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return instance.getAppId();
- }
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return instance.getAppIdBytes();
- }
- /**
- * string appId = 2;
- * @param value The appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppId(
- java.lang.String value) {
- copyOnWrite();
- instance.setAppId(value);
- return this;
- }
- /**
- * string appId = 2;
- * @return This builder for chaining.
- */
- public Builder clearAppId() {
- copyOnWrite();
- instance.clearAppId();
- return this;
- }
- /**
- * string appId = 2;
- * @param value The bytes for appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppIdBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setAppIdBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.TapRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.TapRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "selector_",
- "appId_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\u0208" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring data = 1;
- * @return The data.
- */
- java.lang.String getData();
- /**
- * string data = 1;
- * @return The bytes for data.
- */
- com.google.protobuf.ByteString
- getDataBytes();
-
- /**
- * string appId = 2;
- * @return The appId.
- */
- java.lang.String getAppId();
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- com.google.protobuf.ByteString
- getAppIdBytes();
-
- /**
- * uint32 index = 3;
- * @return Whether the index field is set.
- */
- boolean hasIndex();
- /**
- * uint32 index = 3;
- * @return The index.
- */
- int getIndex();
-
- /**
- * .patrol.Selector selector = 4;
- * @return Whether the selector field is set.
- */
- boolean hasSelector();
- /**
- * .patrol.Selector selector = 4;
- * @return The selector.
- */
- pl.leancode.patrol.contracts.Contracts.Selector getSelector();
-
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- * @return The enum numeric value on the wire for keyboardBehavior.
- */
- int getKeyboardBehaviorValue();
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- * @return The keyboardBehavior.
- */
- pl.leancode.patrol.contracts.Contracts.EnterTextRequest.KeyboardBehavior getKeyboardBehavior();
-
- public pl.leancode.patrol.contracts.Contracts.EnterTextRequest.FindByCase getFindByCase();
- }
- /**
- * Protobuf type {@code patrol.EnterTextRequest}
- */
- public static final class EnterTextRequest extends
- com.google.protobuf.GeneratedMessageLite<
- EnterTextRequest, EnterTextRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.EnterTextRequest)
- EnterTextRequestOrBuilder {
- private EnterTextRequest() {
- data_ = "";
- appId_ = "";
- }
- /**
- * Protobuf enum {@code patrol.EnterTextRequest.KeyboardBehavior}
- */
- public enum KeyboardBehavior
- implements com.google.protobuf.Internal.EnumLite {
- /**
- * - * The default keyboard behavior. - * - * Keyboard will be shown when entering text starts, and will be - * automatically dismissed afterwards. - *- * - *
SHOW_AND_DISMISS = 0;
- */
- SHOW_AND_DISMISS(0),
- /**
- * - * The alternative keyboard behavior. - * - * On Android, no keyboard will be shown at all. The text will simply appear - * inside the TextField. - * - * On iOS, the keyboard will not be dismissed after entering text. - *- * - *
ALTERNATIVE = 1;
- */
- ALTERNATIVE(1),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * - * The default keyboard behavior. - * - * Keyboard will be shown when entering text starts, and will be - * automatically dismissed afterwards. - *- * - *
SHOW_AND_DISMISS = 0;
- */
- public static final int SHOW_AND_DISMISS_VALUE = 0;
- /**
- * - * The alternative keyboard behavior. - * - * On Android, no keyboard will be shown at all. The text will simply appear - * inside the TextField. - * - * On iOS, the keyboard will not be dismissed after entering text. - *- * - *
ALTERNATIVE = 1;
- */
- public static final int ALTERNATIVE_VALUE = 1;
-
-
- @java.lang.Override
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @param value The number of the enum to look for.
- * @return The enum associated with the given number.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static KeyboardBehavior valueOf(int value) {
- return forNumber(value);
- }
-
- public static KeyboardBehavior forNumber(int value) {
- switch (value) {
- case 0: return SHOW_AND_DISMISS;
- case 1: return ALTERNATIVE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMapstring data = 1;
- * @return The data.
- */
- @java.lang.Override
- public java.lang.String getData() {
- return data_;
- }
- /**
- * string data = 1;
- * @return The bytes for data.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getDataBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(data_);
- }
- /**
- * string data = 1;
- * @param value The data to set.
- */
- private void setData(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- data_ = value;
- }
- /**
- * string data = 1;
- */
- private void clearData() {
-
- data_ = getDefaultInstance().getData();
- }
- /**
- * string data = 1;
- * @param value The bytes for data to set.
- */
- private void setDataBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- data_ = value.toStringUtf8();
-
- }
-
- public static final int APPID_FIELD_NUMBER = 2;
- private java.lang.String appId_;
- /**
- * string appId = 2;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return appId_;
- }
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(appId_);
- }
- /**
- * string appId = 2;
- * @param value The appId to set.
- */
- private void setAppId(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- appId_ = value;
- }
- /**
- * string appId = 2;
- */
- private void clearAppId() {
-
- appId_ = getDefaultInstance().getAppId();
- }
- /**
- * string appId = 2;
- * @param value The bytes for appId to set.
- */
- private void setAppIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- appId_ = value.toStringUtf8();
-
- }
-
- public static final int INDEX_FIELD_NUMBER = 3;
- /**
- * uint32 index = 3;
- * @return Whether the index field is set.
- */
- @java.lang.Override
- public boolean hasIndex() {
- return findByCase_ == 3;
- }
- /**
- * uint32 index = 3;
- * @return The index.
- */
- @java.lang.Override
- public int getIndex() {
- if (findByCase_ == 3) {
- return (java.lang.Integer) findBy_;
- }
- return 0;
- }
- /**
- * uint32 index = 3;
- * @param value The index to set.
- */
- private void setIndex(int value) {
- findByCase_ = 3;
- findBy_ = value;
- }
- /**
- * uint32 index = 3;
- */
- private void clearIndex() {
- if (findByCase_ == 3) {
- findByCase_ = 0;
- findBy_ = null;
- }
- }
-
- public static final int SELECTOR_FIELD_NUMBER = 4;
- /**
- * .patrol.Selector selector = 4;
- */
- @java.lang.Override
- public boolean hasSelector() {
- return findByCase_ == 4;
- }
- /**
- * .patrol.Selector selector = 4;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Selector getSelector() {
- if (findByCase_ == 4) {
- return (pl.leancode.patrol.contracts.Contracts.Selector) findBy_;
- }
- return pl.leancode.patrol.contracts.Contracts.Selector.getDefaultInstance();
- }
- /**
- * .patrol.Selector selector = 4;
- */
- private void setSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- value.getClass();
- findBy_ = value;
- findByCase_ = 4;
- }
- /**
- * .patrol.Selector selector = 4;
- */
- private void mergeSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- value.getClass();
- if (findByCase_ == 4 &&
- findBy_ != pl.leancode.patrol.contracts.Contracts.Selector.getDefaultInstance()) {
- findBy_ = pl.leancode.patrol.contracts.Contracts.Selector.newBuilder((pl.leancode.patrol.contracts.Contracts.Selector) findBy_)
- .mergeFrom(value).buildPartial();
- } else {
- findBy_ = value;
- }
- findByCase_ = 4;
- }
- /**
- * .patrol.Selector selector = 4;
- */
- private void clearSelector() {
- if (findByCase_ == 4) {
- findByCase_ = 0;
- findBy_ = null;
- }
- }
-
- public static final int KEYBOARDBEHAVIOR_FIELD_NUMBER = 5;
- private int keyboardBehavior_;
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- * @return The enum numeric value on the wire for keyboardBehavior.
- */
- @java.lang.Override
- public int getKeyboardBehaviorValue() {
- return keyboardBehavior_;
- }
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- * @return The keyboardBehavior.
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.EnterTextRequest.KeyboardBehavior getKeyboardBehavior() {
- pl.leancode.patrol.contracts.Contracts.EnterTextRequest.KeyboardBehavior result = pl.leancode.patrol.contracts.Contracts.EnterTextRequest.KeyboardBehavior.forNumber(keyboardBehavior_);
- return result == null ? pl.leancode.patrol.contracts.Contracts.EnterTextRequest.KeyboardBehavior.UNRECOGNIZED : result;
- }
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- * @param value The enum numeric value on the wire for keyboardBehavior to set.
- */
- private void setKeyboardBehaviorValue(int value) {
- keyboardBehavior_ = value;
- }
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- * @param value The keyboardBehavior to set.
- */
- private void setKeyboardBehavior(pl.leancode.patrol.contracts.Contracts.EnterTextRequest.KeyboardBehavior value) {
- keyboardBehavior_ = value.getNumber();
-
- }
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- */
- private void clearKeyboardBehavior() {
-
- keyboardBehavior_ = 0;
- }
-
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.EnterTextRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.EnterTextRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.EnterTextRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.EnterTextRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.EnterTextRequest)
- pl.leancode.patrol.contracts.Contracts.EnterTextRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.EnterTextRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
- @java.lang.Override
- public FindByCase
- getFindByCase() {
- return instance.getFindByCase();
- }
-
- public Builder clearFindBy() {
- copyOnWrite();
- instance.clearFindBy();
- return this;
- }
-
-
- /**
- * string data = 1;
- * @return The data.
- */
- @java.lang.Override
- public java.lang.String getData() {
- return instance.getData();
- }
- /**
- * string data = 1;
- * @return The bytes for data.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getDataBytes() {
- return instance.getDataBytes();
- }
- /**
- * string data = 1;
- * @param value The data to set.
- * @return This builder for chaining.
- */
- public Builder setData(
- java.lang.String value) {
- copyOnWrite();
- instance.setData(value);
- return this;
- }
- /**
- * string data = 1;
- * @return This builder for chaining.
- */
- public Builder clearData() {
- copyOnWrite();
- instance.clearData();
- return this;
- }
- /**
- * string data = 1;
- * @param value The bytes for data to set.
- * @return This builder for chaining.
- */
- public Builder setDataBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setDataBytes(value);
- return this;
- }
-
- /**
- * string appId = 2;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return instance.getAppId();
- }
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return instance.getAppIdBytes();
- }
- /**
- * string appId = 2;
- * @param value The appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppId(
- java.lang.String value) {
- copyOnWrite();
- instance.setAppId(value);
- return this;
- }
- /**
- * string appId = 2;
- * @return This builder for chaining.
- */
- public Builder clearAppId() {
- copyOnWrite();
- instance.clearAppId();
- return this;
- }
- /**
- * string appId = 2;
- * @param value The bytes for appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppIdBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setAppIdBytes(value);
- return this;
- }
-
- /**
- * uint32 index = 3;
- * @return Whether the index field is set.
- */
- @java.lang.Override
- public boolean hasIndex() {
- return instance.hasIndex();
- }
- /**
- * uint32 index = 3;
- * @return The index.
- */
- @java.lang.Override
- public int getIndex() {
- return instance.getIndex();
- }
- /**
- * uint32 index = 3;
- * @param value The index to set.
- * @return This builder for chaining.
- */
- public Builder setIndex(int value) {
- copyOnWrite();
- instance.setIndex(value);
- return this;
- }
- /**
- * uint32 index = 3;
- * @return This builder for chaining.
- */
- public Builder clearIndex() {
- copyOnWrite();
- instance.clearIndex();
- return this;
- }
-
- /**
- * .patrol.Selector selector = 4;
- */
- @java.lang.Override
- public boolean hasSelector() {
- return instance.hasSelector();
- }
- /**
- * .patrol.Selector selector = 4;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Selector getSelector() {
- return instance.getSelector();
- }
- /**
- * .patrol.Selector selector = 4;
- */
- public Builder setSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- copyOnWrite();
- instance.setSelector(value);
- return this;
- }
- /**
- * .patrol.Selector selector = 4;
- */
- public Builder setSelector(
- pl.leancode.patrol.contracts.Contracts.Selector.Builder builderForValue) {
- copyOnWrite();
- instance.setSelector(builderForValue.build());
- return this;
- }
- /**
- * .patrol.Selector selector = 4;
- */
- public Builder mergeSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- copyOnWrite();
- instance.mergeSelector(value);
- return this;
- }
- /**
- * .patrol.Selector selector = 4;
- */
- public Builder clearSelector() {
- copyOnWrite();
- instance.clearSelector();
- return this;
- }
-
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- * @return The enum numeric value on the wire for keyboardBehavior.
- */
- @java.lang.Override
- public int getKeyboardBehaviorValue() {
- return instance.getKeyboardBehaviorValue();
- }
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- * @param value The keyboardBehavior to set.
- * @return This builder for chaining.
- */
- public Builder setKeyboardBehaviorValue(int value) {
- copyOnWrite();
- instance.setKeyboardBehaviorValue(value);
- return this;
- }
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- * @return The keyboardBehavior.
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.EnterTextRequest.KeyboardBehavior getKeyboardBehavior() {
- return instance.getKeyboardBehavior();
- }
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- * @param value The enum numeric value on the wire for keyboardBehavior to set.
- * @return This builder for chaining.
- */
- public Builder setKeyboardBehavior(pl.leancode.patrol.contracts.Contracts.EnterTextRequest.KeyboardBehavior value) {
- copyOnWrite();
- instance.setKeyboardBehavior(value);
- return this;
- }
- /**
- * .patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;
- * @return This builder for chaining.
- */
- public Builder clearKeyboardBehavior() {
- copyOnWrite();
- instance.clearKeyboardBehavior();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.EnterTextRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.EnterTextRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "findBy_",
- "findByCase_",
- "data_",
- "appId_",
- pl.leancode.patrol.contracts.Contracts.Selector.class,
- "keyboardBehavior_",
- };
- java.lang.String info =
- "\u0000\u0005\u0001\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
- "\u0003>\u0000\u0004<\u0000\u0005\f";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserfloat startX = 1;
- * @return The startX.
- */
- float getStartX();
-
- /**
- * float startY = 2;
- * @return The startY.
- */
- float getStartY();
-
- /**
- * float endX = 3;
- * @return The endX.
- */
- float getEndX();
-
- /**
- * float endY = 4;
- * @return The endY.
- */
- float getEndY();
-
- /**
- * uint32 steps = 5;
- * @return The steps.
- */
- int getSteps();
-
- /**
- * string appId = 6;
- * @return The appId.
- */
- java.lang.String getAppId();
- /**
- * string appId = 6;
- * @return The bytes for appId.
- */
- com.google.protobuf.ByteString
- getAppIdBytes();
- }
- /**
- * Protobuf type {@code patrol.SwipeRequest}
- */
- public static final class SwipeRequest extends
- com.google.protobuf.GeneratedMessageLite<
- SwipeRequest, SwipeRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.SwipeRequest)
- SwipeRequestOrBuilder {
- private SwipeRequest() {
- appId_ = "";
- }
- public static final int STARTX_FIELD_NUMBER = 1;
- private float startX_;
- /**
- * float startX = 1;
- * @return The startX.
- */
- @java.lang.Override
- public float getStartX() {
- return startX_;
- }
- /**
- * float startX = 1;
- * @param value The startX to set.
- */
- private void setStartX(float value) {
-
- startX_ = value;
- }
- /**
- * float startX = 1;
- */
- private void clearStartX() {
-
- startX_ = 0F;
- }
-
- public static final int STARTY_FIELD_NUMBER = 2;
- private float startY_;
- /**
- * float startY = 2;
- * @return The startY.
- */
- @java.lang.Override
- public float getStartY() {
- return startY_;
- }
- /**
- * float startY = 2;
- * @param value The startY to set.
- */
- private void setStartY(float value) {
-
- startY_ = value;
- }
- /**
- * float startY = 2;
- */
- private void clearStartY() {
-
- startY_ = 0F;
- }
-
- public static final int ENDX_FIELD_NUMBER = 3;
- private float endX_;
- /**
- * float endX = 3;
- * @return The endX.
- */
- @java.lang.Override
- public float getEndX() {
- return endX_;
- }
- /**
- * float endX = 3;
- * @param value The endX to set.
- */
- private void setEndX(float value) {
-
- endX_ = value;
- }
- /**
- * float endX = 3;
- */
- private void clearEndX() {
-
- endX_ = 0F;
- }
-
- public static final int ENDY_FIELD_NUMBER = 4;
- private float endY_;
- /**
- * float endY = 4;
- * @return The endY.
- */
- @java.lang.Override
- public float getEndY() {
- return endY_;
- }
- /**
- * float endY = 4;
- * @param value The endY to set.
- */
- private void setEndY(float value) {
-
- endY_ = value;
- }
- /**
- * float endY = 4;
- */
- private void clearEndY() {
-
- endY_ = 0F;
- }
-
- public static final int STEPS_FIELD_NUMBER = 5;
- private int steps_;
- /**
- * uint32 steps = 5;
- * @return The steps.
- */
- @java.lang.Override
- public int getSteps() {
- return steps_;
- }
- /**
- * uint32 steps = 5;
- * @param value The steps to set.
- */
- private void setSteps(int value) {
-
- steps_ = value;
- }
- /**
- * uint32 steps = 5;
- */
- private void clearSteps() {
-
- steps_ = 0;
- }
-
- public static final int APPID_FIELD_NUMBER = 6;
- private java.lang.String appId_;
- /**
- * string appId = 6;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return appId_;
- }
- /**
- * string appId = 6;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(appId_);
- }
- /**
- * string appId = 6;
- * @param value The appId to set.
- */
- private void setAppId(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- appId_ = value;
- }
- /**
- * string appId = 6;
- */
- private void clearAppId() {
-
- appId_ = getDefaultInstance().getAppId();
- }
- /**
- * string appId = 6;
- * @param value The bytes for appId to set.
- */
- private void setAppIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- appId_ = value.toStringUtf8();
-
- }
-
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.SwipeRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.SwipeRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.SwipeRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.SwipeRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.SwipeRequest)
- pl.leancode.patrol.contracts.Contracts.SwipeRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.SwipeRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * float startX = 1;
- * @return The startX.
- */
- @java.lang.Override
- public float getStartX() {
- return instance.getStartX();
- }
- /**
- * float startX = 1;
- * @param value The startX to set.
- * @return This builder for chaining.
- */
- public Builder setStartX(float value) {
- copyOnWrite();
- instance.setStartX(value);
- return this;
- }
- /**
- * float startX = 1;
- * @return This builder for chaining.
- */
- public Builder clearStartX() {
- copyOnWrite();
- instance.clearStartX();
- return this;
- }
-
- /**
- * float startY = 2;
- * @return The startY.
- */
- @java.lang.Override
- public float getStartY() {
- return instance.getStartY();
- }
- /**
- * float startY = 2;
- * @param value The startY to set.
- * @return This builder for chaining.
- */
- public Builder setStartY(float value) {
- copyOnWrite();
- instance.setStartY(value);
- return this;
- }
- /**
- * float startY = 2;
- * @return This builder for chaining.
- */
- public Builder clearStartY() {
- copyOnWrite();
- instance.clearStartY();
- return this;
- }
-
- /**
- * float endX = 3;
- * @return The endX.
- */
- @java.lang.Override
- public float getEndX() {
- return instance.getEndX();
- }
- /**
- * float endX = 3;
- * @param value The endX to set.
- * @return This builder for chaining.
- */
- public Builder setEndX(float value) {
- copyOnWrite();
- instance.setEndX(value);
- return this;
- }
- /**
- * float endX = 3;
- * @return This builder for chaining.
- */
- public Builder clearEndX() {
- copyOnWrite();
- instance.clearEndX();
- return this;
- }
-
- /**
- * float endY = 4;
- * @return The endY.
- */
- @java.lang.Override
- public float getEndY() {
- return instance.getEndY();
- }
- /**
- * float endY = 4;
- * @param value The endY to set.
- * @return This builder for chaining.
- */
- public Builder setEndY(float value) {
- copyOnWrite();
- instance.setEndY(value);
- return this;
- }
- /**
- * float endY = 4;
- * @return This builder for chaining.
- */
- public Builder clearEndY() {
- copyOnWrite();
- instance.clearEndY();
- return this;
- }
-
- /**
- * uint32 steps = 5;
- * @return The steps.
- */
- @java.lang.Override
- public int getSteps() {
- return instance.getSteps();
- }
- /**
- * uint32 steps = 5;
- * @param value The steps to set.
- * @return This builder for chaining.
- */
- public Builder setSteps(int value) {
- copyOnWrite();
- instance.setSteps(value);
- return this;
- }
- /**
- * uint32 steps = 5;
- * @return This builder for chaining.
- */
- public Builder clearSteps() {
- copyOnWrite();
- instance.clearSteps();
- return this;
- }
-
- /**
- * string appId = 6;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return instance.getAppId();
- }
- /**
- * string appId = 6;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return instance.getAppIdBytes();
- }
- /**
- * string appId = 6;
- * @param value The appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppId(
- java.lang.String value) {
- copyOnWrite();
- instance.setAppId(value);
- return this;
- }
- /**
- * string appId = 6;
- * @return This builder for chaining.
- */
- public Builder clearAppId() {
- copyOnWrite();
- instance.clearAppId();
- return this;
- }
- /**
- * string appId = 6;
- * @param value The bytes for appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppIdBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setAppIdBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.SwipeRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.SwipeRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "startX_",
- "startY_",
- "endX_",
- "endY_",
- "steps_",
- "appId_",
- };
- java.lang.String info =
- "\u0000\u0006\u0000\u0000\u0001\u0006\u0006\u0000\u0000\u0000\u0001\u0001\u0002\u0001" +
- "\u0003\u0001\u0004\u0001\u0005\u000b\u0006\u0208";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser.patrol.Selector selector = 1;
- * @return Whether the selector field is set.
- */
- boolean hasSelector();
- /**
- * .patrol.Selector selector = 1;
- * @return The selector.
- */
- pl.leancode.patrol.contracts.Contracts.Selector getSelector();
-
- /**
- * string appId = 2;
- * @return The appId.
- */
- java.lang.String getAppId();
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- com.google.protobuf.ByteString
- getAppIdBytes();
- }
- /**
- * Protobuf type {@code patrol.WaitUntilVisibleRequest}
- */
- public static final class WaitUntilVisibleRequest extends
- com.google.protobuf.GeneratedMessageLite<
- WaitUntilVisibleRequest, WaitUntilVisibleRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.WaitUntilVisibleRequest)
- WaitUntilVisibleRequestOrBuilder {
- private WaitUntilVisibleRequest() {
- appId_ = "";
- }
- public static final int SELECTOR_FIELD_NUMBER = 1;
- private pl.leancode.patrol.contracts.Contracts.Selector selector_;
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public boolean hasSelector() {
- return selector_ != null;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Selector getSelector() {
- return selector_ == null ? pl.leancode.patrol.contracts.Contracts.Selector.getDefaultInstance() : selector_;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- private void setSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- value.getClass();
- selector_ = value;
-
- }
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- value.getClass();
- if (selector_ != null &&
- selector_ != pl.leancode.patrol.contracts.Contracts.Selector.getDefaultInstance()) {
- selector_ =
- pl.leancode.patrol.contracts.Contracts.Selector.newBuilder(selector_).mergeFrom(value).buildPartial();
- } else {
- selector_ = value;
- }
-
- }
- /**
- * .patrol.Selector selector = 1;
- */
- private void clearSelector() { selector_ = null;
-
- }
-
- public static final int APPID_FIELD_NUMBER = 2;
- private java.lang.String appId_;
- /**
- * string appId = 2;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return appId_;
- }
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(appId_);
- }
- /**
- * string appId = 2;
- * @param value The appId to set.
- */
- private void setAppId(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- appId_ = value;
- }
- /**
- * string appId = 2;
- */
- private void clearAppId() {
-
- appId_ = getDefaultInstance().getAppId();
- }
- /**
- * string appId = 2;
- * @param value The bytes for appId to set.
- */
- private void setAppIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- appId_ = value.toStringUtf8();
-
- }
-
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.WaitUntilVisibleRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.WaitUntilVisibleRequest)
- pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public boolean hasSelector() {
- return instance.hasSelector();
- }
- /**
- * .patrol.Selector selector = 1;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.Selector getSelector() {
- return instance.getSelector();
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder setSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- copyOnWrite();
- instance.setSelector(value);
- return this;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder setSelector(
- pl.leancode.patrol.contracts.Contracts.Selector.Builder builderForValue) {
- copyOnWrite();
- instance.setSelector(builderForValue.build());
- return this;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder mergeSelector(pl.leancode.patrol.contracts.Contracts.Selector value) {
- copyOnWrite();
- instance.mergeSelector(value);
- return this;
- }
- /**
- * .patrol.Selector selector = 1;
- */
- public Builder clearSelector() { copyOnWrite();
- instance.clearSelector();
- return this;
- }
-
- /**
- * string appId = 2;
- * @return The appId.
- */
- @java.lang.Override
- public java.lang.String getAppId() {
- return instance.getAppId();
- }
- /**
- * string appId = 2;
- * @return The bytes for appId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppIdBytes() {
- return instance.getAppIdBytes();
- }
- /**
- * string appId = 2;
- * @param value The appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppId(
- java.lang.String value) {
- copyOnWrite();
- instance.setAppId(value);
- return this;
- }
- /**
- * string appId = 2;
- * @return This builder for chaining.
- */
- public Builder clearAppId() {
- copyOnWrite();
- instance.clearAppId();
- return this;
- }
- /**
- * string appId = 2;
- * @param value The bytes for appId to set.
- * @return This builder for chaining.
- */
- public Builder setAppIdBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setAppIdBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.WaitUntilVisibleRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.WaitUntilVisibleRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "selector_",
- "appId_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\u0208" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser.patrol.HandlePermissionRequest.Code code = 1;
- * @return The enum numeric value on the wire for code.
- */
- int getCodeValue();
- /**
- * .patrol.HandlePermissionRequest.Code code = 1;
- * @return The code.
- */
- pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.Code getCode();
- }
- /**
- * Protobuf type {@code patrol.HandlePermissionRequest}
- */
- public static final class HandlePermissionRequest extends
- com.google.protobuf.GeneratedMessageLite<
- HandlePermissionRequest, HandlePermissionRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.HandlePermissionRequest)
- HandlePermissionRequestOrBuilder {
- private HandlePermissionRequest() {
- }
- /**
- * Protobuf enum {@code patrol.HandlePermissionRequest.Code}
- */
- public enum Code
- implements com.google.protobuf.Internal.EnumLite {
- /**
- * WHILE_USING = 0;
- */
- WHILE_USING(0),
- /**
- * ONLY_THIS_TIME = 1;
- */
- ONLY_THIS_TIME(1),
- /**
- * DENIED = 2;
- */
- DENIED(2),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * WHILE_USING = 0;
- */
- public static final int WHILE_USING_VALUE = 0;
- /**
- * ONLY_THIS_TIME = 1;
- */
- public static final int ONLY_THIS_TIME_VALUE = 1;
- /**
- * DENIED = 2;
- */
- public static final int DENIED_VALUE = 2;
-
-
- @java.lang.Override
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @param value The number of the enum to look for.
- * @return The enum associated with the given number.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static Code valueOf(int value) {
- return forNumber(value);
- }
-
- public static Code forNumber(int value) {
- switch (value) {
- case 0: return WHILE_USING;
- case 1: return ONLY_THIS_TIME;
- case 2: return DENIED;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap
- internalGetValueMap() {
- return internalValueMap;
- }
- private static final com.google.protobuf.Internal.EnumLiteMap<
- Code> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap() {
- @java.lang.Override
- public Code findValueByNumber(int number) {
- return Code.forNumber(number);
- }
- };
-
- public static com.google.protobuf.Internal.EnumVerifier
- internalGetVerifier() {
- return CodeVerifier.INSTANCE;
- }
-
- private static final class CodeVerifier implements
- com.google.protobuf.Internal.EnumVerifier {
- static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new CodeVerifier();
- @java.lang.Override
- public boolean isInRange(int number) {
- return Code.forNumber(number) != null;
- }
- };
-
- private final int value;
-
- private Code(int value) {
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:patrol.HandlePermissionRequest.Code)
- }
-
- public static final int CODE_FIELD_NUMBER = 1;
- private int code_;
- /**
- * .patrol.HandlePermissionRequest.Code code = 1;
- * @return The enum numeric value on the wire for code.
- */
- @java.lang.Override
- public int getCodeValue() {
- return code_;
- }
- /**
- * .patrol.HandlePermissionRequest.Code code = 1;
- * @return The code.
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.Code getCode() {
- pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.Code result = pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.Code.forNumber(code_);
- return result == null ? pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.Code.UNRECOGNIZED : result;
- }
- /**
- * .patrol.HandlePermissionRequest.Code code = 1;
- * @param value The enum numeric value on the wire for code to set.
- */
- private void setCodeValue(int value) {
- code_ = value;
- }
- /**
- * .patrol.HandlePermissionRequest.Code code = 1;
- * @param value The code to set.
- */
- private void setCode(pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.Code value) {
- code_ = value.getNumber();
-
- }
- /**
- * .patrol.HandlePermissionRequest.Code code = 1;
- */
- private void clearCode() {
-
- code_ = 0;
- }
-
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.HandlePermissionRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.HandlePermissionRequest)
- pl.leancode.patrol.contracts.Contracts.HandlePermissionRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * .patrol.HandlePermissionRequest.Code code = 1;
- * @return The enum numeric value on the wire for code.
- */
- @java.lang.Override
- public int getCodeValue() {
- return instance.getCodeValue();
- }
- /**
- * .patrol.HandlePermissionRequest.Code code = 1;
- * @param value The code to set.
- * @return This builder for chaining.
- */
- public Builder setCodeValue(int value) {
- copyOnWrite();
- instance.setCodeValue(value);
- return this;
- }
- /**
- * .patrol.HandlePermissionRequest.Code code = 1;
- * @return The code.
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.Code getCode() {
- return instance.getCode();
- }
- /**
- * .patrol.HandlePermissionRequest.Code code = 1;
- * @param value The enum numeric value on the wire for code to set.
- * @return This builder for chaining.
- */
- public Builder setCode(pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.Code value) {
- copyOnWrite();
- instance.setCode(value);
- return this;
- }
- /**
- * .patrol.HandlePermissionRequest.Code code = 1;
- * @return This builder for chaining.
- */
- public Builder clearCode() {
- copyOnWrite();
- instance.clearCode();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.HandlePermissionRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "code_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\f";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
- if (parser == null) {
- synchronized (pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.class) {
- parser = PARSER;
- if (parser == null) {
- parser =
- new DefaultInstanceBasedParser(
- DEFAULT_INSTANCE);
- PARSER = parser;
- }
- }
- }
- return parser;
- }
- case GET_MEMOIZED_IS_INITIALIZED: {
- return (byte) 1;
- }
- case SET_MEMOIZED_IS_INITIALIZED: {
- return null;
- }
- }
- throw new UnsupportedOperationException();
- }
-
-
- // @@protoc_insertion_point(class_scope:patrol.HandlePermissionRequest)
- private static final pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest DEFAULT_INSTANCE;
- static {
- HandlePermissionRequest defaultInstance = new HandlePermissionRequest();
- // New instances are implicitly immutable so no need to make
- // immutable.
- DEFAULT_INSTANCE = defaultInstance;
- com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- HandlePermissionRequest.class, defaultInstance);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static volatile com.google.protobuf.Parser PARSER;
-
- public static com.google.protobuf.Parser parser() {
- return DEFAULT_INSTANCE.getParserForType();
- }
- }
-
- public interface SetLocationAccuracyRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:patrol.SetLocationAccuracyRequest)
- com.google.protobuf.MessageLiteOrBuilder {
-
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- * @return The enum numeric value on the wire for locationAccuracy.
- */
- int getLocationAccuracyValue();
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- * @return The locationAccuracy.
- */
- pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest.LocationAccuracy getLocationAccuracy();
- }
- /**
- * Protobuf type {@code patrol.SetLocationAccuracyRequest}
- */
- public static final class SetLocationAccuracyRequest extends
- com.google.protobuf.GeneratedMessageLite<
- SetLocationAccuracyRequest, SetLocationAccuracyRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.SetLocationAccuracyRequest)
- SetLocationAccuracyRequestOrBuilder {
- private SetLocationAccuracyRequest() {
- }
- /**
- * Protobuf enum {@code patrol.SetLocationAccuracyRequest.LocationAccuracy}
- */
- public enum LocationAccuracy
- implements com.google.protobuf.Internal.EnumLite {
- /**
- * COARSE = 0;
- */
- COARSE(0),
- /**
- * FINE = 1;
- */
- FINE(1),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * COARSE = 0;
- */
- public static final int COARSE_VALUE = 0;
- /**
- * FINE = 1;
- */
- public static final int FINE_VALUE = 1;
-
-
- @java.lang.Override
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @param value The number of the enum to look for.
- * @return The enum associated with the given number.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static LocationAccuracy valueOf(int value) {
- return forNumber(value);
- }
-
- public static LocationAccuracy forNumber(int value) {
- switch (value) {
- case 0: return COARSE;
- case 1: return FINE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap
- internalGetValueMap() {
- return internalValueMap;
- }
- private static final com.google.protobuf.Internal.EnumLiteMap<
- LocationAccuracy> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap() {
- @java.lang.Override
- public LocationAccuracy findValueByNumber(int number) {
- return LocationAccuracy.forNumber(number);
- }
- };
-
- public static com.google.protobuf.Internal.EnumVerifier
- internalGetVerifier() {
- return LocationAccuracyVerifier.INSTANCE;
- }
-
- private static final class LocationAccuracyVerifier implements
- com.google.protobuf.Internal.EnumVerifier {
- static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new LocationAccuracyVerifier();
- @java.lang.Override
- public boolean isInRange(int number) {
- return LocationAccuracy.forNumber(number) != null;
- }
- };
-
- private final int value;
-
- private LocationAccuracy(int value) {
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:patrol.SetLocationAccuracyRequest.LocationAccuracy)
- }
-
- public static final int LOCATIONACCURACY_FIELD_NUMBER = 1;
- private int locationAccuracy_;
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- * @return The enum numeric value on the wire for locationAccuracy.
- */
- @java.lang.Override
- public int getLocationAccuracyValue() {
- return locationAccuracy_;
- }
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- * @return The locationAccuracy.
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest.LocationAccuracy getLocationAccuracy() {
- pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest.LocationAccuracy result = pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest.LocationAccuracy.forNumber(locationAccuracy_);
- return result == null ? pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest.LocationAccuracy.UNRECOGNIZED : result;
- }
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- * @param value The enum numeric value on the wire for locationAccuracy to set.
- */
- private void setLocationAccuracyValue(int value) {
- locationAccuracy_ = value;
- }
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- * @param value The locationAccuracy to set.
- */
- private void setLocationAccuracy(pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest.LocationAccuracy value) {
- locationAccuracy_ = value.getNumber();
-
- }
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- */
- private void clearLocationAccuracy() {
-
- locationAccuracy_ = 0;
- }
-
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.SetLocationAccuracyRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.SetLocationAccuracyRequest)
- pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- * @return The enum numeric value on the wire for locationAccuracy.
- */
- @java.lang.Override
- public int getLocationAccuracyValue() {
- return instance.getLocationAccuracyValue();
- }
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- * @param value The locationAccuracy to set.
- * @return This builder for chaining.
- */
- public Builder setLocationAccuracyValue(int value) {
- copyOnWrite();
- instance.setLocationAccuracyValue(value);
- return this;
- }
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- * @return The locationAccuracy.
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest.LocationAccuracy getLocationAccuracy() {
- return instance.getLocationAccuracy();
- }
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- * @param value The enum numeric value on the wire for locationAccuracy to set.
- * @return This builder for chaining.
- */
- public Builder setLocationAccuracy(pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest.LocationAccuracy value) {
- copyOnWrite();
- instance.setLocationAccuracy(value);
- return this;
- }
- /**
- * .patrol.SetLocationAccuracyRequest.LocationAccuracy locationAccuracy = 1;
- * @return This builder for chaining.
- */
- public Builder clearLocationAccuracy() {
- copyOnWrite();
- instance.clearLocationAccuracy();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.SetLocationAccuracyRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "locationAccuracy_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\f";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
- if (parser == null) {
- synchronized (pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest.class) {
- parser = PARSER;
- if (parser == null) {
- parser =
- new DefaultInstanceBasedParser(
- DEFAULT_INSTANCE);
- PARSER = parser;
- }
- }
- }
- return parser;
- }
- case GET_MEMOIZED_IS_INITIALIZED: {
- return (byte) 1;
- }
- case SET_MEMOIZED_IS_INITIALIZED: {
- return null;
- }
- }
- throw new UnsupportedOperationException();
- }
-
-
- // @@protoc_insertion_point(class_scope:patrol.SetLocationAccuracyRequest)
- private static final pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest DEFAULT_INSTANCE;
- static {
- SetLocationAccuracyRequest defaultInstance = new SetLocationAccuracyRequest();
- // New instances are implicitly immutable so no need to make
- // immutable.
- DEFAULT_INSTANCE = defaultInstance;
- com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- SetLocationAccuracyRequest.class, defaultInstance);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.SetLocationAccuracyRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static volatile com.google.protobuf.Parser PARSER;
-
- public static com.google.protobuf.Parser parser() {
- return DEFAULT_INSTANCE.getParserForType();
- }
- }
-
- public interface PermissionDialogVisibleRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:patrol.PermissionDialogVisibleRequest)
- com.google.protobuf.MessageLiteOrBuilder {
-
- /**
- * uint64 timeoutMillis = 1;
- * @return The timeoutMillis.
- */
- long getTimeoutMillis();
- }
- /**
- * Protobuf type {@code patrol.PermissionDialogVisibleRequest}
- */
- public static final class PermissionDialogVisibleRequest extends
- com.google.protobuf.GeneratedMessageLite<
- PermissionDialogVisibleRequest, PermissionDialogVisibleRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.PermissionDialogVisibleRequest)
- PermissionDialogVisibleRequestOrBuilder {
- private PermissionDialogVisibleRequest() {
- }
- public static final int TIMEOUTMILLIS_FIELD_NUMBER = 1;
- private long timeoutMillis_;
- /**
- * uint64 timeoutMillis = 1;
- * @return The timeoutMillis.
- */
- @java.lang.Override
- public long getTimeoutMillis() {
- return timeoutMillis_;
- }
- /**
- * uint64 timeoutMillis = 1;
- * @param value The timeoutMillis to set.
- */
- private void setTimeoutMillis(long value) {
-
- timeoutMillis_ = value;
- }
- /**
- * uint64 timeoutMillis = 1;
- */
- private void clearTimeoutMillis() {
-
- timeoutMillis_ = 0L;
- }
-
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.PermissionDialogVisibleRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.PermissionDialogVisibleRequest)
- pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * uint64 timeoutMillis = 1;
- * @return The timeoutMillis.
- */
- @java.lang.Override
- public long getTimeoutMillis() {
- return instance.getTimeoutMillis();
- }
- /**
- * uint64 timeoutMillis = 1;
- * @param value The timeoutMillis to set.
- * @return This builder for chaining.
- */
- public Builder setTimeoutMillis(long value) {
- copyOnWrite();
- instance.setTimeoutMillis(value);
- return this;
- }
- /**
- * uint64 timeoutMillis = 1;
- * @return This builder for chaining.
- */
- public Builder clearTimeoutMillis() {
- copyOnWrite();
- instance.clearTimeoutMillis();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.PermissionDialogVisibleRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "timeoutMillis_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0003";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
- if (parser == null) {
- synchronized (pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest.class) {
- parser = PARSER;
- if (parser == null) {
- parser =
- new DefaultInstanceBasedParser(
- DEFAULT_INSTANCE);
- PARSER = parser;
- }
- }
- }
- return parser;
- }
- case GET_MEMOIZED_IS_INITIALIZED: {
- return (byte) 1;
- }
- case SET_MEMOIZED_IS_INITIALIZED: {
- return null;
- }
- }
- throw new UnsupportedOperationException();
- }
-
-
- // @@protoc_insertion_point(class_scope:patrol.PermissionDialogVisibleRequest)
- private static final pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest DEFAULT_INSTANCE;
- static {
- PermissionDialogVisibleRequest defaultInstance = new PermissionDialogVisibleRequest();
- // New instances are implicitly immutable so no need to make
- // immutable.
- DEFAULT_INSTANCE = defaultInstance;
- com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- PermissionDialogVisibleRequest.class, defaultInstance);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static volatile com.google.protobuf.Parser PARSER;
-
- public static com.google.protobuf.Parser parser() {
- return DEFAULT_INSTANCE.getParserForType();
- }
- }
-
- public interface PermissionDialogVisibleResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:patrol.PermissionDialogVisibleResponse)
- com.google.protobuf.MessageLiteOrBuilder {
-
- /**
- * bool visible = 1;
- * @return The visible.
- */
- boolean getVisible();
- }
- /**
- * Protobuf type {@code patrol.PermissionDialogVisibleResponse}
- */
- public static final class PermissionDialogVisibleResponse extends
- com.google.protobuf.GeneratedMessageLite<
- PermissionDialogVisibleResponse, PermissionDialogVisibleResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.PermissionDialogVisibleResponse)
- PermissionDialogVisibleResponseOrBuilder {
- private PermissionDialogVisibleResponse() {
- }
- public static final int VISIBLE_FIELD_NUMBER = 1;
- private boolean visible_;
- /**
- * bool visible = 1;
- * @return The visible.
- */
- @java.lang.Override
- public boolean getVisible() {
- return visible_;
- }
- /**
- * bool visible = 1;
- * @param value The visible to set.
- */
- private void setVisible(boolean value) {
-
- visible_ = value;
- }
- /**
- * bool visible = 1;
- */
- private void clearVisible() {
-
- visible_ = false;
- }
-
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.PermissionDialogVisibleResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.PermissionDialogVisibleResponse)
- pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponseOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * bool visible = 1;
- * @return The visible.
- */
- @java.lang.Override
- public boolean getVisible() {
- return instance.getVisible();
- }
- /**
- * bool visible = 1;
- * @param value The visible to set.
- * @return This builder for chaining.
- */
- public Builder setVisible(boolean value) {
- copyOnWrite();
- instance.setVisible(value);
- return this;
- }
- /**
- * bool visible = 1;
- * @return This builder for chaining.
- */
- public Builder clearVisible() {
- copyOnWrite();
- instance.clearVisible();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.PermissionDialogVisibleResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "visible_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0007";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
- if (parser == null) {
- synchronized (pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse.class) {
- parser = PARSER;
- if (parser == null) {
- parser =
- new DefaultInstanceBasedParser(
- DEFAULT_INSTANCE);
- PARSER = parser;
- }
- }
- }
- return parser;
- }
- case GET_MEMOIZED_IS_INITIALIZED: {
- return (byte) 1;
- }
- case SET_MEMOIZED_IS_INITIALIZED: {
- return null;
- }
- }
- throw new UnsupportedOperationException();
- }
-
-
- // @@protoc_insertion_point(class_scope:patrol.PermissionDialogVisibleResponse)
- private static final pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse DEFAULT_INSTANCE;
- static {
- PermissionDialogVisibleResponse defaultInstance = new PermissionDialogVisibleResponse();
- // New instances are implicitly immutable so no need to make
- // immutable.
- DEFAULT_INSTANCE = defaultInstance;
- com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- PermissionDialogVisibleResponse.class, defaultInstance);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.PermissionDialogVisibleResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static volatile com.google.protobuf.Parser PARSER;
-
- public static com.google.protobuf.Parser parser() {
- return DEFAULT_INSTANCE.getParserForType();
- }
- }
-
- public interface SelectorOrBuilder extends
- // @@protoc_insertion_point(interface_extends:patrol.Selector)
- com.google.protobuf.MessageLiteOrBuilder {
-
- /**
- * optional string text = 1;
- * @return Whether the text field is set.
- */
- boolean hasText();
- /**
- * optional string text = 1;
- * @return The text.
- */
- java.lang.String getText();
- /**
- * optional string text = 1;
- * @return The bytes for text.
- */
- com.google.protobuf.ByteString
- getTextBytes();
-
- /**
- * optional string textStartsWith = 2;
- * @return Whether the textStartsWith field is set.
- */
- boolean hasTextStartsWith();
- /**
- * optional string textStartsWith = 2;
- * @return The textStartsWith.
- */
- java.lang.String getTextStartsWith();
- /**
- * optional string textStartsWith = 2;
- * @return The bytes for textStartsWith.
- */
- com.google.protobuf.ByteString
- getTextStartsWithBytes();
-
- /**
- * optional string textContains = 3;
- * @return Whether the textContains field is set.
- */
- boolean hasTextContains();
- /**
- * optional string textContains = 3;
- * @return The textContains.
- */
- java.lang.String getTextContains();
- /**
- * optional string textContains = 3;
- * @return The bytes for textContains.
- */
- com.google.protobuf.ByteString
- getTextContainsBytes();
-
- /**
- * optional string className = 4;
- * @return Whether the className field is set.
- */
- boolean hasClassName();
- /**
- * optional string className = 4;
- * @return The className.
- */
- java.lang.String getClassName();
- /**
- * optional string className = 4;
- * @return The bytes for className.
- */
- com.google.protobuf.ByteString
- getClassNameBytes();
-
- /**
- * optional string contentDescription = 5;
- * @return Whether the contentDescription field is set.
- */
- boolean hasContentDescription();
- /**
- * optional string contentDescription = 5;
- * @return The contentDescription.
- */
- java.lang.String getContentDescription();
- /**
- * optional string contentDescription = 5;
- * @return The bytes for contentDescription.
- */
- com.google.protobuf.ByteString
- getContentDescriptionBytes();
-
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @return Whether the contentDescriptionStartsWith field is set.
- */
- boolean hasContentDescriptionStartsWith();
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @return The contentDescriptionStartsWith.
- */
- java.lang.String getContentDescriptionStartsWith();
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @return The bytes for contentDescriptionStartsWith.
- */
- com.google.protobuf.ByteString
- getContentDescriptionStartsWithBytes();
-
- /**
- * optional string contentDescriptionContains = 7;
- * @return Whether the contentDescriptionContains field is set.
- */
- boolean hasContentDescriptionContains();
- /**
- * optional string contentDescriptionContains = 7;
- * @return The contentDescriptionContains.
- */
- java.lang.String getContentDescriptionContains();
- /**
- * optional string contentDescriptionContains = 7;
- * @return The bytes for contentDescriptionContains.
- */
- com.google.protobuf.ByteString
- getContentDescriptionContainsBytes();
-
- /**
- * optional string resourceId = 8;
- * @return Whether the resourceId field is set.
- */
- boolean hasResourceId();
- /**
- * optional string resourceId = 8;
- * @return The resourceId.
- */
- java.lang.String getResourceId();
- /**
- * optional string resourceId = 8;
- * @return The bytes for resourceId.
- */
- com.google.protobuf.ByteString
- getResourceIdBytes();
-
- /**
- * optional uint32 instance = 9;
- * @return Whether the instance field is set.
- */
- boolean hasInstance();
- /**
- * optional uint32 instance = 9;
- * @return The instance.
- */
- int getInstance();
-
- /**
- * optional bool enabled = 10;
- * @return Whether the enabled field is set.
- */
- boolean hasEnabled();
- /**
- * optional bool enabled = 10;
- * @return The enabled.
- */
- boolean getEnabled();
-
- /**
- * optional bool focused = 11;
- * @return Whether the focused field is set.
- */
- boolean hasFocused();
- /**
- * optional bool focused = 11;
- * @return The focused.
- */
- boolean getFocused();
-
- /**
- * optional string pkg = 12;
- * @return Whether the pkg field is set.
- */
- boolean hasPkg();
- /**
- * optional string pkg = 12;
- * @return The pkg.
- */
- java.lang.String getPkg();
- /**
- * optional string pkg = 12;
- * @return The bytes for pkg.
- */
- com.google.protobuf.ByteString
- getPkgBytes();
- }
- /**
- * Protobuf type {@code patrol.Selector}
- */
- public static final class Selector extends
- com.google.protobuf.GeneratedMessageLite<
- Selector, Selector.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.Selector)
- SelectorOrBuilder {
- private Selector() {
- text_ = "";
- textStartsWith_ = "";
- textContains_ = "";
- className_ = "";
- contentDescription_ = "";
- contentDescriptionStartsWith_ = "";
- contentDescriptionContains_ = "";
- resourceId_ = "";
- pkg_ = "";
- }
- private int bitField0_;
- public static final int TEXT_FIELD_NUMBER = 1;
- private java.lang.String text_;
- /**
- * optional string text = 1;
- * @return Whether the text field is set.
- */
- @java.lang.Override
- public boolean hasText() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * optional string text = 1;
- * @return The text.
- */
- @java.lang.Override
- public java.lang.String getText() {
- return text_;
- }
- /**
- * optional string text = 1;
- * @return The bytes for text.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getTextBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(text_);
- }
- /**
- * optional string text = 1;
- * @param value The text to set.
- */
- private void setText(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
- bitField0_ |= 0x00000001;
- text_ = value;
- }
- /**
- * optional string text = 1;
- */
- private void clearText() {
- bitField0_ = (bitField0_ & ~0x00000001);
- text_ = getDefaultInstance().getText();
- }
- /**
- * optional string text = 1;
- * @param value The bytes for text to set.
- */
- private void setTextBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- text_ = value.toStringUtf8();
- bitField0_ |= 0x00000001;
- }
-
- public static final int TEXTSTARTSWITH_FIELD_NUMBER = 2;
- private java.lang.String textStartsWith_;
- /**
- * optional string textStartsWith = 2;
- * @return Whether the textStartsWith field is set.
- */
- @java.lang.Override
- public boolean hasTextStartsWith() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * optional string textStartsWith = 2;
- * @return The textStartsWith.
- */
- @java.lang.Override
- public java.lang.String getTextStartsWith() {
- return textStartsWith_;
- }
- /**
- * optional string textStartsWith = 2;
- * @return The bytes for textStartsWith.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getTextStartsWithBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(textStartsWith_);
- }
- /**
- * optional string textStartsWith = 2;
- * @param value The textStartsWith to set.
- */
- private void setTextStartsWith(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
- bitField0_ |= 0x00000002;
- textStartsWith_ = value;
- }
- /**
- * optional string textStartsWith = 2;
- */
- private void clearTextStartsWith() {
- bitField0_ = (bitField0_ & ~0x00000002);
- textStartsWith_ = getDefaultInstance().getTextStartsWith();
- }
- /**
- * optional string textStartsWith = 2;
- * @param value The bytes for textStartsWith to set.
- */
- private void setTextStartsWithBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- textStartsWith_ = value.toStringUtf8();
- bitField0_ |= 0x00000002;
- }
-
- public static final int TEXTCONTAINS_FIELD_NUMBER = 3;
- private java.lang.String textContains_;
- /**
- * optional string textContains = 3;
- * @return Whether the textContains field is set.
- */
- @java.lang.Override
- public boolean hasTextContains() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * optional string textContains = 3;
- * @return The textContains.
- */
- @java.lang.Override
- public java.lang.String getTextContains() {
- return textContains_;
- }
- /**
- * optional string textContains = 3;
- * @return The bytes for textContains.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getTextContainsBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(textContains_);
- }
- /**
- * optional string textContains = 3;
- * @param value The textContains to set.
- */
- private void setTextContains(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
- bitField0_ |= 0x00000004;
- textContains_ = value;
- }
- /**
- * optional string textContains = 3;
- */
- private void clearTextContains() {
- bitField0_ = (bitField0_ & ~0x00000004);
- textContains_ = getDefaultInstance().getTextContains();
- }
- /**
- * optional string textContains = 3;
- * @param value The bytes for textContains to set.
- */
- private void setTextContainsBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- textContains_ = value.toStringUtf8();
- bitField0_ |= 0x00000004;
- }
-
- public static final int CLASSNAME_FIELD_NUMBER = 4;
- private java.lang.String className_;
- /**
- * optional string className = 4;
- * @return Whether the className field is set.
- */
- @java.lang.Override
- public boolean hasClassName() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- * optional string className = 4;
- * @return The className.
- */
- @java.lang.Override
- public java.lang.String getClassName() {
- return className_;
- }
- /**
- * optional string className = 4;
- * @return The bytes for className.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getClassNameBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(className_);
- }
- /**
- * optional string className = 4;
- * @param value The className to set.
- */
- private void setClassName(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
- bitField0_ |= 0x00000008;
- className_ = value;
- }
- /**
- * optional string className = 4;
- */
- private void clearClassName() {
- bitField0_ = (bitField0_ & ~0x00000008);
- className_ = getDefaultInstance().getClassName();
- }
- /**
- * optional string className = 4;
- * @param value The bytes for className to set.
- */
- private void setClassNameBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- className_ = value.toStringUtf8();
- bitField0_ |= 0x00000008;
- }
-
- public static final int CONTENTDESCRIPTION_FIELD_NUMBER = 5;
- private java.lang.String contentDescription_;
- /**
- * optional string contentDescription = 5;
- * @return Whether the contentDescription field is set.
- */
- @java.lang.Override
- public boolean hasContentDescription() {
- return ((bitField0_ & 0x00000010) != 0);
- }
- /**
- * optional string contentDescription = 5;
- * @return The contentDescription.
- */
- @java.lang.Override
- public java.lang.String getContentDescription() {
- return contentDescription_;
- }
- /**
- * optional string contentDescription = 5;
- * @return The bytes for contentDescription.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getContentDescriptionBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(contentDescription_);
- }
- /**
- * optional string contentDescription = 5;
- * @param value The contentDescription to set.
- */
- private void setContentDescription(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
- bitField0_ |= 0x00000010;
- contentDescription_ = value;
- }
- /**
- * optional string contentDescription = 5;
- */
- private void clearContentDescription() {
- bitField0_ = (bitField0_ & ~0x00000010);
- contentDescription_ = getDefaultInstance().getContentDescription();
- }
- /**
- * optional string contentDescription = 5;
- * @param value The bytes for contentDescription to set.
- */
- private void setContentDescriptionBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- contentDescription_ = value.toStringUtf8();
- bitField0_ |= 0x00000010;
- }
-
- public static final int CONTENTDESCRIPTIONSTARTSWITH_FIELD_NUMBER = 6;
- private java.lang.String contentDescriptionStartsWith_;
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @return Whether the contentDescriptionStartsWith field is set.
- */
- @java.lang.Override
- public boolean hasContentDescriptionStartsWith() {
- return ((bitField0_ & 0x00000020) != 0);
- }
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @return The contentDescriptionStartsWith.
- */
- @java.lang.Override
- public java.lang.String getContentDescriptionStartsWith() {
- return contentDescriptionStartsWith_;
- }
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @return The bytes for contentDescriptionStartsWith.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getContentDescriptionStartsWithBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(contentDescriptionStartsWith_);
- }
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @param value The contentDescriptionStartsWith to set.
- */
- private void setContentDescriptionStartsWith(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
- bitField0_ |= 0x00000020;
- contentDescriptionStartsWith_ = value;
- }
- /**
- * optional string contentDescriptionStartsWith = 6;
- */
- private void clearContentDescriptionStartsWith() {
- bitField0_ = (bitField0_ & ~0x00000020);
- contentDescriptionStartsWith_ = getDefaultInstance().getContentDescriptionStartsWith();
- }
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @param value The bytes for contentDescriptionStartsWith to set.
- */
- private void setContentDescriptionStartsWithBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- contentDescriptionStartsWith_ = value.toStringUtf8();
- bitField0_ |= 0x00000020;
- }
-
- public static final int CONTENTDESCRIPTIONCONTAINS_FIELD_NUMBER = 7;
- private java.lang.String contentDescriptionContains_;
- /**
- * optional string contentDescriptionContains = 7;
- * @return Whether the contentDescriptionContains field is set.
- */
- @java.lang.Override
- public boolean hasContentDescriptionContains() {
- return ((bitField0_ & 0x00000040) != 0);
- }
- /**
- * optional string contentDescriptionContains = 7;
- * @return The contentDescriptionContains.
- */
- @java.lang.Override
- public java.lang.String getContentDescriptionContains() {
- return contentDescriptionContains_;
- }
- /**
- * optional string contentDescriptionContains = 7;
- * @return The bytes for contentDescriptionContains.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getContentDescriptionContainsBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(contentDescriptionContains_);
- }
- /**
- * optional string contentDescriptionContains = 7;
- * @param value The contentDescriptionContains to set.
- */
- private void setContentDescriptionContains(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
- bitField0_ |= 0x00000040;
- contentDescriptionContains_ = value;
- }
- /**
- * optional string contentDescriptionContains = 7;
- */
- private void clearContentDescriptionContains() {
- bitField0_ = (bitField0_ & ~0x00000040);
- contentDescriptionContains_ = getDefaultInstance().getContentDescriptionContains();
- }
- /**
- * optional string contentDescriptionContains = 7;
- * @param value The bytes for contentDescriptionContains to set.
- */
- private void setContentDescriptionContainsBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- contentDescriptionContains_ = value.toStringUtf8();
- bitField0_ |= 0x00000040;
- }
-
- public static final int RESOURCEID_FIELD_NUMBER = 8;
- private java.lang.String resourceId_;
- /**
- * optional string resourceId = 8;
- * @return Whether the resourceId field is set.
- */
- @java.lang.Override
- public boolean hasResourceId() {
- return ((bitField0_ & 0x00000080) != 0);
- }
- /**
- * optional string resourceId = 8;
- * @return The resourceId.
- */
- @java.lang.Override
- public java.lang.String getResourceId() {
- return resourceId_;
- }
- /**
- * optional string resourceId = 8;
- * @return The bytes for resourceId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getResourceIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(resourceId_);
- }
- /**
- * optional string resourceId = 8;
- * @param value The resourceId to set.
- */
- private void setResourceId(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
- bitField0_ |= 0x00000080;
- resourceId_ = value;
- }
- /**
- * optional string resourceId = 8;
- */
- private void clearResourceId() {
- bitField0_ = (bitField0_ & ~0x00000080);
- resourceId_ = getDefaultInstance().getResourceId();
- }
- /**
- * optional string resourceId = 8;
- * @param value The bytes for resourceId to set.
- */
- private void setResourceIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- resourceId_ = value.toStringUtf8();
- bitField0_ |= 0x00000080;
- }
-
- public static final int INSTANCE_FIELD_NUMBER = 9;
- private int instance_;
- /**
- * optional uint32 instance = 9;
- * @return Whether the instance field is set.
- */
- @java.lang.Override
- public boolean hasInstance() {
- return ((bitField0_ & 0x00000100) != 0);
- }
- /**
- * optional uint32 instance = 9;
- * @return The instance.
- */
- @java.lang.Override
- public int getInstance() {
- return instance_;
- }
- /**
- * optional uint32 instance = 9;
- * @param value The instance to set.
- */
- private void setInstance(int value) {
- bitField0_ |= 0x00000100;
- instance_ = value;
- }
- /**
- * optional uint32 instance = 9;
- */
- private void clearInstance() {
- bitField0_ = (bitField0_ & ~0x00000100);
- instance_ = 0;
- }
-
- public static final int ENABLED_FIELD_NUMBER = 10;
- private boolean enabled_;
- /**
- * optional bool enabled = 10;
- * @return Whether the enabled field is set.
- */
- @java.lang.Override
- public boolean hasEnabled() {
- return ((bitField0_ & 0x00000200) != 0);
- }
- /**
- * optional bool enabled = 10;
- * @return The enabled.
- */
- @java.lang.Override
- public boolean getEnabled() {
- return enabled_;
- }
- /**
- * optional bool enabled = 10;
- * @param value The enabled to set.
- */
- private void setEnabled(boolean value) {
- bitField0_ |= 0x00000200;
- enabled_ = value;
- }
- /**
- * optional bool enabled = 10;
- */
- private void clearEnabled() {
- bitField0_ = (bitField0_ & ~0x00000200);
- enabled_ = false;
- }
-
- public static final int FOCUSED_FIELD_NUMBER = 11;
- private boolean focused_;
- /**
- * optional bool focused = 11;
- * @return Whether the focused field is set.
- */
- @java.lang.Override
- public boolean hasFocused() {
- return ((bitField0_ & 0x00000400) != 0);
- }
- /**
- * optional bool focused = 11;
- * @return The focused.
- */
- @java.lang.Override
- public boolean getFocused() {
- return focused_;
- }
- /**
- * optional bool focused = 11;
- * @param value The focused to set.
- */
- private void setFocused(boolean value) {
- bitField0_ |= 0x00000400;
- focused_ = value;
- }
- /**
- * optional bool focused = 11;
- */
- private void clearFocused() {
- bitField0_ = (bitField0_ & ~0x00000400);
- focused_ = false;
- }
-
- public static final int PKG_FIELD_NUMBER = 12;
- private java.lang.String pkg_;
- /**
- * optional string pkg = 12;
- * @return Whether the pkg field is set.
- */
- @java.lang.Override
- public boolean hasPkg() {
- return ((bitField0_ & 0x00000800) != 0);
- }
- /**
- * optional string pkg = 12;
- * @return The pkg.
- */
- @java.lang.Override
- public java.lang.String getPkg() {
- return pkg_;
- }
- /**
- * optional string pkg = 12;
- * @return The bytes for pkg.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getPkgBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(pkg_);
- }
- /**
- * optional string pkg = 12;
- * @param value The pkg to set.
- */
- private void setPkg(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
- bitField0_ |= 0x00000800;
- pkg_ = value;
- }
- /**
- * optional string pkg = 12;
- */
- private void clearPkg() {
- bitField0_ = (bitField0_ & ~0x00000800);
- pkg_ = getDefaultInstance().getPkg();
- }
- /**
- * optional string pkg = 12;
- * @param value The bytes for pkg to set.
- */
- private void setPkgBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- pkg_ = value.toStringUtf8();
- bitField0_ |= 0x00000800;
- }
-
- public static pl.leancode.patrol.contracts.Contracts.Selector parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.Selector parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.Selector parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.Selector parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.Selector parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.Selector parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.Selector parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.Selector parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.Selector parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.Selector parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.Selector parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.Selector parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.Selector prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.Selector}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.Selector, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.Selector)
- pl.leancode.patrol.contracts.Contracts.SelectorOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.Selector.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * optional string text = 1;
- * @return Whether the text field is set.
- */
- @java.lang.Override
- public boolean hasText() {
- return instance.hasText();
- }
- /**
- * optional string text = 1;
- * @return The text.
- */
- @java.lang.Override
- public java.lang.String getText() {
- return instance.getText();
- }
- /**
- * optional string text = 1;
- * @return The bytes for text.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getTextBytes() {
- return instance.getTextBytes();
- }
- /**
- * optional string text = 1;
- * @param value The text to set.
- * @return This builder for chaining.
- */
- public Builder setText(
- java.lang.String value) {
- copyOnWrite();
- instance.setText(value);
- return this;
- }
- /**
- * optional string text = 1;
- * @return This builder for chaining.
- */
- public Builder clearText() {
- copyOnWrite();
- instance.clearText();
- return this;
- }
- /**
- * optional string text = 1;
- * @param value The bytes for text to set.
- * @return This builder for chaining.
- */
- public Builder setTextBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setTextBytes(value);
- return this;
- }
-
- /**
- * optional string textStartsWith = 2;
- * @return Whether the textStartsWith field is set.
- */
- @java.lang.Override
- public boolean hasTextStartsWith() {
- return instance.hasTextStartsWith();
- }
- /**
- * optional string textStartsWith = 2;
- * @return The textStartsWith.
- */
- @java.lang.Override
- public java.lang.String getTextStartsWith() {
- return instance.getTextStartsWith();
- }
- /**
- * optional string textStartsWith = 2;
- * @return The bytes for textStartsWith.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getTextStartsWithBytes() {
- return instance.getTextStartsWithBytes();
- }
- /**
- * optional string textStartsWith = 2;
- * @param value The textStartsWith to set.
- * @return This builder for chaining.
- */
- public Builder setTextStartsWith(
- java.lang.String value) {
- copyOnWrite();
- instance.setTextStartsWith(value);
- return this;
- }
- /**
- * optional string textStartsWith = 2;
- * @return This builder for chaining.
- */
- public Builder clearTextStartsWith() {
- copyOnWrite();
- instance.clearTextStartsWith();
- return this;
- }
- /**
- * optional string textStartsWith = 2;
- * @param value The bytes for textStartsWith to set.
- * @return This builder for chaining.
- */
- public Builder setTextStartsWithBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setTextStartsWithBytes(value);
- return this;
- }
-
- /**
- * optional string textContains = 3;
- * @return Whether the textContains field is set.
- */
- @java.lang.Override
- public boolean hasTextContains() {
- return instance.hasTextContains();
- }
- /**
- * optional string textContains = 3;
- * @return The textContains.
- */
- @java.lang.Override
- public java.lang.String getTextContains() {
- return instance.getTextContains();
- }
- /**
- * optional string textContains = 3;
- * @return The bytes for textContains.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getTextContainsBytes() {
- return instance.getTextContainsBytes();
- }
- /**
- * optional string textContains = 3;
- * @param value The textContains to set.
- * @return This builder for chaining.
- */
- public Builder setTextContains(
- java.lang.String value) {
- copyOnWrite();
- instance.setTextContains(value);
- return this;
- }
- /**
- * optional string textContains = 3;
- * @return This builder for chaining.
- */
- public Builder clearTextContains() {
- copyOnWrite();
- instance.clearTextContains();
- return this;
- }
- /**
- * optional string textContains = 3;
- * @param value The bytes for textContains to set.
- * @return This builder for chaining.
- */
- public Builder setTextContainsBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setTextContainsBytes(value);
- return this;
- }
-
- /**
- * optional string className = 4;
- * @return Whether the className field is set.
- */
- @java.lang.Override
- public boolean hasClassName() {
- return instance.hasClassName();
- }
- /**
- * optional string className = 4;
- * @return The className.
- */
- @java.lang.Override
- public java.lang.String getClassName() {
- return instance.getClassName();
- }
- /**
- * optional string className = 4;
- * @return The bytes for className.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getClassNameBytes() {
- return instance.getClassNameBytes();
- }
- /**
- * optional string className = 4;
- * @param value The className to set.
- * @return This builder for chaining.
- */
- public Builder setClassName(
- java.lang.String value) {
- copyOnWrite();
- instance.setClassName(value);
- return this;
- }
- /**
- * optional string className = 4;
- * @return This builder for chaining.
- */
- public Builder clearClassName() {
- copyOnWrite();
- instance.clearClassName();
- return this;
- }
- /**
- * optional string className = 4;
- * @param value The bytes for className to set.
- * @return This builder for chaining.
- */
- public Builder setClassNameBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setClassNameBytes(value);
- return this;
- }
-
- /**
- * optional string contentDescription = 5;
- * @return Whether the contentDescription field is set.
- */
- @java.lang.Override
- public boolean hasContentDescription() {
- return instance.hasContentDescription();
- }
- /**
- * optional string contentDescription = 5;
- * @return The contentDescription.
- */
- @java.lang.Override
- public java.lang.String getContentDescription() {
- return instance.getContentDescription();
- }
- /**
- * optional string contentDescription = 5;
- * @return The bytes for contentDescription.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getContentDescriptionBytes() {
- return instance.getContentDescriptionBytes();
- }
- /**
- * optional string contentDescription = 5;
- * @param value The contentDescription to set.
- * @return This builder for chaining.
- */
- public Builder setContentDescription(
- java.lang.String value) {
- copyOnWrite();
- instance.setContentDescription(value);
- return this;
- }
- /**
- * optional string contentDescription = 5;
- * @return This builder for chaining.
- */
- public Builder clearContentDescription() {
- copyOnWrite();
- instance.clearContentDescription();
- return this;
- }
- /**
- * optional string contentDescription = 5;
- * @param value The bytes for contentDescription to set.
- * @return This builder for chaining.
- */
- public Builder setContentDescriptionBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setContentDescriptionBytes(value);
- return this;
- }
-
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @return Whether the contentDescriptionStartsWith field is set.
- */
- @java.lang.Override
- public boolean hasContentDescriptionStartsWith() {
- return instance.hasContentDescriptionStartsWith();
- }
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @return The contentDescriptionStartsWith.
- */
- @java.lang.Override
- public java.lang.String getContentDescriptionStartsWith() {
- return instance.getContentDescriptionStartsWith();
- }
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @return The bytes for contentDescriptionStartsWith.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getContentDescriptionStartsWithBytes() {
- return instance.getContentDescriptionStartsWithBytes();
- }
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @param value The contentDescriptionStartsWith to set.
- * @return This builder for chaining.
- */
- public Builder setContentDescriptionStartsWith(
- java.lang.String value) {
- copyOnWrite();
- instance.setContentDescriptionStartsWith(value);
- return this;
- }
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @return This builder for chaining.
- */
- public Builder clearContentDescriptionStartsWith() {
- copyOnWrite();
- instance.clearContentDescriptionStartsWith();
- return this;
- }
- /**
- * optional string contentDescriptionStartsWith = 6;
- * @param value The bytes for contentDescriptionStartsWith to set.
- * @return This builder for chaining.
- */
- public Builder setContentDescriptionStartsWithBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setContentDescriptionStartsWithBytes(value);
- return this;
- }
-
- /**
- * optional string contentDescriptionContains = 7;
- * @return Whether the contentDescriptionContains field is set.
- */
- @java.lang.Override
- public boolean hasContentDescriptionContains() {
- return instance.hasContentDescriptionContains();
- }
- /**
- * optional string contentDescriptionContains = 7;
- * @return The contentDescriptionContains.
- */
- @java.lang.Override
- public java.lang.String getContentDescriptionContains() {
- return instance.getContentDescriptionContains();
- }
- /**
- * optional string contentDescriptionContains = 7;
- * @return The bytes for contentDescriptionContains.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getContentDescriptionContainsBytes() {
- return instance.getContentDescriptionContainsBytes();
- }
- /**
- * optional string contentDescriptionContains = 7;
- * @param value The contentDescriptionContains to set.
- * @return This builder for chaining.
- */
- public Builder setContentDescriptionContains(
- java.lang.String value) {
- copyOnWrite();
- instance.setContentDescriptionContains(value);
- return this;
- }
- /**
- * optional string contentDescriptionContains = 7;
- * @return This builder for chaining.
- */
- public Builder clearContentDescriptionContains() {
- copyOnWrite();
- instance.clearContentDescriptionContains();
- return this;
- }
- /**
- * optional string contentDescriptionContains = 7;
- * @param value The bytes for contentDescriptionContains to set.
- * @return This builder for chaining.
- */
- public Builder setContentDescriptionContainsBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setContentDescriptionContainsBytes(value);
- return this;
- }
-
- /**
- * optional string resourceId = 8;
- * @return Whether the resourceId field is set.
- */
- @java.lang.Override
- public boolean hasResourceId() {
- return instance.hasResourceId();
- }
- /**
- * optional string resourceId = 8;
- * @return The resourceId.
- */
- @java.lang.Override
- public java.lang.String getResourceId() {
- return instance.getResourceId();
- }
- /**
- * optional string resourceId = 8;
- * @return The bytes for resourceId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getResourceIdBytes() {
- return instance.getResourceIdBytes();
- }
- /**
- * optional string resourceId = 8;
- * @param value The resourceId to set.
- * @return This builder for chaining.
- */
- public Builder setResourceId(
- java.lang.String value) {
- copyOnWrite();
- instance.setResourceId(value);
- return this;
- }
- /**
- * optional string resourceId = 8;
- * @return This builder for chaining.
- */
- public Builder clearResourceId() {
- copyOnWrite();
- instance.clearResourceId();
- return this;
- }
- /**
- * optional string resourceId = 8;
- * @param value The bytes for resourceId to set.
- * @return This builder for chaining.
- */
- public Builder setResourceIdBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setResourceIdBytes(value);
- return this;
- }
-
- /**
- * optional uint32 instance = 9;
- * @return Whether the instance field is set.
- */
- @java.lang.Override
- public boolean hasInstance() {
- return instance.hasInstance();
- }
- /**
- * optional uint32 instance = 9;
- * @return The instance.
- */
- @java.lang.Override
- public int getInstance() {
- return instance.getInstance();
- }
- /**
- * optional uint32 instance = 9;
- * @param value The instance to set.
- * @return This builder for chaining.
- */
- public Builder setInstance(int value) {
- copyOnWrite();
- instance.setInstance(value);
- return this;
- }
- /**
- * optional uint32 instance = 9;
- * @return This builder for chaining.
- */
- public Builder clearInstance() {
- copyOnWrite();
- instance.clearInstance();
- return this;
- }
-
- /**
- * optional bool enabled = 10;
- * @return Whether the enabled field is set.
- */
- @java.lang.Override
- public boolean hasEnabled() {
- return instance.hasEnabled();
- }
- /**
- * optional bool enabled = 10;
- * @return The enabled.
- */
- @java.lang.Override
- public boolean getEnabled() {
- return instance.getEnabled();
- }
- /**
- * optional bool enabled = 10;
- * @param value The enabled to set.
- * @return This builder for chaining.
- */
- public Builder setEnabled(boolean value) {
- copyOnWrite();
- instance.setEnabled(value);
- return this;
- }
- /**
- * optional bool enabled = 10;
- * @return This builder for chaining.
- */
- public Builder clearEnabled() {
- copyOnWrite();
- instance.clearEnabled();
- return this;
- }
-
- /**
- * optional bool focused = 11;
- * @return Whether the focused field is set.
- */
- @java.lang.Override
- public boolean hasFocused() {
- return instance.hasFocused();
- }
- /**
- * optional bool focused = 11;
- * @return The focused.
- */
- @java.lang.Override
- public boolean getFocused() {
- return instance.getFocused();
- }
- /**
- * optional bool focused = 11;
- * @param value The focused to set.
- * @return This builder for chaining.
- */
- public Builder setFocused(boolean value) {
- copyOnWrite();
- instance.setFocused(value);
- return this;
- }
- /**
- * optional bool focused = 11;
- * @return This builder for chaining.
- */
- public Builder clearFocused() {
- copyOnWrite();
- instance.clearFocused();
- return this;
- }
-
- /**
- * optional string pkg = 12;
- * @return Whether the pkg field is set.
- */
- @java.lang.Override
- public boolean hasPkg() {
- return instance.hasPkg();
- }
- /**
- * optional string pkg = 12;
- * @return The pkg.
- */
- @java.lang.Override
- public java.lang.String getPkg() {
- return instance.getPkg();
- }
- /**
- * optional string pkg = 12;
- * @return The bytes for pkg.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getPkgBytes() {
- return instance.getPkgBytes();
- }
- /**
- * optional string pkg = 12;
- * @param value The pkg to set.
- * @return This builder for chaining.
- */
- public Builder setPkg(
- java.lang.String value) {
- copyOnWrite();
- instance.setPkg(value);
- return this;
- }
- /**
- * optional string pkg = 12;
- * @return This builder for chaining.
- */
- public Builder clearPkg() {
- copyOnWrite();
- instance.clearPkg();
- return this;
- }
- /**
- * optional string pkg = 12;
- * @param value The bytes for pkg to set.
- * @return This builder for chaining.
- */
- public Builder setPkgBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setPkgBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.Selector)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.Selector();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "bitField0_",
- "text_",
- "textStartsWith_",
- "textContains_",
- "className_",
- "contentDescription_",
- "contentDescriptionStartsWith_",
- "contentDescriptionContains_",
- "resourceId_",
- "instance_",
- "enabled_",
- "focused_",
- "pkg_",
- };
- java.lang.String info =
- "\u0000\f\u0000\u0001\u0001\f\f\u0000\u0000\u0000\u0001\u1208\u0000\u0002\u1208\u0001" +
- "\u0003\u1208\u0002\u0004\u1208\u0003\u0005\u1208\u0004\u0006\u1208\u0005\u0007\u1208" +
- "\u0006\b\u1208\u0007\t\u100b\b\n\u1007\t\u000b\u1007\n\f\u1208\u000b";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
- if (parser == null) {
- synchronized (pl.leancode.patrol.contracts.Contracts.Selector.class) {
- parser = PARSER;
- if (parser == null) {
- parser =
- new DefaultInstanceBasedParser(
- DEFAULT_INSTANCE);
- PARSER = parser;
- }
- }
- }
- return parser;
- }
- case GET_MEMOIZED_IS_INITIALIZED: {
- return (byte) 1;
- }
- case SET_MEMOIZED_IS_INITIALIZED: {
- return null;
- }
- }
- throw new UnsupportedOperationException();
- }
-
-
- // @@protoc_insertion_point(class_scope:patrol.Selector)
- private static final pl.leancode.patrol.contracts.Contracts.Selector DEFAULT_INSTANCE;
- static {
- Selector defaultInstance = new Selector();
- // New instances are implicitly immutable so no need to make
- // immutable.
- DEFAULT_INSTANCE = defaultInstance;
- com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- Selector.class, defaultInstance);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.Selector getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static volatile com.google.protobuf.Parser PARSER;
-
- public static com.google.protobuf.Parser parser() {
- return DEFAULT_INSTANCE.getParserForType();
- }
- }
-
- public interface NativeViewOrBuilder extends
- // @@protoc_insertion_point(interface_extends:patrol.NativeView)
- com.google.protobuf.MessageLiteOrBuilder {
-
- /**
- * string className = 1;
- * @return The className.
- */
- java.lang.String getClassName();
- /**
- * string className = 1;
- * @return The bytes for className.
- */
- com.google.protobuf.ByteString
- getClassNameBytes();
-
- /**
- * string text = 2;
- * @return The text.
- */
- java.lang.String getText();
- /**
- * string text = 2;
- * @return The bytes for text.
- */
- com.google.protobuf.ByteString
- getTextBytes();
-
- /**
- * string contentDescription = 3;
- * @return The contentDescription.
- */
- java.lang.String getContentDescription();
- /**
- * string contentDescription = 3;
- * @return The bytes for contentDescription.
- */
- com.google.protobuf.ByteString
- getContentDescriptionBytes();
-
- /**
- * bool focused = 4;
- * @return The focused.
- */
- boolean getFocused();
-
- /**
- * bool enabled = 5;
- * @return The enabled.
- */
- boolean getEnabled();
-
- /**
- * int32 childCount = 6;
- * @return The childCount.
- */
- int getChildCount();
-
- /**
- * string resourceName = 7;
- * @return The resourceName.
- */
- java.lang.String getResourceName();
- /**
- * string resourceName = 7;
- * @return The bytes for resourceName.
- */
- com.google.protobuf.ByteString
- getResourceNameBytes();
-
- /**
- * string applicationPackage = 8;
- * @return The applicationPackage.
- */
- java.lang.String getApplicationPackage();
- /**
- * string applicationPackage = 8;
- * @return The bytes for applicationPackage.
- */
- com.google.protobuf.ByteString
- getApplicationPackageBytes();
-
- /**
- * repeated .patrol.NativeView children = 9;
- */
- java.util.List
- getChildrenList();
- /**
- * repeated .patrol.NativeView children = 9;
- */
- pl.leancode.patrol.contracts.Contracts.NativeView getChildren(int index);
- /**
- * repeated .patrol.NativeView children = 9;
- */
- int getChildrenCount();
- }
- /**
- *
- * Represents a native UI control.
- *
- * On Android, this is `android.view.View`.
- *
- *
- * Protobuf type {@code patrol.NativeView}
- */
- public static final class NativeView extends
- com.google.protobuf.GeneratedMessageLite<
- NativeView, NativeView.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.NativeView)
- NativeViewOrBuilder {
- private NativeView() {
- className_ = "";
- text_ = "";
- contentDescription_ = "";
- resourceName_ = "";
- applicationPackage_ = "";
- children_ = emptyProtobufList();
- }
- public static final int CLASSNAME_FIELD_NUMBER = 1;
- private java.lang.String className_;
- /**
- * string className = 1;
- * @return The className.
- */
- @java.lang.Override
- public java.lang.String getClassName() {
- return className_;
- }
- /**
- * string className = 1;
- * @return The bytes for className.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getClassNameBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(className_);
- }
- /**
- * string className = 1;
- * @param value The className to set.
- */
- private void setClassName(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- className_ = value;
- }
- /**
- * string className = 1;
- */
- private void clearClassName() {
-
- className_ = getDefaultInstance().getClassName();
- }
- /**
- * string className = 1;
- * @param value The bytes for className to set.
- */
- private void setClassNameBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- className_ = value.toStringUtf8();
-
- }
-
- public static final int TEXT_FIELD_NUMBER = 2;
- private java.lang.String text_;
- /**
- * string text = 2;
- * @return The text.
- */
- @java.lang.Override
- public java.lang.String getText() {
- return text_;
- }
- /**
- * string text = 2;
- * @return The bytes for text.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getTextBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(text_);
- }
- /**
- * string text = 2;
- * @param value The text to set.
- */
- private void setText(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- text_ = value;
- }
- /**
- * string text = 2;
- */
- private void clearText() {
-
- text_ = getDefaultInstance().getText();
- }
- /**
- * string text = 2;
- * @param value The bytes for text to set.
- */
- private void setTextBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- text_ = value.toStringUtf8();
-
- }
-
- public static final int CONTENTDESCRIPTION_FIELD_NUMBER = 3;
- private java.lang.String contentDescription_;
- /**
- * string contentDescription = 3;
- * @return The contentDescription.
- */
- @java.lang.Override
- public java.lang.String getContentDescription() {
- return contentDescription_;
- }
- /**
- * string contentDescription = 3;
- * @return The bytes for contentDescription.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getContentDescriptionBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(contentDescription_);
- }
- /**
- * string contentDescription = 3;
- * @param value The contentDescription to set.
- */
- private void setContentDescription(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- contentDescription_ = value;
- }
- /**
- * string contentDescription = 3;
- */
- private void clearContentDescription() {
-
- contentDescription_ = getDefaultInstance().getContentDescription();
- }
- /**
- * string contentDescription = 3;
- * @param value The bytes for contentDescription to set.
- */
- private void setContentDescriptionBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- contentDescription_ = value.toStringUtf8();
-
- }
-
- public static final int FOCUSED_FIELD_NUMBER = 4;
- private boolean focused_;
- /**
- * bool focused = 4;
- * @return The focused.
- */
- @java.lang.Override
- public boolean getFocused() {
- return focused_;
- }
- /**
- * bool focused = 4;
- * @param value The focused to set.
- */
- private void setFocused(boolean value) {
-
- focused_ = value;
- }
- /**
- * bool focused = 4;
- */
- private void clearFocused() {
-
- focused_ = false;
- }
-
- public static final int ENABLED_FIELD_NUMBER = 5;
- private boolean enabled_;
- /**
- * bool enabled = 5;
- * @return The enabled.
- */
- @java.lang.Override
- public boolean getEnabled() {
- return enabled_;
- }
- /**
- * bool enabled = 5;
- * @param value The enabled to set.
- */
- private void setEnabled(boolean value) {
-
- enabled_ = value;
- }
- /**
- * bool enabled = 5;
- */
- private void clearEnabled() {
-
- enabled_ = false;
- }
-
- public static final int CHILDCOUNT_FIELD_NUMBER = 6;
- private int childCount_;
- /**
- * int32 childCount = 6;
- * @return The childCount.
- */
- @java.lang.Override
- public int getChildCount() {
- return childCount_;
- }
- /**
- * int32 childCount = 6;
- * @param value The childCount to set.
- */
- private void setChildCount(int value) {
-
- childCount_ = value;
- }
- /**
- * int32 childCount = 6;
- */
- private void clearChildCount() {
-
- childCount_ = 0;
- }
-
- public static final int RESOURCENAME_FIELD_NUMBER = 7;
- private java.lang.String resourceName_;
- /**
- * string resourceName = 7;
- * @return The resourceName.
- */
- @java.lang.Override
- public java.lang.String getResourceName() {
- return resourceName_;
- }
- /**
- * string resourceName = 7;
- * @return The bytes for resourceName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getResourceNameBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(resourceName_);
- }
- /**
- * string resourceName = 7;
- * @param value The resourceName to set.
- */
- private void setResourceName(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- resourceName_ = value;
- }
- /**
- * string resourceName = 7;
- */
- private void clearResourceName() {
-
- resourceName_ = getDefaultInstance().getResourceName();
- }
- /**
- * string resourceName = 7;
- * @param value The bytes for resourceName to set.
- */
- private void setResourceNameBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- resourceName_ = value.toStringUtf8();
-
- }
-
- public static final int APPLICATIONPACKAGE_FIELD_NUMBER = 8;
- private java.lang.String applicationPackage_;
- /**
- * string applicationPackage = 8;
- * @return The applicationPackage.
- */
- @java.lang.Override
- public java.lang.String getApplicationPackage() {
- return applicationPackage_;
- }
- /**
- * string applicationPackage = 8;
- * @return The bytes for applicationPackage.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getApplicationPackageBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(applicationPackage_);
- }
- /**
- * string applicationPackage = 8;
- * @param value The applicationPackage to set.
- */
- private void setApplicationPackage(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- applicationPackage_ = value;
- }
- /**
- * string applicationPackage = 8;
- */
- private void clearApplicationPackage() {
-
- applicationPackage_ = getDefaultInstance().getApplicationPackage();
- }
- /**
- * string applicationPackage = 8;
- * @param value The bytes for applicationPackage to set.
- */
- private void setApplicationPackageBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- applicationPackage_ = value.toStringUtf8();
-
- }
-
- public static final int CHILDREN_FIELD_NUMBER = 9;
- private com.google.protobuf.Internal.ProtobufList children_;
- /**
- * repeated .patrol.NativeView children = 9;
- */
- @java.lang.Override
- public java.util.List getChildrenList() {
- return children_;
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- public java.util.List extends pl.leancode.patrol.contracts.Contracts.NativeViewOrBuilder>
- getChildrenOrBuilderList() {
- return children_;
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- @java.lang.Override
- public int getChildrenCount() {
- return children_.size();
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.NativeView getChildren(int index) {
- return children_.get(index);
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- public pl.leancode.patrol.contracts.Contracts.NativeViewOrBuilder getChildrenOrBuilder(
- int index) {
- return children_.get(index);
- }
- private void ensureChildrenIsMutable() {
- com.google.protobuf.Internal.ProtobufList tmp = children_;
- if (!tmp.isModifiable()) {
- children_ =
- com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
- }
- }
-
- /**
- * repeated .patrol.NativeView children = 9;
- */
- private void setChildren(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView value) {
- value.getClass();
- ensureChildrenIsMutable();
- children_.set(index, value);
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- private void addChildren(pl.leancode.patrol.contracts.Contracts.NativeView value) {
- value.getClass();
- ensureChildrenIsMutable();
- children_.add(value);
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- private void addChildren(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView value) {
- value.getClass();
- ensureChildrenIsMutable();
- children_.add(index, value);
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- private void addAllChildren(
- java.lang.Iterable extends pl.leancode.patrol.contracts.Contracts.NativeView> values) {
- ensureChildrenIsMutable();
- com.google.protobuf.AbstractMessageLite.addAll(
- values, children_);
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- private void clearChildren() {
- children_ = emptyProtobufList();
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- private void removeChildren(int index) {
- ensureChildrenIsMutable();
- children_.remove(index);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.NativeView parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.NativeView prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- *
- * Represents a native UI control.
- *
- * On Android, this is `android.view.View`.
- *
- *
- * Protobuf type {@code patrol.NativeView}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.NativeView, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.NativeView)
- pl.leancode.patrol.contracts.Contracts.NativeViewOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.NativeView.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string className = 1;
- * @return The className.
- */
- @java.lang.Override
- public java.lang.String getClassName() {
- return instance.getClassName();
- }
- /**
- * string className = 1;
- * @return The bytes for className.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getClassNameBytes() {
- return instance.getClassNameBytes();
- }
- /**
- * string className = 1;
- * @param value The className to set.
- * @return This builder for chaining.
- */
- public Builder setClassName(
- java.lang.String value) {
- copyOnWrite();
- instance.setClassName(value);
- return this;
- }
- /**
- * string className = 1;
- * @return This builder for chaining.
- */
- public Builder clearClassName() {
- copyOnWrite();
- instance.clearClassName();
- return this;
- }
- /**
- * string className = 1;
- * @param value The bytes for className to set.
- * @return This builder for chaining.
- */
- public Builder setClassNameBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setClassNameBytes(value);
- return this;
- }
-
- /**
- * string text = 2;
- * @return The text.
- */
- @java.lang.Override
- public java.lang.String getText() {
- return instance.getText();
- }
- /**
- * string text = 2;
- * @return The bytes for text.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getTextBytes() {
- return instance.getTextBytes();
- }
- /**
- * string text = 2;
- * @param value The text to set.
- * @return This builder for chaining.
- */
- public Builder setText(
- java.lang.String value) {
- copyOnWrite();
- instance.setText(value);
- return this;
- }
- /**
- * string text = 2;
- * @return This builder for chaining.
- */
- public Builder clearText() {
- copyOnWrite();
- instance.clearText();
- return this;
- }
- /**
- * string text = 2;
- * @param value The bytes for text to set.
- * @return This builder for chaining.
- */
- public Builder setTextBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setTextBytes(value);
- return this;
- }
-
- /**
- * string contentDescription = 3;
- * @return The contentDescription.
- */
- @java.lang.Override
- public java.lang.String getContentDescription() {
- return instance.getContentDescription();
- }
- /**
- * string contentDescription = 3;
- * @return The bytes for contentDescription.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getContentDescriptionBytes() {
- return instance.getContentDescriptionBytes();
- }
- /**
- * string contentDescription = 3;
- * @param value The contentDescription to set.
- * @return This builder for chaining.
- */
- public Builder setContentDescription(
- java.lang.String value) {
- copyOnWrite();
- instance.setContentDescription(value);
- return this;
- }
- /**
- * string contentDescription = 3;
- * @return This builder for chaining.
- */
- public Builder clearContentDescription() {
- copyOnWrite();
- instance.clearContentDescription();
- return this;
- }
- /**
- * string contentDescription = 3;
- * @param value The bytes for contentDescription to set.
- * @return This builder for chaining.
- */
- public Builder setContentDescriptionBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setContentDescriptionBytes(value);
- return this;
- }
-
- /**
- * bool focused = 4;
- * @return The focused.
- */
- @java.lang.Override
- public boolean getFocused() {
- return instance.getFocused();
- }
- /**
- * bool focused = 4;
- * @param value The focused to set.
- * @return This builder for chaining.
- */
- public Builder setFocused(boolean value) {
- copyOnWrite();
- instance.setFocused(value);
- return this;
- }
- /**
- * bool focused = 4;
- * @return This builder for chaining.
- */
- public Builder clearFocused() {
- copyOnWrite();
- instance.clearFocused();
- return this;
- }
-
- /**
- * bool enabled = 5;
- * @return The enabled.
- */
- @java.lang.Override
- public boolean getEnabled() {
- return instance.getEnabled();
- }
- /**
- * bool enabled = 5;
- * @param value The enabled to set.
- * @return This builder for chaining.
- */
- public Builder setEnabled(boolean value) {
- copyOnWrite();
- instance.setEnabled(value);
- return this;
- }
- /**
- * bool enabled = 5;
- * @return This builder for chaining.
- */
- public Builder clearEnabled() {
- copyOnWrite();
- instance.clearEnabled();
- return this;
- }
-
- /**
- * int32 childCount = 6;
- * @return The childCount.
- */
- @java.lang.Override
- public int getChildCount() {
- return instance.getChildCount();
- }
- /**
- * int32 childCount = 6;
- * @param value The childCount to set.
- * @return This builder for chaining.
- */
- public Builder setChildCount(int value) {
- copyOnWrite();
- instance.setChildCount(value);
- return this;
- }
- /**
- * int32 childCount = 6;
- * @return This builder for chaining.
- */
- public Builder clearChildCount() {
- copyOnWrite();
- instance.clearChildCount();
- return this;
- }
-
- /**
- * string resourceName = 7;
- * @return The resourceName.
- */
- @java.lang.Override
- public java.lang.String getResourceName() {
- return instance.getResourceName();
- }
- /**
- * string resourceName = 7;
- * @return The bytes for resourceName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getResourceNameBytes() {
- return instance.getResourceNameBytes();
- }
- /**
- * string resourceName = 7;
- * @param value The resourceName to set.
- * @return This builder for chaining.
- */
- public Builder setResourceName(
- java.lang.String value) {
- copyOnWrite();
- instance.setResourceName(value);
- return this;
- }
- /**
- * string resourceName = 7;
- * @return This builder for chaining.
- */
- public Builder clearResourceName() {
- copyOnWrite();
- instance.clearResourceName();
- return this;
- }
- /**
- * string resourceName = 7;
- * @param value The bytes for resourceName to set.
- * @return This builder for chaining.
- */
- public Builder setResourceNameBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setResourceNameBytes(value);
- return this;
- }
-
- /**
- * string applicationPackage = 8;
- * @return The applicationPackage.
- */
- @java.lang.Override
- public java.lang.String getApplicationPackage() {
- return instance.getApplicationPackage();
- }
- /**
- * string applicationPackage = 8;
- * @return The bytes for applicationPackage.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getApplicationPackageBytes() {
- return instance.getApplicationPackageBytes();
- }
- /**
- * string applicationPackage = 8;
- * @param value The applicationPackage to set.
- * @return This builder for chaining.
- */
- public Builder setApplicationPackage(
- java.lang.String value) {
- copyOnWrite();
- instance.setApplicationPackage(value);
- return this;
- }
- /**
- * string applicationPackage = 8;
- * @return This builder for chaining.
- */
- public Builder clearApplicationPackage() {
- copyOnWrite();
- instance.clearApplicationPackage();
- return this;
- }
- /**
- * string applicationPackage = 8;
- * @param value The bytes for applicationPackage to set.
- * @return This builder for chaining.
- */
- public Builder setApplicationPackageBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setApplicationPackageBytes(value);
- return this;
- }
-
- /**
- * repeated .patrol.NativeView children = 9;
- */
- @java.lang.Override
- public java.util.List getChildrenList() {
- return java.util.Collections.unmodifiableList(
- instance.getChildrenList());
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- @java.lang.Override
- public int getChildrenCount() {
- return instance.getChildrenCount();
- }/**
- * repeated .patrol.NativeView children = 9;
- */
- @java.lang.Override
- public pl.leancode.patrol.contracts.Contracts.NativeView getChildren(int index) {
- return instance.getChildren(index);
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- public Builder setChildren(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView value) {
- copyOnWrite();
- instance.setChildren(index, value);
- return this;
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- public Builder setChildren(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView.Builder builderForValue) {
- copyOnWrite();
- instance.setChildren(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- public Builder addChildren(pl.leancode.patrol.contracts.Contracts.NativeView value) {
- copyOnWrite();
- instance.addChildren(value);
- return this;
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- public Builder addChildren(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView value) {
- copyOnWrite();
- instance.addChildren(index, value);
- return this;
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- public Builder addChildren(
- pl.leancode.patrol.contracts.Contracts.NativeView.Builder builderForValue) {
- copyOnWrite();
- instance.addChildren(builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- public Builder addChildren(
- int index, pl.leancode.patrol.contracts.Contracts.NativeView.Builder builderForValue) {
- copyOnWrite();
- instance.addChildren(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- public Builder addAllChildren(
- java.lang.Iterable extends pl.leancode.patrol.contracts.Contracts.NativeView> values) {
- copyOnWrite();
- instance.addAllChildren(values);
- return this;
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- public Builder clearChildren() {
- copyOnWrite();
- instance.clearChildren();
- return this;
- }
- /**
- * repeated .patrol.NativeView children = 9;
- */
- public Builder removeChildren(int index) {
- copyOnWrite();
- instance.removeChildren(index);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.NativeView)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.NativeView();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "className_",
- "text_",
- "contentDescription_",
- "focused_",
- "enabled_",
- "childCount_",
- "resourceName_",
- "applicationPackage_",
- "children_",
- pl.leancode.patrol.contracts.Contracts.NativeView.class,
- };
- java.lang.String info =
- "\u0000\t\u0000\u0000\u0001\t\t\u0000\u0001\u0000\u0001\u0208\u0002\u0208\u0003\u0208" +
- "\u0004\u0007\u0005\u0007\u0006\u0004\u0007\u0208\b\u0208\t\u001b";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
- if (parser == null) {
- synchronized (pl.leancode.patrol.contracts.Contracts.NativeView.class) {
- parser = PARSER;
- if (parser == null) {
- parser =
- new DefaultInstanceBasedParser(
- DEFAULT_INSTANCE);
- PARSER = parser;
- }
- }
- }
- return parser;
- }
- case GET_MEMOIZED_IS_INITIALIZED: {
- return (byte) 1;
- }
- case SET_MEMOIZED_IS_INITIALIZED: {
- return null;
- }
- }
- throw new UnsupportedOperationException();
- }
-
-
- // @@protoc_insertion_point(class_scope:patrol.NativeView)
- private static final pl.leancode.patrol.contracts.Contracts.NativeView DEFAULT_INSTANCE;
- static {
- NativeView defaultInstance = new NativeView();
- // New instances are implicitly immutable so no need to make
- // immutable.
- DEFAULT_INSTANCE = defaultInstance;
- com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- NativeView.class, defaultInstance);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.NativeView getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static volatile com.google.protobuf.Parser PARSER;
-
- public static com.google.protobuf.Parser parser() {
- return DEFAULT_INSTANCE.getParserForType();
- }
- }
-
- public interface NotificationOrBuilder extends
- // @@protoc_insertion_point(interface_extends:patrol.Notification)
- com.google.protobuf.MessageLiteOrBuilder {
-
- /**
- * optional string appName = 1;
- * @return Whether the appName field is set.
- */
- boolean hasAppName();
- /**
- * optional string appName = 1;
- * @return The appName.
- */
- java.lang.String getAppName();
- /**
- * optional string appName = 1;
- * @return The bytes for appName.
- */
- com.google.protobuf.ByteString
- getAppNameBytes();
-
- /**
- * string title = 2;
- * @return The title.
- */
- java.lang.String getTitle();
- /**
- * string title = 2;
- * @return The bytes for title.
- */
- com.google.protobuf.ByteString
- getTitleBytes();
-
- /**
- * string content = 3;
- * @return The content.
- */
- java.lang.String getContent();
- /**
- * string content = 3;
- * @return The bytes for content.
- */
- com.google.protobuf.ByteString
- getContentBytes();
-
- /**
- * string raw = 4;
- * @return The raw.
- */
- java.lang.String getRaw();
- /**
- * string raw = 4;
- * @return The bytes for raw.
- */
- com.google.protobuf.ByteString
- getRawBytes();
- }
- /**
- *
- * Represents a notification visible in the notification shade.
- *
- *
- * Protobuf type {@code patrol.Notification}
- */
- public static final class Notification extends
- com.google.protobuf.GeneratedMessageLite<
- Notification, Notification.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.Notification)
- NotificationOrBuilder {
- private Notification() {
- appName_ = "";
- title_ = "";
- content_ = "";
- raw_ = "";
- }
- private int bitField0_;
- public static final int APPNAME_FIELD_NUMBER = 1;
- private java.lang.String appName_;
- /**
- * optional string appName = 1;
- * @return Whether the appName field is set.
- */
- @java.lang.Override
- public boolean hasAppName() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * optional string appName = 1;
- * @return The appName.
- */
- @java.lang.Override
- public java.lang.String getAppName() {
- return appName_;
- }
- /**
- * optional string appName = 1;
- * @return The bytes for appName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppNameBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(appName_);
- }
- /**
- * optional string appName = 1;
- * @param value The appName to set.
- */
- private void setAppName(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
- bitField0_ |= 0x00000001;
- appName_ = value;
- }
- /**
- * optional string appName = 1;
- */
- private void clearAppName() {
- bitField0_ = (bitField0_ & ~0x00000001);
- appName_ = getDefaultInstance().getAppName();
- }
- /**
- * optional string appName = 1;
- * @param value The bytes for appName to set.
- */
- private void setAppNameBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- appName_ = value.toStringUtf8();
- bitField0_ |= 0x00000001;
- }
-
- public static final int TITLE_FIELD_NUMBER = 2;
- private java.lang.String title_;
- /**
- * string title = 2;
- * @return The title.
- */
- @java.lang.Override
- public java.lang.String getTitle() {
- return title_;
- }
- /**
- * string title = 2;
- * @return The bytes for title.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getTitleBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(title_);
- }
- /**
- * string title = 2;
- * @param value The title to set.
- */
- private void setTitle(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- title_ = value;
- }
- /**
- * string title = 2;
- */
- private void clearTitle() {
-
- title_ = getDefaultInstance().getTitle();
- }
- /**
- * string title = 2;
- * @param value The bytes for title to set.
- */
- private void setTitleBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- title_ = value.toStringUtf8();
-
- }
-
- public static final int CONTENT_FIELD_NUMBER = 3;
- private java.lang.String content_;
- /**
- * string content = 3;
- * @return The content.
- */
- @java.lang.Override
- public java.lang.String getContent() {
- return content_;
- }
- /**
- * string content = 3;
- * @return The bytes for content.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getContentBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(content_);
- }
- /**
- * string content = 3;
- * @param value The content to set.
- */
- private void setContent(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- content_ = value;
- }
- /**
- * string content = 3;
- */
- private void clearContent() {
-
- content_ = getDefaultInstance().getContent();
- }
- /**
- * string content = 3;
- * @param value The bytes for content to set.
- */
- private void setContentBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- content_ = value.toStringUtf8();
-
- }
-
- public static final int RAW_FIELD_NUMBER = 4;
- private java.lang.String raw_;
- /**
- * string raw = 4;
- * @return The raw.
- */
- @java.lang.Override
- public java.lang.String getRaw() {
- return raw_;
- }
- /**
- * string raw = 4;
- * @return The bytes for raw.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRawBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(raw_);
- }
- /**
- * string raw = 4;
- * @param value The raw to set.
- */
- private void setRaw(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- raw_ = value;
- }
- /**
- * string raw = 4;
- */
- private void clearRaw() {
-
- raw_ = getDefaultInstance().getRaw();
- }
- /**
- * string raw = 4;
- * @param value The bytes for raw to set.
- */
- private void setRawBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- raw_ = value.toStringUtf8();
-
- }
-
- public static pl.leancode.patrol.contracts.Contracts.Notification parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.Notification parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.Notification parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.Notification parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.Notification parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.Notification parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.Notification parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.Notification parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.Notification parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.Notification parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.Notification parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.Notification parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.Notification prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- *
- * Represents a notification visible in the notification shade.
- *
- *
- * Protobuf type {@code patrol.Notification}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.Notification, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.Notification)
- pl.leancode.patrol.contracts.Contracts.NotificationOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.Notification.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * optional string appName = 1;
- * @return Whether the appName field is set.
- */
- @java.lang.Override
- public boolean hasAppName() {
- return instance.hasAppName();
- }
- /**
- * optional string appName = 1;
- * @return The appName.
- */
- @java.lang.Override
- public java.lang.String getAppName() {
- return instance.getAppName();
- }
- /**
- * optional string appName = 1;
- * @return The bytes for appName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAppNameBytes() {
- return instance.getAppNameBytes();
- }
- /**
- * optional string appName = 1;
- * @param value The appName to set.
- * @return This builder for chaining.
- */
- public Builder setAppName(
- java.lang.String value) {
- copyOnWrite();
- instance.setAppName(value);
- return this;
- }
- /**
- * optional string appName = 1;
- * @return This builder for chaining.
- */
- public Builder clearAppName() {
- copyOnWrite();
- instance.clearAppName();
- return this;
- }
- /**
- * optional string appName = 1;
- * @param value The bytes for appName to set.
- * @return This builder for chaining.
- */
- public Builder setAppNameBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setAppNameBytes(value);
- return this;
- }
-
- /**
- * string title = 2;
- * @return The title.
- */
- @java.lang.Override
- public java.lang.String getTitle() {
- return instance.getTitle();
- }
- /**
- * string title = 2;
- * @return The bytes for title.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getTitleBytes() {
- return instance.getTitleBytes();
- }
- /**
- * string title = 2;
- * @param value The title to set.
- * @return This builder for chaining.
- */
- public Builder setTitle(
- java.lang.String value) {
- copyOnWrite();
- instance.setTitle(value);
- return this;
- }
- /**
- * string title = 2;
- * @return This builder for chaining.
- */
- public Builder clearTitle() {
- copyOnWrite();
- instance.clearTitle();
- return this;
- }
- /**
- * string title = 2;
- * @param value The bytes for title to set.
- * @return This builder for chaining.
- */
- public Builder setTitleBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setTitleBytes(value);
- return this;
- }
-
- /**
- * string content = 3;
- * @return The content.
- */
- @java.lang.Override
- public java.lang.String getContent() {
- return instance.getContent();
- }
- /**
- * string content = 3;
- * @return The bytes for content.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getContentBytes() {
- return instance.getContentBytes();
- }
- /**
- * string content = 3;
- * @param value The content to set.
- * @return This builder for chaining.
- */
- public Builder setContent(
- java.lang.String value) {
- copyOnWrite();
- instance.setContent(value);
- return this;
- }
- /**
- * string content = 3;
- * @return This builder for chaining.
- */
- public Builder clearContent() {
- copyOnWrite();
- instance.clearContent();
- return this;
- }
- /**
- * string content = 3;
- * @param value The bytes for content to set.
- * @return This builder for chaining.
- */
- public Builder setContentBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setContentBytes(value);
- return this;
- }
-
- /**
- * string raw = 4;
- * @return The raw.
- */
- @java.lang.Override
- public java.lang.String getRaw() {
- return instance.getRaw();
- }
- /**
- * string raw = 4;
- * @return The bytes for raw.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRawBytes() {
- return instance.getRawBytes();
- }
- /**
- * string raw = 4;
- * @param value The raw to set.
- * @return This builder for chaining.
- */
- public Builder setRaw(
- java.lang.String value) {
- copyOnWrite();
- instance.setRaw(value);
- return this;
- }
- /**
- * string raw = 4;
- * @return This builder for chaining.
- */
- public Builder clearRaw() {
- copyOnWrite();
- instance.clearRaw();
- return this;
- }
- /**
- * string raw = 4;
- * @param value The bytes for raw to set.
- * @return This builder for chaining.
- */
- public Builder setRawBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setRawBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.Notification)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.Notification();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "bitField0_",
- "appName_",
- "title_",
- "content_",
- "raw_",
- };
- java.lang.String info =
- "\u0000\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u1208\u0000\u0002" +
- "\u0208\u0003\u0208\u0004\u0208";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
- if (parser == null) {
- synchronized (pl.leancode.patrol.contracts.Contracts.Notification.class) {
- parser = PARSER;
- if (parser == null) {
- parser =
- new DefaultInstanceBasedParser(
- DEFAULT_INSTANCE);
- PARSER = parser;
- }
- }
- }
- return parser;
- }
- case GET_MEMOIZED_IS_INITIALIZED: {
- return (byte) 1;
- }
- case SET_MEMOIZED_IS_INITIALIZED: {
- return null;
- }
- }
- throw new UnsupportedOperationException();
- }
-
-
- // @@protoc_insertion_point(class_scope:patrol.Notification)
- private static final pl.leancode.patrol.contracts.Contracts.Notification DEFAULT_INSTANCE;
- static {
- Notification defaultInstance = new Notification();
- // New instances are implicitly immutable so no need to make
- // immutable.
- DEFAULT_INSTANCE = defaultInstance;
- com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- Notification.class, defaultInstance);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.Notification getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static volatile com.google.protobuf.Parser PARSER;
-
- public static com.google.protobuf.Parser parser() {
- return DEFAULT_INSTANCE.getParserForType();
- }
- }
-
- public interface SubmitTestResultsRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:patrol.SubmitTestResultsRequest)
- com.google.protobuf.MessageLiteOrBuilder {
-
- /**
- * map<string, string> results = 1;
- */
- int getResultsCount();
- /**
- * map<string, string> results = 1;
- */
- boolean containsResults(
- java.lang.String key);
- /**
- * Use {@link #getResultsMap()} instead.
- */
- @java.lang.Deprecated
- java.util.Map
- getResults();
- /**
- * map<string, string> results = 1;
- */
- java.util.Map
- getResultsMap();
- /**
- * map<string, string> results = 1;
- */
-
- /* nullable */
-java.lang.String getResultsOrDefault(
- java.lang.String key,
- /* nullable */
-java.lang.String defaultValue);
- /**
- * map<string, string> results = 1;
- */
-
- java.lang.String getResultsOrThrow(
- java.lang.String key);
- }
- /**
- * Protobuf type {@code patrol.SubmitTestResultsRequest}
- */
- public static final class SubmitTestResultsRequest extends
- com.google.protobuf.GeneratedMessageLite<
- SubmitTestResultsRequest, SubmitTestResultsRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:patrol.SubmitTestResultsRequest)
- SubmitTestResultsRequestOrBuilder {
- private SubmitTestResultsRequest() {
- }
- public static final int RESULTS_FIELD_NUMBER = 1;
- private static final class ResultsDefaultEntryHolder {
- static final com.google.protobuf.MapEntryLite<
- java.lang.String, java.lang.String> defaultEntry =
- com.google.protobuf.MapEntryLite
- .newDefaultInstance(
- com.google.protobuf.WireFormat.FieldType.STRING,
- "",
- com.google.protobuf.WireFormat.FieldType.STRING,
- "");
- }
- private com.google.protobuf.MapFieldLite<
- java.lang.String, java.lang.String> results_ =
- com.google.protobuf.MapFieldLite.emptyMapField();
- private com.google.protobuf.MapFieldLite
- internalGetResults() {
- return results_;
- }
- private com.google.protobuf.MapFieldLite
- internalGetMutableResults() {
- if (!results_.isMutable()) {
- results_ = results_.mutableCopy();
- }
- return results_;
- }
- @java.lang.Override
-
- public int getResultsCount() {
- return internalGetResults().size();
- }
- /**
- * map<string, string> results = 1;
- */
- @java.lang.Override
-
- public boolean containsResults(
- java.lang.String key) {
- java.lang.Class> keyClass = key.getClass();
- return internalGetResults().containsKey(key);
- }
- /**
- * Use {@link #getResultsMap()} instead.
- */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map getResults() {
- return getResultsMap();
- }
- /**
- * map<string, string> results = 1;
- */
- @java.lang.Override
-
- public java.util.Map getResultsMap() {
- return java.util.Collections.unmodifiableMap(
- internalGetResults());
- }
- /**
- * map<string, string> results = 1;
- */
- @java.lang.Override
-
- public /* nullable */
-java.lang.String getResultsOrDefault(
- java.lang.String key,
- /* nullable */
-java.lang.String defaultValue) {
- java.lang.Class> keyClass = key.getClass();
- java.util.Map map =
- internalGetResults();
- return map.containsKey(key) ? map.get(key) : defaultValue;
- }
- /**
- * map<string, string> results = 1;
- */
- @java.lang.Override
-
- public java.lang.String getResultsOrThrow(
- java.lang.String key) {
- java.lang.Class> keyClass = key.getClass();
- java.util.Map map =
- internalGetResults();
- if (!map.containsKey(key)) {
- throw new java.lang.IllegalArgumentException();
- }
- return map.get(key);
- }
- /**
- * map<string, string> results = 1;
- */
- private java.util.Map
- getMutableResultsMap() {
- return internalGetMutableResults();
- }
-
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input);
- }
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code patrol.SubmitTestResultsRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:patrol.SubmitTestResultsRequest)
- pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequestOrBuilder {
- // Construct using pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- @java.lang.Override
-
- public int getResultsCount() {
- return instance.getResultsMap().size();
- }
- /**
- * map<string, string> results = 1;
- */
- @java.lang.Override
-
- public boolean containsResults(
- java.lang.String key) {
- java.lang.Class> keyClass = key.getClass();
- return instance.getResultsMap().containsKey(key);
- }
-
- public Builder clearResults() {
- copyOnWrite();
- instance.getMutableResultsMap().clear();
- return this;
- }
- /**
- * map<string, string> results = 1;
- */
-
- public Builder removeResults(
- java.lang.String key) {
- java.lang.Class> keyClass = key.getClass();
- copyOnWrite();
- instance.getMutableResultsMap().remove(key);
- return this;
- }
- /**
- * Use {@link #getResultsMap()} instead.
- */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map getResults() {
- return getResultsMap();
- }
- /**
- * map<string, string> results = 1;
- */
- @java.lang.Override
- public java.util.Map getResultsMap() {
- return java.util.Collections.unmodifiableMap(
- instance.getResultsMap());
- }
- /**
- * map<string, string> results = 1;
- */
- @java.lang.Override
-
- public /* nullable */
-java.lang.String getResultsOrDefault(
- java.lang.String key,
- /* nullable */
-java.lang.String defaultValue) {
- java.lang.Class> keyClass = key.getClass();
- java.util.Map map =
- instance.getResultsMap();
- return map.containsKey(key) ? map.get(key) : defaultValue;
- }
- /**
- * map<string, string> results = 1;
- */
- @java.lang.Override
-
- public java.lang.String getResultsOrThrow(
- java.lang.String key) {
- java.lang.Class> keyClass = key.getClass();
- java.util.Map map =
- instance.getResultsMap();
- if (!map.containsKey(key)) {
- throw new java.lang.IllegalArgumentException();
- }
- return map.get(key);
- }
- /**
- * map<string, string> results = 1;
- */
- public Builder putResults(
- java.lang.String key,
- java.lang.String value) {
- java.lang.Class> keyClass = key.getClass();
- java.lang.Class> valueClass = value.getClass();
- copyOnWrite();
- instance.getMutableResultsMap().put(key, value);
- return this;
- }
- /**
- * map<string, string> results = 1;
- */
- public Builder putAllResults(
- java.util.Map values) {
- copyOnWrite();
- instance.getMutableResultsMap().putAll(values);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:patrol.SubmitTestResultsRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "results_",
- ResultsDefaultEntryHolder.defaultEntry,
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
- if (parser == null) {
- synchronized (pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest.class) {
- parser = PARSER;
- if (parser == null) {
- parser =
- new DefaultInstanceBasedParser(
- DEFAULT_INSTANCE);
- PARSER = parser;
- }
- }
- }
- return parser;
- }
- case GET_MEMOIZED_IS_INITIALIZED: {
- return (byte) 1;
- }
- case SET_MEMOIZED_IS_INITIALIZED: {
- return null;
- }
- }
- throw new UnsupportedOperationException();
- }
-
-
- // @@protoc_insertion_point(class_scope:patrol.SubmitTestResultsRequest)
- private static final pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest DEFAULT_INSTANCE;
- static {
- SubmitTestResultsRequest defaultInstance = new SubmitTestResultsRequest();
- // New instances are implicitly immutable so no need to make
- // immutable.
- DEFAULT_INSTANCE = defaultInstance;
- com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- SubmitTestResultsRequest.class, defaultInstance);
- }
-
- public static pl.leancode.patrol.contracts.Contracts.SubmitTestResultsRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static volatile com.google.protobuf.Parser PARSER;
-
- public static com.google.protobuf.Parser parser() {
- return DEFAULT_INSTANCE.getParserForType();
- }
- }
-
-
- static {
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/Contracts.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/Contracts.kt
new file mode 100644
index 000000000..cf0ac5b2d
--- /dev/null
+++ b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/Contracts.kt
@@ -0,0 +1,281 @@
+///
+// Generated code. Do not modify.
+// source: schema.dart
+//
+
+package pl.leancode.patrol.contracts;
+
+import kotlinx.serialization.Serializable
+
+class Contracts {
+ @Serializable
+ enum class GroupEntryType {
+ group,
+ test,
+ }
+
+ @Serializable
+ enum class RunDartTestResponseResult {
+ success,
+ skipped,
+ failure,
+ }
+
+ @Serializable
+ enum class KeyboardBehavior {
+ showAndDismiss,
+ alternative,
+ }
+
+ @Serializable
+ enum class HandlePermissionRequestCode {
+ whileUsing,
+ onlyThisTime,
+ denied,
+ }
+
+ @Serializable
+ enum class SetLocationAccuracyRequestLocationAccuracy {
+ coarse,
+ fine,
+ }
+
+ @Serializable
+ data class DartGroupEntry (
+ val name: String,
+ val type: GroupEntryType,
+ val entries: List
+ )
+
+ @Serializable
+ data class ListDartTestsResponse (
+ val group: DartGroupEntry
+ )
+
+ @Serializable
+ data class RunDartTestRequest (
+ val name: String
+ )
+
+ @Serializable
+ data class RunDartTestResponse (
+ val result: RunDartTestResponseResult,
+ val details: String? = null
+ ){
+ fun hasDetails(): Boolean {
+ return details != null
+ }
+ }
+
+ @Serializable
+ data class ConfigureRequest (
+ val findTimeoutMillis: Long
+ )
+
+ @Serializable
+ data class OpenAppRequest (
+ val appId: String
+ )
+
+ @Serializable
+ class OpenQuickSettingsRequest (
+
+ )
+
+ @Serializable
+ data class Selector (
+ val text: String? = null,
+ val textStartsWith: String? = null,
+ val textContains: String? = null,
+ val className: String? = null,
+ val contentDescription: String? = null,
+ val contentDescriptionStartsWith: String? = null,
+ val contentDescriptionContains: String? = null,
+ val resourceId: String? = null,
+ val instance: Long? = null,
+ val enabled: Boolean? = null,
+ val focused: Boolean? = null,
+ val pkg: String? = null
+ ){
+ fun hasText(): Boolean {
+ return text != null
+ }
+ fun hasTextStartsWith(): Boolean {
+ return textStartsWith != null
+ }
+ fun hasTextContains(): Boolean {
+ return textContains != null
+ }
+ fun hasClassName(): Boolean {
+ return className != null
+ }
+ fun hasContentDescription(): Boolean {
+ return contentDescription != null
+ }
+ fun hasContentDescriptionStartsWith(): Boolean {
+ return contentDescriptionStartsWith != null
+ }
+ fun hasContentDescriptionContains(): Boolean {
+ return contentDescriptionContains != null
+ }
+ fun hasResourceId(): Boolean {
+ return resourceId != null
+ }
+ fun hasInstance(): Boolean {
+ return instance != null
+ }
+ fun hasEnabled(): Boolean {
+ return enabled != null
+ }
+ fun hasFocused(): Boolean {
+ return focused != null
+ }
+ fun hasPkg(): Boolean {
+ return pkg != null
+ }
+ }
+
+ @Serializable
+ data class GetNativeViewsRequest (
+ val selector: Selector,
+ val appId: String
+ )
+
+ @Serializable
+ data class NativeView (
+ val className: String? = null,
+ val text: String? = null,
+ val contentDescription: String? = null,
+ val focused: Boolean,
+ val enabled: Boolean,
+ val childCount: Long? = null,
+ val resourceName: String? = null,
+ val applicationPackage: String? = null,
+ val children: List
+ ){
+ fun hasClassName(): Boolean {
+ return className != null
+ }
+ fun hasText(): Boolean {
+ return text != null
+ }
+ fun hasContentDescription(): Boolean {
+ return contentDescription != null
+ }
+ fun hasChildCount(): Boolean {
+ return childCount != null
+ }
+ fun hasResourceName(): Boolean {
+ return resourceName != null
+ }
+ fun hasApplicationPackage(): Boolean {
+ return applicationPackage != null
+ }
+ }
+
+ @Serializable
+ data class GetNativeViewsResponse (
+ val nativeViews: List
+ )
+
+ @Serializable
+ data class TapRequest (
+ val selector: Selector,
+ val appId: String
+ )
+
+ @Serializable
+ data class EnterTextRequest (
+ val data: String,
+ val appId: String,
+ val index: Long? = null,
+ val selector: Selector? = null,
+ val keyboardBehavior: KeyboardBehavior
+ ){
+ fun hasIndex(): Boolean {
+ return index != null
+ }
+ fun hasSelector(): Boolean {
+ return selector != null
+ }
+ }
+
+ @Serializable
+ data class SwipeRequest (
+ val startX: Double,
+ val startY: Double,
+ val endX: Double,
+ val endY: Double,
+ val steps: Long
+ )
+
+ @Serializable
+ data class WaitUntilVisibleRequest (
+ val selector: Selector,
+ val appId: String
+ )
+
+ @Serializable
+ data class DarkModeRequest (
+ val appId: String
+ )
+
+ @Serializable
+ data class Notification (
+ val appName: String? = null,
+ val title: String,
+ val content: String,
+ val raw: String? = null
+ ){
+ fun hasAppName(): Boolean {
+ return appName != null
+ }
+ fun hasRaw(): Boolean {
+ return raw != null
+ }
+ }
+
+ @Serializable
+ data class GetNotificationsResponse (
+ val notifications: List
+ )
+
+ @Serializable
+ class GetNotificationsRequest (
+
+ )
+
+ @Serializable
+ data class TapOnNotificationRequest (
+ val index: Long? = null,
+ val selector: Selector? = null
+ ){
+ fun hasIndex(): Boolean {
+ return index != null
+ }
+ fun hasSelector(): Boolean {
+ return selector != null
+ }
+ }
+
+ @Serializable
+ data class PermissionDialogVisibleResponse (
+ val visible: Boolean
+ )
+
+ @Serializable
+ data class PermissionDialogVisibleRequest (
+ val timeoutMillis: Long
+ )
+
+ @Serializable
+ data class HandlePermissionRequest (
+ val code: HandlePermissionRequestCode
+ )
+
+ @Serializable
+ data class SetLocationAccuracyRequest (
+ val locationAccuracy: SetLocationAccuracyRequestLocationAccuracy
+ )
+
+}
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/ContractsGrpcKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/ContractsGrpcKt.kt
deleted file mode 100644
index ad00b8870..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/ContractsGrpcKt.kt
+++ /dev/null
@@ -1,1700 +0,0 @@
-package pl.leancode.patrol.contracts
-
-import io.grpc.CallOptions
-import io.grpc.CallOptions.DEFAULT
-import io.grpc.Channel
-import io.grpc.Metadata
-import io.grpc.MethodDescriptor
-import io.grpc.ServerServiceDefinition
-import io.grpc.ServerServiceDefinition.builder
-import io.grpc.ServiceDescriptor
-import io.grpc.Status
-import io.grpc.Status.UNIMPLEMENTED
-import io.grpc.StatusException
-import io.grpc.kotlin.AbstractCoroutineServerImpl
-import io.grpc.kotlin.AbstractCoroutineStub
-import io.grpc.kotlin.ClientCalls
-import io.grpc.kotlin.ClientCalls.unaryRpc
-import io.grpc.kotlin.ServerCalls
-import io.grpc.kotlin.ServerCalls.unaryServerMethodDefinition
-import io.grpc.kotlin.StubFor
-import kotlin.String
-import kotlin.coroutines.CoroutineContext
-import kotlin.coroutines.EmptyCoroutineContext
-import kotlin.jvm.JvmOverloads
-import kotlin.jvm.JvmStatic
-import pl.leancode.patrol.contracts.PatrolAppServiceGrpc.getServiceDescriptor
-
-/**
- * Holder for Kotlin coroutine-based client and server APIs for patrol.PatrolAppService.
- */
-public object PatrolAppServiceGrpcKt {
- public const val SERVICE_NAME: String = PatrolAppServiceGrpc.SERVICE_NAME
-
- @JvmStatic
- public val serviceDescriptor: ServiceDescriptor
- get() = PatrolAppServiceGrpc.getServiceDescriptor()
-
- public val listDartTestsMethod: MethodDescriptor
- @JvmStatic
- get() = PatrolAppServiceGrpc.getListDartTestsMethod()
-
- public val runDartTestMethod:
- MethodDescriptor
- @JvmStatic
- get() = PatrolAppServiceGrpc.getRunDartTestMethod()
-
- /**
- * A stub for issuing RPCs to a(n) patrol.PatrolAppService service as suspending coroutines.
- */
- @StubFor(PatrolAppServiceGrpc::class)
- public class PatrolAppServiceCoroutineStub @JvmOverloads constructor(
- channel: Channel,
- callOptions: CallOptions = DEFAULT,
- ) : AbstractCoroutineStub(channel, callOptions) {
- public override fun build(channel: Channel, callOptions: CallOptions):
- PatrolAppServiceCoroutineStub = PatrolAppServiceCoroutineStub(channel, callOptions)
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun listDartTests(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.ListDartTestsResponse = unaryRpc(
- channel,
- PatrolAppServiceGrpc.getListDartTestsMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun runDartTest(request: Contracts.RunDartTestRequest, headers: Metadata =
- Metadata()): Contracts.RunDartTestResponse = unaryRpc(
- channel,
- PatrolAppServiceGrpc.getRunDartTestMethod(),
- request,
- callOptions,
- headers
- )
- }
-
- /**
- * Skeletal implementation of the patrol.PatrolAppService service based on Kotlin coroutines.
- */
- public abstract class PatrolAppServiceCoroutineImplBase(
- coroutineContext: CoroutineContext = EmptyCoroutineContext,
- ) : AbstractCoroutineServerImpl(coroutineContext) {
- /**
- * Returns the response to an RPC for patrol.PatrolAppService.listDartTests.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun listDartTests(request: Contracts.Empty): Contracts.ListDartTestsResponse
- = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.PatrolAppService.listDartTests is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.PatrolAppService.runDartTest.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun runDartTest(request: Contracts.RunDartTestRequest):
- Contracts.RunDartTestResponse = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.PatrolAppService.runDartTest is unimplemented"))
-
- public final override fun bindService(): ServerServiceDefinition =
- builder(getServiceDescriptor())
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = PatrolAppServiceGrpc.getListDartTestsMethod(),
- implementation = ::listDartTests
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = PatrolAppServiceGrpc.getRunDartTestMethod(),
- implementation = ::runDartTest
- )).build()
- }
-}
-
-/**
- * Holder for Kotlin coroutine-based client and server APIs for patrol.NativeAutomator.
- */
-public object NativeAutomatorGrpcKt {
- public const val SERVICE_NAME: String = NativeAutomatorGrpc.SERVICE_NAME
-
- @JvmStatic
- public val serviceDescriptor: ServiceDescriptor
- get() = NativeAutomatorGrpc.getServiceDescriptor()
-
- public val initializeMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getInitializeMethod()
-
- public val configureMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getConfigureMethod()
-
- public val pressHomeMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getPressHomeMethod()
-
- public val pressBackMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getPressBackMethod()
-
- public val pressRecentAppsMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getPressRecentAppsMethod()
-
- public val doublePressRecentAppsMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getDoublePressRecentAppsMethod()
-
- public val openAppMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getOpenAppMethod()
-
- public val openQuickSettingsMethod:
- MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getOpenQuickSettingsMethod()
-
- public val getNativeViewsMethod:
- MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getGetNativeViewsMethod()
-
- public val tapMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getTapMethod()
-
- public val doubleTapMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getDoubleTapMethod()
-
- public val enterTextMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getEnterTextMethod()
-
- public val swipeMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getSwipeMethod()
-
- public val waitUntilVisibleMethod:
- MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getWaitUntilVisibleMethod()
-
- public val enableAirplaneModeMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getEnableAirplaneModeMethod()
-
- public val disableAirplaneModeMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getDisableAirplaneModeMethod()
-
- public val enableWiFiMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getEnableWiFiMethod()
-
- public val disableWiFiMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getDisableWiFiMethod()
-
- public val enableCellularMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getEnableCellularMethod()
-
- public val disableCellularMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getDisableCellularMethod()
-
- public val enableBluetoothMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getEnableBluetoothMethod()
-
- public val disableBluetoothMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getDisableBluetoothMethod()
-
- public val enableDarkModeMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getEnableDarkModeMethod()
-
- public val disableDarkModeMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getDisableDarkModeMethod()
-
- public val openNotificationsMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getOpenNotificationsMethod()
-
- public val closeNotificationsMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getCloseNotificationsMethod()
-
- public val closeHeadsUpNotificationMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getCloseHeadsUpNotificationMethod()
-
- public val getNotificationsMethod:
- MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getGetNotificationsMethod()
-
- public val tapOnNotificationMethod:
- MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getTapOnNotificationMethod()
-
- public val isPermissionDialogVisibleMethod:
- MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getIsPermissionDialogVisibleMethod()
-
- public val handlePermissionDialogMethod:
- MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getHandlePermissionDialogMethod()
-
- public val setLocationAccuracyMethod:
- MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getSetLocationAccuracyMethod()
-
- public val debugMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getDebugMethod()
-
- public val markPatrolAppServiceReadyMethod: MethodDescriptor
- @JvmStatic
- get() = NativeAutomatorGrpc.getMarkPatrolAppServiceReadyMethod()
-
- /**
- * A stub for issuing RPCs to a(n) patrol.NativeAutomator service as suspending coroutines.
- */
- @StubFor(NativeAutomatorGrpc::class)
- public class NativeAutomatorCoroutineStub @JvmOverloads constructor(
- channel: Channel,
- callOptions: CallOptions = DEFAULT,
- ) : AbstractCoroutineStub(channel, callOptions) {
- public override fun build(channel: Channel, callOptions: CallOptions):
- NativeAutomatorCoroutineStub = NativeAutomatorCoroutineStub(channel, callOptions)
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun initialize(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getInitializeMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun configure(request: Contracts.ConfigureRequest, headers: Metadata =
- Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getConfigureMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun pressHome(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getPressHomeMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun pressBack(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getPressBackMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun pressRecentApps(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getPressRecentAppsMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun doublePressRecentApps(request: Contracts.Empty, headers: Metadata =
- Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getDoublePressRecentAppsMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun openApp(request: Contracts.OpenAppRequest, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getOpenAppMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun openQuickSettings(request: Contracts.OpenQuickSettingsRequest,
- headers: Metadata = Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getOpenQuickSettingsMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun getNativeViews(request: Contracts.GetNativeViewsRequest, headers: Metadata =
- Metadata()): Contracts.GetNativeViewsResponse = unaryRpc(
- channel,
- NativeAutomatorGrpc.getGetNativeViewsMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun tap(request: Contracts.TapRequest, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getTapMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun doubleTap(request: Contracts.TapRequest, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getDoubleTapMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun enterText(request: Contracts.EnterTextRequest, headers: Metadata =
- Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getEnterTextMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun swipe(request: Contracts.SwipeRequest, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getSwipeMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun waitUntilVisible(request: Contracts.WaitUntilVisibleRequest,
- headers: Metadata = Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getWaitUntilVisibleMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun enableAirplaneMode(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getEnableAirplaneModeMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun disableAirplaneMode(request: Contracts.Empty, headers: Metadata =
- Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getDisableAirplaneModeMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun enableWiFi(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getEnableWiFiMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun disableWiFi(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getDisableWiFiMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun enableCellular(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getEnableCellularMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun disableCellular(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getDisableCellularMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun enableBluetooth(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getEnableBluetoothMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun disableBluetooth(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getDisableBluetoothMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun enableDarkMode(request: Contracts.DarkModeRequest, headers: Metadata =
- Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getEnableDarkModeMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun disableDarkMode(request: Contracts.DarkModeRequest, headers: Metadata =
- Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getDisableDarkModeMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun openNotifications(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getOpenNotificationsMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun closeNotifications(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getCloseNotificationsMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun closeHeadsUpNotification(request: Contracts.Empty, headers: Metadata =
- Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getCloseHeadsUpNotificationMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun getNotifications(request: Contracts.GetNotificationsRequest,
- headers: Metadata = Metadata()): Contracts.GetNotificationsResponse = unaryRpc(
- channel,
- NativeAutomatorGrpc.getGetNotificationsMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun tapOnNotification(request: Contracts.TapOnNotificationRequest,
- headers: Metadata = Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getTapOnNotificationMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun isPermissionDialogVisible(request: Contracts.PermissionDialogVisibleRequest,
- headers: Metadata = Metadata()): Contracts.PermissionDialogVisibleResponse = unaryRpc(
- channel,
- NativeAutomatorGrpc.getIsPermissionDialogVisibleMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun handlePermissionDialog(request: Contracts.HandlePermissionRequest,
- headers: Metadata = Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getHandlePermissionDialogMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun setLocationAccuracy(request: Contracts.SetLocationAccuracyRequest,
- headers: Metadata = Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getSetLocationAccuracyMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun debug(request: Contracts.Empty, headers: Metadata = Metadata()):
- Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getDebugMethod(),
- request,
- callOptions,
- headers
- )
-
- /**
- * Executes this RPC and returns the response message, suspending until the RPC completes
- * with [`Status.OK`][Status]. If the RPC completes with another status, a corresponding
- * [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
- * with the corresponding exception as a cause.
- *
- * @param request The request message to send to the server.
- *
- * @param headers Metadata to attach to the request. Most users will not need this.
- *
- * @return The single response from the server.
- */
- public suspend fun markPatrolAppServiceReady(request: Contracts.Empty, headers: Metadata =
- Metadata()): Contracts.Empty = unaryRpc(
- channel,
- NativeAutomatorGrpc.getMarkPatrolAppServiceReadyMethod(),
- request,
- callOptions,
- headers
- )
- }
-
- /**
- * Skeletal implementation of the patrol.NativeAutomator service based on Kotlin coroutines.
- */
- public abstract class NativeAutomatorCoroutineImplBase(
- coroutineContext: CoroutineContext = EmptyCoroutineContext,
- ) : AbstractCoroutineServerImpl(coroutineContext) {
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.initialize.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun initialize(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.initialize is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.configure.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun configure(request: Contracts.ConfigureRequest): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.configure is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.pressHome.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun pressHome(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.pressHome is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.pressBack.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun pressBack(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.pressBack is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.pressRecentApps.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun pressRecentApps(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.pressRecentApps is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.doublePressRecentApps.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun doublePressRecentApps(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.doublePressRecentApps is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.openApp.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun openApp(request: Contracts.OpenAppRequest): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.openApp is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.openQuickSettings.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun openQuickSettings(request: Contracts.OpenQuickSettingsRequest):
- Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.openQuickSettings is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.getNativeViews.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun getNativeViews(request: Contracts.GetNativeViewsRequest):
- Contracts.GetNativeViewsResponse = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.getNativeViews is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.tap.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun tap(request: Contracts.TapRequest): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.tap is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.doubleTap.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun doubleTap(request: Contracts.TapRequest): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.doubleTap is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.enterText.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun enterText(request: Contracts.EnterTextRequest): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.enterText is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.swipe.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun swipe(request: Contracts.SwipeRequest): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.swipe is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.waitUntilVisible.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun waitUntilVisible(request: Contracts.WaitUntilVisibleRequest):
- Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.waitUntilVisible is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.enableAirplaneMode.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun enableAirplaneMode(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.enableAirplaneMode is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.disableAirplaneMode.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun disableAirplaneMode(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.disableAirplaneMode is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.enableWiFi.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun enableWiFi(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.enableWiFi is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.disableWiFi.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun disableWiFi(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.disableWiFi is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.enableCellular.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun enableCellular(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.enableCellular is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.disableCellular.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun disableCellular(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.disableCellular is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.enableBluetooth.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun enableBluetooth(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.enableBluetooth is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.disableBluetooth.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun disableBluetooth(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.disableBluetooth is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.enableDarkMode.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun enableDarkMode(request: Contracts.DarkModeRequest): Contracts.Empty =
- throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.enableDarkMode is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.disableDarkMode.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun disableDarkMode(request: Contracts.DarkModeRequest): Contracts.Empty =
- throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.disableDarkMode is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.openNotifications.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun openNotifications(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.openNotifications is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.closeNotifications.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun closeNotifications(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.closeNotifications is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.closeHeadsUpNotification.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun closeHeadsUpNotification(request: Contracts.Empty): Contracts.Empty =
- throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.closeHeadsUpNotification is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.getNotifications.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun getNotifications(request: Contracts.GetNotificationsRequest):
- Contracts.GetNotificationsResponse = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.getNotifications is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.tapOnNotification.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun tapOnNotification(request: Contracts.TapOnNotificationRequest):
- Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.tapOnNotification is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.isPermissionDialogVisible.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend
- fun isPermissionDialogVisible(request: Contracts.PermissionDialogVisibleRequest):
- Contracts.PermissionDialogVisibleResponse = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.isPermissionDialogVisible is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.handlePermissionDialog.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun handlePermissionDialog(request: Contracts.HandlePermissionRequest):
- Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.handlePermissionDialog is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.setLocationAccuracy.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun setLocationAccuracy(request: Contracts.SetLocationAccuracyRequest):
- Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.setLocationAccuracy is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.debug.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun debug(request: Contracts.Empty): Contracts.Empty = throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.debug is unimplemented"))
-
- /**
- * Returns the response to an RPC for patrol.NativeAutomator.markPatrolAppServiceReady.
- *
- * If this method fails with a [StatusException], the RPC will fail with the corresponding
- * [Status]. If this method fails with a [java.util.concurrent.CancellationException], the RPC
- * will fail
- * with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
- * fail with `Status.UNKNOWN` with the exception as a cause.
- *
- * @param request The request from the client.
- */
- public open suspend fun markPatrolAppServiceReady(request: Contracts.Empty): Contracts.Empty =
- throw
- StatusException(UNIMPLEMENTED.withDescription("Method patrol.NativeAutomator.markPatrolAppServiceReady is unimplemented"))
-
- public final override fun bindService(): ServerServiceDefinition =
- builder(NativeAutomatorGrpc.getServiceDescriptor())
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getInitializeMethod(),
- implementation = ::initialize
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getConfigureMethod(),
- implementation = ::configure
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getPressHomeMethod(),
- implementation = ::pressHome
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getPressBackMethod(),
- implementation = ::pressBack
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getPressRecentAppsMethod(),
- implementation = ::pressRecentApps
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getDoublePressRecentAppsMethod(),
- implementation = ::doublePressRecentApps
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getOpenAppMethod(),
- implementation = ::openApp
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getOpenQuickSettingsMethod(),
- implementation = ::openQuickSettings
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getGetNativeViewsMethod(),
- implementation = ::getNativeViews
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getTapMethod(),
- implementation = ::tap
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getDoubleTapMethod(),
- implementation = ::doubleTap
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getEnterTextMethod(),
- implementation = ::enterText
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getSwipeMethod(),
- implementation = ::swipe
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getWaitUntilVisibleMethod(),
- implementation = ::waitUntilVisible
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getEnableAirplaneModeMethod(),
- implementation = ::enableAirplaneMode
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getDisableAirplaneModeMethod(),
- implementation = ::disableAirplaneMode
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getEnableWiFiMethod(),
- implementation = ::enableWiFi
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getDisableWiFiMethod(),
- implementation = ::disableWiFi
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getEnableCellularMethod(),
- implementation = ::enableCellular
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getDisableCellularMethod(),
- implementation = ::disableCellular
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getEnableBluetoothMethod(),
- implementation = ::enableBluetooth
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getDisableBluetoothMethod(),
- implementation = ::disableBluetooth
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getEnableDarkModeMethod(),
- implementation = ::enableDarkMode
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getDisableDarkModeMethod(),
- implementation = ::disableDarkMode
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getOpenNotificationsMethod(),
- implementation = ::openNotifications
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getCloseNotificationsMethod(),
- implementation = ::closeNotifications
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getCloseHeadsUpNotificationMethod(),
- implementation = ::closeHeadsUpNotification
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getGetNotificationsMethod(),
- implementation = ::getNotifications
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getTapOnNotificationMethod(),
- implementation = ::tapOnNotification
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getIsPermissionDialogVisibleMethod(),
- implementation = ::isPermissionDialogVisible
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getHandlePermissionDialogMethod(),
- implementation = ::handlePermissionDialog
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getSetLocationAccuracyMethod(),
- implementation = ::setLocationAccuracy
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getDebugMethod(),
- implementation = ::debug
- ))
- .addMethod(unaryServerMethodDefinition(
- context = this.context,
- descriptor = NativeAutomatorGrpc.getMarkPatrolAppServiceReadyMethod(),
- implementation = ::markPatrolAppServiceReady
- )).build()
- }
-}
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/ContractsKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/ContractsKt.kt
deleted file mode 100644
index 10cc09af0..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/ContractsKt.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/DarkModeRequestKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/DarkModeRequestKt.kt
deleted file mode 100644
index 7dbc07e61..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/DarkModeRequestKt.kt
+++ /dev/null
@@ -1,50 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
-@kotlin.jvm.JvmName("-initializedarkModeRequest")
-public inline fun darkModeRequest(block: pl.leancode.patrol.contracts.DarkModeRequestKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.DarkModeRequest =
- pl.leancode.patrol.contracts.DarkModeRequestKt.Dsl._create(pl.leancode.patrol.contracts.Contracts.DarkModeRequest.newBuilder()).apply { block() }._build()
-/**
- * Protobuf type `patrol.DarkModeRequest`
- */
-public object DarkModeRequestKt {
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- @com.google.protobuf.kotlin.ProtoDslMarker
- public class Dsl private constructor(
- private val _builder: pl.leancode.patrol.contracts.Contracts.DarkModeRequest.Builder
- ) {
- public companion object {
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _create(builder: pl.leancode.patrol.contracts.Contracts.DarkModeRequest.Builder): Dsl = Dsl(builder)
- }
-
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _build(): pl.leancode.patrol.contracts.Contracts.DarkModeRequest = _builder.build()
-
- /**
- * `string appId = 1;`
- */
- public var appId: kotlin.String
- @JvmName("getAppId")
- get() = _builder.getAppId()
- @JvmName("setAppId")
- set(value) {
- _builder.setAppId(value)
- }
- /**
- * `string appId = 1;`
- */
- public fun clearAppId() {
- _builder.clearAppId()
- }
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.DarkModeRequest.copy(block: pl.leancode.patrol.contracts.DarkModeRequestKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.DarkModeRequest =
- pl.leancode.patrol.contracts.DarkModeRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/DartTestCaseKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/DartTestCaseKt.kt
deleted file mode 100644
index d9213b71c..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/DartTestCaseKt.kt
+++ /dev/null
@@ -1,50 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
-@kotlin.jvm.JvmName("-initializedartTestCase")
-public inline fun dartTestCase(block: pl.leancode.patrol.contracts.DartTestCaseKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.DartTestCase =
- pl.leancode.patrol.contracts.DartTestCaseKt.Dsl._create(pl.leancode.patrol.contracts.Contracts.DartTestCase.newBuilder()).apply { block() }._build()
-/**
- * Protobuf type `patrol.DartTestCase`
- */
-public object DartTestCaseKt {
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- @com.google.protobuf.kotlin.ProtoDslMarker
- public class Dsl private constructor(
- private val _builder: pl.leancode.patrol.contracts.Contracts.DartTestCase.Builder
- ) {
- public companion object {
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _create(builder: pl.leancode.patrol.contracts.Contracts.DartTestCase.Builder): Dsl = Dsl(builder)
- }
-
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _build(): pl.leancode.patrol.contracts.Contracts.DartTestCase = _builder.build()
-
- /**
- * `string name = 1;`
- */
- public var name: kotlin.String
- @JvmName("getName")
- get() = _builder.getName()
- @JvmName("setName")
- set(value) {
- _builder.setName(value)
- }
- /**
- * `string name = 1;`
- */
- public fun clearName() {
- _builder.clearName()
- }
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.DartTestCase.copy(block: pl.leancode.patrol.contracts.DartTestCaseKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.DartTestCase =
- pl.leancode.patrol.contracts.DartTestCaseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/DartTestGroupKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/DartTestGroupKt.kt
deleted file mode 100644
index 2bf1e489c..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/DartTestGroupKt.kt
+++ /dev/null
@@ -1,192 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
-@kotlin.jvm.JvmName("-initializedartTestGroup")
-public inline fun dartTestGroup(block: pl.leancode.patrol.contracts.DartTestGroupKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.DartTestGroup =
- pl.leancode.patrol.contracts.DartTestGroupKt.Dsl._create(pl.leancode.patrol.contracts.Contracts.DartTestGroup.newBuilder()).apply { block() }._build()
-/**
- * Protobuf type `patrol.DartTestGroup`
- */
-public object DartTestGroupKt {
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- @com.google.protobuf.kotlin.ProtoDslMarker
- public class Dsl private constructor(
- private val _builder: pl.leancode.patrol.contracts.Contracts.DartTestGroup.Builder
- ) {
- public companion object {
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _create(builder: pl.leancode.patrol.contracts.Contracts.DartTestGroup.Builder): Dsl = Dsl(builder)
- }
-
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _build(): pl.leancode.patrol.contracts.Contracts.DartTestGroup = _builder.build()
-
- /**
- * `string name = 1;`
- */
- public var name: kotlin.String
- @JvmName("getName")
- get() = _builder.getName()
- @JvmName("setName")
- set(value) {
- _builder.setName(value)
- }
- /**
- * `string name = 1;`
- */
- public fun clearName() {
- _builder.clearName()
- }
-
- /**
- * An uninstantiable, behaviorless type to represent the field in
- * generics.
- */
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- public class TestsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
- /**
- * `repeated .patrol.DartTestCase tests = 2;`
- */
- public val tests: com.google.protobuf.kotlin.DslList
- @kotlin.jvm.JvmSynthetic
- get() = com.google.protobuf.kotlin.DslList(
- _builder.getTestsList()
- )
- /**
- * `repeated .patrol.DartTestCase tests = 2;`
- * @param value The tests to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("addTests")
- public fun com.google.protobuf.kotlin.DslList.add(value: pl.leancode.patrol.contracts.Contracts.DartTestCase) {
- _builder.addTests(value)
- }
- /**
- * `repeated .patrol.DartTestCase tests = 2;`
- * @param value The tests to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("plusAssignTests")
- @Suppress("NOTHING_TO_INLINE")
- public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: pl.leancode.patrol.contracts.Contracts.DartTestCase) {
- add(value)
- }
- /**
- * `repeated .patrol.DartTestCase tests = 2;`
- * @param values The tests to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("addAllTests")
- public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
- _builder.addAllTests(values)
- }
- /**
- * `repeated .patrol.DartTestCase tests = 2;`
- * @param values The tests to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("plusAssignAllTests")
- @Suppress("NOTHING_TO_INLINE")
- public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
- addAll(values)
- }
- /**
- * `repeated .patrol.DartTestCase tests = 2;`
- * @param index The index to set the value at.
- * @param value The tests to set.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("setTests")
- public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: pl.leancode.patrol.contracts.Contracts.DartTestCase) {
- _builder.setTests(index, value)
- }
- /**
- * `repeated .patrol.DartTestCase tests = 2;`
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("clearTests")
- public fun com.google.protobuf.kotlin.DslList.clear() {
- _builder.clearTests()
- }
-
- /**
- * An uninstantiable, behaviorless type to represent the field in
- * generics.
- */
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- public class GroupsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
- /**
- * `repeated .patrol.DartTestGroup groups = 3;`
- */
- public val groups: com.google.protobuf.kotlin.DslList
- @kotlin.jvm.JvmSynthetic
- get() = com.google.protobuf.kotlin.DslList(
- _builder.getGroupsList()
- )
- /**
- * `repeated .patrol.DartTestGroup groups = 3;`
- * @param value The groups to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("addGroups")
- public fun com.google.protobuf.kotlin.DslList.add(value: pl.leancode.patrol.contracts.Contracts.DartTestGroup) {
- _builder.addGroups(value)
- }
- /**
- * `repeated .patrol.DartTestGroup groups = 3;`
- * @param value The groups to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("plusAssignGroups")
- @Suppress("NOTHING_TO_INLINE")
- public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: pl.leancode.patrol.contracts.Contracts.DartTestGroup) {
- add(value)
- }
- /**
- * `repeated .patrol.DartTestGroup groups = 3;`
- * @param values The groups to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("addAllGroups")
- public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
- _builder.addAllGroups(values)
- }
- /**
- * `repeated .patrol.DartTestGroup groups = 3;`
- * @param values The groups to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("plusAssignAllGroups")
- @Suppress("NOTHING_TO_INLINE")
- public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
- addAll(values)
- }
- /**
- * `repeated .patrol.DartTestGroup groups = 3;`
- * @param index The index to set the value at.
- * @param value The groups to set.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("setGroups")
- public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: pl.leancode.patrol.contracts.Contracts.DartTestGroup) {
- _builder.setGroups(index, value)
- }
- /**
- * `repeated .patrol.DartTestGroup groups = 3;`
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("clearGroups")
- public fun com.google.protobuf.kotlin.DslList.clear() {
- _builder.clearGroups()
- }
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.DartTestGroup.copy(block: pl.leancode.patrol.contracts.DartTestGroupKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.DartTestGroup =
- pl.leancode.patrol.contracts.DartTestGroupKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/EmptyKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/EmptyKt.kt
deleted file mode 100644
index c32da0a83..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/EmptyKt.kt
+++ /dev/null
@@ -1,41 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
-@kotlin.jvm.JvmName("-initializeempty")
-public inline fun empty(block: pl.leancode.patrol.contracts.EmptyKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.Empty =
- pl.leancode.patrol.contracts.EmptyKt.Dsl._create(pl.leancode.patrol.contracts.Contracts.Empty.newBuilder()).apply { block() }._build()
-/**
- * ```
- * We're defining our own Empty instead of using google.protobuf.Empty because
- * the Dart plugin can't easily generate it.
- *
- * See:
- * * https://github.com/google/protobuf.dart/issues/170
- * ```
- *
- * Protobuf type `patrol.Empty`
- */
-public object EmptyKt {
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- @com.google.protobuf.kotlin.ProtoDslMarker
- public class Dsl private constructor(
- private val _builder: pl.leancode.patrol.contracts.Contracts.Empty.Builder
- ) {
- public companion object {
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _create(builder: pl.leancode.patrol.contracts.Contracts.Empty.Builder): Dsl = Dsl(builder)
- }
-
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _build(): pl.leancode.patrol.contracts.Contracts.Empty = _builder.build()
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.Empty.copy(block: pl.leancode.patrol.contracts.EmptyKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.Empty =
- pl.leancode.patrol.contracts.EmptyKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/EnterTextRequestKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/EnterTextRequestKt.kt
deleted file mode 100644
index 8bf9729be..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/EnterTextRequestKt.kt
+++ /dev/null
@@ -1,149 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
-@kotlin.jvm.JvmName("-initializeenterTextRequest")
-public inline fun enterTextRequest(block: pl.leancode.patrol.contracts.EnterTextRequestKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.EnterTextRequest =
- pl.leancode.patrol.contracts.EnterTextRequestKt.Dsl._create(pl.leancode.patrol.contracts.Contracts.EnterTextRequest.newBuilder()).apply { block() }._build()
-/**
- * Protobuf type `patrol.EnterTextRequest`
- */
-public object EnterTextRequestKt {
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- @com.google.protobuf.kotlin.ProtoDslMarker
- public class Dsl private constructor(
- private val _builder: pl.leancode.patrol.contracts.Contracts.EnterTextRequest.Builder
- ) {
- public companion object {
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _create(builder: pl.leancode.patrol.contracts.Contracts.EnterTextRequest.Builder): Dsl = Dsl(builder)
- }
-
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _build(): pl.leancode.patrol.contracts.Contracts.EnterTextRequest = _builder.build()
-
- /**
- * `string data = 1;`
- */
- public var data: kotlin.String
- @JvmName("getData")
- get() = _builder.getData()
- @JvmName("setData")
- set(value) {
- _builder.setData(value)
- }
- /**
- * `string data = 1;`
- */
- public fun clearData() {
- _builder.clearData()
- }
-
- /**
- * `string appId = 2;`
- */
- public var appId: kotlin.String
- @JvmName("getAppId")
- get() = _builder.getAppId()
- @JvmName("setAppId")
- set(value) {
- _builder.setAppId(value)
- }
- /**
- * `string appId = 2;`
- */
- public fun clearAppId() {
- _builder.clearAppId()
- }
-
- /**
- * uint32 index = 3;
- */
- public var index: kotlin.Int
- @JvmName("getIndex")
- get() = _builder.getIndex()
- @JvmName("setIndex")
- set(value) {
- _builder.setIndex(value)
- }
- /**
- * `uint32 index = 3;`
- */
- public fun clearIndex() {
- _builder.clearIndex()
- }
- /**
- * `uint32 index = 3;`
- * @return Whether the index field is set.
- */
- public fun hasIndex(): kotlin.Boolean {
- return _builder.hasIndex()
- }
-
- /**
- * `.patrol.Selector selector = 4;`
- */
- public var selector: pl.leancode.patrol.contracts.Contracts.Selector
- @JvmName("getSelector")
- get() = _builder.getSelector()
- @JvmName("setSelector")
- set(value) {
- _builder.setSelector(value)
- }
- /**
- * `.patrol.Selector selector = 4;`
- */
- public fun clearSelector() {
- _builder.clearSelector()
- }
- /**
- * `.patrol.Selector selector = 4;`
- * @return Whether the selector field is set.
- */
- public fun hasSelector(): kotlin.Boolean {
- return _builder.hasSelector()
- }
-
- /**
- * `.patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;`
- */
- public var keyboardBehavior: pl.leancode.patrol.contracts.Contracts.EnterTextRequest.KeyboardBehavior
- @JvmName("getKeyboardBehavior")
- get() = _builder.getKeyboardBehavior()
- @JvmName("setKeyboardBehavior")
- set(value) {
- _builder.setKeyboardBehavior(value)
- }
- public var keyboardBehaviorValue: kotlin.Int
- @JvmName("getKeyboardBehaviorValue")
- get() = _builder.getKeyboardBehaviorValue()
- @JvmName("setKeyboardBehaviorValue")
- set(value) {
- _builder.setKeyboardBehaviorValue(value)
- }
- /**
- * `.patrol.EnterTextRequest.KeyboardBehavior keyboardBehavior = 5;`
- */
- public fun clearKeyboardBehavior() {
- _builder.clearKeyboardBehavior()
- }
- public val findByCase: pl.leancode.patrol.contracts.Contracts.EnterTextRequest.FindByCase
- @JvmName("getFindByCase")
- get() = _builder.getFindByCase()
-
- public fun clearFindBy() {
- _builder.clearFindBy()
- }
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.EnterTextRequest.copy(block: pl.leancode.patrol.contracts.EnterTextRequestKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.EnterTextRequest =
- pl.leancode.patrol.contracts.EnterTextRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
-public val pl.leancode.patrol.contracts.Contracts.EnterTextRequestOrBuilder.selectorOrNull: pl.leancode.patrol.contracts.Contracts.Selector?
- get() = if (hasSelector()) getSelector() else null
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNativeViewsRequestKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNativeViewsRequestKt.kt
deleted file mode 100644
index d3afacc60..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNativeViewsRequestKt.kt
+++ /dev/null
@@ -1,77 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
-@kotlin.jvm.JvmName("-initializegetNativeViewsRequest")
-public inline fun getNativeViewsRequest(block: pl.leancode.patrol.contracts.GetNativeViewsRequestKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest =
- pl.leancode.patrol.contracts.GetNativeViewsRequestKt.Dsl._create(pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest.newBuilder()).apply { block() }._build()
-/**
- * Protobuf type `patrol.GetNativeViewsRequest`
- */
-public object GetNativeViewsRequestKt {
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- @com.google.protobuf.kotlin.ProtoDslMarker
- public class Dsl private constructor(
- private val _builder: pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest.Builder
- ) {
- public companion object {
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _create(builder: pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest.Builder): Dsl = Dsl(builder)
- }
-
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _build(): pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest = _builder.build()
-
- /**
- * `.patrol.Selector selector = 1;`
- */
- public var selector: pl.leancode.patrol.contracts.Contracts.Selector
- @JvmName("getSelector")
- get() = _builder.getSelector()
- @JvmName("setSelector")
- set(value) {
- _builder.setSelector(value)
- }
- /**
- * `.patrol.Selector selector = 1;`
- */
- public fun clearSelector() {
- _builder.clearSelector()
- }
- /**
- * `.patrol.Selector selector = 1;`
- * @return Whether the selector field is set.
- */
- public fun hasSelector(): kotlin.Boolean {
- return _builder.hasSelector()
- }
-
- /**
- * `string appId = 2;`
- */
- public var appId: kotlin.String
- @JvmName("getAppId")
- get() = _builder.getAppId()
- @JvmName("setAppId")
- set(value) {
- _builder.setAppId(value)
- }
- /**
- * `string appId = 2;`
- */
- public fun clearAppId() {
- _builder.clearAppId()
- }
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest.copy(block: pl.leancode.patrol.contracts.GetNativeViewsRequestKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest =
- pl.leancode.patrol.contracts.GetNativeViewsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
-public val pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequestOrBuilder.selectorOrNull: pl.leancode.patrol.contracts.Contracts.Selector?
- get() = if (hasSelector()) getSelector() else null
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNativeViewsResponseKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNativeViewsResponseKt.kt
deleted file mode 100644
index 541907f43..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNativeViewsResponseKt.kt
+++ /dev/null
@@ -1,104 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
-@kotlin.jvm.JvmName("-initializegetNativeViewsResponse")
-public inline fun getNativeViewsResponse(block: pl.leancode.patrol.contracts.GetNativeViewsResponseKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse =
- pl.leancode.patrol.contracts.GetNativeViewsResponseKt.Dsl._create(pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse.newBuilder()).apply { block() }._build()
-/**
- * Protobuf type `patrol.GetNativeViewsResponse`
- */
-public object GetNativeViewsResponseKt {
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- @com.google.protobuf.kotlin.ProtoDslMarker
- public class Dsl private constructor(
- private val _builder: pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse.Builder
- ) {
- public companion object {
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _create(builder: pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse.Builder): Dsl = Dsl(builder)
- }
-
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _build(): pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse = _builder.build()
-
- /**
- * An uninstantiable, behaviorless type to represent the field in
- * generics.
- */
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- public class NativeViewsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
- /**
- * `repeated .patrol.NativeView nativeViews = 2;`
- */
- public val nativeViews: com.google.protobuf.kotlin.DslList
- @kotlin.jvm.JvmSynthetic
- get() = com.google.protobuf.kotlin.DslList(
- _builder.getNativeViewsList()
- )
- /**
- * `repeated .patrol.NativeView nativeViews = 2;`
- * @param value The nativeViews to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("addNativeViews")
- public fun com.google.protobuf.kotlin.DslList.add(value: pl.leancode.patrol.contracts.Contracts.NativeView) {
- _builder.addNativeViews(value)
- }
- /**
- * `repeated .patrol.NativeView nativeViews = 2;`
- * @param value The nativeViews to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("plusAssignNativeViews")
- @Suppress("NOTHING_TO_INLINE")
- public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: pl.leancode.patrol.contracts.Contracts.NativeView) {
- add(value)
- }
- /**
- * `repeated .patrol.NativeView nativeViews = 2;`
- * @param values The nativeViews to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("addAllNativeViews")
- public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
- _builder.addAllNativeViews(values)
- }
- /**
- * `repeated .patrol.NativeView nativeViews = 2;`
- * @param values The nativeViews to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("plusAssignAllNativeViews")
- @Suppress("NOTHING_TO_INLINE")
- public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
- addAll(values)
- }
- /**
- * `repeated .patrol.NativeView nativeViews = 2;`
- * @param index The index to set the value at.
- * @param value The nativeViews to set.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("setNativeViews")
- public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: pl.leancode.patrol.contracts.Contracts.NativeView) {
- _builder.setNativeViews(index, value)
- }
- /**
- * `repeated .patrol.NativeView nativeViews = 2;`
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("clearNativeViews")
- public fun com.google.protobuf.kotlin.DslList.clear() {
- _builder.clearNativeViews()
- }
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse.copy(block: pl.leancode.patrol.contracts.GetNativeViewsResponseKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse =
- pl.leancode.patrol.contracts.GetNativeViewsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNotificationsRequestKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNotificationsRequestKt.kt
deleted file mode 100644
index 59cc82208..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNotificationsRequestKt.kt
+++ /dev/null
@@ -1,33 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
-@kotlin.jvm.JvmName("-initializegetNotificationsRequest")
-public inline fun getNotificationsRequest(block: pl.leancode.patrol.contracts.GetNotificationsRequestKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.GetNotificationsRequest =
- pl.leancode.patrol.contracts.GetNotificationsRequestKt.Dsl._create(pl.leancode.patrol.contracts.Contracts.GetNotificationsRequest.newBuilder()).apply { block() }._build()
-/**
- * Protobuf type `patrol.GetNotificationsRequest`
- */
-public object GetNotificationsRequestKt {
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- @com.google.protobuf.kotlin.ProtoDslMarker
- public class Dsl private constructor(
- private val _builder: pl.leancode.patrol.contracts.Contracts.GetNotificationsRequest.Builder
- ) {
- public companion object {
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _create(builder: pl.leancode.patrol.contracts.Contracts.GetNotificationsRequest.Builder): Dsl = Dsl(builder)
- }
-
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _build(): pl.leancode.patrol.contracts.Contracts.GetNotificationsRequest = _builder.build()
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.GetNotificationsRequest.copy(block: pl.leancode.patrol.contracts.GetNotificationsRequestKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.GetNotificationsRequest =
- pl.leancode.patrol.contracts.GetNotificationsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNotificationsResponseKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNotificationsResponseKt.kt
deleted file mode 100644
index 0283e2ca9..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/GetNotificationsResponseKt.kt
+++ /dev/null
@@ -1,104 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
-@kotlin.jvm.JvmName("-initializegetNotificationsResponse")
-public inline fun getNotificationsResponse(block: pl.leancode.patrol.contracts.GetNotificationsResponseKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse =
- pl.leancode.patrol.contracts.GetNotificationsResponseKt.Dsl._create(pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse.newBuilder()).apply { block() }._build()
-/**
- * Protobuf type `patrol.GetNotificationsResponse`
- */
-public object GetNotificationsResponseKt {
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- @com.google.protobuf.kotlin.ProtoDslMarker
- public class Dsl private constructor(
- private val _builder: pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse.Builder
- ) {
- public companion object {
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _create(builder: pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse.Builder): Dsl = Dsl(builder)
- }
-
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _build(): pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse = _builder.build()
-
- /**
- * An uninstantiable, behaviorless type to represent the field in
- * generics.
- */
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- public class NotificationsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
- /**
- * `repeated .patrol.Notification notifications = 2;`
- */
- public val notifications: com.google.protobuf.kotlin.DslList
- @kotlin.jvm.JvmSynthetic
- get() = com.google.protobuf.kotlin.DslList(
- _builder.getNotificationsList()
- )
- /**
- * `repeated .patrol.Notification notifications = 2;`
- * @param value The notifications to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("addNotifications")
- public fun com.google.protobuf.kotlin.DslList.add(value: pl.leancode.patrol.contracts.Contracts.Notification) {
- _builder.addNotifications(value)
- }
- /**
- * `repeated .patrol.Notification notifications = 2;`
- * @param value The notifications to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("plusAssignNotifications")
- @Suppress("NOTHING_TO_INLINE")
- public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: pl.leancode.patrol.contracts.Contracts.Notification) {
- add(value)
- }
- /**
- * `repeated .patrol.Notification notifications = 2;`
- * @param values The notifications to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("addAllNotifications")
- public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
- _builder.addAllNotifications(values)
- }
- /**
- * `repeated .patrol.Notification notifications = 2;`
- * @param values The notifications to add.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("plusAssignAllNotifications")
- @Suppress("NOTHING_TO_INLINE")
- public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
- addAll(values)
- }
- /**
- * `repeated .patrol.Notification notifications = 2;`
- * @param index The index to set the value at.
- * @param value The notifications to set.
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("setNotifications")
- public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: pl.leancode.patrol.contracts.Contracts.Notification) {
- _builder.setNotifications(index, value)
- }
- /**
- * `repeated .patrol.Notification notifications = 2;`
- */
- @kotlin.jvm.JvmSynthetic
- @kotlin.jvm.JvmName("clearNotifications")
- public fun com.google.protobuf.kotlin.DslList.clear() {
- _builder.clearNotifications()
- }
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse.copy(block: pl.leancode.patrol.contracts.GetNotificationsResponseKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse =
- pl.leancode.patrol.contracts.GetNotificationsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/HandlePermissionRequestKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/HandlePermissionRequestKt.kt
deleted file mode 100644
index da7b66092..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/HandlePermissionRequestKt.kt
+++ /dev/null
@@ -1,57 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
-@kotlin.jvm.JvmName("-initializehandlePermissionRequest")
-public inline fun handlePermissionRequest(block: pl.leancode.patrol.contracts.HandlePermissionRequestKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest =
- pl.leancode.patrol.contracts.HandlePermissionRequestKt.Dsl._create(pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.newBuilder()).apply { block() }._build()
-/**
- * Protobuf type `patrol.HandlePermissionRequest`
- */
-public object HandlePermissionRequestKt {
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- @com.google.protobuf.kotlin.ProtoDslMarker
- public class Dsl private constructor(
- private val _builder: pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.Builder
- ) {
- public companion object {
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _create(builder: pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.Builder): Dsl = Dsl(builder)
- }
-
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _build(): pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest = _builder.build()
-
- /**
- * `.patrol.HandlePermissionRequest.Code code = 1;`
- */
- public var code: pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.Code
- @JvmName("getCode")
- get() = _builder.getCode()
- @JvmName("setCode")
- set(value) {
- _builder.setCode(value)
- }
- public var codeValue: kotlin.Int
- @JvmName("getCodeValue")
- get() = _builder.getCodeValue()
- @JvmName("setCodeValue")
- set(value) {
- _builder.setCodeValue(value)
- }
- /**
- * `.patrol.HandlePermissionRequest.Code code = 1;`
- */
- public fun clearCode() {
- _builder.clearCode()
- }
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest.copy(block: pl.leancode.patrol.contracts.HandlePermissionRequestKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest =
- pl.leancode.patrol.contracts.HandlePermissionRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/ListDartTestsResponseKt.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/ListDartTestsResponseKt.kt
deleted file mode 100644
index b40a14ecc..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/ListDartTestsResponseKt.kt
+++ /dev/null
@@ -1,60 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: contracts.proto
-
-// Generated files should ignore deprecation warnings
-@file:Suppress("DEPRECATION")
-package pl.leancode.patrol.contracts;
-
-@kotlin.jvm.JvmName("-initializelistDartTestsResponse")
-public inline fun listDartTestsResponse(block: pl.leancode.patrol.contracts.ListDartTestsResponseKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse =
- pl.leancode.patrol.contracts.ListDartTestsResponseKt.Dsl._create(pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse.newBuilder()).apply { block() }._build()
-/**
- * Protobuf type `patrol.ListDartTestsResponse`
- */
-public object ListDartTestsResponseKt {
- @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
- @com.google.protobuf.kotlin.ProtoDslMarker
- public class Dsl private constructor(
- private val _builder: pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse.Builder
- ) {
- public companion object {
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _create(builder: pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse.Builder): Dsl = Dsl(builder)
- }
-
- @kotlin.jvm.JvmSynthetic
- @kotlin.PublishedApi
- internal fun _build(): pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse = _builder.build()
-
- /**
- * `.patrol.DartTestGroup group = 1;`
- */
- public var group: pl.leancode.patrol.contracts.Contracts.DartTestGroup
- @JvmName("getGroup")
- get() = _builder.getGroup()
- @JvmName("setGroup")
- set(value) {
- _builder.setGroup(value)
- }
- /**
- * `.patrol.DartTestGroup group = 1;`
- */
- public fun clearGroup() {
- _builder.clearGroup()
- }
- /**
- * `.patrol.DartTestGroup group = 1;`
- * @return Whether the group field is set.
- */
- public fun hasGroup(): kotlin.Boolean {
- return _builder.hasGroup()
- }
- }
-}
-public inline fun pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse.copy(block: pl.leancode.patrol.contracts.ListDartTestsResponseKt.Dsl.() -> kotlin.Unit): pl.leancode.patrol.contracts.Contracts.ListDartTestsResponse =
- pl.leancode.patrol.contracts.ListDartTestsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
-
-public val pl.leancode.patrol.contracts.Contracts.ListDartTestsResponseOrBuilder.groupOrNull: pl.leancode.patrol.contracts.Contracts.DartTestGroup?
- get() = if (hasGroup()) getGroup() else null
-
diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/NativeAutomatorGrpc.java b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/NativeAutomatorGrpc.java
deleted file mode 100644
index 0c299eb82..000000000
--- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/contracts/NativeAutomatorGrpc.java
+++ /dev/null
@@ -1,2732 +0,0 @@
-package pl.leancode.patrol.contracts;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-
-/**
- */
-@javax.annotation.Generated(
- value = "by gRPC proto compiler (version 1.49.1)",
- comments = "Source: contracts.proto")
-@io.grpc.stub.annotations.GrpcGenerated
-public final class NativeAutomatorGrpc {
-
- private NativeAutomatorGrpc() {}
-
- public static final String SERVICE_NAME = "patrol.NativeAutomator";
-
- // Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getInitializeMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "initialize",
- requestType = pl.leancode.patrol.contracts.Contracts.Empty.class,
- responseType = pl.leancode.patrol.contracts.Contracts.Empty.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getInitializeMethod() {
- io.grpc.MethodDescriptor getInitializeMethod;
- if ((getInitializeMethod = NativeAutomatorGrpc.getInitializeMethod) == null) {
- synchronized (NativeAutomatorGrpc.class) {
- if ((getInitializeMethod = NativeAutomatorGrpc.getInitializeMethod) == null) {
- NativeAutomatorGrpc.getInitializeMethod = getInitializeMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "initialize"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
- pl.leancode.patrol.contracts.Contracts.Empty.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
- pl.leancode.patrol.contracts.Contracts.Empty.getDefaultInstance()))
- .build();
- }
- }
- }
- return getInitializeMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getConfigureMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "configure",
- requestType = pl.leancode.patrol.contracts.Contracts.ConfigureRequest.class,
- responseType = pl.leancode.patrol.contracts.Contracts.Empty.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getConfigureMethod() {
- io.grpc.MethodDescriptor getConfigureMethod;
- if ((getConfigureMethod = NativeAutomatorGrpc.getConfigureMethod) == null) {
- synchronized (NativeAutomatorGrpc.class) {
- if ((getConfigureMethod = NativeAutomatorGrpc.getConfigureMethod) == null) {
- NativeAutomatorGrpc.getConfigureMethod = getConfigureMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "configure"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
- pl.leancode.patrol.contracts.Contracts.ConfigureRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
- pl.leancode.patrol.contracts.Contracts.Empty.getDefaultInstance()))
- .build();
- }
- }
- }
- return getConfigureMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getPressHomeMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "pressHome",
- requestType = pl.leancode.patrol.contracts.Contracts.Empty.class,
- responseType = pl.leancode.patrol.contracts.Contracts.Empty.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getPressHomeMethod() {
- io.grpc.MethodDescriptor getPressHomeMethod;
- if ((getPressHomeMethod = NativeAutomatorGrpc.getPressHomeMethod) == null) {
- synchronized (NativeAutomatorGrpc.class) {
- if ((getPressHomeMethod = NativeAutomatorGrpc.getPressHomeMethod) == null) {
- NativeAutomatorGrpc.getPressHomeMethod = getPressHomeMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "pressHome"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
- pl.leancode.patrol.contracts.Contracts.Empty.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
- pl.leancode.patrol.contracts.Contracts.Empty.getDefaultInstance()))
- .build();
- }
- }
- }
- return getPressHomeMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getPressBackMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "pressBack",
- requestType = pl.leancode.patrol.contracts.Contracts.Empty.class,
- responseType = pl.leancode.patrol.contracts.Contracts.Empty.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getPressBackMethod() {
- io.grpc.MethodDescriptor getPressBackMethod;
- if ((getPressBackMethod = NativeAutomatorGrpc.getPressBackMethod) == null) {
- synchronized (NativeAutomatorGrpc.class) {
- if ((getPressBackMethod = NativeAutomatorGrpc.getPressBackMethod) == null) {
- NativeAutomatorGrpc.getPressBackMethod = getPressBackMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "pressBack"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
- pl.leancode.patrol.contracts.Contracts.Empty.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
- pl.leancode.patrol.contracts.Contracts.Empty.getDefaultInstance()))
- .build();
- }
- }
- }
- return getPressBackMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor getPressRecentAppsMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "pressRecentApps",
- requestType = pl.leancode.patrol.contracts.Contracts.Empty.class,
- responseType = pl.leancode.patrol.contracts.Contracts.Empty.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor