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

com.exactpro.th2.act.grpc.hand.RhActionList Maven / Gradle / Ivy

There is a newer version: 3.0.0-dev
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: th2_grpc_hand/rhbatch.proto

package com.exactpro.th2.act.grpc.hand;

/**
 * Protobuf type {@code RhActionList}
 */
public final class RhActionList extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:RhActionList)
    RhActionListOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RhActionList.newBuilder() to construct.
  private RhActionList(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private RhActionList() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new RhActionList();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RhActionList(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.Builder subBuilder = null;
            if (listCase_ == 1) {
              subBuilder = ((com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList) list_).toBuilder();
            }
            list_ =
                input.readMessage(com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList) list_);
              list_ = subBuilder.buildPartial();
            }
            listCase_ = 1;
            break;
          }
          case 18: {
            com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.Builder subBuilder = null;
            if (listCase_ == 2) {
              subBuilder = ((com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList) list_).toBuilder();
            }
            list_ =
                input.readMessage(com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList) list_);
              list_ = subBuilder.buildPartial();
            }
            listCase_ = 2;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.exactpro.th2.act.grpc.hand.Rhbatch.internal_static_RhActionList_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.exactpro.th2.act.grpc.hand.Rhbatch.internal_static_RhActionList_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.exactpro.th2.act.grpc.hand.RhActionList.class, com.exactpro.th2.act.grpc.hand.RhActionList.Builder.class);
  }

  private int listCase_ = 0;
  private java.lang.Object list_;
  public enum ListCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    WEB(1),
    WIN(2),
    LIST_NOT_SET(0);
    private final int value;
    private ListCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ListCase valueOf(int value) {
      return forNumber(value);
    }

    public static ListCase forNumber(int value) {
      switch (value) {
        case 1: return WEB;
        case 2: return WIN;
        case 0: return LIST_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ListCase
  getListCase() {
    return ListCase.forNumber(
        listCase_);
  }

  public static final int WEB_FIELD_NUMBER = 1;
  /**
   * .RhWebActionList web = 1;
   * @return Whether the web field is set.
   */
  @java.lang.Override
  public boolean hasWeb() {
    return listCase_ == 1;
  }
  /**
   * .RhWebActionList web = 1;
   * @return The web.
   */
  @java.lang.Override
  public com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList getWeb() {
    if (listCase_ == 1) {
       return (com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList) list_;
    }
    return com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.getDefaultInstance();
  }
  /**
   * .RhWebActionList web = 1;
   */
  @java.lang.Override
  public com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionListOrBuilder getWebOrBuilder() {
    if (listCase_ == 1) {
       return (com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList) list_;
    }
    return com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.getDefaultInstance();
  }

  public static final int WIN_FIELD_NUMBER = 2;
  /**
   * .RhWinActionList win = 2;
   * @return Whether the win field is set.
   */
  @java.lang.Override
  public boolean hasWin() {
    return listCase_ == 2;
  }
  /**
   * .RhWinActionList win = 2;
   * @return The win.
   */
  @java.lang.Override
  public com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList getWin() {
    if (listCase_ == 2) {
       return (com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList) list_;
    }
    return com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.getDefaultInstance();
  }
  /**
   * .RhWinActionList win = 2;
   */
  @java.lang.Override
  public com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionListOrBuilder getWinOrBuilder() {
    if (listCase_ == 2) {
       return (com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList) list_;
    }
    return com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.getDefaultInstance();
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (listCase_ == 1) {
      output.writeMessage(1, (com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList) list_);
    }
    if (listCase_ == 2) {
      output.writeMessage(2, (com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList) list_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (listCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList) list_);
    }
    if (listCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList) list_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.exactpro.th2.act.grpc.hand.RhActionList)) {
      return super.equals(obj);
    }
    com.exactpro.th2.act.grpc.hand.RhActionList other = (com.exactpro.th2.act.grpc.hand.RhActionList) obj;

    if (!getListCase().equals(other.getListCase())) return false;
    switch (listCase_) {
      case 1:
        if (!getWeb()
            .equals(other.getWeb())) return false;
        break;
      case 2:
        if (!getWin()
            .equals(other.getWin())) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    switch (listCase_) {
      case 1:
        hash = (37 * hash) + WEB_FIELD_NUMBER;
        hash = (53 * hash) + getWeb().hashCode();
        break;
      case 2:
        hash = (37 * hash) + WIN_FIELD_NUMBER;
        hash = (53 * hash) + getWin().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.exactpro.th2.act.grpc.hand.RhActionList parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.exactpro.th2.act.grpc.hand.RhActionList parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.exactpro.th2.act.grpc.hand.RhActionList parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.exactpro.th2.act.grpc.hand.RhActionList parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.exactpro.th2.act.grpc.hand.RhActionList parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.exactpro.th2.act.grpc.hand.RhActionList parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.exactpro.th2.act.grpc.hand.RhActionList parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.exactpro.th2.act.grpc.hand.RhActionList parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.exactpro.th2.act.grpc.hand.RhActionList parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.exactpro.th2.act.grpc.hand.RhActionList parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.exactpro.th2.act.grpc.hand.RhActionList parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.exactpro.th2.act.grpc.hand.RhActionList parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.exactpro.th2.act.grpc.hand.RhActionList prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code RhActionList}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:RhActionList)
      com.exactpro.th2.act.grpc.hand.RhActionListOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.exactpro.th2.act.grpc.hand.Rhbatch.internal_static_RhActionList_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.exactpro.th2.act.grpc.hand.Rhbatch.internal_static_RhActionList_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.exactpro.th2.act.grpc.hand.RhActionList.class, com.exactpro.th2.act.grpc.hand.RhActionList.Builder.class);
    }

    // Construct using com.exactpro.th2.act.grpc.hand.RhActionList.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      listCase_ = 0;
      list_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.exactpro.th2.act.grpc.hand.Rhbatch.internal_static_RhActionList_descriptor;
    }

    @java.lang.Override
    public com.exactpro.th2.act.grpc.hand.RhActionList getDefaultInstanceForType() {
      return com.exactpro.th2.act.grpc.hand.RhActionList.getDefaultInstance();
    }

    @java.lang.Override
    public com.exactpro.th2.act.grpc.hand.RhActionList build() {
      com.exactpro.th2.act.grpc.hand.RhActionList result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.exactpro.th2.act.grpc.hand.RhActionList buildPartial() {
      com.exactpro.th2.act.grpc.hand.RhActionList result = new com.exactpro.th2.act.grpc.hand.RhActionList(this);
      if (listCase_ == 1) {
        if (webBuilder_ == null) {
          result.list_ = list_;
        } else {
          result.list_ = webBuilder_.build();
        }
      }
      if (listCase_ == 2) {
        if (winBuilder_ == null) {
          result.list_ = list_;
        } else {
          result.list_ = winBuilder_.build();
        }
      }
      result.listCase_ = listCase_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.exactpro.th2.act.grpc.hand.RhActionList) {
        return mergeFrom((com.exactpro.th2.act.grpc.hand.RhActionList)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.exactpro.th2.act.grpc.hand.RhActionList other) {
      if (other == com.exactpro.th2.act.grpc.hand.RhActionList.getDefaultInstance()) return this;
      switch (other.getListCase()) {
        case WEB: {
          mergeWeb(other.getWeb());
          break;
        }
        case WIN: {
          mergeWin(other.getWin());
          break;
        }
        case LIST_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.exactpro.th2.act.grpc.hand.RhActionList parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.exactpro.th2.act.grpc.hand.RhActionList) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int listCase_ = 0;
    private java.lang.Object list_;
    public ListCase
        getListCase() {
      return ListCase.forNumber(
          listCase_);
    }

    public Builder clearList() {
      listCase_ = 0;
      list_ = null;
      onChanged();
      return this;
    }


    private com.google.protobuf.SingleFieldBuilderV3<
        com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList, com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.Builder, com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionListOrBuilder> webBuilder_;
    /**
     * .RhWebActionList web = 1;
     * @return Whether the web field is set.
     */
    @java.lang.Override
    public boolean hasWeb() {
      return listCase_ == 1;
    }
    /**
     * .RhWebActionList web = 1;
     * @return The web.
     */
    @java.lang.Override
    public com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList getWeb() {
      if (webBuilder_ == null) {
        if (listCase_ == 1) {
          return (com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList) list_;
        }
        return com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.getDefaultInstance();
      } else {
        if (listCase_ == 1) {
          return webBuilder_.getMessage();
        }
        return com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.getDefaultInstance();
      }
    }
    /**
     * .RhWebActionList web = 1;
     */
    public Builder setWeb(com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList value) {
      if (webBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        list_ = value;
        onChanged();
      } else {
        webBuilder_.setMessage(value);
      }
      listCase_ = 1;
      return this;
    }
    /**
     * .RhWebActionList web = 1;
     */
    public Builder setWeb(
        com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.Builder builderForValue) {
      if (webBuilder_ == null) {
        list_ = builderForValue.build();
        onChanged();
      } else {
        webBuilder_.setMessage(builderForValue.build());
      }
      listCase_ = 1;
      return this;
    }
    /**
     * .RhWebActionList web = 1;
     */
    public Builder mergeWeb(com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList value) {
      if (webBuilder_ == null) {
        if (listCase_ == 1 &&
            list_ != com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.getDefaultInstance()) {
          list_ = com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.newBuilder((com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList) list_)
              .mergeFrom(value).buildPartial();
        } else {
          list_ = value;
        }
        onChanged();
      } else {
        if (listCase_ == 1) {
          webBuilder_.mergeFrom(value);
        } else {
          webBuilder_.setMessage(value);
        }
      }
      listCase_ = 1;
      return this;
    }
    /**
     * .RhWebActionList web = 1;
     */
    public Builder clearWeb() {
      if (webBuilder_ == null) {
        if (listCase_ == 1) {
          listCase_ = 0;
          list_ = null;
          onChanged();
        }
      } else {
        if (listCase_ == 1) {
          listCase_ = 0;
          list_ = null;
        }
        webBuilder_.clear();
      }
      return this;
    }
    /**
     * .RhWebActionList web = 1;
     */
    public com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.Builder getWebBuilder() {
      return getWebFieldBuilder().getBuilder();
    }
    /**
     * .RhWebActionList web = 1;
     */
    @java.lang.Override
    public com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionListOrBuilder getWebOrBuilder() {
      if ((listCase_ == 1) && (webBuilder_ != null)) {
        return webBuilder_.getMessageOrBuilder();
      } else {
        if (listCase_ == 1) {
          return (com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList) list_;
        }
        return com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.getDefaultInstance();
      }
    }
    /**
     * .RhWebActionList web = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList, com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.Builder, com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionListOrBuilder> 
        getWebFieldBuilder() {
      if (webBuilder_ == null) {
        if (!(listCase_ == 1)) {
          list_ = com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.getDefaultInstance();
        }
        webBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList, com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList.Builder, com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionListOrBuilder>(
                (com.exactpro.th2.act.grpc.hand.rhactions.RhActionsMessages.RhWebActionList) list_,
                getParentForChildren(),
                isClean());
        list_ = null;
      }
      listCase_ = 1;
      onChanged();;
      return webBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList, com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.Builder, com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionListOrBuilder> winBuilder_;
    /**
     * .RhWinActionList win = 2;
     * @return Whether the win field is set.
     */
    @java.lang.Override
    public boolean hasWin() {
      return listCase_ == 2;
    }
    /**
     * .RhWinActionList win = 2;
     * @return The win.
     */
    @java.lang.Override
    public com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList getWin() {
      if (winBuilder_ == null) {
        if (listCase_ == 2) {
          return (com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList) list_;
        }
        return com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.getDefaultInstance();
      } else {
        if (listCase_ == 2) {
          return winBuilder_.getMessage();
        }
        return com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.getDefaultInstance();
      }
    }
    /**
     * .RhWinActionList win = 2;
     */
    public Builder setWin(com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList value) {
      if (winBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        list_ = value;
        onChanged();
      } else {
        winBuilder_.setMessage(value);
      }
      listCase_ = 2;
      return this;
    }
    /**
     * .RhWinActionList win = 2;
     */
    public Builder setWin(
        com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.Builder builderForValue) {
      if (winBuilder_ == null) {
        list_ = builderForValue.build();
        onChanged();
      } else {
        winBuilder_.setMessage(builderForValue.build());
      }
      listCase_ = 2;
      return this;
    }
    /**
     * .RhWinActionList win = 2;
     */
    public Builder mergeWin(com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList value) {
      if (winBuilder_ == null) {
        if (listCase_ == 2 &&
            list_ != com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.getDefaultInstance()) {
          list_ = com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.newBuilder((com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList) list_)
              .mergeFrom(value).buildPartial();
        } else {
          list_ = value;
        }
        onChanged();
      } else {
        if (listCase_ == 2) {
          winBuilder_.mergeFrom(value);
        } else {
          winBuilder_.setMessage(value);
        }
      }
      listCase_ = 2;
      return this;
    }
    /**
     * .RhWinActionList win = 2;
     */
    public Builder clearWin() {
      if (winBuilder_ == null) {
        if (listCase_ == 2) {
          listCase_ = 0;
          list_ = null;
          onChanged();
        }
      } else {
        if (listCase_ == 2) {
          listCase_ = 0;
          list_ = null;
        }
        winBuilder_.clear();
      }
      return this;
    }
    /**
     * .RhWinActionList win = 2;
     */
    public com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.Builder getWinBuilder() {
      return getWinFieldBuilder().getBuilder();
    }
    /**
     * .RhWinActionList win = 2;
     */
    @java.lang.Override
    public com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionListOrBuilder getWinOrBuilder() {
      if ((listCase_ == 2) && (winBuilder_ != null)) {
        return winBuilder_.getMessageOrBuilder();
      } else {
        if (listCase_ == 2) {
          return (com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList) list_;
        }
        return com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.getDefaultInstance();
      }
    }
    /**
     * .RhWinActionList win = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList, com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.Builder, com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionListOrBuilder> 
        getWinFieldBuilder() {
      if (winBuilder_ == null) {
        if (!(listCase_ == 2)) {
          list_ = com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.getDefaultInstance();
        }
        winBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList, com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList.Builder, com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionListOrBuilder>(
                (com.exactpro.th2.act.grpc.hand.rhactions.RhWinActionsMessages.RhWinActionList) list_,
                getParentForChildren(),
                isClean());
        list_ = null;
      }
      listCase_ = 2;
      onChanged();;
      return winBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:RhActionList)
  }

  // @@protoc_insertion_point(class_scope:RhActionList)
  private static final com.exactpro.th2.act.grpc.hand.RhActionList DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.exactpro.th2.act.grpc.hand.RhActionList();
  }

  public static com.exactpro.th2.act.grpc.hand.RhActionList getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public RhActionList parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new RhActionList(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.exactpro.th2.act.grpc.hand.RhActionList getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy