public static final class LicenseConfig.Builder extends GeneratedMessage.Builder<LicenseConfig.Builder> implements LicenseConfigOrBuilderInformation about users' licenses.
Protobuf type google.cloud.discoveryengine.v1beta.LicenseConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LicenseConfig.BuilderImplements
LicenseConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public LicenseConfig build()| Returns | |
|---|---|
| Type | Description |
LicenseConfig |
|
buildPartial()
public LicenseConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
LicenseConfig |
|
clear()
public LicenseConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
clearAutoRenew()
public LicenseConfig.Builder clearAutoRenew()Optional. Whether the license config should be auto renewed when it reaches the end date.
bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
clearEarlyTerminated()
public LicenseConfig.Builder clearEarlyTerminated()Output only. Indication of whether the subscription is terminated earlier than the expiration date. This is usually terminated by pipeline once the subscription gets terminated from subsv3.
bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
clearEarlyTerminationDate()
public LicenseConfig.Builder clearEarlyTerminationDate()Output only. The date when the subscription is terminated earlier than the expiration date.
.google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
clearEndDate()
public LicenseConfig.Builder clearEndDate()Optional. The planed end date.
.google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
clearFreeTrial()
public LicenseConfig.Builder clearFreeTrial()Optional. Whether the license config is for free trial.
bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
clearGeminiBundle()
public LicenseConfig.Builder clearGeminiBundle()Output only. Whether the license config is for Gemini bundle.
bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
clearLicenseCount()
public LicenseConfig.Builder clearLicenseCount()Required. Number of licenses purchased.
int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
clearName()
public LicenseConfig.Builder clearName() Immutable. Identifier. The fully qualified resource name of the license
config. Format:
projects/{project}/locations/{location}/licenseConfigs/{license_config}
string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
clearStartDate()
public LicenseConfig.Builder clearStartDate()Required. The start date.
.google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
clearState()
public LicenseConfig.Builder clearState()Output only. The state of the license config.
.google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
clearSubscriptionTerm()
public LicenseConfig.Builder clearSubscriptionTerm()Required. Subscription term.
.google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
clearSubscriptionTier()
public LicenseConfig.Builder clearSubscriptionTier()Required. Subscription tier information for the license config.
.google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
getAutoRenew()
public boolean getAutoRenew()Optional. Whether the license config should be auto renewed when it reaches the end date.
bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The autoRenew. |
getDefaultInstanceForType()
public LicenseConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LicenseConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEarlyTerminated()
public boolean getEarlyTerminated()Output only. Indication of whether the subscription is terminated earlier than the expiration date. This is usually terminated by pipeline once the subscription gets terminated from subsv3.
bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
The earlyTerminated. |
getEarlyTerminationDate()
public Date getEarlyTerminationDate()Output only. The date when the subscription is terminated earlier than the expiration date.
.google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The earlyTerminationDate. |
getEarlyTerminationDateBuilder()
public Date.Builder getEarlyTerminationDateBuilder()Output only. The date when the subscription is terminated earlier than the expiration date.
.google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getEarlyTerminationDateOrBuilder()
public DateOrBuilder getEarlyTerminationDateOrBuilder()Output only. The date when the subscription is terminated earlier than the expiration date.
.google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getEndDate()
public Date getEndDate()Optional. The planed end date.
.google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The endDate. |
getEndDateBuilder()
public Date.Builder getEndDateBuilder()Optional. The planed end date.
.google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getEndDateOrBuilder()
public DateOrBuilder getEndDateOrBuilder()Optional. The planed end date.
.google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getFreeTrial()
public boolean getFreeTrial()Optional. Whether the license config is for free trial.
bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The freeTrial. |
getGeminiBundle()
public boolean getGeminiBundle()Output only. Whether the license config is for Gemini bundle.
bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
The geminiBundle. |
getLicenseCount()
public long getLicenseCount()Required. Number of licenses purchased.
int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The licenseCount. |
getName()
public String getName() Immutable. Identifier. The fully qualified resource name of the license
config. Format:
projects/{project}/locations/{location}/licenseConfigs/{license_config}
string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Immutable. Identifier. The fully qualified resource name of the license
config. Format:
projects/{project}/locations/{location}/licenseConfigs/{license_config}
string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getStartDate()
public Date getStartDate()Required. The start date.
.google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The startDate. |
getStartDateBuilder()
public Date.Builder getStartDateBuilder()Required. The start date.
.google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getStartDateOrBuilder()
public DateOrBuilder getStartDateOrBuilder()Required. The start date.
.google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getState()
public LicenseConfig.State getState()Output only. The state of the license config.
.google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.State |
The state. |
getStateValue()
public int getStateValue()Output only. The state of the license config.
.google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
getSubscriptionTerm()
public SubscriptionTerm getSubscriptionTerm()Required. Subscription term.
.google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SubscriptionTerm |
The subscriptionTerm. |
getSubscriptionTermValue()
public int getSubscriptionTermValue()Required. Subscription term.
.google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for subscriptionTerm. |
getSubscriptionTier()
public SubscriptionTier getSubscriptionTier()Required. Subscription tier information for the license config.
.google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SubscriptionTier |
The subscriptionTier. |
getSubscriptionTierValue()
public int getSubscriptionTierValue()Required. Subscription tier information for the license config.
.google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for subscriptionTier. |
hasEarlyTerminationDate()
public boolean hasEarlyTerminationDate()Output only. The date when the subscription is terminated earlier than the expiration date.
.google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the earlyTerminationDate field is set. |
hasEndDate()
public boolean hasEndDate()Optional. The planed end date.
.google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the endDate field is set. |
hasStartDate()
public boolean hasStartDate()Required. The start date.
.google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the startDate field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEarlyTerminationDate(Date value)
public LicenseConfig.Builder mergeEarlyTerminationDate(Date value)Output only. The date when the subscription is terminated earlier than the expiration date.
.google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
mergeEndDate(Date value)
public LicenseConfig.Builder mergeEndDate(Date value)Optional. The planed end date.
.google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
mergeFrom(LicenseConfig other)
public LicenseConfig.Builder mergeFrom(LicenseConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
LicenseConfig |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LicenseConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LicenseConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
mergeStartDate(Date value)
public LicenseConfig.Builder mergeStartDate(Date value)Required. The start date.
.google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
setAutoRenew(boolean value)
public LicenseConfig.Builder setAutoRenew(boolean value)Optional. Whether the license config should be auto renewed when it reaches the end date.
bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe autoRenew to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setEarlyTerminated(boolean value)
public LicenseConfig.Builder setEarlyTerminated(boolean value)Output only. Indication of whether the subscription is terminated earlier than the expiration date. This is usually terminated by pipeline once the subscription gets terminated from subsv3.
bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe earlyTerminated to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setEarlyTerminationDate(Date value)
public LicenseConfig.Builder setEarlyTerminationDate(Date value)Output only. The date when the subscription is terminated earlier than the expiration date.
.google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
setEarlyTerminationDate(Date.Builder builderForValue)
public LicenseConfig.Builder setEarlyTerminationDate(Date.Builder builderForValue)Output only. The date when the subscription is terminated earlier than the expiration date.
.google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
setEndDate(Date value)
public LicenseConfig.Builder setEndDate(Date value)Optional. The planed end date.
.google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
setEndDate(Date.Builder builderForValue)
public LicenseConfig.Builder setEndDate(Date.Builder builderForValue)Optional. The planed end date.
.google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
setFreeTrial(boolean value)
public LicenseConfig.Builder setFreeTrial(boolean value)Optional. Whether the license config is for free trial.
bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe freeTrial to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setGeminiBundle(boolean value)
public LicenseConfig.Builder setGeminiBundle(boolean value)Output only. Whether the license config is for Gemini bundle.
bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe geminiBundle to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setLicenseCount(long value)
public LicenseConfig.Builder setLicenseCount(long value)Required. Number of licenses purchased.
int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe licenseCount to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setName(String value)
public LicenseConfig.Builder setName(String value) Immutable. Identifier. The fully qualified resource name of the license
config. Format:
projects/{project}/locations/{location}/licenseConfigs/{license_config}
string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public LicenseConfig.Builder setNameBytes(ByteString value) Immutable. Identifier. The fully qualified resource name of the license
config. Format:
projects/{project}/locations/{location}/licenseConfigs/{license_config}
string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setStartDate(Date value)
public LicenseConfig.Builder setStartDate(Date value)Required. The start date.
.google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
setStartDate(Date.Builder builderForValue)
public LicenseConfig.Builder setStartDate(Date.Builder builderForValue)Required. The start date.
.google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
|
setState(LicenseConfig.State value)
public LicenseConfig.Builder setState(LicenseConfig.State value)Output only. The state of the license config.
.google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
LicenseConfig.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setStateValue(int value)
public LicenseConfig.Builder setStateValue(int value)Output only. The state of the license config.
.google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setSubscriptionTerm(SubscriptionTerm value)
public LicenseConfig.Builder setSubscriptionTerm(SubscriptionTerm value)Required. Subscription term.
.google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
SubscriptionTermThe subscriptionTerm to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setSubscriptionTermValue(int value)
public LicenseConfig.Builder setSubscriptionTermValue(int value)Required. Subscription term.
.google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for subscriptionTerm to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setSubscriptionTier(SubscriptionTier value)
public LicenseConfig.Builder setSubscriptionTier(SubscriptionTier value)Required. Subscription tier information for the license config.
.google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
SubscriptionTierThe subscriptionTier to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |
setSubscriptionTierValue(int value)
public LicenseConfig.Builder setSubscriptionTierValue(int value)Required. Subscription tier information for the license config.
.google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for subscriptionTier to set. |
| Returns | |
|---|---|
| Type | Description |
LicenseConfig.Builder |
This builder for chaining. |