itemproto

package
v0.0.0-...-73856a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Status_name = map[int32]string{
	0: "DRAFT",
	1: "PUBLISHED",
	2: "UNKNOWN",
}
View Source
var Status_value = map[string]int32{
	"DRAFT":     0,
	"PUBLISHED": 1,
	"UNKNOWN":   2,
}

Functions

This section is empty.

Types

type GETReadItemFuture

type GETReadItemFuture struct {
	Future   *typhon.ResponseFuture
	Response *typhon.Response
}

GETReadItemFuture is an intermediate future used for parallel requests with GETReadItemRequest

func (*GETReadItemFuture) DecodeResponse

func (f *GETReadItemFuture) DecodeResponse() (*GETReadItemResponse, error)

DecodeResponse waits for this future to be done and then decodes the response into a concrete type.

func (*GETReadItemFuture) Done

func (f *GETReadItemFuture) Done()

Done waits for a response from a typhon future, and is safe to call multiple times in a row.

type GETReadItemRequest

type GETReadItemRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Slug                 string   `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GETReadItemRequest) Descriptor

func (*GETReadItemRequest) Descriptor() ([]byte, []int)

func (GETReadItemRequest) FullPath

func (body GETReadItemRequest) FullPath() string

FullPath is the full routable URL to this service.

func (*GETReadItemRequest) GetId

func (m *GETReadItemRequest) GetId() string

func (*GETReadItemRequest) GetSlug

func (m *GETReadItemRequest) GetSlug() string

func (GETReadItemRequest) Host

func (body GETReadItemRequest) Host() string

Host is the short-form service name, e.g. s-brand.

func (GETReadItemRequest) Method

func (body GETReadItemRequest) Method() string

Method is the HTTP method used for this request. It is inferred from the name of the Request using a prefix match.

func (GETReadItemRequest) Path

func (body GETReadItemRequest) Path() string

Path is the HTTP path to this endpoint

func (*GETReadItemRequest) ProtoMessage

func (*GETReadItemRequest) ProtoMessage()

func (GETReadItemRequest) Request

func (body GETReadItemRequest) Request(ctx context.Context) typhon.Request

Request returns a typhon request for this type.

func (*GETReadItemRequest) Reset

func (m *GETReadItemRequest) Reset()

func (GETReadItemRequest) Response

Response is a shortcut for .Send(ctx).DecodeResponse(), for when you do not need a future. This saves on boilerplate throughout the codebase and you should use this method unless you need parallel requests.

func (GETReadItemRequest) Send

Send creates a typhon future and immediately returns it. To wait for the request to complete and return the response, use DecodeResponse on the returned future.

func (GETReadItemRequest) SendVia

SendVia creates a typhon future and immediately returns it, passing the request through svc. To wait for the request to complete and return the response, use DecodeResponse on the returned future.

func (GETReadItemRequest) ServiceName

func (body GETReadItemRequest) ServiceName() string

ServiceName is the long-form service name, e.g. service.brand.

func (*GETReadItemRequest) String

func (m *GETReadItemRequest) String() string

func (*GETReadItemRequest) XXX_DiscardUnknown

func (m *GETReadItemRequest) XXX_DiscardUnknown()

func (*GETReadItemRequest) XXX_Marshal

func (m *GETReadItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GETReadItemRequest) XXX_Merge

func (m *GETReadItemRequest) XXX_Merge(src proto.Message)

func (*GETReadItemRequest) XXX_Size

func (m *GETReadItemRequest) XXX_Size() int

func (*GETReadItemRequest) XXX_Unmarshal

func (m *GETReadItemRequest) XXX_Unmarshal(b []byte) error

type GETReadItemResponse

type GETReadItemResponse struct {
	Item                 *Item    `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GETReadItemResponse) Descriptor

func (*GETReadItemResponse) Descriptor() ([]byte, []int)

func (*GETReadItemResponse) GetItem

func (m *GETReadItemResponse) GetItem() *Item

func (*GETReadItemResponse) ProtoMessage

func (*GETReadItemResponse) ProtoMessage()

func (*GETReadItemResponse) Reset

func (m *GETReadItemResponse) Reset()

func (*GETReadItemResponse) String

func (m *GETReadItemResponse) String() string

func (*GETReadItemResponse) XXX_DiscardUnknown

func (m *GETReadItemResponse) XXX_DiscardUnknown()

func (*GETReadItemResponse) XXX_Marshal

func (m *GETReadItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GETReadItemResponse) XXX_Merge

func (m *GETReadItemResponse) XXX_Merge(src proto.Message)

func (*GETReadItemResponse) XXX_Size

func (m *GETReadItemResponse) XXX_Size() int

func (*GETReadItemResponse) XXX_Unmarshal

func (m *GETReadItemResponse) XXX_Unmarshal(b []byte) error

type Item

type Item struct {
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Slug          string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	BrandId       string `protobuf:"bytes,3,opt,name=brand_id,json=brandId,proto3" json:"brand_id,omitempty"`
	CategoryId    string `protobuf:"bytes,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
	UserId        string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ImageId       string `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	PublisherId   string `protobuf:"bytes,7,opt,name=publisher_id,json=publisherId,proto3" json:"publisher_id,omitempty"`
	EnglishName   string `protobuf:"bytes,8,opt,name=english_name,json=englishName,proto3" json:"english_name,omitempty"`
	ForeignName   string `protobuf:"bytes,9,opt,name=foreign_name,json=foreignName,proto3" json:"foreign_name,omitempty"`
	ProductNumber string `protobuf:"bytes,10,opt,name=product_number,json=productNumber,proto3" json:"product_number,omitempty"`
	Currency      string `protobuf:"bytes,11,opt,name=currency,proto3" json:"currency,omitempty"`
	Price         string `protobuf:"bytes,12,opt,name=price,proto3" json:"price,omitempty"`
	Year          int32  `protobuf:"varint,13,opt,name=year,proto3" json:"year,omitempty"`
	Notes         string `protobuf:"bytes,14,opt,name=notes,proto3" json:"notes,omitempty"`
	Status        Status `protobuf:"varint,40,opt,name=status,proto3,enum=itemproto.Status" json:"status,omitempty"`
	// key-value searchable metadata.
	Metadata   map[string]string `` /* 158-byte string literal not displayed */
	Features   []string          `protobuf:"bytes,51,rep,name=features,proto3" json:"features,omitempty"`
	Colors     []string          `protobuf:"bytes,52,rep,name=colors,proto3" json:"colors,omitempty"`
	Tags       []string          `protobuf:"bytes,53,rep,name=tags,proto3" json:"tags,omitempty"`
	Attributes map[string]string `` /* 162-byte string literal not displayed */
	// timestamps
	CreatedAt            string   `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            string   `protobuf:"bytes,101,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	PublishedAt          string   `protobuf:"bytes,102,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Item) Descriptor

func (*Item) Descriptor() ([]byte, []int)

func (*Item) GetAttributes

func (m *Item) GetAttributes() map[string]string

func (*Item) GetBrandId

func (m *Item) GetBrandId() string

func (*Item) GetCategoryId

func (m *Item) GetCategoryId() string

func (*Item) GetColors

func (m *Item) GetColors() []string

func (*Item) GetCreatedAt

func (m *Item) GetCreatedAt() string

func (*Item) GetCurrency

func (m *Item) GetCurrency() string

func (*Item) GetEnglishName

func (m *Item) GetEnglishName() string

func (*Item) GetFeatures

func (m *Item) GetFeatures() []string

func (*Item) GetForeignName

func (m *Item) GetForeignName() string

func (*Item) GetId

func (m *Item) GetId() string

func (*Item) GetImageId

func (m *Item) GetImageId() string

func (*Item) GetMetadata

func (m *Item) GetMetadata() map[string]string

func (*Item) GetNotes

func (m *Item) GetNotes() string

func (*Item) GetPrice

func (m *Item) GetPrice() string

func (*Item) GetProductNumber

func (m *Item) GetProductNumber() string

func (*Item) GetPublishedAt

func (m *Item) GetPublishedAt() string

func (*Item) GetPublisherId

func (m *Item) GetPublisherId() string

func (*Item) GetSlug

func (m *Item) GetSlug() string

func (*Item) GetStatus

func (m *Item) GetStatus() Status

func (*Item) GetTags

func (m *Item) GetTags() []string

func (*Item) GetUpdatedAt

func (m *Item) GetUpdatedAt() string

