Class LicenseConfig (0.90.0)

public final class LicenseConfig extends GeneratedMessage implements LicenseConfigOrBuilder

Information about users' licenses.

Protobuf type google.cloud.discoveryengine.v1beta.LicenseConfig

Static Fields

AUTO_RENEW_FIELD_NUMBER

public static final int AUTO_RENEW_FIELD_NUMBER
Field Value
Type Description
int

EARLY_TERMINATED_FIELD_NUMBER

public static final int EARLY_TERMINATED_FIELD_NUMBER
Field Value
Type Description
int

EARLY_TERMINATION_DATE_FIELD_NUMBER

public static final int EARLY_TERMINATION_DATE_FIELD_NUMBER
Field Value
Type Description
int

END_DATE_FIELD_NUMBER

public static final int END_DATE_FIELD_NUMBER
Field Value
Type Description
int

FREE_TRIAL_FIELD_NUMBER

public static final int FREE_TRIAL_FIELD_NUMBER
Field Value
Type Description
int

GEMINI_BUNDLE_FIELD_NUMBER

public static final int GEMINI_BUNDLE_FIELD_NUMBER
Field Value
Type Description
int

LICENSE_COUNT_FIELD_NUMBER

public static final int LICENSE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

START_DATE_FIELD_NUMBER

public static final int START_DATE_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

SUBSCRIPTION_TERM_FIELD_NUMBER

public static final int SUBSCRIPTION_TERM_FIELD_NUMBER
Field Value
Type Description
int

SUBSCRIPTION_TIER_FIELD_NUMBER

public static final int SUBSCRIPTION_TIER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LicenseConfig getDefaultInstance()
Returns
Type Description
LicenseConfig

getDescriptor()

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

newBuilder()

public static LicenseConfig.Builder newBuilder()
Returns
Type Description
LicenseConfig.Builder

newBuilder(LicenseConfig prototype)

public static LicenseConfig.Builder newBuilder(LicenseConfig prototype)
Parameter
Name Description
prototype LicenseConfig
Returns
Type Description
LicenseConfig.Builder

parseDelimitedFrom(InputStream input)

public static LicenseConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LicenseConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LicenseConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LicenseConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LicenseConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LicenseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LicenseConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LicenseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LicenseConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LicenseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LicenseConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LicenseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LicenseConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LicenseConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LicenseConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LicenseConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LicenseConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LicenseConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LicenseConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LicenseConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LicenseConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LicenseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LicenseConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LicenseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LicenseConfig> parser()
Returns
Type Description
Parser<LicenseConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

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.

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.

getParserForType()

public Parser<LicenseConfig> getParserForType()
Returns
Type Description
Parser<LicenseConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LicenseConfig.Builder newBuilderForType()
Returns
Type Description
LicenseConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected LicenseConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LicenseConfig.Builder
Overrides

toBuilder()

public LicenseConfig.Builder toBuilder()
Returns
Type Description
LicenseConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException