public final class CancelOrderRequest extends GeneratedMessageV3 implements CancelOrderRequestOrBuilder
Request message for
ConsumerProcurementService.CancelOrder.
Protobuf type google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CANCELLATION_POLICY_FIELD_NUMBER
public static final int CANCELLATION_POLICY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static CancelOrderRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CancelOrderRequest.Builder newBuilder()
newBuilder(CancelOrderRequest prototype)
public static CancelOrderRequest.Builder newBuilder(CancelOrderRequest prototype)
public static CancelOrderRequest parseDelimitedFrom(InputStream input)
public static CancelOrderRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CancelOrderRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CancelOrderRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CancelOrderRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CancelOrderRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CancelOrderRequest parseFrom(CodedInputStream input)
public static CancelOrderRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CancelOrderRequest parseFrom(InputStream input)
public static CancelOrderRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CancelOrderRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CancelOrderRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CancelOrderRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCancellationPolicy()
public CancelOrderRequest.CancellationPolicy getCancellationPolicy()
Optional. Cancellation policy of this request.
.google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy cancellation_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
getCancellationPolicyValue()
public int getCancellationPolicyValue()
Optional. Cancellation policy of this request.
.google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy cancellation_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for cancellationPolicy.
|
getDefaultInstanceForType()
public CancelOrderRequest getDefaultInstanceForType()
getEtag()
Optional. The weak etag, which can be optionally populated, of the order
that this cancel request is based on. Validation checking will only happen
if the invoker supplies this field.
string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The etag.
|
getEtagBytes()
public ByteString getEtagBytes()
Optional. The weak etag, which can be optionally populated, of the order
that this cancel request is based on. Validation checking will only happen
if the invoker supplies this field.
string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for etag.
|
getName()
Required. The resource name of the order.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The resource name of the order.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<CancelOrderRequest> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CancelOrderRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CancelOrderRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public CancelOrderRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides