public static final class PrivateOffer.SingleProductOffer.Feature extends GeneratedMessage 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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static PrivateOffer.SingleProductOffer.Feature getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PrivateOffer.SingleProductOffer.Feature.Builder newBuilder()
newBuilder(PrivateOffer.SingleProductOffer.Feature prototype)
public static PrivateOffer.SingleProductOffer.Feature.Builder newBuilder(PrivateOffer.SingleProductOffer.Feature prototype)
public static PrivateOffer.SingleProductOffer.Feature parseDelimitedFrom(InputStream input)
public static PrivateOffer.SingleProductOffer.Feature parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PrivateOffer.SingleProductOffer.Feature parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.Feature parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PrivateOffer.SingleProductOffer.Feature parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.Feature parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.Feature parseFrom(CodedInputStream input)
public static PrivateOffer.SingleProductOffer.Feature parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.Feature parseFrom(InputStream input)
public static PrivateOffer.SingleProductOffer.Feature parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PrivateOffer.SingleProductOffer.Feature parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.Feature parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PrivateOffer.SingleProductOffer.Feature> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public PrivateOffer.SingleProductOffer.Feature getDefaultInstanceForType()
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.
|
getParserForType()
public Parser<PrivateOffer.SingleProductOffer.Feature> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PrivateOffer.SingleProductOffer.Feature.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected PrivateOffer.SingleProductOffer.Feature.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public PrivateOffer.SingleProductOffer.Feature.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides