Class Service.Builder (0.5.0)

public static final class Service.Builder extends GeneratedMessage.Builder<Service.Builder> implements ServiceOrBuilder

Message describing Service resource.

Protobuf type google.cloud.commerceproducer.v1beta.Service

Implements

ServiceOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Service build()
Returns
Type Description
Service

buildPartial()

public Service buildPartial()
Returns
Type Description
Service

clear()

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

clearDocumentRequirement()

public Service.Builder clearDocumentRequirement()

Output only. Document requirement for private offers on this service.

Constraints that apply to every service, such as the restriction against attaching both a standard and a custom EULA, are documented on PrivateOfferDocument and are not represented here.

.google.cloud.commerceproducer.v1beta.Service.DocumentRequirement document_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Service.Builder

clearName()

public Service.Builder clearName()

Identifier. Name of resource.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Service.Builder

This builder for chaining.

clearProductType()

public Service.Builder clearProductType()

Output only. Type of the product this service commercializes.

.google.cloud.commerceproducer.v1beta.Service.ProductType product_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Service.Builder

This builder for chaining.

clearTitle()

public Service.Builder clearTitle()

Output only. Title of the service.

Not included for SERVICE_VIEW_BASIC.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Service.Builder

This builder for chaining.

getDefaultInstanceForType()

public Service getDefaultInstanceForType()
Returns
Type Description
Service

getDescriptorForType()

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

getDocumentRequirement()

public Service.DocumentRequirement getDocumentRequirement()

Output only. Document requirement for private offers on this service.

Constraints that apply to every service, such as the restriction against attaching both a standard and a custom EULA, are documented on PrivateOfferDocument and are not represented here.

.google.cloud.commerceproducer.v1beta.Service.DocumentRequirement document_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Service.DocumentRequirement

The documentRequirement.

getDocumentRequirementBuilder()

public Service.DocumentRequirement.Builder getDocumentRequirementBuilder()

Output only. Document requirement for private offers on this service.

Constraints that apply to every service, such as the restriction against attaching both a standard and a custom EULA, are documented on PrivateOfferDocument and are not represented here.

.google.cloud.commerceproducer.v1beta.Service.DocumentRequirement document_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Service.DocumentRequirement.Builder

getDocumentRequirementOrBuilder()

public Service.DocumentRequirementOrBuilder getDocumentRequirementOrBuilder()

Output only. Document requirement for private offers on this service.

Constraints that apply to every service, such as the restriction against attaching both a standard and a custom EULA, are documented on PrivateOfferDocument and are not represented here.

.google.cloud.commerceproducer.v1beta.Service.DocumentRequirement document_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Service.DocumentRequirementOrBuilder

getName()

public String getName()

Identifier. Name of resource.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of resource.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getProductType()

public Service.ProductType getProductType()

Output only. Type of the product this service commercializes.

.google.cloud.commerceproducer.v1beta.Service.ProductType product_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Service.ProductType

The productType.

getProductTypeValue()

public int getProductTypeValue()

Output only. Type of the product this service commercializes.

.google.cloud.commerceproducer.v1beta.Service.ProductType product_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for productType.

getTitle()

public String getTitle()

Output only. Title of the service.

Not included for SERVICE_VIEW_BASIC.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Output only. Title of the service.

Not included for SERVICE_VIEW_BASIC.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for title.

hasDocumentRequirement()

public boolean hasDocumentRequirement()

Output only. Document requirement for private offers on this service.

Constraints that apply to every service, such as the restriction against attaching both a standard and a custom EULA, are documented on PrivateOfferDocument and are not represented here.

.google.cloud.commerceproducer.v1beta.Service.DocumentRequirement document_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the documentRequirement field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDocumentRequirement(Service.DocumentRequirement value)

public Service.Builder mergeDocumentRequirement(Service.DocumentRequirement value)

Output only. Document requirement for private offers on this service.

Constraints that apply to every service, such as the restriction against attaching both a standard and a custom EULA, are documented on PrivateOfferDocument and are not represented here.

.google.cloud.commerceproducer.v1beta.Service.DocumentRequirement document_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Service.DocumentRequirement
Returns
Type Description
Service.Builder

mergeFrom(Service other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDocumentRequirement(Service.DocumentRequirement value)

public Service.Builder setDocumentRequirement(Service.DocumentRequirement value)

Output only. Document requirement for private offers on this service.

Constraints that apply to every service, such as the restriction against attaching both a standard and a custom EULA, are documented on PrivateOfferDocument and are not represented here.

.google.cloud.commerceproducer.v1beta.Service.DocumentRequirement document_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Service.DocumentRequirement
Returns
Type Description
Service.Builder

setDocumentRequirement(Service.DocumentRequirement.Builder builderForValue)

public Service.Builder setDocumentRequirement(Service.DocumentRequirement.Builder builderForValue)

Output only. Document requirement for private offers on this service.

Constraints that apply to every service, such as the restriction against attaching both a standard and a custom EULA, are documented on PrivateOfferDocument and are not represented here.

.google.cloud.commerceproducer.v1beta.Service.DocumentRequirement document_requirement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Service.DocumentRequirement.Builder
Returns
Type Description
Service.Builder

setName(String value)

public Service.Builder setName(String value)

Identifier. Name of resource.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Service.Builder setNameBytes(ByteString value)

Identifier. Name of resource.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setProductType(Service.ProductType value)

public Service.Builder setProductType(Service.ProductType value)

Output only. Type of the product this service commercializes.

.google.cloud.commerceproducer.v1beta.Service.ProductType product_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Service.ProductType

The productType to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setProductTypeValue(int value)

public Service.Builder setProductTypeValue(int value)

Output only. Type of the product this service commercializes.

.google.cloud.commerceproducer.v1beta.Service.ProductType product_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Service.Builder

This builder for chaining.

setTitle(String value)

public Service.Builder setTitle(String value)

Output only. Title of the service.

Not included for SERVICE_VIEW_BASIC.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The title to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Service.Builder setTitleBytes(ByteString value)

Output only. Title of the service.

Not included for SERVICE_VIEW_BASIC.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
Service.Builder

This builder for chaining.