Class LookupOfferRequest.Builder (3.15.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LookupOfferRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LookupOfferRequest.Builder
Overrides

build()

public LookupOfferRequest build()
Returns
TypeDescription
LookupOfferRequest

buildPartial()

public LookupOfferRequest buildPartial()
Returns
TypeDescription
LookupOfferRequest

clear()

public LookupOfferRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
LookupOfferRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LookupOfferRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LookupOfferRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LookupOfferRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LookupOfferRequest.Builder
Overrides

clone()

public LookupOfferRequest.Builder clone()
Returns
TypeDescription
LookupOfferRequest.Builder
Overrides

getDefaultInstanceForType()

public LookupOfferRequest getDefaultInstanceForType()
Returns
TypeDescription
LookupOfferRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for entitlement.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LookupOfferRequest other)

public LookupOfferRequest.Builder mergeFrom(LookupOfferRequest other)
Parameter
NameDescription
otherLookupOfferRequest
Returns
TypeDescription
LookupOfferRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LookupOfferRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LookupOfferRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LookupOfferRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LookupOfferRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LookupOfferRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The entitlement to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for entitlement to set.

Returns
TypeDescription
LookupOfferRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LookupOfferRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LookupOfferRequest.Builder
Overrides

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

public LookupOfferRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LookupOfferRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LookupOfferRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LookupOfferRequest.Builder
Overrides