func (*Item) GetUserId

func (m *Item) GetUserId() string

func (*Item) GetYear

func (m *Item) GetYear() int32

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) Reset

func (m *Item) Reset()

func (*Item) String

func (m *Item) String() string

func (*Item) XXX_DiscardUnknown

func (m *Item) XXX_DiscardUnknown()

func (*Item) XXX_Marshal

func (m *Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Item) XXX_Merge

func (m *Item) XXX_Merge(src proto.Message)

func (*Item) XXX_Size

func (m *Item) XXX_Size() int

func (*Item) XXX_Unmarshal

func (m *Item) XXX_Unmarshal(b []byte) error

type POSTCreateItemFuture

type POSTCreateItemFuture struct {
	Future   *typhon.ResponseFuture
	Response *typhon.Response
}

POSTCreateItemFuture is an intermediate future used for parallel requests with POSTCreateItemRequest

func (*POSTCreateItemFuture) DecodeResponse

func (f *POSTCreateItemFuture) DecodeResponse() (*POSTCreateItemResponse, error)

DecodeResponse waits for this future to be done and then decodes the response into a concrete type.

func (*POSTCreateItemFuture) Done

func (f *POSTCreateItemFuture) Done()

Done waits for a response from a typhon future, and is safe to call multiple times in a row.

type POSTCreateItemRequest

type POSTCreateItemRequest struct {
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Slug          string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	BrandId       string `protobuf:"bytes,3,opt,name=brand_id,json=brandId,proto3" json:"brand_id,omitempty"`
	CategoryId    string `protobuf:"bytes,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
	UserId        string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ImageId       string `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	EnglishName   string `protobuf:"bytes,8,opt,name=english_name,json=englishName,proto3" json:"english_name,omitempty"`
	ForeignName   string `protobuf:"bytes,9,opt,name=foreign_name,json=foreignName,proto3" json:"foreign_name,omitempty"`
	ProductNumber string `protobuf:"bytes,10,opt,name=product_number,json=productNumber,proto3" json:"product_number,omitempty"`
	Currency      string `protobuf:"bytes,11,opt,name=currency,proto3" json:"currency,omitempty"`
	Price         string `protobuf:"bytes,12,opt,name=price,proto3" json:"price,omitempty"`
	Year          int32  `protobuf:"varint,13,opt,name=year,proto3" json:"year,omitempty"`
	Notes         string `protobuf:"bytes,14,opt,name=notes,proto3" json:"notes,omitempty"`
	// key-value searchable metadata.
	Metadata   map[string]string `` /* 158-byte string literal not displayed */
	Features   []string          `protobuf:"bytes,51,rep,name=features,proto3" json:"features,omitempty"`
	Colors     []string          `protobuf:"bytes,52,rep,name=colors,proto3" json:"colors,omitempty"`
	Tags       []string          `protobuf:"bytes,53,rep,name=tags,proto3" json:"tags,omitempty"`
	Attributes map[string]string `` /* 162-byte string literal not displayed */
	// timestamps
	CreatedAt            string   `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            string   `protobuf:"bytes,101,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	PublishedAt          string   `protobuf:"bytes,102,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*POSTCreateItemRequest) Descriptor

func (*POSTCreateItemRequest) Descriptor() ([]byte, []int)

func (POSTCreateItemRequest) FullPath

func (body POSTCreateItemRequest) FullPath() string

FullPath is the full routable URL to this service.

func (*POSTCreateItemRequest) GetAttributes

func (m *POSTCreateItemRequest) GetAttributes() map[string]string

func (*POSTCreateItemRequest) GetBrandId

func (m *POSTCreateItemRequest) GetBrandId() string

func (*POSTCreateItemRequest) GetCategoryId

func (m *POSTCreateItemRequest) GetCategoryId() string

func (*POSTCreateItemRequest) GetColors

func (m *POSTCreateItemRequest) GetColors() []string

func (*POSTCreateItemRequest) GetCreatedAt

func (m *POSTCreateItemRequest) GetCreatedAt() string

func (*POSTCreateItemRequest) GetCurrency

func (m *POSTCreateItemRequest) GetCurrency() string

func (*POSTCreateItemRequest) GetEnglishName

func (m *POSTCreateItemRequest) GetEnglishName() string

