public final Company createCompany(TenantOrProjectName parent, Company company) {

    CreateCompanyRequest request =
        CreateCompanyRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .setCompany(company)
            .build();
    return createCompany(request);
  }
public final Company createCompany ( TenantOrProjectName parent , Company company ) { CreateCompanyRequest request = CreateCompanyRequest . newBuilder ( ) . setParent ( parent == null ? null : parent . toString ( ) ) . setCompany ( company ) . build ( ) ; return createCompany ( request ) ; }
Creates a new company entity.

<p>Sample code:

<pre><code>
try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
Company company = Company.newBuilder().build();
Company response = companyServiceClient.createCompany(parent, company);
}
</code></pre>

@param parent Required.
<p>Resource name of the tenant under which the company is created.
<p>The format is "projects/{project_id}/tenants/{tenant_id}", for example,
"projects/api-test-project/tenant/foo".
<p>Tenant id is optional and a default tenant is created if unspecified, for example,
"projects/api-test-project".
@param company Required.
<p>The company to be created.
@throws com.google.api.gax.rpc.ApiException if the remote call fails