Class DistributeLicenseConfigRequest.Builder (0.90.0)

public static final class DistributeLicenseConfigRequest.Builder extends GeneratedMessage.Builder<DistributeLicenseConfigRequest.Builder> implements DistributeLicenseConfigRequestOrBuilder

Request message for LicenseConfigService.DistributeLicenseConfig method.

Protobuf type google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public DistributeLicenseConfigRequest build()
Returns
Type Description
DistributeLicenseConfigRequest

buildPartial()

public DistributeLicenseConfigRequest buildPartial()
Returns
Type Description
DistributeLicenseConfigRequest

clear()

public DistributeLicenseConfigRequest.Builder clear()
Returns
Type Description
DistributeLicenseConfigRequest.Builder
Overrides

clearBillingAccountLicenseConfig()

public DistributeLicenseConfigRequest.Builder clearBillingAccountLicenseConfig()

Required. Full resource name of [BillingAccountLicenseConfig][].

Format: billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}.

string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

clearLicenseConfigId()

public DistributeLicenseConfigRequest.Builder clearLicenseConfigId()

Optional. Distribute seats to this license config instead of creating a new one. If not specified, a new license config will be created from the billing account license config.

string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

clearLicenseCount()

public DistributeLicenseConfigRequest.Builder clearLicenseCount()

Required. The number of licenses to distribute.

int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

clearLocation()

public DistributeLicenseConfigRequest.Builder clearLocation()

Required. The target GCP project region to distribute the license config to.

string location = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

clearProjectNumber()

public DistributeLicenseConfigRequest.Builder clearProjectNumber()

Required. The target GCP project number to distribute the license config to.

int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

getBillingAccountLicenseConfig()

public String getBillingAccountLicenseConfig()

Required. Full resource name of [BillingAccountLicenseConfig][].

Format: billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}.

string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The billingAccountLicenseConfig.

getBillingAccountLicenseConfigBytes()

public ByteString getBillingAccountLicenseConfigBytes()

Required. Full resource name of [BillingAccountLicenseConfig][].

Format: billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}.

string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for billingAccountLicenseConfig.

getDefaultInstanceForType()

public DistributeLicenseConfigRequest getDefaultInstanceForType()
Returns
Type Description
DistributeLicenseConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLicenseConfigId()

public String getLicenseConfigId()

Optional. Distribute seats to this license config instead of creating a new one. If not specified, a new license config will be created from the billing account license config.

string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The licenseConfigId.

getLicenseConfigIdBytes()

public ByteString getLicenseConfigIdBytes()

Optional. Distribute seats to this license config instead of creating a new one. If not specified, a new license config will be created from the billing account license config.

string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for licenseConfigId.

getLicenseCount()

public long getLicenseCount()

Required. The number of licenses to distribute.

int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The licenseCount.

getLocation()

public String getLocation()

Required. The target GCP project region to distribute the license config to.

string location = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Required. The target GCP project region to distribute the license config to.

string location = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for location.

getProjectNumber()

public long getProjectNumber()

Required. The target GCP project number to distribute the license config to.

int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The projectNumber.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DistributeLicenseConfigRequest other)

public DistributeLicenseConfigRequest.Builder mergeFrom(DistributeLicenseConfigRequest other)
Parameter
Name Description
other DistributeLicenseConfigRequest
Returns
Type Description
DistributeLicenseConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DistributeLicenseConfigRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DistributeLicenseConfigRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DistributeLicenseConfigRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DistributeLicenseConfigRequest.Builder
Overrides

setBillingAccountLicenseConfig(String value)

public DistributeLicenseConfigRequest.Builder setBillingAccountLicenseConfig(String value)

Required. Full resource name of [BillingAccountLicenseConfig][].

Format: billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}.

string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The billingAccountLicenseConfig to set.

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

setBillingAccountLicenseConfigBytes(ByteString value)

public DistributeLicenseConfigRequest.Builder setBillingAccountLicenseConfigBytes(ByteString value)

Required. Full resource name of [BillingAccountLicenseConfig][].

Format: billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}.

string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for billingAccountLicenseConfig to set.

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

setLicenseConfigId(String value)

public DistributeLicenseConfigRequest.Builder setLicenseConfigId(String value)

Optional. Distribute seats to this license config instead of creating a new one. If not specified, a new license config will be created from the billing account license config.

string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The licenseConfigId to set.

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

setLicenseConfigIdBytes(ByteString value)

public DistributeLicenseConfigRequest.Builder setLicenseConfigIdBytes(ByteString value)

Optional. Distribute seats to this license config instead of creating a new one. If not specified, a new license config will be created from the billing account license config.

string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for licenseConfigId to set.

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

setLicenseCount(long value)

public DistributeLicenseConfigRequest.Builder setLicenseCount(long value)

Required. The number of licenses to distribute.

int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The licenseCount to set.

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

setLocation(String value)

public DistributeLicenseConfigRequest.Builder setLocation(String value)

Required. The target GCP project region to distribute the license config to.

string location = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public DistributeLicenseConfigRequest.Builder setLocationBytes(ByteString value)

Required. The target GCP project region to distribute the license config to.

string location = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.

setProjectNumber(long value)

public DistributeLicenseConfigRequest.Builder setProjectNumber(long value)

Required. The target GCP project number to distribute the license config to.

int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The projectNumber to set.

Returns
Type Description
DistributeLicenseConfigRequest.Builder

This builder for chaining.