func (*POSTCreateItemRequest) GetFeatures

func (m *POSTCreateItemRequest) GetFeatures() []string

func (*POSTCreateItemRequest) GetForeignName

func (m *POSTCreateItemRequest) GetForeignName() string

func (*POSTCreateItemRequest) GetId

func (m *POSTCreateItemRequest) GetId() string

func (*POSTCreateItemRequest) GetImageId

func (m *POSTCreateItemRequest) GetImageId() string

func (*POSTCreateItemRequest) GetMetadata

func (m *POSTCreateItemRequest) GetMetadata() map[string]string

func (*POSTCreateItemRequest) GetNotes

func (m *POSTCreateItemRequest) GetNotes() string

func (*POSTCreateItemRequest) GetPrice

func (m *POSTCreateItemRequest) GetPrice() string

func (*POSTCreateItemRequest) GetProductNumber

func (m *POSTCreateItemRequest) GetProductNumber() string

func (*POSTCreateItemRequest) GetPublishedAt

func (m *POSTCreateItemRequest) GetPublishedAt() string

func (*POSTCreateItemRequest) GetSlug

func (m *POSTCreateItemRequest) GetSlug() string

func (*POSTCreateItemRequest) GetTags

func (m *POSTCreateItemRequest) GetTags() []string

func (*POSTCreateItemRequest) GetUpdatedAt

func (m *POSTCreateItemRequest) GetUpdatedAt() string

func (*POSTCreateItemRequest) GetUserId

func (m *POSTCreateItemRequest) GetUserId() string

func (*POSTCreateItemRequest) GetYear

func (m *POSTCreateItemRequest) GetYear() int32

func (POSTCreateItemRequest) Host

func (body POSTCreateItemRequest) Host() string

Host is the short-form service name, e.g. s-brand.

func (POSTCreateItemRequest) Method

func (body POSTCreateItemRequest) Method() string

Method is the HTTP method used for this request. It is inferred from the name of the Request using a prefix match.

func (POSTCreateItemRequest) Path

func (body POSTCreateItemRequest) Path() string

Path is the HTTP path to this endpoint

func (*POSTCreateItemRequest) ProtoMessage

func (*POSTCreateItemRequest) ProtoMessage()

func (POSTCreateItemRequest) Request

Request returns a typhon request for this type.

func (*POSTCreateItemRequest) Reset

func (m *POSTCreateItemRequest) Reset()

func (POSTCreateItemRequest) Response

Response is a shortcut for .Send(ctx).DecodeResponse(), for when you do not need a future. This saves on boilerplate throughout the codebase and you should use this method unless you need parallel requests.

func (POSTCreateItemRequest) Send

Send creates a typhon future and immediately returns it. To wait for the request to complete and return the response, use DecodeResponse on the returned future.

func (POSTCreateItemRequest) SendVia

SendVia creates a typhon future and immediately returns it, passing the request through svc. To wait for the request to complete and return the response, use DecodeResponse on the returned future.

func (POSTCreateItemRequest) ServiceName

func (body POSTCreateItemRequest) ServiceName() string

ServiceName is the long-form service name, e.g. service.brand.

func (*POSTCreateItemRequest) String

func (m *POSTCreateItemRequest) String() string

func (*POSTCreateItemRequest) XXX_DiscardUnknown

func (m *POSTCreateItemRequest) XXX_DiscardUnknown()

func (*POSTCreateItemRequest) XXX_Marshal

func (m *POSTCreateItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*POSTCreateItemRequest) XXX_Merge

func (m *POSTCreateItemRequest) XXX_Merge(src proto.Message)

func (*POSTCreateItemRequest) XXX_Size

func (m *POSTCreateItemRequest) XXX_Size() int

func (*POSTCreateItemRequest) XXX_Unmarshal

func (m *POSTCreateItemRequest) XXX_Unmarshal(b []byte) error

type POSTCreateItemResponse

type POSTCreateItemResponse struct {
	Item                 *Item    `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*POSTCreateItemResponse) Descriptor

func (*POSTCreateItemResponse) Descriptor() ([]byte, []int)

func (*POSTCreateItemResponse) GetItem

func (m *POSTCreateItemResponse) GetItem() *Item

func (*POSTCreateItemResponse) ProtoMessage

func (*POSTCreateItemResponse) ProtoMessage()

func (*POSTCreateItemResponse) Reset

func (m *POSTCreateItemResponse) Reset()

func (*POSTCreateItemResponse) String

func (m *POSTCreateItemResponse) String() string

func (*POSTCreateItemResponse) XXX_DiscardUnknown

func (m *POSTCreateItemResponse) XXX_DiscardUnknown()

func (*POSTCreateItemResponse) XXX_Marshal

func (m *POSTCreateItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*POSTCreateItemResponse) XXX_Merge

func (m *POSTCreateItemResponse) XXX_Merge(src proto.Message)

func (*POSTCreateItemResponse) XXX_Size

func (m *POSTCreateItemResponse) XXX_Size() int

func (*POSTCreateItemResponse) XXX_Unmarshal

func (m *POSTCreateItemResponse) XXX_Unmarshal(b []byte) error

type PUTUpdateItemFuture

type PUTUpdateItemFuture struct {
	Future   *typhon.ResponseFuture
	Response *typhon.Response
}

PUTUpdateItemFuture is an intermediate future used for parallel requests with PUTUpdateItemRequest

func (*PUTUpdateItemFuture) DecodeResponse

func (f *PUTUpdateItemFuture) DecodeResponse() (*PUTUpdateItemResponse, error)

DecodeResponse waits for this future to be done and then decodes the response into a concrete type.

func (*PUTUpdateItemFuture) Done

func (f *PUTUpdateItemFuture) Done()

Done waits for a response from a typhon future, and is safe to call multiple times in a row.

type PUTUpdateItemRequest

type PUTUpdateItemRequest struct {
	Id                   string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Slug                 string            `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	BrandId              string            `protobuf:"bytes,3,opt,name=brand_id,json=brandId,proto3" json:"brand_id,omitempty"`
	CategoryId           string            `protobuf:"bytes,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
	ImageId              string            `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	EnglishName          string            `protobuf:"bytes,8,opt,name=english_name,json=englishName,proto3" json:"english_name,omitempty"`
	ForeignName          string            `protobuf:"bytes,9,opt,name=foreign_name,json=foreignName,proto3" json:"foreign_name,omitempty"`
	ProductNumber        string            `protobuf:"bytes,10,opt,name=product_number,json=productNumber,proto3" json:"product_number,omitempty"`
	Currency             string            `protobuf:"bytes,11,opt,name=currency,proto3" json:"currency,omitempty"`
	Price                string            `protobuf:"bytes,12,opt,name=price,proto3" json:"price,omitempty"`
	Year                 int32             `protobuf:"varint,13,opt,name=year,proto3" json:"year,omitempty"`
	Notes                string            `protobuf:"bytes,14,opt,name=notes,proto3" json:"notes,omitempty"`
	Metadata             map[string]string `` /* 158-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*PUTUpdateItemRequest) Descriptor

func (*PUTUpdateItemRequest) Descriptor() ([]byte, []int)

func (PUTUpdateItemRequest) FullPath

func (body PUTUpdateItemRequest) FullPath() string

FullPath is the full routable URL to this service.

func (*PUTUpdateItemRequest) GetBrandId

func (m *PUTUpdateItemRequest) GetBrandId() string

func (*PUTUpdateItemRequest) GetCategoryId

func (m *PUTUpdateItemRequest) GetCategoryId() string

func (*PUTUpdateItemRequest) GetCurrency

func (m *PUTUpdateItemRequest) GetCurrency() string

func (*PUTUpdateItemRequest) GetEnglishName

func (m *PUTUpdateItemRequest) GetEnglishName() string

func (*PUTUpdateItemRequest) GetForeignName

func (m *PUTUpdateItemRequest) GetForeignName() string

func (*PUTUpdateItemRequest) GetId

func (m *PUTUpdateItemRequest) GetId() string

func (*PUTUpdateItemRequest) GetImageId

func (m *PUTUpdateItemRequest) GetImageId() string

func (*PUTUpdateItemRequest) GetMetadata

func (m *PUTUpdateItemRequest) GetMetadata() map[string]string

func (*PUTUpdateItemRequest) GetNotes

func (m *PUTUpdateItemRequest) GetNotes() string

func (*PUTUpdateItemRequest) GetPrice

func (m *PUTUpdateItemRequest) GetPrice() string

func (*PUTUpdateItemRequest) GetProductNumber

func (m *PUTUpdateItemRequest) GetProductNumber() string

func (*PUTUpdateItemRequest) GetSlug

func (m *PUTUpdateItemRequest) GetSlug() string

func (*PUTUpdateItemRequest) GetYear

func (m *PUTUpdateItemRequest) GetYear() int32

func (PUTUpdateItemRequest) Host

func (body PUTUpdateItemRequest) Host() string

Host is the short-form service name, e.g. s-brand.

func (PUTUpdateItemRequest) Method

func (body PUTUpdateItemRequest) Method() string

Method is the HTTP method used for this request. It is inferred from the name of the Request using a prefix match.

func (PUTUpdateItemRequest) Path

func (body PUTUpdateItemRequest) Path() string

Path is the HTTP path to this endpoint

func (*PUTUpdateItemRequest) ProtoMessage

func (*PUTUpdateItemRequest) ProtoMessage()

func (PUTUpdateItemRequest) Request

Request returns a typhon request for this type.

func (*PUTUpdateItemRequest) Reset

func (m *PUTUpdateItemRequest) Reset()

func (PUTUpdateItemRequest) Response

Response is a shortcut for .Send(ctx).DecodeResponse(), for when you do not need a future. This saves on boilerplate throughout the codebase and you should use this method unless you need parallel requests.

func (PUTUpdateItemRequest) Send

Send creates a typhon future and immediately returns it. To wait for the request to complete and return the response, use DecodeResponse on the returned future.

func (PUTUpdateItemRequest) SendVia

SendVia creates a typhon future and immediately returns it, passing the request through svc. To wait for the request to complete and return the response, use DecodeResponse on the returned future.

func (PUTUpdateItemRequest) ServiceName

func (body PUTUpdateItemRequest) ServiceName() string

ServiceName is the long-form service name, e.g. service.brand.

func (*PUTUpdateItemRequest) String

func (m *PUTUpdateItemRequest) String() string

func (*PUTUpdateItemRequest) XXX_DiscardUnknown

func (m *PUTUpdateItemRequest) XXX_DiscardUnknown()

func (*PUTUpdateItemRequest) XXX_Marshal

func (m *PUTUpdateItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PUTUpdateItemRequest) XXX_Merge

func (m *PUTUpdateItemRequest) XXX_Merge(src proto.Message)

func (*PUTUpdateItemRequest) XXX_Size

func (m *PUTUpdateItemRequest) XXX_Size() int

func (*PUTUpdateItemRequest) XXX_Unmarshal

func (m *PUTUpdateItemRequest) XXX_Unmarshal(b []byte) error

type PUTUpdateItemResponse

type PUTUpdateItemResponse struct {
	Item                 *Item    `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PUTUpdateItemResponse) Descriptor

func (*PUTUpdateItemResponse) Descriptor() ([]byte, []int)

func (*PUTUpdateItemResponse) GetItem

func (m *PUTUpdateItemResponse) GetItem() *Item

func (*PUTUpdateItemResponse) ProtoMessage

func (*PUTUpdateItemResponse) ProtoMessage()

func (*PUTUpdateItemResponse) Reset

func (m *PUTUpdateItemResponse) Reset()

func (*PUTUpdateItemResponse) String

func (m *PUTUpdateItemResponse) String() string

func (*PUTUpdateItemResponse) XXX_DiscardUnknown

func (m *PUTUpdateItemResponse) XXX_DiscardUnknown()

func (*PUTUpdateItemResponse) XXX_Marshal

func (m *PUTUpdateItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PUTUpdateItemResponse) XXX_Merge

func (m *PUTUpdateItemResponse) XXX_Merge(src proto.Message)

func (*PUTUpdateItemResponse) XXX_Size

func (m *PUTUpdateItemResponse) XXX_Size() int

func (*PUTUpdateItemResponse) XXX_Unmarshal

func (m *PUTUpdateItemResponse) XXX_Unmarshal(b []byte) error

type Status

type Status int32
const (
	Status_DRAFT     Status = 0
	Status_PUBLISHED Status = 1
	Status_UNKNOWN   Status = 2
)

func (Status) EnumDescriptor

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String

func (x Status) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL