...

Package mybusinessplaceactions

import "google.golang.org/api/mybusinessplaceactions/v1"
Overview
Index

Overview ▾

Package mybusinessplaceactions provides access to the My Business Place Actions API.

For product documentation, see: https://developers.google.com/my-business/

Library status

These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/mybusinessplaceactions/v1"
...
ctx := context.Background()
mybusinessplaceactionsService, err := mybusinessplaceactions.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:

mybusinessplaceactionsService, err := mybusinessplaceactions.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
mybusinessplaceactionsService, err := mybusinessplaceactions.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See google.golang.org/api/option.ClientOption for details on options.

Index ▾

type Empty
type ListPlaceActionLinksResponse
    func (s *ListPlaceActionLinksResponse) MarshalJSON() ([]byte, error)
type ListPlaceActionTypeMetadataResponse
    func (s *ListPlaceActionTypeMetadataResponse) MarshalJSON() ([]byte, error)
type LocationsPlaceActionLinksCreateCall
    func (c *LocationsPlaceActionLinksCreateCall) Context(ctx context.Context) *LocationsPlaceActionLinksCreateCall
    func (c *LocationsPlaceActionLinksCreateCall) Do(opts ...googleapi.CallOption) (*PlaceActionLink, error)
    func (c *LocationsPlaceActionLinksCreateCall) Fields(s ...googleapi.Field) *LocationsPlaceActionLinksCreateCall
    func (c *LocationsPlaceActionLinksCreateCall) Header() http.Header
type LocationsPlaceActionLinksDeleteCall
    func (c *LocationsPlaceActionLinksDeleteCall) Context(ctx context.Context) *LocationsPlaceActionLinksDeleteCall
    func (c *LocationsPlaceActionLinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
    func (c *LocationsPlaceActionLinksDeleteCall) Fields(s ...googleapi.Field) *LocationsPlaceActionLinksDeleteCall
    func (c *LocationsPlaceActionLinksDeleteCall) Header() http.Header
type LocationsPlaceActionLinksGetCall
    func (c *LocationsPlaceActionLinksGetCall) Context(ctx context.Context) *LocationsPlaceActionLinksGetCall
    func (c *LocationsPlaceActionLinksGetCall) Do(opts ...googleapi.CallOption) (*PlaceActionLink, error)
    func (c *LocationsPlaceActionLinksGetCall) Fields(s ...googleapi.Field) *LocationsPlaceActionLinksGetCall
    func (c *LocationsPlaceActionLinksGetCall) Header() http.Header
    func (c *LocationsPlaceActionLinksGetCall) IfNoneMatch(entityTag string) *LocationsPlaceActionLinksGetCall
type LocationsPlaceActionLinksListCall
    func (c *LocationsPlaceActionLinksListCall) Context(ctx context.Context) *LocationsPlaceActionLinksListCall
    func (c *LocationsPlaceActionLinksListCall) Do(opts ...googleapi.CallOption) (*ListPlaceActionLinksResponse, error)
    func (c *LocationsPlaceActionLinksListCall) Fields(s ...googleapi.Field) *LocationsPlaceActionLinksListCall
    func (c *LocationsPlaceActionLinksListCall) Filter(filter string) *LocationsPlaceActionLinksListCall
    func (c *LocationsPlaceActionLinksListCall) Header() http.Header
    func (c *LocationsPlaceActionLinksListCall) IfNoneMatch(entityTag string) *LocationsPlaceActionLinksListCall
    func (c *LocationsPlaceActionLinksListCall) PageSize(pageSize int64) *LocationsPlaceActionLinksListCall
    func (c *LocationsPlaceActionLinksListCall) PageToken(pageToken string) *LocationsPlaceActionLinksListCall
    func (c *LocationsPlaceActionLinksListCall) Pages(ctx context.Context, f func(*ListPlaceActionLinksResponse) error) error
type LocationsPlaceActionLinksPatchCall
    func (c *LocationsPlaceActionLinksPatchCall) Context(ctx context.Context) *LocationsPlaceActionLinksPatchCall
    func (c *LocationsPlaceActionLinksPatchCall) Do(opts ...googleapi.CallOption) (*PlaceActionLink, error)
    func (c *LocationsPlaceActionLinksPatchCall) Fields(s ...googleapi.Field) *LocationsPlaceActionLinksPatchCall
    func (c *LocationsPlaceActionLinksPatchCall) Header() http.Header
    func (c *LocationsPlaceActionLinksPatchCall) UpdateMask(updateMask string) *LocationsPlaceActionLinksPatchCall
type LocationsPlaceActionLinksService
    func NewLocationsPlaceActionLinksService(s *Service) *LocationsPlaceActionLinksService
    func (r *LocationsPlaceActionLinksService) Create(parent string, placeactionlink *PlaceActionLink) *LocationsPlaceActionLinksCreateCall
    func (r *LocationsPlaceActionLinksService) Delete(name string) *LocationsPlaceActionLinksDeleteCall
    func (r *LocationsPlaceActionLinksService) Get(name string) *LocationsPlaceActionLinksGetCall
    func (r *LocationsPlaceActionLinksService) List(parent string) *LocationsPlaceActionLinksListCall
    func (r *LocationsPlaceActionLinksService) Patch(name string, placeactionlink *PlaceActionLink) *LocationsPlaceActionLinksPatchCall
type LocationsService
    func NewLocationsService(s *Service) *LocationsService
type PlaceActionLink
    func (s *PlaceActionLink) MarshalJSON() ([]byte, error)
type PlaceActionTypeMetadata
    func (s *PlaceActionTypeMetadata) MarshalJSON() ([]byte, error)
type PlaceActionTypeMetadataListCall
    func (c *PlaceActionTypeMetadataListCall) Context(ctx context.Context) *PlaceActionTypeMetadataListCall
    func (c *PlaceActionTypeMetadataListCall) Do(opts ...googleapi.CallOption) (*ListPlaceActionTypeMetadataResponse, error)
    func (c *PlaceActionTypeMetadataListCall) Fields(s ...googleapi.Field) *PlaceActionTypeMetadataListCall
    func (c *PlaceActionTypeMetadataListCall) Filter(filter string) *PlaceActionTypeMetadataListCall
    func (c *PlaceActionTypeMetadataListCall) Header() http.Header
    func (c *PlaceActionTypeMetadataListCall) IfNoneMatch(entityTag string) *PlaceActionTypeMetadataListCall
    func (c *PlaceActionTypeMetadataListCall) LanguageCode(languageCode string) *PlaceActionTypeMetadataListCall
    func (c *PlaceActionTypeMetadataListCall) PageSize(pageSize int64) *PlaceActionTypeMetadataListCall
    func (c *PlaceActionTypeMetadataListCall) PageToken(pageToken string) *PlaceActionTypeMetadataListCall
    func (c *PlaceActionTypeMetadataListCall) Pages(ctx context.Context, f func(*ListPlaceActionTypeMetadataResponse) error) error
type PlaceActionTypeMetadataService
    func NewPlaceActionTypeMetadataService(s *Service) *PlaceActionTypeMetadataService
    func (r *PlaceActionTypeMetadataService) List() *PlaceActionTypeMetadataListCall
type Service
    func New(client *http.Client) (*Service, error)
    func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

Package files

mybusinessplaceactions-gen.go

type Empty

Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

type Empty struct {
    // ServerResponse contains the HTTP response code and headers from the server.
    googleapi.ServerResponse `json:"-"`
}

type ListPlaceActionLinksResponse

ListPlaceActionLinksResponse: Response message for PlaceActions.ListPlaceActionLinks.

type ListPlaceActionLinksResponse struct {
    // NextPageToken: If there are more place action links than the requested page
    // size, then this field is populated with a token to fetch the next page of
    // results.
    NextPageToken string `json:"nextPageToken,omitempty"`
    // PlaceActionLinks: The returned list of place action links.
    PlaceActionLinks []*PlaceActionLink `json:"placeActionLinks,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the server.
    googleapi.ServerResponse `json:"-"`
    // ForceSendFields is a list of field names (e.g. "NextPageToken") to
    // unconditionally include in API requests. By default, fields with empty or
    // default values are omitted from API requests. See
    // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
    // details.
    ForceSendFields []string `json:"-"`
    // NullFields is a list of field names (e.g. "NextPageToken") to include in API
    // requests with the JSON null value. By default, fields with empty values are
    // omitted from API requests. See
    // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
    NullFields []string `json:"-"`
}

func (*ListPlaceActionLinksResponse) MarshalJSON

func (s *ListPlaceActionLinksResponse) MarshalJSON() ([]byte, error)

type ListPlaceActionTypeMetadataResponse

ListPlaceActionTypeMetadataResponse: Response message for PlaceActions.ListPlaceActionTypeMetadata.

type ListPlaceActionTypeMetadataResponse struct {
    // NextPageToken: If the number of action types exceeded the requested page
    // size, this field will be populated with a token to fetch the next page on a
    // subsequent call to `placeActionTypeMetadata.list`. If there are no more
    // results, this field will not be present in the response.
    NextPageToken string `json:"nextPageToken,omitempty"`
    // PlaceActionTypeMetadata: A collection of metadata for the available place
    // action types.
    PlaceActionTypeMetadata []*PlaceActionTypeMetadata `json:"placeActionTypeMetadata,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the server.
    googleapi.ServerResponse `json:"-"`
    // ForceSendFields is a list of field names (e.g. "NextPageToken") to
    // unconditionally include in API requests. By default, fields with empty or
    // default values are omitted from API requests. See
    // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
    // details.
    ForceSendFields []string `json:"-"`
    // NullFields is a list of field names (e.g. "NextPageToken") to include in API
    // requests with the JSON null value. By default, fields with empty values are
    // omitted from API requests. See
    // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
    NullFields []string `json:"-"`
}

func (*ListPlaceActionTypeMetadataResponse) MarshalJSON

func (s *ListPlaceActionTypeMetadataResponse) MarshalJSON() ([]byte, error)

type LocationsPlaceActionLinksCreateCall

type LocationsPlaceActionLinksCreateCall struct {
    // contains filtered or unexported fields
}

func (*LocationsPlaceActionLinksCreateCall) Context

func (c *LocationsPlaceActionLinksCreateCall) Context(ctx context.Context) *LocationsPlaceActionLinksCreateCall

Context sets the context to be used in this call's Do method.

func (*LocationsPlaceActionLinksCreateCall) Do

func (c *LocationsPlaceActionLinksCreateCall) Do(opts ...googleapi.CallOption) (*PlaceActionLink, error)

Do executes the "mybusinessplaceactions.locations.placeActionLinks.create" call. Any non-2xx status code is an error. Response headers are in either *PlaceActionLink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LocationsPlaceActionLinksCreateCall) Fields

func (c *LocationsPlaceActionLinksCreateCall) Fields(s ...googleapi.Field) *LocationsPlaceActionLinksCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LocationsPlaceActionLinksCreateCall) Header

func (c *LocationsPlaceActionLinksCreateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type LocationsPlaceActionLinksDeleteCall

type LocationsPlaceActionLinksDeleteCall struct {
    // contains filtered or unexported fields
}

func (*LocationsPlaceActionLinksDeleteCall) Context

func (c *LocationsPlaceActionLinksDeleteCall) Context(ctx context.Context) *LocationsPlaceActionLinksDeleteCall

Context sets the context to be used in this call's Do method.

func (*LocationsPlaceActionLinksDeleteCall) Do

func (c *LocationsPlaceActionLinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)

Do executes the "mybusinessplaceactions.locations.placeActionLinks.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LocationsPlaceActionLinksDeleteCall) Fields

func (c *LocationsPlaceActionLinksDeleteCall) Fields(s ...googleapi.Field) *LocationsPlaceActionLinksDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LocationsPlaceActionLinksDeleteCall) Header

func (c *LocationsPlaceActionLinksDeleteCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type LocationsPlaceActionLinksGetCall

type LocationsPlaceActionLinksGetCall struct {
    // contains filtered or unexported fields
}

func (*LocationsPlaceActionLinksGetCall) Context

func (c *LocationsPlaceActionLinksGetCall) Context(ctx context.Context) *LocationsPlaceActionLinksGetCall

Context sets the context to be used in this call's Do method.

func (*LocationsPlaceActionLinksGetCall) Do

func (c *LocationsPlaceActionLinksGetCall) Do(opts ...googleapi.CallOption) (*PlaceActionLink, error)

Do executes the "mybusinessplaceactions.locations.placeActionLinks.get" call. Any non-2xx status code is an error. Response headers are in either *PlaceActionLink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LocationsPlaceActionLinksGetCall) Fields

func (c *LocationsPlaceActionLinksGetCall) Fields(s ...googleapi.Field) *LocationsPlaceActionLinksGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LocationsPlaceActionLinksGetCall) Header

func (c *LocationsPlaceActionLinksGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*LocationsPlaceActionLinksGetCall) IfNoneMatch

func (c *LocationsPlaceActionLinksGetCall) IfNoneMatch(entityTag string) *LocationsPlaceActionLinksGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type LocationsPlaceActionLinksListCall

type LocationsPlaceActionLinksListCall struct {
    // contains filtered or unexported fields
}

func (*LocationsPlaceActionLinksListCall) Context

func (c *LocationsPlaceActionLinksListCall) Context(ctx context.Context) *LocationsPlaceActionLinksListCall

Context sets the context to be used in this call's Do method.

func (*LocationsPlaceActionLinksListCall) Do

func (c *LocationsPlaceActionLinksListCall) Do(opts ...googleapi.CallOption) (*ListPlaceActionLinksResponse, error)

Do executes the "mybusinessplaceactions.locations.placeActionLinks.list" call. Any non-2xx status code is an error. Response headers are in either *ListPlaceActionLinksResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LocationsPlaceActionLinksListCall) Fields

func (c *LocationsPlaceActionLinksListCall) Fields(s ...googleapi.Field) *LocationsPlaceActionLinksListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LocationsPlaceActionLinksListCall) Filter

func (c *LocationsPlaceActionLinksListCall) Filter(filter string) *LocationsPlaceActionLinksListCall

Filter sets the optional parameter "filter": A filter constraining the place action links to return. The response includes entries that match the filter. We support only the following filter: 1. place_action_type=XYZ where XYZ is a valid PlaceActionType.

func (*LocationsPlaceActionLinksListCall) Header

func (c *LocationsPlaceActionLinksListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*LocationsPlaceActionLinksListCall) IfNoneMatch

func (c *LocationsPlaceActionLinksListCall) IfNoneMatch(entityTag string) *LocationsPlaceActionLinksListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*LocationsPlaceActionLinksListCall) PageSize

func (c *LocationsPlaceActionLinksListCall) PageSize(pageSize int64) *LocationsPlaceActionLinksListCall

PageSize sets the optional parameter "pageSize": How many place action links to return per page. Default of 10. The minimum is 1.

func (*LocationsPlaceActionLinksListCall) PageToken

func (c *LocationsPlaceActionLinksListCall) PageToken(pageToken string) *LocationsPlaceActionLinksListCall

PageToken sets the optional parameter "pageToken": If specified, returns the next page of place action links.

func (*LocationsPlaceActionLinksListCall) Pages

func (c *LocationsPlaceActionLinksListCall) Pages(ctx context.Context, f func(*ListPlaceActionLinksResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type LocationsPlaceActionLinksPatchCall

type LocationsPlaceActionLinksPatchCall struct {
    // contains filtered or unexported fields
}

func (*LocationsPlaceActionLinksPatchCall) Context

func (c *LocationsPlaceActionLinksPatchCall) Context(ctx context.Context) *LocationsPlaceActionLinksPatchCall

Context sets the context to be used in this call's Do method.

func (*LocationsPlaceActionLinksPatchCall) Do

func (c *LocationsPlaceActionLinksPatchCall) Do(opts ...googleapi.CallOption) (*PlaceActionLink, error)

Do executes the "mybusinessplaceactions.locations.placeActionLinks.patch" call. Any non-2xx status code is an error. Response headers are in either *PlaceActionLink.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LocationsPlaceActionLinksPatchCall) Fields

func (c *LocationsPlaceActionLinksPatchCall) Fields(s ...googleapi.Field) *LocationsPlaceActionLinksPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LocationsPlaceActionLinksPatchCall) Header

func (c *LocationsPlaceActionLinksPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*LocationsPlaceActionLinksPatchCall) UpdateMask

func (c *LocationsPlaceActionLinksPatchCall) UpdateMask(updateMask string) *LocationsPlaceActionLinksPatchCall

UpdateMask sets the optional parameter "updateMask": Required. The specific fields to update. The only editable fields are `uri`, `place_action_type` and `is_preferred`. If the updated link already exists at the same location with the same `place_action_type` and `uri`, fails with an `ALREADY_EXISTS` error.

type LocationsPlaceActionLinksService

type LocationsPlaceActionLinksService struct {
    // contains filtered or unexported fields
}

func NewLocationsPlaceActionLinksService

func NewLocationsPlaceActionLinksService(s *Service) *LocationsPlaceActionLinksService

func (*LocationsPlaceActionLinksService) Create

func (r *LocationsPlaceActionLinksService) Create(parent string, placeactionlink *PlaceActionLink) *LocationsPlaceActionLinksCreateCall

Create: Creates a place action link associated with the specified location, and returns it. The request is considered duplicate if the `parent`, `place_action_link.uri` and `place_action_link.place_action_type` are the same as a previous request.

func (*LocationsPlaceActionLinksService) Delete

func (r *LocationsPlaceActionLinksService) Delete(name string) *LocationsPlaceActionLinksDeleteCall

Delete: Deletes a place action link from the specified location.

func (*LocationsPlaceActionLinksService) Get

func (r *LocationsPlaceActionLinksService) Get(name string) *LocationsPlaceActionLinksGetCall

Get: Gets the specified place action link.

- name: The name of the place action link to fetch.

func (*LocationsPlaceActionLinksService) List

func (r *LocationsPlaceActionLinksService) List(parent string) *LocationsPlaceActionLinksListCall

List: Lists the place action links for the specified location.

func (*LocationsPlaceActionLinksService) Patch

func (r *LocationsPlaceActionLinksService) Patch(name string, placeactionlink *PlaceActionLink) *LocationsPlaceActionLinksPatchCall

Patch: Updates the specified place action link and returns it.

type LocationsService

type LocationsService struct {
    PlaceActionLinks *LocationsPlaceActionLinksService
    // contains filtered or unexported fields
}

func NewLocationsService

func NewLocationsService(s *Service) *LocationsService

PlaceActionLink: Represents a place action link and its attributes.

type PlaceActionLink struct {
    // CreateTime: Output only. The time when the place action link was created.
    CreateTime string `json:"createTime,omitempty"`
    // IsEditable: Output only. Indicates whether this link can be edited by the
    // client.
    IsEditable bool `json:"isEditable,omitempty"`
    // IsPreferred: Optional. Whether this link is preferred by the merchant. Only
    // one link can be marked as preferred per place action type at a location. If
    // a future request marks a different link as preferred for the same place
    // action type, then the current preferred link (if any exists) will lose its
    // preference.
    IsPreferred bool `json:"isPreferred,omitempty"`
    // Name: Optional. The resource name, in the format
    // `locations/{location_id}/placeActionLinks/{place_action_link_id}`. The name
    // field will only be considered in UpdatePlaceActionLink and
    // DeletePlaceActionLink requests for updating and deleting links respectively.
    // However, it will be ignored in CreatePlaceActionLink request, where
    // `place_action_link_id` will be assigned by the server on successful creation
    // of a new link and returned as part of the response.
    Name string `json:"name,omitempty"`
    // PlaceActionType: Required. The type of place action that can be performed
    // using this link.
    //
    // Possible values:
    //   "PLACE_ACTION_TYPE_UNSPECIFIED" - Not specified.
    //   "APPOINTMENT" - The action type is booking an appointment.
    //   "ONLINE_APPOINTMENT" - The action type is booking an online appointment.
    //   "DINING_RESERVATION" - The action type is making a dining reservation.
    //   "FOOD_ORDERING" - The action type is ordering food for delivery and/or
    // takeout.
    //   "FOOD_DELIVERY" - The action type is ordering food for delivery.
    //   "FOOD_TAKEOUT" - The action type is ordering food for takeout.
    //   "SHOP_ONLINE" - The action type is shopping, that can be delivery and/or
    // pickup.
    PlaceActionType string `json:"placeActionType,omitempty"`
    // ProviderType: Output only. Specifies the provider type.
    //
    // Possible values:
    //   "PROVIDER_TYPE_UNSPECIFIED" - Not specified.
    //   "MERCHANT" - A 1P provider such as a merchant, or an agency on behalf of a
    // merchant.
    //   "AGGREGATOR_3P" - A 3P aggregator, such as a `Reserve with Google`
    // partner.
    ProviderType string `json:"providerType,omitempty"`
    // UpdateTime: Output only. The time when the place action link was last
    // modified.
    UpdateTime string `json:"updateTime,omitempty"`
    // Uri: Required. The link uri. The same uri can be reused for different action
    // types across different locations. However, only one place action link is
    // allowed for each unique combination of (uri, place action type, location).
    Uri string `json:"uri,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the server.
    googleapi.ServerResponse `json:"-"`
    // ForceSendFields is a list of field names (e.g. "CreateTime") to
    // unconditionally include in API requests. By default, fields with empty or
    // default values are omitted from API requests. See
    // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
    // details.
    ForceSendFields []string `json:"-"`
    // NullFields is a list of field names (e.g. "CreateTime") to include in API
    // requests with the JSON null value. By default, fields with empty values are
    // omitted from API requests. See
    // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
    NullFields []string `json:"-"`
}

func (*PlaceActionLink) MarshalJSON

func (s *PlaceActionLink) MarshalJSON() ([]byte, error)

type PlaceActionTypeMetadata

PlaceActionTypeMetadata: Metadata for supported place action types.

type PlaceActionTypeMetadata struct {
    // DisplayName: The localized display name for the attribute, if available;
    // otherwise, the English display name.
    DisplayName string `json:"displayName,omitempty"`
    // PlaceActionType: The place action type.
    //
    // Possible values:
    //   "PLACE_ACTION_TYPE_UNSPECIFIED" - Not specified.
    //   "APPOINTMENT" - The action type is booking an appointment.
    //   "ONLINE_APPOINTMENT" - The action type is booking an online appointment.
    //   "DINING_RESERVATION" - The action type is making a dining reservation.
    //   "FOOD_ORDERING" - The action type is ordering food for delivery and/or
    // takeout.
    //   "FOOD_DELIVERY" - The action type is ordering food for delivery.
    //   "FOOD_TAKEOUT" - The action type is ordering food for takeout.
    //   "SHOP_ONLINE" - The action type is shopping, that can be delivery and/or
    // pickup.
    PlaceActionType string `json:"placeActionType,omitempty"`
    // ForceSendFields is a list of field names (e.g. "DisplayName") to
    // unconditionally include in API requests. By default, fields with empty or
    // default values are omitted from API requests. See
    // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
    // details.
    ForceSendFields []string `json:"-"`
    // NullFields is a list of field names (e.g. "DisplayName") to include in API
    // requests with the JSON null value. By default, fields with empty values are
    // omitted from API requests. See
    // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
    NullFields []string `json:"-"`
}

func (*PlaceActionTypeMetadata) MarshalJSON

func (s *PlaceActionTypeMetadata) MarshalJSON() ([]byte, error)

type PlaceActionTypeMetadataListCall

type PlaceActionTypeMetadataListCall struct {
    // contains filtered or unexported fields
}

func (*PlaceActionTypeMetadataListCall) Context

func (c *PlaceActionTypeMetadataListCall) Context(ctx context.Context) *PlaceActionTypeMetadataListCall

Context sets the context to be used in this call's Do method.

func (*PlaceActionTypeMetadataListCall) Do

func (c *PlaceActionTypeMetadataListCall) Do(opts ...googleapi.CallOption) (*ListPlaceActionTypeMetadataResponse, error)

Do executes the "mybusinessplaceactions.placeActionTypeMetadata.list" call. Any non-2xx status code is an error. Response headers are in either *ListPlaceActionTypeMetadataResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*PlaceActionTypeMetadataListCall) Fields

func (c *PlaceActionTypeMetadataListCall) Fields(s ...googleapi.Field) *PlaceActionTypeMetadataListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*PlaceActionTypeMetadataListCall) Filter

func (c *PlaceActionTypeMetadataListCall) Filter(filter string) *PlaceActionTypeMetadataListCall

Filter sets the optional parameter "filter": A filter constraining the place action types to return metadata for. The response includes entries that match the filter. We support only the following filters: 1. location=XYZ where XYZ is a string indicating the resource name of a location, in the format `locations/{location_id}`. 2. region_code=XYZ where XYZ is a Unicode CLDR region code to find available action types. If no filter is provided, all place action types are returned.

func (*PlaceActionTypeMetadataListCall) Header

func (c *PlaceActionTypeMetadataListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*PlaceActionTypeMetadataListCall) IfNoneMatch

func (c *PlaceActionTypeMetadataListCall) IfNoneMatch(entityTag string) *PlaceActionTypeMetadataListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*PlaceActionTypeMetadataListCall) LanguageCode

func (c *PlaceActionTypeMetadataListCall) LanguageCode(languageCode string) *PlaceActionTypeMetadataListCall

LanguageCode sets the optional parameter "languageCode": The IETF BCP-47 code of language to get display names in. If this language is not available, they will be provided in English.

func (*PlaceActionTypeMetadataListCall) PageSize

func (c *PlaceActionTypeMetadataListCall) PageSize(pageSize int64) *PlaceActionTypeMetadataListCall

PageSize sets the optional parameter "pageSize": How many action types to include per page. Default is 10, minimum is 1.

func (*PlaceActionTypeMetadataListCall) PageToken

func (c *PlaceActionTypeMetadataListCall) PageToken(pageToken string) *PlaceActionTypeMetadataListCall

PageToken sets the optional parameter "pageToken": If specified, the next page of place action type metadata is retrieved. The `pageToken` is returned when a call to `placeActionTypeMetadata.list` returns more results than can fit into the requested page size.

func (*PlaceActionTypeMetadataListCall) Pages

func (c *PlaceActionTypeMetadataListCall) Pages(ctx context.Context, f func(*ListPlaceActionTypeMetadataResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type PlaceActionTypeMetadataService

type PlaceActionTypeMetadataService struct {
    // contains filtered or unexported fields
}

func NewPlaceActionTypeMetadataService

func NewPlaceActionTypeMetadataService(s *Service) *PlaceActionTypeMetadataService

func (*PlaceActionTypeMetadataService) List

func (r *PlaceActionTypeMetadataService) List() *PlaceActionTypeMetadataListCall

List: Returns the list of available place action types for a location or country.

type Service

type Service struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    Locations *LocationsService

    PlaceActionTypeMetadata *PlaceActionTypeMetadataService
    // contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.