Endpoint constructor

Endpoint({
  1. String? ipAddress,
  2. int? port,
  3. String? instance,
  4. String? network,
  5. Endpoint_NetworkType? networkType,
  6. String? projectId,
  7. String? gkeMasterCluster,
  8. String? cloudSqlInstance,
  9. Endpoint_CloudFunctionEndpoint? cloudFunction,
  10. Endpoint_AppEngineVersionEndpoint? appEngineVersion,
  11. Endpoint_CloudRunRevisionEndpoint? cloudRunRevision,
})

Implementation

factory Endpoint({
  $core.String? ipAddress,
  $core.int? port,
  $core.String? instance,
  $core.String? network,
  Endpoint_NetworkType? networkType,
  $core.String? projectId,
  $core.String? gkeMasterCluster,
  $core.String? cloudSqlInstance,
  Endpoint_CloudFunctionEndpoint? cloudFunction,
  Endpoint_AppEngineVersionEndpoint? appEngineVersion,
  Endpoint_CloudRunRevisionEndpoint? cloudRunRevision,
}) {
  final $result = create();
  if (ipAddress != null) {
    $result.ipAddress = ipAddress;
  }
  if (port != null) {
    $result.port = port;
  }
  if (instance != null) {
    $result.instance = instance;
  }
  if (network != null) {
    $result.network = network;
  }
  if (networkType != null) {
    $result.networkType = networkType;
  }
  if (projectId != null) {
    $result.projectId = projectId;
  }
  if (gkeMasterCluster != null) {
    $result.gkeMasterCluster = gkeMasterCluster;
  }
  if (cloudSqlInstance != null) {
    $result.cloudSqlInstance = cloudSqlInstance;
  }
  if (cloudFunction != null) {
    $result.cloudFunction = cloudFunction;
  }
  if (appEngineVersion != null) {
    $result.appEngineVersion = appEngineVersion;
  }
  if (cloudRunRevision != null) {
    $result.cloudRunRevision = cloudRunRevision;
  }
  return $result;
}