Class LookupOfferRequest.Builder (3.87.0)

public static final class LookupOfferRequest.Builder extends GeneratedMessage.Builder<LookupOfferRequest.Builder> implements LookupOfferRequestOrBuilder

Request message for LookupOffer.

Protobuf type google.cloud.channel.v1.LookupOfferRequest

Static Methods

getDescriptor()

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

Methods

build()

public LookupOfferRequest build()
Returns
Type Description
LookupOfferRequest

buildPartial()

public LookupOfferRequest buildPartial()
Returns
Type Description
LookupOfferRequest

clear()

public LookupOfferRequest.Builder clear()
Returns
Type Description
LookupOfferRequest.Builder
Overrides

clearEntitlement()

public LookupOfferRequest.Builder clearEntitlement()

Required. The resource name of the entitlement to retrieve the Offer. Entitlement uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
LookupOfferRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public LookupOfferRequest getDefaultInstanceForType()
Returns
Type Description
LookupOfferRequest

getDescriptorForType()

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

getEntitlement()

public String getEntitlement()

Required. The resource name of the entitlement to retrieve the Offer. Entitlement uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The entitlement.

getEntitlementBytes()

public ByteString getEntitlementBytes()

Required. The resource name of the entitlement to retrieve the Offer. Entitlement uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for entitlement.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LookupOfferRequest other)

public LookupOfferRequest.Builder mergeFrom(LookupOfferRequest other)
Parameter
Name Description
other LookupOfferRequest
Returns
Type Description
LookupOfferRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public LookupOfferRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LookupOfferRequest.Builder
Overrides

setEntitlement(String value)

public LookupOfferRequest.Builder setEntitlement(String value)

Required. The resource name of the entitlement to retrieve the Offer. Entitlement uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The entitlement to set.

Returns
Type Description
LookupOfferRequest.Builder

This builder for chaining.

setEntitlementBytes(ByteString value)

public LookupOfferRequest.Builder setEntitlementBytes(ByteString value)

Required. The resource name of the entitlement to retrieve the Offer. Entitlement uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for entitlement to set.

Returns
Type Description
LookupOfferRequest.Builder

This builder for chaining.