Class LookupOfferRequest.Builder (3.57.0)

public static final class LookupOfferRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LookupOfferRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LookupOfferRequest.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public LookupOfferRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LookupOfferRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LookupOfferRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LookupOfferRequest.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LookupOfferRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public LookupOfferRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LookupOfferRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LookupOfferRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LookupOfferRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LookupOfferRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LookupOfferRequest.Builder
Overrides