public final class PriceByResource extends GeneratedMessageV3 implements PriceByResourceOrBuilder
Represents price by resource type.
Protobuf type google.cloud.channel.v1.PriceByResource
Fields
PRICE_FIELD_NUMBER
public static final int PRICE_FIELD_NUMBER
Field Value
PRICE_PHASES_FIELD_NUMBER
public static final int PRICE_PHASES_FIELD_NUMBER
Field Value
RESOURCE_TYPE_FIELD_NUMBER
public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static PriceByResource getDefaultInstance()
Returns
getDefaultInstanceForType()
public PriceByResource getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getParserForType()
public Parser<PriceByResource> getParserForType()
Returns
Overrides
getPrice()
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;
Returns
Type | Description |
Price | The price.
|
getPriceOrBuilder()
public PriceOrBuilder getPriceOrBuilder()
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;
Returns
getPricePhases(int index)
public PricePhase getPricePhases(int index)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
Parameter
Returns
getPricePhasesCount()
public int getPricePhasesCount()
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
Returns
getPricePhasesList()
public List<PricePhase> getPricePhasesList()
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
Returns
getPricePhasesOrBuilder(int index)
public PricePhaseOrBuilder getPricePhasesOrBuilder(int index)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
Parameter
Returns
getPricePhasesOrBuilderList()
public List<? extends PricePhaseOrBuilder> getPricePhasesOrBuilderList()
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
Returns
Type | Description |
List<? extends com.google.cloud.channel.v1.PricePhaseOrBuilder> | |
getResourceType()
public ResourceType getResourceType()
Resource Type. Example: SEAT
.google.cloud.channel.v1.ResourceType resource_type = 1;
Returns
getResourceTypeValue()
public int getResourceTypeValue()
Resource Type. Example: SEAT
.google.cloud.channel.v1.ResourceType resource_type = 1;
Returns
Type | Description |
int | The enum numeric value on the wire for resourceType.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasPrice()
public boolean hasPrice()
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;
Returns
Type | Description |
boolean | Whether the price field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static PriceByResource.Builder newBuilder()
Returns
newBuilder(PriceByResource prototype)
public static PriceByResource.Builder newBuilder(PriceByResource prototype)
Parameter
Returns
newBuilderForType()
public PriceByResource.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PriceByResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static PriceByResource parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static PriceByResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static PriceByResource parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PriceByResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static PriceByResource parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PriceByResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PriceByResource parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static PriceByResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PriceByResource parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static PriceByResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static PriceByResource parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PriceByResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<PriceByResource> parser()
Returns
toBuilder()
public PriceByResource.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions