Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class Service.
Message describing Service resource.
Generated from protobuf message google.cloud.commerceproducer.v1beta.Service
Namespace
Google \ Cloud \ CommerceProducer \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Identifier. Name of resource. |
↳ title |
string
Output only. Title of the service. Not included for |
↳ document_requirement |
Service\DocumentRequirement
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 |
↳ product_type |
int
Output only. Type of the product this service commercializes. |
getName
Identifier. Name of resource.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Identifier. Name of resource.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTitle
Output only. Title of the service.
Not included for SERVICE_VIEW_BASIC.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTitle
Output only. Title of the service.
Not included for SERVICE_VIEW_BASIC.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
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.
| Returns | |
|---|---|
| Type | Description |
Service\DocumentRequirement|null |
|
hasDocumentRequirement
clearDocumentRequirement
setDocumentRequirement
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.
| Parameter | |
|---|---|
| Name | Description |
var |
Service\DocumentRequirement
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getProductType
Output only. Type of the product this service commercializes.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ProductType. |
setProductType
Output only. Type of the product this service commercializes.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ProductType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|