Class CreateLicenseConfigRequest.Builder (0.90.0)

public static final class CreateLicenseConfigRequest.Builder extends GeneratedMessage.Builder<CreateLicenseConfigRequest.Builder> implements CreateLicenseConfigRequestOrBuilder

Request message for LicenseConfigService.CreateLicenseConfig method.

Protobuf type google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateLicenseConfigRequest build()
Returns
Type Description
CreateLicenseConfigRequest

buildPartial()

public CreateLicenseConfigRequest buildPartial()
Returns
Type Description
CreateLicenseConfigRequest

clear()

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

clearLicenseConfig()

public CreateLicenseConfigRequest.Builder clearLicenseConfig()

Required. The LicenseConfig to create.

.google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateLicenseConfigRequest.Builder

clearLicenseConfigId()

public CreateLicenseConfigRequest.Builder clearLicenseConfigId()

Optional. The ID to use for the LicenseConfig, which will become the final component of the LicenseConfig's resource name. We are using the tier (product edition) name as the license config id such as search or search_and_assistant.

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

Returns
Type Description
CreateLicenseConfigRequest.Builder

This builder for chaining.

clearParent()

public CreateLicenseConfigRequest.Builder clearParent()

Required. The parent resource name, such as projects/{project}/locations/{location}.

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

Returns
Type Description
CreateLicenseConfigRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateLicenseConfigRequest getDefaultInstanceForType()
Returns
Type Description
CreateLicenseConfigRequest

getDescriptorForType()

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

getLicenseConfig()

public LicenseConfig getLicenseConfig()

Required. The LicenseConfig to create.

.google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LicenseConfig

The licenseConfig.

getLicenseConfigBuilder()

public LicenseConfig.Builder getLicenseConfigBuilder()

Required. The LicenseConfig to create.

.google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LicenseConfig.Builder

getLicenseConfigId()

public String getLicenseConfigId()

Optional. The ID to use for the LicenseConfig, which will become the final component of the LicenseConfig's resource name. We are using the tier (product edition) name as the license config id such as search or search_and_assistant.

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

Returns
Type Description
String

The licenseConfigId.

getLicenseConfigIdBytes()

public ByteString getLicenseConfigIdBytes()

Optional. The ID to use for the LicenseConfig, which will become the final component of the LicenseConfig's resource name. We are using the tier (product edition) name as the license config id such as search or search_and_assistant.

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

Returns
Type Description
ByteString

The bytes for licenseConfigId.

getLicenseConfigOrBuilder()

public LicenseConfigOrBuilder getLicenseConfigOrBuilder()

Required. The LicenseConfig to create.

.google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LicenseConfigOrBuilder

getParent()

public String getParent()

Required. The parent resource name, such as projects/{project}/locations/{location}.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource name, such as projects/{project}/locations/{location}.

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

Returns
Type Description
ByteString

The bytes for parent.

hasLicenseConfig()

public boolean hasLicenseConfig()

Required. The LicenseConfig to create.

.google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the licenseConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateLicenseConfigRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLicenseConfig(LicenseConfig value)

public CreateLicenseConfigRequest.Builder mergeLicenseConfig(LicenseConfig value)

Required. The LicenseConfig to create.

.google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value LicenseConfig
Returns
Type Description
CreateLicenseConfigRequest.Builder

setLicenseConfig(LicenseConfig value)

public CreateLicenseConfigRequest.Builder setLicenseConfig(LicenseConfig value)

Required. The LicenseConfig to create.

.google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value LicenseConfig
Returns
Type Description
CreateLicenseConfigRequest.Builder

setLicenseConfig(LicenseConfig.Builder builderForValue)

public CreateLicenseConfigRequest.Builder setLicenseConfig(LicenseConfig.Builder builderForValue)

Required. The LicenseConfig to create.

.google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue LicenseConfig.Builder
Returns
Type Description
CreateLicenseConfigRequest.Builder

setLicenseConfigId(String value)

public CreateLicenseConfigRequest.Builder setLicenseConfigId(String value)

Optional. The ID to use for the LicenseConfig, which will become the final component of the LicenseConfig's resource name. We are using the tier (product edition) name as the license config id such as search or search_and_assistant.

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

Parameter
Name Description
value String

The licenseConfigId to set.

Returns
Type Description
CreateLicenseConfigRequest.Builder

This builder for chaining.

setLicenseConfigIdBytes(ByteString value)

public CreateLicenseConfigRequest.Builder setLicenseConfigIdBytes(ByteString value)

Optional. The ID to use for the LicenseConfig, which will become the final component of the LicenseConfig's resource name. We are using the tier (product edition) name as the license config id such as search or search_and_assistant.

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

Parameter
Name Description
value ByteString

The bytes for licenseConfigId to set.

Returns
Type Description
CreateLicenseConfigRequest.Builder

This builder for chaining.

setParent(String value)

public CreateLicenseConfigRequest.Builder setParent(String value)

Required. The parent resource name, such as projects/{project}/locations/{location}.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateLicenseConfigRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateLicenseConfigRequest.Builder setParentBytes(ByteString value)

Required. The parent resource name, such as projects/{project}/locations/{location}.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateLicenseConfigRequest.Builder

This builder for chaining.