public static final class CancelPrivateOfferRequest.Builder extends GeneratedMessage.Builder<CancelPrivateOfferRequest.Builder> implements CancelPrivateOfferRequestOrBuilderMessage for cancelling a PrivateOffer
Protobuf type google.cloud.commerceproducer.v1beta.CancelPrivateOfferRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CancelPrivateOfferRequest.BuilderImplements
CancelPrivateOfferRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CancelPrivateOfferRequest build()| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest |
|
buildPartial()
public CancelPrivateOfferRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest |
|
clear()
public CancelPrivateOfferRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest.Builder |
|
clearCancellationNote()
public CancelPrivateOfferRequest.Builder clearCancellationNote()Optional. Internal note relating to the cancellation. Stored on the cancelled offer. Not visible to customers.
string cancellation_note = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest.Builder |
This builder for chaining. |
clearName()
public CancelPrivateOfferRequest.Builder clearName()Required. Name of the resource
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest.Builder |
This builder for chaining. |
getCancellationNote()
public String getCancellationNote()Optional. Internal note relating to the cancellation. Stored on the cancelled offer. Not visible to customers.
string cancellation_note = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The cancellationNote. |
getCancellationNoteBytes()
public ByteString getCancellationNoteBytes()Optional. Internal note relating to the cancellation. Stored on the cancelled offer. Not visible to customers.
string cancellation_note = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for cancellationNote. |
getDefaultInstanceForType()
public CancelPrivateOfferRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. Name of the resource
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. Name of the resource
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CancelPrivateOfferRequest other)
public CancelPrivateOfferRequest.Builder mergeFrom(CancelPrivateOfferRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CancelPrivateOfferRequest |
| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CancelPrivateOfferRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CancelPrivateOfferRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest.Builder |
|
setCancellationNote(String value)
public CancelPrivateOfferRequest.Builder setCancellationNote(String value)Optional. Internal note relating to the cancellation. Stored on the cancelled offer. Not visible to customers.
string cancellation_note = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cancellationNote to set. |
| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest.Builder |
This builder for chaining. |
setCancellationNoteBytes(ByteString value)
public CancelPrivateOfferRequest.Builder setCancellationNoteBytes(ByteString value)Optional. Internal note relating to the cancellation. Stored on the cancelled offer. Not visible to customers.
string cancellation_note = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cancellationNote to set. |
| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest.Builder |
This builder for chaining. |
setName(String value)
public CancelPrivateOfferRequest.Builder setName(String value)Required. Name of the resource
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public CancelPrivateOfferRequest.Builder setNameBytes(ByteString value)Required. Name of the resource
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
CancelPrivateOfferRequest.Builder |
This builder for chaining. |