Class GetStandardOfferRequest.Builder (0.1.0)

public static final class GetStandardOfferRequest.Builder extends GeneratedMessage.Builder<GetStandardOfferRequest.Builder> implements GetStandardOfferRequestOrBuilder

Message for getting a StandardOffer

Protobuf type google.cloud.commerceproducer.v1beta.GetStandardOfferRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetStandardOfferRequest build()
Returns
Type Description
GetStandardOfferRequest

buildPartial()

public GetStandardOfferRequest buildPartial()
Returns
Type Description
GetStandardOfferRequest

clear()

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

clearName()

public GetStandardOfferRequest.Builder clearName()

Required. Name of the resource

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

Returns
Type Description
GetStandardOfferRequest.Builder

This builder for chaining.

clearView()

public GetStandardOfferRequest.Builder clearView()

Optional. The view of the StandardOffer to return. If unspecified, the default view is BASIC.

.google.cloud.commerceproducer.v1beta.StandardOfferView view = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetStandardOfferRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetStandardOfferRequest getDefaultInstanceForType()
Returns
Type Description
GetStandardOfferRequest

getDescriptorForType()

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

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.

getView()

public StandardOfferView getView()

Optional. The view of the StandardOffer to return. If unspecified, the default view is BASIC.

.google.cloud.commerceproducer.v1beta.StandardOfferView view = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StandardOfferView

The view.

getViewValue()

public int getViewValue()

Optional. The view of the StandardOffer to return. If unspecified, the default view is BASIC.

.google.cloud.commerceproducer.v1beta.StandardOfferView view = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetStandardOfferRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public GetStandardOfferRequest.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 String

The name to set.

Returns
Type Description
GetStandardOfferRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetStandardOfferRequest.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 ByteString

The bytes for name to set.

Returns
Type Description
GetStandardOfferRequest.Builder

This builder for chaining.

setView(StandardOfferView value)

public GetStandardOfferRequest.Builder setView(StandardOfferView value)

Optional. The view of the StandardOffer to return. If unspecified, the default view is BASIC.

.google.cloud.commerceproducer.v1beta.StandardOfferView view = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StandardOfferView

The view to set.

Returns
Type Description
GetStandardOfferRequest.Builder

This builder for chaining.

setViewValue(int value)

public GetStandardOfferRequest.Builder setViewValue(int value)

Optional. The view of the StandardOffer to return. If unspecified, the default view is BASIC.

.google.cloud.commerceproducer.v1beta.StandardOfferView view = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for view to set.

Returns
Type Description
GetStandardOfferRequest.Builder

This builder for chaining.