Class PrivateOffer.SingleProductOffer.Feature.Builder (0.1.0)

public static final class PrivateOffer.SingleProductOffer.Feature.Builder extends GeneratedMessage.Builder<PrivateOffer.SingleProductOffer.Feature.Builder> implements PrivateOffer.SingleProductOffer.FeatureOrBuilder

Additional details used to describe customization of the service level.

Features are used to distinguish service levels of the same product. When a product has a single service level, all details can be contained in the product documentation. When a product has multiple service levels, each service level can be assigned a distinct set of features to distinguish the key differences between the service levels.

In addition to customizing pricing and other transaction details, a private offer may include customization of partner-managed product behavior. When this is the case, the details of the custom behavior are described using features.

Protobuf type google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.Feature

Static Methods

getDescriptor()

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

Methods

build()

public PrivateOffer.SingleProductOffer.Feature build()
Returns
Type Description
PrivateOffer.SingleProductOffer.Feature

buildPartial()

public PrivateOffer.SingleProductOffer.Feature buildPartial()
Returns
Type Description
PrivateOffer.SingleProductOffer.Feature

clear()

public PrivateOffer.SingleProductOffer.Feature.Builder clear()
Returns
Type Description
PrivateOffer.SingleProductOffer.Feature.Builder
Overrides

clearDisplayName()

public PrivateOffer.SingleProductOffer.Feature.Builder clearDisplayName()

Optional. Human readable display text characterizing the feature. Should be sufficiently detailed to identify the feature, allowing features to be correlated across separate offers and service levels. Must be non-empty to publish the offer. The maximum allowed length is 128 characters. Allows characters from the following Unicode Property Classes: Letters, Numbers, Punctuation, Symbols, and Separators

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.Feature.Builder

This builder for chaining.

clearValue()

public PrivateOffer.SingleProductOffer.Feature.Builder clearValue()

Optional. Human readable display text reflecting the value of the feature. Used for variable features not captured by the display_name alone. The maximum allowed length is 3000 characters. Allows characters from the following Unicode Property Classes: Letters, Numbers, Punctuation, Symbols, and Separators

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.Feature.Builder

This builder for chaining.

getDefaultInstanceForType()

public PrivateOffer.SingleProductOffer.Feature getDefaultInstanceForType()
Returns
Type Description
PrivateOffer.SingleProductOffer.Feature

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Optional. Human readable display text characterizing the feature. Should be sufficiently detailed to identify the feature, allowing features to be correlated across separate offers and service levels. Must be non-empty to publish the offer. The maximum allowed length is 128 characters. Allows characters from the following Unicode Property Classes: Letters, Numbers, Punctuation, Symbols, and Separators

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Human readable display text characterizing the feature. Should be sufficiently detailed to identify the feature, allowing features to be correlated across separate offers and service levels. Must be non-empty to publish the offer. The maximum allowed length is 128 characters. Allows characters from the following Unicode Property Classes: Letters, Numbers, Punctuation, Symbols, and Separators

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getValue()

public String getValue()

Optional. Human readable display text reflecting the value of the feature. Used for variable features not captured by the display_name alone. The maximum allowed length is 3000 characters. Allows characters from the following Unicode Property Classes: Letters, Numbers, Punctuation, Symbols, and Separators

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Optional. Human readable display text reflecting the value of the feature. Used for variable features not captured by the display_name alone. The maximum allowed length is 3000 characters. Allows characters from the following Unicode Property Classes: Letters, Numbers, Punctuation, Symbols, and Separators

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrivateOffer.SingleProductOffer.Feature other)

public PrivateOffer.SingleProductOffer.Feature.Builder mergeFrom(PrivateOffer.SingleProductOffer.Feature other)
Parameter
Name Description
other PrivateOffer.SingleProductOffer.Feature
Returns
Type Description
PrivateOffer.SingleProductOffer.Feature.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PrivateOffer.SingleProductOffer.Feature.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrivateOffer.SingleProductOffer.Feature.Builder
Overrides

setDisplayName(String value)

public PrivateOffer.SingleProductOffer.Feature.Builder setDisplayName(String value)

Optional. Human readable display text characterizing the feature. Should be sufficiently detailed to identify the feature, allowing features to be correlated across separate offers and service levels. Must be non-empty to publish the offer. The maximum allowed length is 128 characters. Allows characters from the following Unicode Property Classes: Letters, Numbers, Punctuation, Symbols, and Separators

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
PrivateOffer.SingleProductOffer.Feature.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public PrivateOffer.SingleProductOffer.Feature.Builder setDisplayNameBytes(ByteString value)

Optional. Human readable display text characterizing the feature. Should be sufficiently detailed to identify the feature, allowing features to be correlated across separate offers and service levels. Must be non-empty to publish the offer. The maximum allowed length is 128 characters. Allows characters from the following Unicode Property Classes: Letters, Numbers, Punctuation, Symbols, and Separators

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
PrivateOffer.SingleProductOffer.Feature.Builder

This builder for chaining.

setValue(String value)

public PrivateOffer.SingleProductOffer.Feature.Builder setValue(String value)

Optional. Human readable display text reflecting the value of the feature. Used for variable features not captured by the display_name alone. The maximum allowed length is 3000 characters. Allows characters from the following Unicode Property Classes: Letters, Numbers, Punctuation, Symbols, and Separators

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The value to set.

Returns
Type Description
PrivateOffer.SingleProductOffer.Feature.Builder

This builder for chaining.

setValueBytes(ByteString value)

public PrivateOffer.SingleProductOffer.Feature.Builder setValueBytes(ByteString value)

Optional. Human readable display text reflecting the value of the feature. Used for variable features not captured by the display_name alone. The maximum allowed length is 3000 characters. Allows characters from the following Unicode Property Classes: Letters, Numbers, Punctuation, Symbols, and Separators

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
PrivateOffer.SingleProductOffer.Feature.Builder

This builder for chaining.