<commit_before>/**
 * Copyright 2017 StreamSets Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.streamsets.pipeline.stage.origin.opcua;

import com.streamsets.pipeline.api.ConfigDef;
import com.streamsets.pipeline.api.ConfigDefBean;
import com.streamsets.pipeline.api.ListBeanModel;
import com.streamsets.pipeline.api.ValueChooserModel;
import com.streamsets.pipeline.lib.tls.TlsConfigBean;

import java.util.List;

public class OpcUaClientSourceConfigBean {
  @ConfigDef(
      required = true,
      type = ConfigDef.Type.STRING,
      label = "Resource URL",
      defaultValue = "opc.tcp://localhost:12686/example",
      description = "Specify the OPC UA resource URL",
      evaluation = ConfigDef.Evaluation.EXPLICIT,
      displayPosition = 10,
      group = "OPC_UA"
  )
  public String resourceUrl = "";

  @ConfigDef(
      required = true,
      type = ConfigDef.Type.STRING,
      label = "Application Name",
      defaultValue = "SDC OPC UA Client",
      description = "Specify the OPC UA client application name",
      evaluation = ConfigDef.Evaluation.EXPLICIT,
      displayPosition = 20,
      group = "OPC_UA"
  )
  public String applicationName = "SDC OPC UA Client";


  @ConfigDef(
      required = true,
      type = ConfigDef.Type.STRING,
      label = "Application URI",
      defaultValue = "urn:sdc:pipeline:${pipeline:id()}",
      description = "Specify the OPC UA resource URL",
      evaluation = ConfigDef.Evaluation.EXPLICIT,
      displayPosition = 30,
      group = "OPC_UA"
  )
  public String applicationUri = "urn:sdc:pipeline:${pipeline:id()}";

  @ConfigDef(
      required = true,
      type = ConfigDef.Type.NUMBER,
      label = "Request Timeout",
      defaultValue = "5000",
      description = "OPC UA request timeout in milliseconds.",
      displayPosition = 40,
      group = "OPC_UA"
  )
  public int requestTimeoutMillis = 0;

  @ConfigDef(<commit_msg>SDC-7057. Fix evaluation type for OPC UA origin configs<commit_after>/**
 * Copyright 2017 StreamSets Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.streamsets.pipeline.stage.origin.opcua;

import com.streamsets.pipeline.api.ConfigDef;
import com.streamsets.pipeline.api.ConfigDefBean;
import com.streamsets.pipeline.api.ListBeanModel;
import com.streamsets.pipeline.api.ValueChooserModel;
import com.streamsets.pipeline.lib.tls.TlsConfigBean;

import java.util.List;

public class OpcUaClientSourceConfigBean {
  @ConfigDef(
      required = true,
      type = ConfigDef.Type.STRING,
      label = "Resource URL",
      defaultValue = "opc.tcp://localhost:12686/example",
      description = "Specify the OPC UA resource URL",
      displayPosition = 10,
      group = "OPC_UA"
  )
  public String resourceUrl = "";

  @ConfigDef(
      required = true,
      type = ConfigDef.Type.STRING,
      label = "Application Name",
      defaultValue = "SDC OPC UA Client",
      description = "Specify the OPC UA client application name",
      displayPosition = 20,
      group = "OPC_UA"
  )
  public String applicationName = "SDC OPC UA Client";


  @ConfigDef(
      required = true,
      type = ConfigDef.Type.STRING,
      label = "Application URI",
      defaultValue = "urn:sdc:pipeline:${pipeline:id()}",
      description = "Specify the OPC UA resource URL",
      displayPosition = 30,
      group = "OPC_UA"
  )
  public String applicationUri = "urn:sdc:pipeline:${pipeline:id()}";

  @ConfigDef(
      required = true,
      type = ConfigDef.Type.NUMBER,
      label = "Request Timeout",
      defaultValue = "5000",
      description = "OPC UA request timeout in milliseconds.",
      displayPosition = 40,
      group = "OPC_UA"
  )
  public int requestTimeoutMillis = 0;

  @ConfigDef(
{'fraction_non_alphanumeric': 0.0982367758186398, 'fraction_numerical': 0.011754827875734676, 'mean_word_length': 3.2850719424460433, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2282614', 'n_tokens_mistral': 1424, 'n_tokens_neox': 1390, 'n_words': 427}