text:
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dataproc/v1/workflow_templates.proto

package com.google.cloud.dataproc.v1;

/**
 *
 *
 *

 * A Cloud Dataproc workflow template resource.
 *

 *
 * Protobuf type {@code google.cloud.dataproc.v1.WorkflowMetadata}
 */
public final class WorkflowMetadata extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowMetadata)
    WorkflowMetadataOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use WorkflowMetadata.newBuilder() to construct.
  private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private WorkflowMetadata() {
    template_ = "";
    version_ = 0;
    state_ = 0;
    clusterName_ = "";
    clusterUuid_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  private WorkflowMetadata(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10:
            {
              java.lang.String s = input.readStringRequireUtf8();

              template_ = s;
              break;
            }
          case 16:
            {
              version_ = input.readInt32();
              break;
            }
          case 26:
            {
              com.google.cloud.dataproc.v1.ClusterOperation.Builder subBuilder = null;
              if (createCluster_ != null) {
                subBuilder = createCluster_.toBuilder();
              }
              createCluster_ =
                  input.readMessage(
                      com.google.cloud.dataproc.v1.ClusterOperation.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(createCluster_);
                createCluster_ = subBuilder.buildPartial();
              }

              break;
            }
          case 34:
            {
              com.google.cloud.dataproc.v1.WorkflowGraph.Builder subBuilder = null;
              if (graph_ != null) {
                subBuilder = graph_.toBuilder();
              }
              graph_ =
                  input.readMessage(
                      com.google.cloud.dataproc.v1.WorkflowGraph.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(graph_);
                graph_ = subBuilder.buildPartial();
              }

              break;
            }
          case 42:
            {
              com.google.cloud.dataproc.v1.ClusterOperation.Builder subBuilder = null;
              if (deleteCluster_ != null) {
                subBuilder = deleteCluster_.toBuilder();
              }
              deleteCluster_ =
                  input.readMessage(
                      com.google.cloud.dataproc.v1.ClusterOperation.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(deleteCluster_);
                deleteCluster_ = subBuilder.buildPartial();
              }

              break;
            }
          case 48:
            {
              int rawValue = input.readEnum();

              state_ = rawValue;
              break;
            }
          case 58:
            {
              java.lang.String s = input.readStringRequireUtf8();

              clusterName_ = s;
              break;
            }
          case 66:
            {
              if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
                parameters_ =
                    com.google.protobuf.MapField.newMapField(
                        ParametersDefaultEntryHolder.defaultEntry);
                mutable_bitField0_ |= 0x00000080;
              }
              com.google.protobuf.MapEntry<java.lang.String, java.lang.String> parameters__ =
                  input.readMessage(
                      ParametersDefaultEntryHolder.defaultEntry.getParserForType(),
                      extensionRegistry);
              parameters_.getMutableMap().put(parameters__.getKey(), parameters__.getValue());
              break;
            }
          case 74:
            {
              com.google.protobuf.Timestamp.Builder subBuilder = null;
              if (startTime_ != null) {
                subBuilder = startTime_.toBuilder();
              }
              startTime_ =
                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(startTime_);
                startTime_ = subBuilder.buildPartial();
              }

              break;
            }
          case 82:
            {
              com.google.protobuf.Timestamp.Builder subBuilder = null;
              if (endTime_ != null) {
                subBuilder = endTime_.toBuilder();
              }
              endTime_ =
                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(endTime_);
                endTime_ = subBuilder.buildPartial();
              }

              break;
            }
          case 90:
            {
              java.lang.String s = input.readStringRequireUtf8();

              clusterUuid_ = s;
              break;
            }
          default:
            {
              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
        .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 8:
        return internalGetParameters();
      default:
        throw new RuntimeException("Invalid map field number: " + number);
    }
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
        .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.dataproc.v1.WorkflowMetadata.class,
            com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class);
  }

  /**
   *
   *
   *

   * The operation state.
   *

   *
   * Protobuf enum {@code google.cloud.dataproc.v1.WorkflowMetadata.State}
   */
  public enum State implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     *

     * Unused.
     *

     *
     * UNKNOWN = 0;
     */
    UNKNOWN(0),
    /**
     *
     *
     *

     * The operation has been created.
     *

     *
     * PENDING = 1;
     */
    PENDING(1),
    /**
     *
     *
     *

     * The operation is running.
     *

     *
     * RUNNING = 2;
     */
    RUNNING(2),
    /**
     *
     *
     *

     * The operation is done; either cancelled or completed.
     *

     *
     * DONE = 3;
     */
    DONE(3),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     *

     * Unused.
     *

     *
     * UNKNOWN = 0;
     */
    public static final int UNKNOWN_VALUE = 0;
    /**
     *
     *
     *

     * The operation has been created.
     *

     *
     * PENDING = 1;
     */
    public static final int PENDING_VALUE = 1;
    /**
     *
     *
     *

     * The operation is running.
     *

     *
     * RUNNING = 2;
     */
    public static final int RUNNING_VALUE = 2;
    /**
     *
     *
     *

     * The operation is done; either cancelled or completed.
     *

     *
     * DONE = 3;
     */
    public static final int DONE_VALUE = 3;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /** @deprecated Use {@link #forNumber(int)} instead. */
    @java.lang.Deprecated
    public static State valueOf(int value) {
      return forNumber(value);
    }

    public static State forNumber(int value) {
      switch (value) {
        case 0:
          return UNKNOWN;
        case 1:
          return PENDING;
        case 2:
          return RUNNING;
        case 3:
          return DONE;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<State>() {
          public State findValueByNumber(int number) {
            return State.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.dataproc.v1.WorkflowMetadata.getDescriptor().getEnumTypes().get(0);
    }

    private static final State[] VALUES = values();

    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private State(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.WorkflowMetadata.State)
  }

  private int bitField0_;
  public static final int TEMPLATE_FIELD_NUMBER = 1;
  private volatile java.lang.Object template_;
  /**
   *
   *
   *

   * Output only. The "resource name" of the template.
   *

   *
   * string template = 1;
   */
  public java.lang.String getTemplate() {
    java.lang.Object ref = template_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      template_ = s;
      return s;
    }
  }
  /**
   *
   *
   *

   * Output only. The "resource name" of the template.
   *

   *
   * string template = 1;
   */
  public com.google.protobuf.ByteString getTemplateBytes() {
    java.lang.Object ref = template_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      template_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VERSION_FIELD_NUMBER = 2;
  private int version_;
  /**
   *
   *
   *

   * Output only. The version of template at the time of
   * workflow instantiation.
   *

   *
   * int32 version = 2;
   */
  public int getVersion() {
    return version_;
  }

  public static final int CREATE_CLUSTER_FIELD_NUMBER = 3;
  private com.google.cloud.dataproc.v1.ClusterOperation createCluster_;
  /**
   *
   *
   *

   * Output only. The create cluster operation metadata.
   *

   *
   * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
   */
  public boolean hasCreateCluster() {
    return createCluster_ != null;
  }
  /**
   *
   *
   *

   * Output only. The create cluster operation metadata.
   *

   *
   * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
   */
  public com.google.cloud.dataproc.v1.ClusterOperation getCreateCluster() {
    return createCluster_ == null
        ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance()
        : createCluster_;
  }
  /**
   *
   *
   *

   * Output only. The create cluster operation metadata.
   *

   *
   * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
   */
  public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOrBuilder() {
    return getCreateCluster();
  }

  public static final int GRAPH_FIELD_NUMBER = 4;
  private com.google.cloud.dataproc.v1.WorkflowGraph graph_;
  /**
   *
   *
   *

   * Output only. The workflow graph.
   *

   *
   * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
   */
  public boolean hasGraph() {
    return graph_ != null;
  }
  /**
   *
   *
   *

   * Output only. The workflow graph.
   *

   *
   * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
   */
  public com.google.cloud.dataproc.v1.WorkflowGraph getGraph() {
    return graph_ == null
        ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance()
        : graph_;
  }
  /**
   *
   *
   *

   * Output only. The workflow graph.
   *

   *
   * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
   */
  public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() {
    return getGraph();
  }

  public static final int DELETE_CLUSTER_FIELD_NUMBER = 5;
  private com.google.cloud.dataproc.v1.ClusterOperation deleteCluster_;
  /**
   *
   *
   *

   * Output only. The delete cluster operation metadata.
   *

   *
   * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
   */
  public boolean hasDeleteCluster() {
    return deleteCluster_ != null;
  }
  /**
   *
   *
   *

   * Output only. The delete cluster operation metadata.
   *

   *
   * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
   */
  public com.google.cloud.dataproc.v1.ClusterOperation getDeleteCluster() {
    return deleteCluster_ == null
        ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance()
        : deleteCluster_;
  }
  /**
   *
   *
   *

   * Output only. The delete cluster operation metadata.
   *

   *
   * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
   */
  public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOrBuilder() {
    return getDeleteCluster();
  }

  public static final int STATE_FIELD_NUMBER = 6;
  private int state_;
  /**
   *
   *
   *

   * Output only. The workflow state.
   *

   *
   * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6;
   */
  public int getStateValue() {
    return state_;
  }
  /**
   *
   *
   *

   * Output only. The workflow state.
   *

   *
   * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6;
   */
  public com.google.cloud.dataproc.v1.WorkflowMetadata.State getState() {
    @SuppressWarnings("deprecation")
    com.google.cloud.dataproc.v1.WorkflowMetadata.State result =
        com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_);
    return result == null
        ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED
        : result;
  }

  public static final int CLUSTER_NAME_FIELD_NUMBER = 7;
  private volatile java.lang.Object clusterName_;
  /**
   *
   *
   *

   * Output only. The name of the target cluster.
   *

   *
   * string cluster_name = 7;
   */
  public java.lang.String getClusterName() {
    java.lang.Object ref = clusterName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      clusterName_ = s;
      return s;
    }
  }
  /**
   *
   *
   *

   * Output only. The name of the target cluster.
   *

   *
   * string cluster_name = 7;
   */
  public com.google.protobuf.ByteString getClusterNameBytes() {
    java.lang.Object ref = clusterName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      clusterName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PARAMETERS_FIELD_NUMBER = 8;

  private static final class ParametersDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
        com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
            com.google.cloud.dataproc.v1.WorkflowTemplatesProto
                .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> parameters_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetParameters() {
    if (parameters_ == null) {
      return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry);
    }
    return parameters_;
  }

  public int getParametersCount() {
    return internalGetParameters().getMap().size();
  }
  /**
   *
   *
   *

   * Map from parameter names to values that were used for those parameters.
   *

   *
   * map<string, string> parameters = 8;
   */
  public boolean containsParameters(java.lang.String key) {
    if (key == null) {
      throw new java.lang.NullPointerException();
    }
    return internalGetParameters().getMap().containsKey(key);
  }
  /** Use {@link #getParametersMap()} instead. */
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getParameters() {
    return getParametersMap();
  }
  /**
   *
   *
   *

   * Map from parameter names to values that were used for those parameters.
   *

   *
   * map<string, string> parameters = 8;
   */
  public java.util.Map<java.lang.String, java.lang.String> getParametersMap() {
    return internalGetParameters().getMap();
  }
  /**
   *
   *
   *

   * Map from parameter names to values that were used for those parameters.
   *

   *
   * map<string, string> parameters = 8;
   */
  public java.lang.String getParametersOrDefault(
      java.lang.String key, java.lang.String defaultValue) {
    if (key == null) {
      throw new java.lang.NullPointerException();
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetParameters().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   *

   * Map from parameter names to values that were used for those parameters.
   *

   *
   * map<string, string> parameters = 8;
   */
  public java.lang.String getParametersOrThrow(java.lang.String key) {
    if (key == null) {
      throw new java.lang.NullPointerException();
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetParameters().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int START_TIME_FIELD_NUMBER = 9;
  private com.google.protobuf.Timestamp startTime_;
  /**
   *
   *
   *

   * Output only. Workflow start time.
   *

   *
   * .google.protobuf.Timestamp start_time = 9;
   */
  public boolean hasStartTime() {
    return startTime_ != null;
  }
  /**
   *
   *
   *

   * Output only. Workflow start time.
   *

   *
   * .google.protobuf.Timestamp start_time = 9;
   */
  public com.google.protobuf.Timestamp getStartTime() {
    return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
  }
  /**
   *
   *
   *

   * Output only. Workflow start time.
   *

   *
   * .google.protobuf.Timestamp start_time = 9;
   */
  public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    return getStartTime();
  }

  public static final int END_TIME_FIELD_NUMBER = 10;
  private com.google.protobuf.Timestamp endTime_;
  /**
   *
   *
   *

   * Output only. Workflow end time.
   *

   *
   * .google.protobuf.Timestamp end_time = 10;
   */
  public boolean hasEndTime() {
    return endTime_ != null;
  }
  /**
   *
   *
   *

   * Output only. Workflow end time.
   *

   *
   * .google.protobuf.Timestamp end_time = 10;
   */
  public com.google.protobuf.Timestamp getEndTime() {
    return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
  }
  /**
   *
   *
   *

   * Output only. Workflow end time.
   *

   *
   * .google.protobuf.Timestamp end_time = 10;
   */
  public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    return getEndTime();
  }

  public static final int CLUSTER_UUID_FIELD_NUMBER = 11;
  private volatile java.lang.Object clusterUuid_;
  /**
   *
   *
   *

   * Output only. The UUID of target cluster.
   *

   *
   * string cluster_uuid = 11;
   */
  public java.lang.String getClusterUuid() {
    java.lang.Object ref = clusterUuid_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      clusterUuid_ = s;
      return s;
    }
  }
  /**
   *
   *
   *

   * Output only. The UUID of target cluster.
   *

   *
   * string cluster_uuid = 11;
   */
  public com.google.protobuf.ByteString getClusterUuidBytes() {
    java.lang.Object ref = clusterUuid_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      clusterUuid_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!getTemplateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, template_);
    }
    if (version_ != 0) {
      output.writeInt32(2, version_);
    }
    if (createCluster_ != null) {
      output.writeMessage(3, getCreateCluster());
    }
    if (graph_ != null) {
      output.writeMessage(4, getGraph());
    }
    if (deleteCluster_ != null) {
      output.writeMessage(5, getDeleteCluster());
    }
    if (state_ != com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNKNOWN.getNumber()) {
      output.writeEnum(6, state_);
    }
    if (!getClusterNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterName_);
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 8);
    if (startTime_ != null) {
      output.writeMessage(9, getStartTime());
    }
    if (endTime_ != null) {
      output.writeMessage(10, getEndTime());
    }
    if (!getClusterUuidBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, clusterUuid_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getTemplateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, template_);
    }
    if (version_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_);
    }
    if (createCluster_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateCluster());
    }
    if (graph_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGraph());
    }
    if (deleteCluster_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeleteCluster());
    }
    if (state_ != com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNKNOWN.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_);
    }
    if (!getClusterNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterName_);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetParameters().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> parameters__ =
          ParametersDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, parameters__);
    }
    if (startTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStartTime());
    }
    if (endTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime());
    }
    if (!getClusterUuidBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, clusterUuid_);
    }
    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.google.cloud.dataproc.v1.WorkflowMetadata)) {
      return super.equals(obj);
    }
    com.google.cloud.dataproc.v1.WorkflowMetadata other =
        (com.google.cloud.dataproc.v1.WorkflowMetadata) obj;

    boolean result = true;
    result = result && getTemplate().equals(other.getTemplate());
    result = result && (getVersion() == other.getVersion());
    result = result && (hasCreateCluster() == other.hasCreateCluster());
    if (hasCreateCluster()) {
      result = result && getCreateCluster().equals(other.getCreateCluster());
    }
    result = result && (hasGraph() == other.hasGraph());
    if (hasGraph()) {
      result = result && getGraph().equals(other.getGraph());
    }
    result = result && (hasDeleteCluster() == other.hasDeleteCluster());
    if (hasDeleteCluster()) {
      result = result && getDeleteCluster().equals(other.getDeleteCluster());
    }
    result = result && state_ == other.state_;
    result = result && getClusterName().equals(other.getClusterName());
    result = result && internalGetParameters().equals(other.internalGetParameters());
    result = result && (hasStartTime() == other.hasStartTime());
    if (hasStartTime()) {
      result = result && getStartTime().equals(other.getStartTime());
    }
    result = result && (hasEndTime() == other.hasEndTime());
    if (hasEndTime()) {
      result = result && getEndTime().equals(other.getEndTime());
    }
    result = result && getClusterUuid().equals(other.getClusterUuid());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + TEMPLATE_FIELD_NUMBER;
    hash = (53 * hash) + getTemplate().hashCode();
    hash = (37 * hash) + VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getVersion();
    if (hasCreateCluster()) {
      hash = (37 * hash) + CREATE_CLUSTER_FIELD_NUMBER;
      hash = (53 * hash) + getCreateCluster().hashCode();
    }
    if (hasGraph()) {
      hash = (37 * hash) + GRAPH_FIELD_NUMBER;
      hash = (53 * hash) + getGraph().hashCode();
    }
    if (hasDeleteCluster()) {
      hash = (37 * hash) + DELETE_CLUSTER_FIELD_NUMBER;
      hash = (53 * hash) + getDeleteCluster().hashCode();
    }
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getClusterName().hashCode();
    if (!internalGetParameters().getMap().isEmpty()) {
      hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetParameters().hashCode();
    }
    if (hasStartTime()) {
      hash = (37 * hash) + START_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getStartTime().hashCode();
    }
    if (hasEndTime()) {
      hash = (37 * hash) + END_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getEndTime().hashCode();
    }
    hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER;
    hash = (53 * hash) + getClusterUuid().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.dataproc.v1.WorkflowMetadata 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.google.cloud.dataproc.v1.WorkflowMetadata parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.dataproc.v1.WorkflowMetadata 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.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.dataproc.v1.WorkflowMetadata 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.google.cloud.dataproc.v1.WorkflowMetadata 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;
  }
  /**
   *
   *
   *

   * A Cloud Dataproc workflow template resource.
   *

   *
   * Protobuf type {@code google.cloud.dataproc.v1.WorkflowMetadata}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowMetadata)
      com.google.cloud.dataproc.v1.WorkflowMetadataOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
          .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 8:
          return internalGetParameters();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 8:
          return internalGetMutableParameters();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
          .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataproc.v1.WorkflowMetadata.class,
              com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class);
    }

    // Construct using com.google.cloud.dataproc.v1.WorkflowMetadata.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();
      template_ = "";

      version_ = 0;

      if (createClusterBuilder_ == null) {
        createCluster_ = null;
      } else {
        createCluster_ = null;
        createClusterBuilder_ = null;
      }
      if (graphBuilder_ == null) {
        graph_ = null;
      } else {
        graph_ = null;
        graphBuilder_ = null;
      }
      if (deleteClusterBuilder_ == null) {
        deleteCluster_ = null;
      } else {
        deleteCluster_ = null;
        deleteClusterBuilder_ = null;
      }
      state_ = 0;

      clusterName_ = "";

      internalGetMutableParameters().clear();
      if (startTimeBuilder_ == null) {
        startTime_ = null;
      } else {
        startTime_ = null;
        startTimeBuilder_ = null;
      }
      if (endTimeBuilder_ == null) {
        endTime_ = null;
      } else {
        endTime_ = null;
        endTimeBuilder_ = null;
      }
      clusterUuid_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
          .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.dataproc.v1.WorkflowMetadata getDefaultInstanceForType() {
      return com.google.cloud.dataproc.v1.WorkflowMetadata.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.dataproc.v1.WorkflowMetadata build() {
      com.google.cloud.dataproc.v1.WorkflowMetadata result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.dataproc.v1.WorkflowMetadata buildPartial() {
      com.google.cloud.dataproc.v1.WorkflowMetadata result =
          new com.google.cloud.dataproc.v1.WorkflowMetadata(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.template_ = template_;
      result.version_ = version_;
      if (createClusterBuilder_ == null) {
        result.createCluster_ = createCluster_;
      } else {
        result.createCluster_ = createClusterBuilder_.build();
      }
      if (graphBuilder_ == null) {
        result.graph_ = graph_;
      } else {
        result.graph_ = graphBuilder_.build();
      }
      if (deleteClusterBuilder_ == null) {
        result.deleteCluster_ = deleteCluster_;
      } else {
        result.deleteCluster_ = deleteClusterBuilder_.build();
      }
      result.state_ = state_;
      result.clusterName_ = clusterName_;
      result.parameters_ = internalGetParameters();
      result.parameters_.makeImmutable();
      if (startTimeBuilder_ == null) {
        result.startTime_ = startTime_;
      } else {
        result.startTime_ = startTimeBuilder_.build();
      }
      if (endTimeBuilder_ == null) {
        result.endTime_ = endTime_;
      } else {
        result.endTime_ = endTimeBuilder_.build();
      }
      result.clusterUuid_ = clusterUuid_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return (Builder) super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.dataproc.v1.WorkflowMetadata) {
        return mergeFrom((com.google.cloud.dataproc.v1.WorkflowMetadata) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowMetadata other) {
      if (other == com.google.cloud.dataproc.v1.WorkflowMetadata.getDefaultInstance()) return this;
      if (!other.getTemplate().isEmpty()) {
        template_ = other.template_;
        onChanged();
      }
      if (other.getVersion() != 0) {
        setVersion(other.getVersion());
      }
      if (other.hasCreateCluster()) {
        mergeCreateCluster(other.getCreateCluster());
      }
      if (other.hasGraph()) {
        mergeGraph(other.getGraph());
      }
      if (other.hasDeleteCluster()) {
        mergeDeleteCluster(other.getDeleteCluster());
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (!other.getClusterName().isEmpty()) {
        clusterName_ = other.clusterName_;
        onChanged();
      }
      internalGetMutableParameters().mergeFrom(other.internalGetParameters());
      if (other.hasStartTime()) {
        mergeStartTime(other.getStartTime());
      }
      if (other.hasEndTime()) {
        mergeEndTime(other.getEndTime());
      }
      if (!other.getClusterUuid().isEmpty()) {
        clusterUuid_ = other.clusterUuid_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.cloud.dataproc.v1.WorkflowMetadata parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.cloud.dataproc.v1.WorkflowMetadata) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int bitField0_;

    private java.lang.Object template_ = "";
    /**
     *
     *
     *

     * Output only. The "resource name" of the template.
     *

     *
     * string template = 1;
     */
    public java.lang.String getTemplate() {
      java.lang.Object ref = template_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        template_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     *

     * Output only. The "resource name" of the template.
     *

     *
     * string template = 1;
     */
    public com.google.protobuf.ByteString getTemplateBytes() {
      java.lang.Object ref = template_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        template_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     *

     * Output only. The "resource name" of the template.
     *

     *
     * string template = 1;
     */
    public Builder setTemplate(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      template_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The "resource name" of the template.
     *

     *
     * string template = 1;
     */
    public Builder clearTemplate() {

      template_ = getDefaultInstance().getTemplate();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The "resource name" of the template.
     *

     *
     * string template = 1;
     */
    public Builder setTemplateBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      template_ = value;
      onChanged();
      return this;
    }

    private int version_;
    /**
     *
     *
     *

     * Output only. The version of template at the time of
     * workflow instantiation.
     *

     *
     * int32 version = 2;
     */
    public int getVersion() {
      return version_;
    }
    /**
     *
     *
     *

     * Output only. The version of template at the time of
     * workflow instantiation.
     *

     *
     * int32 version = 2;
     */
    public Builder setVersion(int value) {

      version_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The version of template at the time of
     * workflow instantiation.
     *

     *
     * int32 version = 2;
     */
    public Builder clearVersion() {

      version_ = 0;
      onChanged();
      return this;
    }

    private com.google.cloud.dataproc.v1.ClusterOperation createCluster_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataproc.v1.ClusterOperation,
            com.google.cloud.dataproc.v1.ClusterOperation.Builder,
            com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>
        createClusterBuilder_;
    /**
     *
     *
     *

     * Output only. The create cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
     */
    public boolean hasCreateCluster() {
      return createClusterBuilder_ != null || createCluster_ != null;
    }
    /**
     *
     *
     *

     * Output only. The create cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
     */
    public com.google.cloud.dataproc.v1.ClusterOperation getCreateCluster() {
      if (createClusterBuilder_ == null) {
        return createCluster_ == null
            ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance()
            : createCluster_;
      } else {
        return createClusterBuilder_.getMessage();
      }
    }
    /**
     *
     *
     *

     * Output only. The create cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
     */
    public Builder setCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation value) {
      if (createClusterBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createCluster_ = value;
        onChanged();
      } else {
        createClusterBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The create cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
     */
    public Builder setCreateCluster(
        com.google.cloud.dataproc.v1.ClusterOperation.Builder builderForValue) {
      if (createClusterBuilder_ == null) {
        createCluster_ = builderForValue.build();
        onChanged();
      } else {
        createClusterBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The create cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
     */
    public Builder mergeCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation value) {
      if (createClusterBuilder_ == null) {
        if (createCluster_ != null) {
          createCluster_ =
              com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(createCluster_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          createCluster_ = value;
        }
        onChanged();
      } else {
        createClusterBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The create cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
     */
    public Builder clearCreateCluster() {
      if (createClusterBuilder_ == null) {
        createCluster_ = null;
        onChanged();
      } else {
        createCluster_ = null;
        createClusterBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The create cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
     */
    public com.google.cloud.dataproc.v1.ClusterOperation.Builder getCreateClusterBuilder() {

      onChanged();
      return getCreateClusterFieldBuilder().getBuilder();
    }
    /**
     *
     *
     *

     * Output only. The create cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
     */
    public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOrBuilder() {
      if (createClusterBuilder_ != null) {
        return createClusterBuilder_.getMessageOrBuilder();
      } else {
        return createCluster_ == null
            ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance()
            : createCluster_;
      }
    }
    /**
     *
     *
     *

     * Output only. The create cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataproc.v1.ClusterOperation,
            com.google.cloud.dataproc.v1.ClusterOperation.Builder,
            com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>
        getCreateClusterFieldBuilder() {
      if (createClusterBuilder_ == null) {
        createClusterBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dataproc.v1.ClusterOperation,
                com.google.cloud.dataproc.v1.ClusterOperation.Builder,
                com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>(
                getCreateCluster(), getParentForChildren(), isClean());
        createCluster_ = null;
      }
      return createClusterBuilder_;
    }

    private com.google.cloud.dataproc.v1.WorkflowGraph graph_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataproc.v1.WorkflowGraph,
            com.google.cloud.dataproc.v1.WorkflowGraph.Builder,
            com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder>
        graphBuilder_;
    /**
     *
     *
     *

     * Output only. The workflow graph.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
     */
    public boolean hasGraph() {
      return graphBuilder_ != null || graph_ != null;
    }
    /**
     *
     *
     *

     * Output only. The workflow graph.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
     */
    public com.google.cloud.dataproc.v1.WorkflowGraph getGraph() {
      if (graphBuilder_ == null) {
        return graph_ == null
            ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance()
            : graph_;
      } else {
        return graphBuilder_.getMessage();
      }
    }
    /**
     *
     *
     *

     * Output only. The workflow graph.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
     */
    public Builder setGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) {
      if (graphBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        graph_ = value;
        onChanged();
      } else {
        graphBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The workflow graph.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
     */
    public Builder setGraph(com.google.cloud.dataproc.v1.WorkflowGraph.Builder builderForValue) {
      if (graphBuilder_ == null) {
        graph_ = builderForValue.build();
        onChanged();
      } else {
        graphBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The workflow graph.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
     */
    public Builder mergeGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) {
      if (graphBuilder_ == null) {
        if (graph_ != null) {
          graph_ =
              com.google.cloud.dataproc.v1.WorkflowGraph.newBuilder(graph_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          graph_ = value;
        }
        onChanged();
      } else {
        graphBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The workflow graph.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
     */
    public Builder clearGraph() {
      if (graphBuilder_ == null) {
        graph_ = null;
        onChanged();
      } else {
        graph_ = null;
        graphBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The workflow graph.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
     */
    public com.google.cloud.dataproc.v1.WorkflowGraph.Builder getGraphBuilder() {

      onChanged();
      return getGraphFieldBuilder().getBuilder();
    }
    /**
     *
     *
     *

     * Output only. The workflow graph.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
     */
    public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() {
      if (graphBuilder_ != null) {
        return graphBuilder_.getMessageOrBuilder();
      } else {
        return graph_ == null
            ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance()
            : graph_;
      }
    }
    /**
     *
     *
     *

     * Output only. The workflow graph.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowGraph graph = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataproc.v1.WorkflowGraph,
            com.google.cloud.dataproc.v1.WorkflowGraph.Builder,
            com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder>
        getGraphFieldBuilder() {
      if (graphBuilder_ == null) {
        graphBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dataproc.v1.WorkflowGraph,
                com.google.cloud.dataproc.v1.WorkflowGraph.Builder,
                com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder>(
                getGraph(), getParentForChildren(), isClean());
        graph_ = null;
      }
      return graphBuilder_;
    }

    private com.google.cloud.dataproc.v1.ClusterOperation deleteCluster_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataproc.v1.ClusterOperation,
            com.google.cloud.dataproc.v1.ClusterOperation.Builder,
            com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>
        deleteClusterBuilder_;
    /**
     *
     *
     *

     * Output only. The delete cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
     */
    public boolean hasDeleteCluster() {
      return deleteClusterBuilder_ != null || deleteCluster_ != null;
    }
    /**
     *
     *
     *

     * Output only. The delete cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
     */
    public com.google.cloud.dataproc.v1.ClusterOperation getDeleteCluster() {
      if (deleteClusterBuilder_ == null) {
        return deleteCluster_ == null
            ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance()
            : deleteCluster_;
      } else {
        return deleteClusterBuilder_.getMessage();
      }
    }
    /**
     *
     *
     *

     * Output only. The delete cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
     */
    public Builder setDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation value) {
      if (deleteClusterBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        deleteCluster_ = value;
        onChanged();
      } else {
        deleteClusterBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The delete cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
     */
    public Builder setDeleteCluster(
        com.google.cloud.dataproc.v1.ClusterOperation.Builder builderForValue) {
      if (deleteClusterBuilder_ == null) {
        deleteCluster_ = builderForValue.build();
        onChanged();
      } else {
        deleteClusterBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The delete cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
     */
    public Builder mergeDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation value) {
      if (deleteClusterBuilder_ == null) {
        if (deleteCluster_ != null) {
          deleteCluster_ =
              com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(deleteCluster_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          deleteCluster_ = value;
        }
        onChanged();
      } else {
        deleteClusterBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The delete cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
     */
    public Builder clearDeleteCluster() {
      if (deleteClusterBuilder_ == null) {
        deleteCluster_ = null;
        onChanged();
      } else {
        deleteCluster_ = null;
        deleteClusterBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. The delete cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
     */
    public com.google.cloud.dataproc.v1.ClusterOperation.Builder getDeleteClusterBuilder() {

      onChanged();
      return getDeleteClusterFieldBuilder().getBuilder();
    }
    /**
     *
     *
     *

     * Output only. The delete cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
     */
    public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOrBuilder() {
      if (deleteClusterBuilder_ != null) {
        return deleteClusterBuilder_.getMessageOrBuilder();
      } else {
        return deleteCluster_ == null
            ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance()
            : deleteCluster_;
      }
    }
    /**
     *
     *
     *

     * Output only. The delete cluster operation metadata.
     *

     *
     * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataproc.v1.ClusterOperation,
            com.google.cloud.dataproc.v1.ClusterOperation.Builder,
            com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>
        getDeleteClusterFieldBuilder() {
      if (deleteClusterBuilder_ == null) {
        deleteClusterBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dataproc.v1.ClusterOperation,
                com.google.cloud.dataproc.v1.ClusterOperation.Builder,
                com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>(
                getDeleteCluster(), getParentForChildren(), isClean());
        deleteCluster_ = null;
      }
      return deleteClusterBuilder_;
    }

    private int state_ = 0;
    /**
     *
     *
     *

     * Output only. The workflow state.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6;
     */
    public int getStateValue() {
      return state_;
    }
    /**
     *
     *
     *

     * Output only. The workflow state.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6;
     */
    public Builder setStateValue(int value) {
      state_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The workflow state.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6;
     */
    public com.google.cloud.dataproc.v1.WorkflowMetadata.State getState() {
      @SuppressWarnings("deprecation")
      com.google.cloud.dataproc.v1.WorkflowMetadata.State result =
          com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_);
      return result == null
          ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     *

     * Output only. The workflow state.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6;
     */
    public Builder setState(com.google.cloud.dataproc.v1.WorkflowMetadata.State value) {
      if (value == null) {
        throw new NullPointerException();
      }

      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The workflow state.
     *

     *
     * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6;
     */
    public Builder clearState() {

      state_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object clusterName_ = "";
    /**
     *
     *
     *

     * Output only. The name of the target cluster.
     *

     *
     * string cluster_name = 7;
     */
    public java.lang.String getClusterName() {
      java.lang.Object ref = clusterName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        clusterName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     *

     * Output only. The name of the target cluster.
     *

     *
     * string cluster_name = 7;
     */
    public com.google.protobuf.ByteString getClusterNameBytes() {
      java.lang.Object ref = clusterName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        clusterName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     *

     * Output only. The name of the target cluster.
     *

     *
     * string cluster_name = 7;
     */
    public Builder setClusterName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      clusterName_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The name of the target cluster.
     *

     *
     * string cluster_name = 7;
     */
    public Builder clearClusterName() {

      clusterName_ = getDefaultInstance().getClusterName();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The name of the target cluster.
     *

     *
     * string cluster_name = 7;
     */
    public Builder setClusterNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      clusterName_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> parameters_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetParameters() {
      if (parameters_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            ParametersDefaultEntryHolder.defaultEntry);
      }
      return parameters_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableParameters() {
      onChanged();
      ;
      if (parameters_ == null) {
        parameters_ =
            com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry);
      }
      if (!parameters_.isMutable()) {
        parameters_ = parameters_.copy();
      }
      return parameters_;
    }

    public int getParametersCount() {
      return internalGetParameters().getMap().size();
    }
    /**
     *
     *
     *

     * Map from parameter names to values that were used for those parameters.
     *

     *
     * map<string, string> parameters = 8;
     */
    public boolean containsParameters(java.lang.String key) {
      if (key == null) {
        throw new java.lang.NullPointerException();
      }
      return internalGetParameters().getMap().containsKey(key);
    }
    /** Use {@link #getParametersMap()} instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getParameters() {
      return getParametersMap();
    }
    /**
     *
     *
     *

     * Map from parameter names to values that were used for those parameters.
     *

     *
     * map<string, string> parameters = 8;
     */
    public java.util.Map<java.lang.String, java.lang.String> getParametersMap() {
      return internalGetParameters().getMap();
    }
    /**
     *
     *
     *

     * Map from parameter names to values that were used for those parameters.
     *

     *
     * map<string, string> parameters = 8;
     */
    public java.lang.String getParametersOrDefault(
        java.lang.String key, java.lang.String defaultValue) {
      if (key == null) {
        throw new java.lang.NullPointerException();
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetParameters().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     *

     * Map from parameter names to values that were used for those parameters.
     *

     *
     * map<string, string> parameters = 8;
     */
    public java.lang.String getParametersOrThrow(java.lang.String key) {
      if (key == null) {
        throw new java.lang.NullPointerException();
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetParameters().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearParameters() {
      internalGetMutableParameters().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     *

     * Map from parameter names to values that were used for those parameters.
     *

     *
     * map<string, string> parameters = 8;
     */
    public Builder removeParameters(java.lang.String key) {
      if (key == null) {
        throw new java.lang.NullPointerException();
      }
      internalGetMutableParameters().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableParameters() {
      return internalGetMutableParameters().getMutableMap();
    }
    /**
     *
     *
     *

     * Map from parameter names to values that were used for those parameters.
     *

     *
     * map<string, string> parameters = 8;
     */
    public Builder putParameters(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new java.lang.NullPointerException();
      }
      if (value == null) {
        throw new java.lang.NullPointerException();
      }
      internalGetMutableParameters().getMutableMap().put(key, value);
      return this;
    }
    /**
     *
     *
     *

     * Map from parameter names to values that were used for those parameters.
     *

     *
     * map<string, string> parameters = 8;
     */
    public Builder putAllParameters(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableParameters().getMutableMap().putAll(values);
      return this;
    }

    private com.google.protobuf.Timestamp startTime_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        startTimeBuilder_;
    /**
     *
     *
     *

     * Output only. Workflow start time.
     *

     *
     * .google.protobuf.Timestamp start_time = 9;
     */
    public boolean hasStartTime() {
      return startTimeBuilder_ != null || startTime_ != null;
    }
    /**
     *
     *
     *

     * Output only. Workflow start time.
     *

     *
     * .google.protobuf.Timestamp start_time = 9;
     */
    public com.google.protobuf.Timestamp getStartTime() {
      if (startTimeBuilder_ == null) {
        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
      } else {
        return startTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     *

     * Output only. Workflow start time.
     *

     *
     * .google.protobuf.Timestamp start_time = 9;
     */
    public Builder setStartTime(com.google.protobuf.Timestamp value) {
      if (startTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        startTime_ = value;
        onChanged();
      } else {
        startTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. Workflow start time.
     *

     *
     * .google.protobuf.Timestamp start_time = 9;
     */
    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (startTimeBuilder_ == null) {
        startTime_ = builderForValue.build();
        onChanged();
      } else {
        startTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. Workflow start time.
     *

     *
     * .google.protobuf.Timestamp start_time = 9;
     */
    public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
      if (startTimeBuilder_ == null) {
        if (startTime_ != null) {
          startTime_ =
              com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
        } else {
          startTime_ = value;
        }
        onChanged();
      } else {
        startTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. Workflow start time.
     *

     *
     * .google.protobuf.Timestamp start_time = 9;
     */
    public Builder clearStartTime() {
      if (startTimeBuilder_ == null) {
        startTime_ = null;
        onChanged();
      } else {
        startTime_ = null;
        startTimeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. Workflow start time.
     *

     *
     * .google.protobuf.Timestamp start_time = 9;
     */
    public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {

      onChanged();
      return getStartTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     *

     * Output only. Workflow start time.
     *

     *
     * .google.protobuf.Timestamp start_time = 9;
     */
    public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      if (startTimeBuilder_ != null) {
        return startTimeBuilder_.getMessageOrBuilder();
      } else {
        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
      }
    }
    /**
     *
     *
     *

     * Output only. Workflow start time.
     *

     *
     * .google.protobuf.Timestamp start_time = 9;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getStartTimeFieldBuilder() {
      if (startTimeBuilder_ == null) {
        startTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getStartTime(), getParentForChildren(), isClean());
        startTime_ = null;
      }
      return startTimeBuilder_;
    }

    private com.google.protobuf.Timestamp endTime_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        endTimeBuilder_;
    /**
     *
     *
     *

     * Output only. Workflow end time.
     *

     *
     * .google.protobuf.Timestamp end_time = 10;
     */
    public boolean hasEndTime() {
      return endTimeBuilder_ != null || endTime_ != null;
    }
    /**
     *
     *
     *

     * Output only. Workflow end time.
     *

     *
     * .google.protobuf.Timestamp end_time = 10;
     */
    public com.google.protobuf.Timestamp getEndTime() {
      if (endTimeBuilder_ == null) {
        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
      } else {
        return endTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     *

     * Output only. Workflow end time.
     *

     *
     * .google.protobuf.Timestamp end_time = 10;
     */
    public Builder setEndTime(com.google.protobuf.Timestamp value) {
      if (endTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        endTime_ = value;
        onChanged();
      } else {
        endTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. Workflow end time.
     *

     *
     * .google.protobuf.Timestamp end_time = 10;
     */
    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (endTimeBuilder_ == null) {
        endTime_ = builderForValue.build();
        onChanged();
      } else {
        endTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. Workflow end time.
     *

     *
     * .google.protobuf.Timestamp end_time = 10;
     */
    public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
      if (endTimeBuilder_ == null) {
        if (endTime_ != null) {
          endTime_ =
              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
        } else {
          endTime_ = value;
        }
        onChanged();
      } else {
        endTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. Workflow end time.
     *

     *
     * .google.protobuf.Timestamp end_time = 10;
     */
    public Builder clearEndTime() {
      if (endTimeBuilder_ == null) {
        endTime_ = null;
        onChanged();
      } else {
        endTime_ = null;
        endTimeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     *

     * Output only. Workflow end time.
     *

     *
     * .google.protobuf.Timestamp end_time = 10;
     */
    public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {

      onChanged();
      return getEndTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     *

     * Output only. Workflow end time.
     *

     *
     * .google.protobuf.Timestamp end_time = 10;
     */
    public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      if (endTimeBuilder_ != null) {
        return endTimeBuilder_.getMessageOrBuilder();
      } else {
        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
      }
    }
    /**
     *
     *
     *

     * Output only. Workflow end time.
     *

     *
     * .google.protobuf.Timestamp end_time = 10;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getEndTimeFieldBuilder() {
      if (endTimeBuilder_ == null) {
        endTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getEndTime(), getParentForChildren(), isClean());
        endTime_ = null;
      }
      return endTimeBuilder_;
    }

    private java.lang.Object clusterUuid_ = "";
    /**
     *
     *
     *

     * Output only. The UUID of target cluster.
     *

     *
     * string cluster_uuid = 11;
     */
    public java.lang.String getClusterUuid() {
      java.lang.Object ref = clusterUuid_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        clusterUuid_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     *

     * Output only. The UUID of target cluster.
     *

     *
     * string cluster_uuid = 11;
     */
    public com.google.protobuf.ByteString getClusterUuidBytes() {
      java.lang.Object ref = clusterUuid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        clusterUuid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     *

     * Output only. The UUID of target cluster.
     *

     *
     * string cluster_uuid = 11;
     */
    public Builder setClusterUuid(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      clusterUuid_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The UUID of target cluster.
     *

     *
     * string cluster_uuid = 11;
     */
    public Builder clearClusterUuid() {

      clusterUuid_ = getDefaultInstance().getClusterUuid();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Output only. The UUID of target cluster.
     *

     *
     * string cluster_uuid = 11;
     */
    public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      clusterUuid_ = value;
      onChanged();
      return this;
    }

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

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

    // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.WorkflowMetadata)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowMetadata)
  private static final com.google.cloud.dataproc.v1.WorkflowMetadata DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowMetadata();
  }

  public static com.google.cloud.dataproc.v1.WorkflowMetadata getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.google.cloud.dataproc.v1.WorkflowMetadata getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}


text:
#ifndef MediaControlElements_h
#define MediaControlElements_h

#include "core/html/shadow/MediaControlElementTypes.h"

namespace blink {

// ----------------------------

class MediaControlPanelElement final : public MediaControlDivElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlPanelElement> create(MediaControls&);

    void setIsDisplayed(bool);

    void makeOpaque();
    void makeTransparent();

private:
    explicit MediaControlPanelElement(MediaControls&);

    void defaultEventHandler(Event*) override;
    bool keepEventInNode(Event*) override;

    void startTimer();
    void stopTimer();
    void transitionTimerFired(Timer<MediaControlPanelElement>*);
    void didBecomeVisible();

    bool m_isDisplayed;
    bool m_opaque;

    Timer<MediaControlPanelElement> m_transitionTimer;
};

// ----------------------------

class MediaControlPanelEnclosureElement final : public MediaControlDivElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlPanelEnclosureElement> create(MediaControls&);

private:
    explicit MediaControlPanelEnclosureElement(MediaControls&);
};

// ----------------------------

class MediaControlOverlayEnclosureElement final : public MediaControlDivElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlOverlayEnclosureElement> create(MediaControls&);

private:
    explicit MediaControlOverlayEnclosureElement(MediaControls&);
    void* preDispatchEventHandler(Event*) override;
};

// ----------------------------

class MediaControlMuteButtonElement final : public MediaControlInputElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlMuteButtonElement> create(MediaControls&);

    bool willRespondToMouseClickEvents() override { return true; }
    void updateDisplayType() override;

private:
    explicit MediaControlMuteButtonElement(MediaControls&);

    void defaultEventHandler(Event*) override;
};

// ----------------------------

class MediaControlPlayButtonElement final : public MediaControlInputElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlPlayButtonElement> create(MediaControls&);

    bool willRespondToMouseClickEvents() override { return true; }
    void updateDisplayType() override;

private:
    explicit MediaControlPlayButtonElement(MediaControls&);

    void defaultEventHandler(Event*) override;
};

// ----------------------------

class MediaControlOverlayPlayButtonElement final : public MediaControlInputElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlOverlayPlayButtonElement> create(MediaControls&);

    void updateDisplayType() override;

private:
    explicit MediaControlOverlayPlayButtonElement(MediaControls&);

    void defaultEventHandler(Event*) override;
    bool keepEventInNode(Event*) override;
};

// ----------------------------

class MediaControlToggleClosedCaptionsButtonElement final : public MediaControlInputElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlToggleClosedCaptionsButtonElement> create(MediaControls&);

    bool willRespondToMouseClickEvents() override { return true; }

    void updateDisplayType() override;

private:
    explicit MediaControlToggleClosedCaptionsButtonElement(MediaControls&);

    void defaultEventHandler(Event*) override;
};

// ----------------------------

class MediaControlTimelineElement final : public MediaControlInputElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlTimelineElement> create(MediaControls&);

    bool willRespondToMouseClickEvents() override;

    // FIXME: An "earliest possible position" will be needed once that concept
    // is supported by HTMLMediaElement, see https://crbug.com/137275
    void setPosition(double);
    void setDuration(double);

private:
    explicit MediaControlTimelineElement(MediaControls&);

    void defaultEventHandler(Event*) override;
    bool keepEventInNode(Event*) override;
};

// ----------------------------

class MediaControlFullscreenButtonElement final : public MediaControlInputElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlFullscreenButtonElement> create(MediaControls&);

    bool willRespondToMouseClickEvents() override { return true; }

    void setIsFullscreen(bool);

private:
    explicit MediaControlFullscreenButtonElement(MediaControls&);

    void defaultEventHandler(Event*) override;
};

// ----------------------------

class MediaControlCastButtonElement final : public MediaControlInputElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlCastButtonElement> create(MediaControls&, bool isOverlayButton);

    bool willRespondToMouseClickEvents() override { return true; }

    void setIsPlayingRemotely(bool);

    // This will show a cast button if it is not covered by another element.
    // This MUST be called for cast button elements that are overlay elements.
    void tryShowOverlay();

private:
    explicit MediaControlCastButtonElement(MediaControls&, bool isOverlayButton);

    const AtomicString& shadowPseudoId() const override;
    void defaultEventHandler(Event*) override;
    bool keepEventInNode(Event*) override;

    bool m_isOverlayButton;

    // This is used for UMA histogram (Cast.Sender.Overlay). New values should
    // be appended only and must be added before |Count|.
    enum class CastOverlayMetrics {
        Created = 0,
        Shown,
        Clicked,
        Count // Keep last.
    };
    void recordMetrics(CastOverlayMetrics);

    // UMA related boolean. They are used to prevent counting something twice
    // for the same media element.
    bool m_clickUseCounted = false;
    bool m_showUseCounted = false;
};

// ----------------------------

class MediaControlVolumeSliderElement final : public MediaControlInputElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlVolumeSliderElement> create(MediaControls&);

    bool willRespondToMouseMoveEvents() override;
    bool willRespondToMouseClickEvents() override;
    void setVolume(double);

private:
    explicit MediaControlVolumeSliderElement(MediaControls&);

    void defaultEventHandler(Event*) override;
    bool keepEventInNode(Event*) override;
};

// ----------------------------

class MediaControlTimeRemainingDisplayElement final : public MediaControlTimeDisplayElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlTimeRemainingDisplayElement> create(MediaControls&);

private:
    explicit MediaControlTimeRemainingDisplayElement(MediaControls&);
};

// ----------------------------

class MediaControlCurrentTimeDisplayElement final : public MediaControlTimeDisplayElement {
public:
    static PassRefPtrWillBeRawPtr<MediaControlCurrentTimeDisplayElement> create(MediaControls&);

private:
    explicit MediaControlCurrentTimeDisplayElement(MediaControls&);
};

} // namespace blink

#endif // MediaControlElements_h

redpajama_set_name: RedPajamaGithub


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Phragmidium asperum Wallr.

### Remarks
null


text:
<?php

namespace PHPExiftool\Driver\Tag\XMPIptcExt;

use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;

/**
 * @ExclusionPolicy("all")
 */
class ArtworkOrObject extends AbstractTag
{

    protected $Id = 'ArtworkOrObject';

    protected $Name = 'ArtworkOrObject';

    protected $FullName = 'XMP::iptcExt';

    protected $GroupName = 'XMP-iptcExt';

    protected $g0 = 'XMP';

    protected $g1 = 'XMP-iptcExt';

    protected $g2 = 'Author';

    protected $Type = 'struct';

    protected $Writable = true;

    protected $Description = 'Artwork Or Object';

    protected $flag_List = true;

    protected $flag_Bag = true;
}


text:
var changelog=
"
version 1.0.0
\
Started Sep 30, 2017
\
Released Sep 30, 2017
\
- Major changes:
\
- - This is the final release, I just got the game functioning correctly
\

\

version b.8.0
\
Started Mar 24, 2017
\
Released May 24, 2017
\
- Minor changes:
\
- - Replaced most of the music
\
- - Added copyright notices to credits
\
- - Song names in level editor
\
- - Changed some of the background images
\
- - Seperated level select and level player
\
- - Added loading message to player
\
- - Made coin counting cleaner
\
- Bugfixes:
\
- - Fixed loop playing over intro
\
- - Lined up music loops better
\

\

version b.7.5
\
Started Jan 5, 2017
\
Released Jan 19, 2017 and Mar 9, 2017
\
- Minor changes:
\
- - Added extra compatibility with Firefox
\
- - Reorganized main menu
\
- - Removed mini game
\
- - Major code clean-up
\
- - Implemented auto spike-cut
\
- - Added reset button to pause menu
\
- - Added back button to level select
\
- - Changed pop-up font
\
- - Will now report which bugs were fixed
\
- Bugfixes:
\
- - Bug #2
\
- - Bug #4
\
- - Bug #5
\
- - Various undocumented bugs
\

\

version b.7.0
\
Started Sep 14, 2016
\
Released Sep 15, 2016
\
- Various bug fixes
\
- Clarified things in level editor
\
- Added the character filter option
\

\

version b.6.0
\
Started Sep 2, 2016
\
Released Sep 2, 2016
\
- Renamed 'portal' to 'exit'
\
- Labeled block select in editor
\
- Various bug fixes
\

\

version b.5.0
\
started Jul 25, 2016
\
released Jul 27, 2016
\
- Added todo list and bug watch list
\
- Changed update number format to [major].[minor].[bugfix]
\

\

version b.4
\
started Jul 24, 2016
\
released Jul 24, 2016
\
- Fixed fireworks
\
- Fully removed extra songs
\

\

version b.3
\
started: Jul 24, 2016
\
released: Jul 24, 2016
\
- Removed unnecessary files from source
\
- Removed 2 backgrounds, 1 song, and 1 player. They were accidentally added after showing my friend how to mod the game.
\
- Reorganized home menu to accommodate new options
\
- Added change log
\
- Added download button
\

\

\
Change logs for versions b.2 and earlier were not kept, sorry.
\

\
(END OF CHANGELOG)
";


text:
/**
 * A context
 *
 * @category Core
 */
class Context {
    /**
     * Constructor
     */
    constructor() {
        /**
         * The DOM element
         *
         * @type {Element}
         */
        this.domElement = null;

        /**
         * Context instance
         *
         * @type {WebGLRenderingContext|Object}
         * @public
         */
        this.instance = null;
    }

    /**
     * Shortcut to the active context's instance
     *
     * @enum {Object}
     */
    static getActive() {
        return Context.current.instance;
    }

    /**
     * Init
     *
     * @param {Context.Type} type Type of context
     * @param {{antialiasing: boolean, width: (number|undefined), height: (number|undefined), premultipliedAlpha: boolean}} options Options
     * @param {string} targetID Targeted DOM element
     */
    init(type, options, targetID) {
        // Get DOM element.
        const target = document.getElementById(targetID);
        if (!target) {
            throw Error(`404 - Canvas with the name ${targetID} not found.`);
        }

        // Init webgl context.
        if (type === Context.Type.WebGL) {
            // Create canvas.
            this.domElement = document.createElement('canvas');
            this.domElement.width = target.offsetWidth;
            this.domElement.height = target.offsetHeight;
            target.appendChild(this.domElement);

            // Init WebGL.
            this.instance = this.domElement.getContext('webgl', {
                antialias: options.antialiasing || true,
                premultipliedAlpha: options.premultipliedAlpha,
                alpha: false,
            });
            this.instance.viewportWidth = this.domElement.clientWidth;
            this.instance.viewportHeight = this.domElement.clientHeight;
        }

        // Set as active context.
        if (!Context.current) {
            Context.current = this;
        }
    }

    /**
     * Resize context
     *
     * @param {number} width Width to assign in pixel
     * @param {number} height Height to assign in pixel
     */
    resize(width, height) {
        if (!this.domElement || !this.instance) {
            return;
        }

        // DOM
        this.domElement.width = width;
        this.domElement.height = height;

        // WebGL
        this.instance.viewportWidth = width;
        this.instance.viewportHeight = height;
    }

    /**
     * Activate the context
     *
     * The context become the one used by the renderer
     */
    activate() {
        Context.current = this;
    }

    /**
     * Get size
     *
     * @return {Array.<number>} A array with size on x and y
     */
    getSize() {
        return [this.domElement.width, this.domElement.height];
    }
}

/**
 * Type of context
 *
 * @enum {number}
 */
Context.Type = { WebGL: 0 };

/**
 * Active context
 *
 * @type {Context}
 */
Context.current = null;

export default Context;


text:
package main

import (
	"context"
	"flag"
	"fmt"
	p2p_peer "github.com/libp2p/go-libp2p-peer"
	mc "github.com/mediachain/concat/mc"
	homedir "github.com/mitchellh/go-homedir"
	"log"
	"os"
)

func main() {
	mc.SetLibp2pClient("mcdir")

	port := flag.Int("l", 9000, "Listen port")
	hdir := flag.String("d", "~/.mediachain/mcdir", "Directory home")
	ver := flag.Bool("version", false, "print version and exit")
	flag.Parse()

	if len(flag.Args()) != 0 {
		fmt.Fprintf(os.Stderr, "Usage: %s [options ...]\nOptions:\n", os.Args[0])
		flag.PrintDefaults()
		os.Exit(1)
	}

	if *ver {
		fmt.Println(mc.ConcatVersion)
		os.Exit(0)
	}

	home, err := homedir.Expand(*hdir)
	if err != nil {
		log.Fatal(err)
	}

	err = os.MkdirAll(home, 0755)
	if err != nil {
		log.Fatal(err)
	}

	id, err := mc.MakePeerIdentity(home)
	if err != nil {
		log.Fatal(err)
	}

	addr, err := mc.ParseAddress(fmt.Sprintf("/ip4/0.0.0.0/tcp/%d", *port))
	if err != nil {
		log.Fatal(err)
	}

	host, err := mc.NewHost(context.Background(), id, addr)
	if err != nil {
		log.Fatal(err)
	}

	dir := &Directory{PeerIdentity: id, host: host, peers: make(map[p2p_peer.ID]PeerRecord), mfs: NewManifestStore()}
	host.SetStreamHandler("/mediachain/dir/register", dir.registerHandler)
	host.SetStreamHandler("/mediachain/dir/lookup", dir.lookupHandler)
	host.SetStreamHandler("/mediachain/dir/list", dir.listHandler)
	host.SetStreamHandler("/mediachain/dir/listns", dir.listnsHandler)
	host.SetStreamHandler("/mediachain/dir/listmf", dir.listmfHandler)

	for _, addr := range host.Addrs() {
		if !mc.IsLinkLocalAddr(addr) {
			log.Printf("I am %s/p2p/%s", addr, id.Pretty())
		}
	}
	select {}
}