Documentation
¶
Index ¶
- Variables
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetCity() string
- func (x *Address) GetCountryCode() string
- func (x *Address) GetLines() []string
- func (x *Address) GetPostalCode() string
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- type Alert
- type DailyForecast
- func (*DailyForecast) Descriptor() ([]byte, []int)deprecated
- func (x *DailyForecast) GetDate() string
- func (x *DailyForecast) GetHigh() *Temperature
- func (x *DailyForecast) GetLow() *Temperature
- func (x *DailyForecast) GetPrecipitationPercent() int32
- func (x *DailyForecast) GetWind() *Wind
- func (*DailyForecast) ProtoMessage()
- func (x *DailyForecast) ProtoReflect() protoreflect.Message
- func (x *DailyForecast) Reset()
- func (x *DailyForecast) String() string
- type FetchForecastRequest
- func (*FetchForecastRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchForecastRequest) GetLocation() string
- func (*FetchForecastRequest) ProtoMessage()
- func (x *FetchForecastRequest) ProtoReflect() protoreflect.Message
- func (x *FetchForecastRequest) Reset()
- func (x *FetchForecastRequest) String() string
- type FetchForecastResponse
- func (*FetchForecastResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FetchForecastResponse) GetForecast() *Forecast
- func (x *FetchForecastResponse) GetMessage() string
- func (*FetchForecastResponse) ProtoMessage()
- func (x *FetchForecastResponse) ProtoReflect() protoreflect.Message
- func (x *FetchForecastResponse) Reset()
- func (x *FetchForecastResponse) String() string
- type Forecast
- type GetForecastRequest
- func (*GetForecastRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetForecastRequest) GetLocation() string
- func (*GetForecastRequest) ProtoMessage()
- func (x *GetForecastRequest) ProtoReflect() protoreflect.Message
- func (x *GetForecastRequest) Reset()
- func (x *GetForecastRequest) String() string
- type GetForecastResponse
- func (*GetForecastResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetForecastResponse) GetForecast() *Forecast
- func (x *GetForecastResponse) GetMessage() string
- func (x *GetForecastResponse) GetSuccess() bool
- func (*GetForecastResponse) ProtoMessage()
- func (x *GetForecastResponse) ProtoReflect() protoreflect.Message
- func (x *GetForecastResponse) Reset()
- func (x *GetForecastResponse) String() string
- type GetForecastV2Request
- func (*GetForecastV2Request) Descriptor() ([]byte, []int)deprecated
- func (x *GetForecastV2Request) GetLocation() string
- func (*GetForecastV2Request) ProtoMessage()
- func (x *GetForecastV2Request) ProtoReflect() protoreflect.Message
- func (x *GetForecastV2Request) Reset()
- func (x *GetForecastV2Request) String() string
- type GetForecastV2Response
- func (*GetForecastV2Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetForecastV2Response) GetAlerts() []*Alert
- func (x *GetForecastV2Response) GetForecast() *Forecast
- func (x *GetForecastV2Response) GetMessage() string
- func (x *GetForecastV2Response) GetSuccess() bool
- func (*GetForecastV2Response) ProtoMessage()
- func (x *GetForecastV2Response) ProtoReflect() protoreflect.Message
- func (x *GetForecastV2Response) Reset()
- func (x *GetForecastV2Response) String() string
- type GetStatusRequest
- type GetStatusResponse
- func (*GetStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatusResponse) GetMessage() string
- func (x *GetStatusResponse) GetRevision() string
- func (x *GetStatusResponse) GetStatus() string
- func (*GetStatusResponse) ProtoMessage()
- func (x *GetStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetStatusResponse) Reset()
- func (x *GetStatusResponse) String() string
- type GetUserRequest
- type GetUserResponse
- type ListUsersRequest
- func (*ListUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersRequest) GetIds() []string
- func (x *ListUsersRequest) GetRole() Role
- func (*ListUsersRequest) ProtoMessage()
- func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
- func (x *ListUsersRequest) Reset()
- func (x *ListUsersRequest) String() string
- type ListUsersResponse
- func (*ListUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersResponse) GetGeneratedAt() *timestamppb.Timestamp
- func (x *ListUsersResponse) GetTotalCount() int64
- func (x *ListUsersResponse) GetUsers() []*User
- func (*ListUsersResponse) ProtoMessage()
- func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
- func (x *ListUsersResponse) Reset()
- func (x *ListUsersResponse) String() string
- type Phone
- func (*Phone) Descriptor() ([]byte, []int)deprecated
- func (x *Phone) GetCountryCode() string
- func (x *Phone) GetExtension() string
- func (x *Phone) GetNumber() string
- func (*Phone) ProtoMessage()
- func (x *Phone) ProtoReflect() protoreflect.Message
- func (x *Phone) Reset()
- func (x *Phone) String() string
- type Preference
- func (*Preference) Descriptor() ([]byte, []int)deprecated
- func (x *Preference) GetEnabled() bool
- func (x *Preference) GetText() string
- func (x *Preference) GetValue() isPreference_Value
- func (x *Preference) GetWeight() float64
- func (*Preference) ProtoMessage()
- func (x *Preference) ProtoReflect() protoreflect.Message
- func (x *Preference) Reset()
- func (x *Preference) String() string
- type Preference_Enabled
- type Preference_Text
- type Preference_Weight
- type Role
- type Temperature
- func (*Temperature) Descriptor() ([]byte, []int)deprecated
- func (x *Temperature) GetDegrees() float64
- func (x *Temperature) GetUnit() string
- func (*Temperature) ProtoMessage()
- func (x *Temperature) ProtoReflect() protoreflect.Message
- func (x *Temperature) Reset()
- func (x *Temperature) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() []byte
- func (x *User) GetContact() isUser_Contact
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetLabels() map[string]string
- func (x *User) GetName() string
- func (x *User) GetNickname() string
- func (x *User) GetPhone() *Phone
- func (x *User) GetProfile() *User_Profile
- func (x *User) GetRevision() uint64
- func (x *User) GetRoles() []Role
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type User_Email
- type User_Phone
- type User_Profile
- func (*User_Profile) Descriptor() ([]byte, []int)deprecated
- func (x *User_Profile) GetAddresses() []*Address
- func (x *User_Profile) GetMarketingConsent() bool
- func (x *User_Profile) GetPreferences() map[string]*Preference
- func (*User_Profile) ProtoMessage()
- func (x *User_Profile) ProtoReflect() protoreflect.Message
- func (x *User_Profile) Reset()
- func (x *User_Profile) String() string
- type Wind
Constants ¶
This section is empty.
Variables ¶
var ( Role_name = map[int32]string{ 0: "ROLE_UNSPECIFIED", 1: "ROLE_READER", 2: "ROLE_EDITOR", 3: "ROLE_ADMIN", } Role_value = map[string]int32{ "ROLE_UNSPECIFIED": 0, "ROLE_READER": 1, "ROLE_EDITOR": 2, "ROLE_ADMIN": 3, } )
Enum value maps for Role.
var File_forecasts_proto protoreflect.FileDescriptor
var File_service_proto protoreflect.FileDescriptor
var File_users_proto protoreflect.FileDescriptor
var File_weather_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
Lines []string `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"`
City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
PostalCode string `protobuf:"bytes,3,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
CountryCode string `protobuf:"bytes,4,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
// contains filtered or unexported fields
}
func (*Address) Descriptor
deprecated
func (*Address) GetCountryCode ¶
func (*Address) GetPostalCode ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type Alert ¶ added in v0.12.0
type Alert struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Severity string `protobuf:"bytes,2,opt,name=severity,proto3" json:"severity,omitempty"`
Headline string `protobuf:"bytes,3,opt,name=headline,proto3" json:"headline,omitempty"`
// contains filtered or unexported fields
}
func (*Alert) Descriptor
deprecated
added in
v0.12.0
func (*Alert) GetHeadline ¶ added in v0.12.0
func (*Alert) GetSeverity ¶ added in v0.12.0
func (*Alert) ProtoMessage ¶ added in v0.12.0
func (*Alert) ProtoMessage()
func (*Alert) ProtoReflect ¶ added in v0.12.0
func (x *Alert) ProtoReflect() protoreflect.Message
type DailyForecast ¶ added in v0.12.0
type DailyForecast struct {
Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
High *Temperature `protobuf:"bytes,2,opt,name=high,proto3" json:"high,omitempty"`
Low *Temperature `protobuf:"bytes,3,opt,name=low,proto3" json:"low,omitempty"`
PrecipitationPercent int32 `protobuf:"varint,4,opt,name=precipitation_percent,json=precipitationPercent,proto3" json:"precipitation_percent,omitempty"`
Wind *Wind `protobuf:"bytes,5,opt,name=wind,proto3" json:"wind,omitempty"`
// contains filtered or unexported fields
}
func (*DailyForecast) Descriptor
deprecated
added in
v0.12.0
func (*DailyForecast) Descriptor() ([]byte, []int)
Deprecated: Use DailyForecast.ProtoReflect.Descriptor instead.
func (*DailyForecast) GetDate ¶ added in v0.12.0
func (x *DailyForecast) GetDate() string
func (*DailyForecast) GetHigh ¶ added in v0.12.0
func (x *DailyForecast) GetHigh() *Temperature
func (*DailyForecast) GetLow ¶ added in v0.12.0
func (x *DailyForecast) GetLow() *Temperature
func (*DailyForecast) GetPrecipitationPercent ¶ added in v0.12.0
func (x *DailyForecast) GetPrecipitationPercent() int32
func (*DailyForecast) GetWind ¶ added in v0.12.0
func (x *DailyForecast) GetWind() *Wind
func (*DailyForecast) ProtoMessage ¶ added in v0.12.0
func (*DailyForecast) ProtoMessage()
func (*DailyForecast) ProtoReflect ¶ added in v0.12.0
func (x *DailyForecast) ProtoReflect() protoreflect.Message
func (*DailyForecast) Reset ¶ added in v0.12.0
func (x *DailyForecast) Reset()
func (*DailyForecast) String ¶ added in v0.12.0
func (x *DailyForecast) String() string
type FetchForecastRequest ¶ added in v0.16.0
type FetchForecastRequest struct {
Location *string `protobuf:"bytes,1,opt,name=location,proto3,oneof" json:"location,omitempty"`
// contains filtered or unexported fields
}
FetchForecastRequest binds the path wildcard, so egress can hash the request.
func (*FetchForecastRequest) Descriptor
deprecated
added in
v0.16.0
func (*FetchForecastRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchForecastRequest.ProtoReflect.Descriptor instead.
func (*FetchForecastRequest) GetLocation ¶ added in v0.16.0
func (x *FetchForecastRequest) GetLocation() string
func (*FetchForecastRequest) ProtoMessage ¶ added in v0.16.0
func (*FetchForecastRequest) ProtoMessage()
func (*FetchForecastRequest) ProtoReflect ¶ added in v0.16.0
func (x *FetchForecastRequest) ProtoReflect() protoreflect.Message
func (*FetchForecastRequest) Reset ¶ added in v0.16.0
func (x *FetchForecastRequest) Reset()
func (*FetchForecastRequest) String ¶ added in v0.16.0
func (x *FetchForecastRequest) String() string
type FetchForecastResponse ¶ added in v0.16.0
type FetchForecastResponse struct {
Forecast *Forecast `protobuf:"bytes,1,opt,name=forecast,proto3" json:"forecast,omitempty"`
Message *string `protobuf:"bytes,2,opt,name=message,proto3,oneof" json:"message,omitempty"`
// contains filtered or unexported fields
}
FetchForecastResponse holds a forecast or, when the request fails, an error.
func (*FetchForecastResponse) Descriptor
deprecated
added in
v0.16.0
func (*FetchForecastResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchForecastResponse.ProtoReflect.Descriptor instead.
func (*FetchForecastResponse) GetForecast ¶ added in v0.16.0
func (x *FetchForecastResponse) GetForecast() *Forecast
func (*FetchForecastResponse) GetMessage ¶ added in v0.16.0
func (x *FetchForecastResponse) GetMessage() string
func (*FetchForecastResponse) ProtoMessage ¶ added in v0.16.0
func (*FetchForecastResponse) ProtoMessage()
func (*FetchForecastResponse) ProtoReflect ¶ added in v0.16.0
func (x *FetchForecastResponse) ProtoReflect() protoreflect.Message
func (*FetchForecastResponse) Reset ¶ added in v0.16.0
func (x *FetchForecastResponse) Reset()
func (*FetchForecastResponse) String ¶ added in v0.16.0
func (x *FetchForecastResponse) String() string
type Forecast ¶ added in v0.12.0
type Forecast struct {
Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
Days []*DailyForecast `protobuf:"bytes,2,rep,name=days,proto3" json:"days,omitempty"`
// contains filtered or unexported fields
}
func (*Forecast) Descriptor
deprecated
added in
v0.12.0
func (*Forecast) GetDays ¶ added in v0.12.0
func (x *Forecast) GetDays() []*DailyForecast
func (*Forecast) GetLocation ¶ added in v0.12.0
func (*Forecast) ProtoMessage ¶ added in v0.12.0
func (*Forecast) ProtoMessage()
func (*Forecast) ProtoReflect ¶ added in v0.12.0
func (x *Forecast) ProtoReflect() protoreflect.Message
type GetForecastRequest ¶ added in v0.12.0
type GetForecastRequest struct {
Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// contains filtered or unexported fields
}
func (*GetForecastRequest) Descriptor
deprecated
added in
v0.12.0
func (*GetForecastRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetForecastRequest.ProtoReflect.Descriptor instead.
func (*GetForecastRequest) GetLocation ¶ added in v0.12.0
func (x *GetForecastRequest) GetLocation() string
func (*GetForecastRequest) ProtoMessage ¶ added in v0.12.0
func (*GetForecastRequest) ProtoMessage()
func (*GetForecastRequest) ProtoReflect ¶ added in v0.12.0
func (x *GetForecastRequest) ProtoReflect() protoreflect.Message
func (*GetForecastRequest) Reset ¶ added in v0.12.0
func (x *GetForecastRequest) Reset()
func (*GetForecastRequest) String ¶ added in v0.12.0
func (x *GetForecastRequest) String() string
type GetForecastResponse ¶ added in v0.12.0
type GetForecastResponse struct {
Forecast *Forecast `protobuf:"bytes,1,opt,name=forecast,proto3" json:"forecast,omitempty"`
Success *bool `protobuf:"varint,2,opt,name=success,proto3,oneof" json:"success,omitempty"`
Message *string `protobuf:"bytes,3,opt,name=message,proto3,oneof" json:"message,omitempty"`
// contains filtered or unexported fields
}
GetForecastResponse holds a forecast or, when the request fails, an error.
func (*GetForecastResponse) Descriptor
deprecated
added in
v0.12.0
func (*GetForecastResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetForecastResponse.ProtoReflect.Descriptor instead.
func (*GetForecastResponse) GetForecast ¶ added in v0.12.0
func (x *GetForecastResponse) GetForecast() *Forecast
func (*GetForecastResponse) GetMessage ¶ added in v0.12.0
func (x *GetForecastResponse) GetMessage() string
func (*GetForecastResponse) GetSuccess ¶ added in v0.12.0
func (x *GetForecastResponse) GetSuccess() bool
func (*GetForecastResponse) ProtoMessage ¶ added in v0.12.0
func (*GetForecastResponse) ProtoMessage()
func (*GetForecastResponse) ProtoReflect ¶ added in v0.12.0
func (x *GetForecastResponse) ProtoReflect() protoreflect.Message
func (*GetForecastResponse) Reset ¶ added in v0.12.0
func (x *GetForecastResponse) Reset()
func (*GetForecastResponse) String ¶ added in v0.12.0
func (x *GetForecastResponse) String() string
type GetForecastV2Request ¶ added in v0.12.0
type GetForecastV2Request struct {
Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// contains filtered or unexported fields
}
func (*GetForecastV2Request) Descriptor
deprecated
added in
v0.12.0
func (*GetForecastV2Request) Descriptor() ([]byte, []int)
Deprecated: Use GetForecastV2Request.ProtoReflect.Descriptor instead.
func (*GetForecastV2Request) GetLocation ¶ added in v0.12.0
func (x *GetForecastV2Request) GetLocation() string
func (*GetForecastV2Request) ProtoMessage ¶ added in v0.12.0
func (*GetForecastV2Request) ProtoMessage()
func (*GetForecastV2Request) ProtoReflect ¶ added in v0.12.0
func (x *GetForecastV2Request) ProtoReflect() protoreflect.Message
func (*GetForecastV2Request) Reset ¶ added in v0.12.0
func (x *GetForecastV2Request) Reset()
func (*GetForecastV2Request) String ¶ added in v0.12.0
func (x *GetForecastV2Request) String() string
type GetForecastV2Response ¶ added in v0.12.0
type GetForecastV2Response struct {
Forecast *Forecast `protobuf:"bytes,1,opt,name=forecast,proto3" json:"forecast,omitempty"`
Alerts []*Alert `protobuf:"bytes,2,rep,name=alerts,proto3" json:"alerts,omitempty"`
Success *bool `protobuf:"varint,3,opt,name=success,proto3,oneof" json:"success,omitempty"`
Message *string `protobuf:"bytes,4,opt,name=message,proto3,oneof" json:"message,omitempty"`
// contains filtered or unexported fields
}
GetForecastV2Response adds the location's active alerts, in no particular order.
func (*GetForecastV2Response) Descriptor
deprecated
added in
v0.12.0
func (*GetForecastV2Response) Descriptor() ([]byte, []int)
Deprecated: Use GetForecastV2Response.ProtoReflect.Descriptor instead.
func (*GetForecastV2Response) GetAlerts ¶ added in v0.12.0
func (x *GetForecastV2Response) GetAlerts() []*Alert
func (*GetForecastV2Response) GetForecast ¶ added in v0.12.0
func (x *GetForecastV2Response) GetForecast() *Forecast
func (*GetForecastV2Response) GetMessage ¶ added in v0.12.0
func (x *GetForecastV2Response) GetMessage() string
func (*GetForecastV2Response) GetSuccess ¶ added in v0.12.0
func (x *GetForecastV2Response) GetSuccess() bool
func (*GetForecastV2Response) ProtoMessage ¶ added in v0.12.0
func (*GetForecastV2Response) ProtoMessage()
func (*GetForecastV2Response) ProtoReflect ¶ added in v0.12.0
func (x *GetForecastV2Response) ProtoReflect() protoreflect.Message
func (*GetForecastV2Response) Reset ¶ added in v0.12.0
func (x *GetForecastV2Response) Reset()
func (*GetForecastV2Response) String ¶ added in v0.12.0
func (x *GetForecastV2Response) String() string
type GetStatusRequest ¶ added in v0.12.0
type GetStatusRequest struct {
// contains filtered or unexported fields
}
func (*GetStatusRequest) Descriptor
deprecated
added in
v0.12.0
func (*GetStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusRequest.ProtoReflect.Descriptor instead.
func (*GetStatusRequest) ProtoMessage ¶ added in v0.12.0
func (*GetStatusRequest) ProtoMessage()
func (*GetStatusRequest) ProtoReflect ¶ added in v0.12.0
func (x *GetStatusRequest) ProtoReflect() protoreflect.Message
func (*GetStatusRequest) Reset ¶ added in v0.12.0
func (x *GetStatusRequest) Reset()
func (*GetStatusRequest) String ¶ added in v0.12.0
func (x *GetStatusRequest) String() string
type GetStatusResponse ¶ added in v0.12.0
type GetStatusResponse struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
Message *string `protobuf:"bytes,3,opt,name=message,proto3,oneof" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*GetStatusResponse) Descriptor
deprecated
added in
v0.12.0
func (*GetStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusResponse.ProtoReflect.Descriptor instead.
func (*GetStatusResponse) GetMessage ¶ added in v0.12.0
func (x *GetStatusResponse) GetMessage() string
func (*GetStatusResponse) GetRevision ¶ added in v0.12.0
func (x *GetStatusResponse) GetRevision() string
func (*GetStatusResponse) GetStatus ¶ added in v0.12.0
func (x *GetStatusResponse) GetStatus() string
func (*GetStatusResponse) ProtoMessage ¶ added in v0.12.0
func (*GetStatusResponse) ProtoMessage()
func (*GetStatusResponse) ProtoReflect ¶ added in v0.12.0
func (x *GetStatusResponse) ProtoReflect() protoreflect.Message
func (*GetStatusResponse) Reset ¶ added in v0.12.0
func (x *GetStatusResponse) Reset()
func (*GetStatusResponse) String ¶ added in v0.12.0
func (x *GetStatusResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetId ¶
func (x *GetUserRequest) GetId() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct {
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetUser ¶
func (x *GetUserResponse) GetUser() *User
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type ListUsersRequest ¶
type ListUsersRequest struct {
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
Role *Role `protobuf:"varint,2,opt,name=role,proto3,enum=spectre.sample.v1.Role,oneof" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*ListUsersRequest) Descriptor
deprecated
func (*ListUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.
func (*ListUsersRequest) GetIds ¶
func (x *ListUsersRequest) GetIds() []string
func (*ListUsersRequest) GetRole ¶
func (x *ListUsersRequest) GetRole() Role
func (*ListUsersRequest) ProtoMessage ¶
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) ProtoReflect ¶
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
func (*ListUsersRequest) Reset ¶
func (x *ListUsersRequest) Reset()
func (*ListUsersRequest) String ¶
func (x *ListUsersRequest) String() string
type ListUsersResponse ¶
type ListUsersResponse struct {
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
GeneratedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"`
TotalCount int64 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
// contains filtered or unexported fields
}
func (*ListUsersResponse) Descriptor
deprecated
func (*ListUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.
func (*ListUsersResponse) GetGeneratedAt ¶
func (x *ListUsersResponse) GetGeneratedAt() *timestamppb.Timestamp
func (*ListUsersResponse) GetTotalCount ¶
func (x *ListUsersResponse) GetTotalCount() int64
func (*ListUsersResponse) GetUsers ¶
func (x *ListUsersResponse) GetUsers() []*User
func (*ListUsersResponse) ProtoMessage ¶
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) ProtoReflect ¶
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
func (*ListUsersResponse) Reset ¶
func (x *ListUsersResponse) Reset()
func (*ListUsersResponse) String ¶
func (x *ListUsersResponse) String() string
type Phone ¶
type Phone struct {
CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"`
Extension *string `protobuf:"bytes,3,opt,name=extension,proto3,oneof" json:"extension,omitempty"`
// contains filtered or unexported fields
}
func (*Phone) Descriptor
deprecated
func (*Phone) GetCountryCode ¶
func (*Phone) GetExtension ¶
func (*Phone) ProtoMessage ¶
func (*Phone) ProtoMessage()
func (*Phone) ProtoReflect ¶
func (x *Phone) ProtoReflect() protoreflect.Message
type Preference ¶
type Preference struct {
// Types that are valid to be assigned to Value:
//
// *Preference_Text
// *Preference_Enabled
// *Preference_Weight
Value isPreference_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
func (*Preference) Descriptor
deprecated
func (*Preference) Descriptor() ([]byte, []int)
Deprecated: Use Preference.ProtoReflect.Descriptor instead.
func (*Preference) GetEnabled ¶
func (x *Preference) GetEnabled() bool
func (*Preference) GetText ¶
func (x *Preference) GetText() string
func (*Preference) GetValue ¶
func (x *Preference) GetValue() isPreference_Value
func (*Preference) GetWeight ¶
func (x *Preference) GetWeight() float64
func (*Preference) ProtoMessage ¶
func (*Preference) ProtoMessage()
func (*Preference) ProtoReflect ¶
func (x *Preference) ProtoReflect() protoreflect.Message
func (*Preference) Reset ¶
func (x *Preference) Reset()
func (*Preference) String ¶
func (x *Preference) String() string
type Preference_Enabled ¶
type Preference_Enabled struct {
Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3,oneof"`
}
type Preference_Text ¶
type Preference_Text struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}
type Preference_Weight ¶
type Preference_Weight struct {
Weight float64 `protobuf:"fixed64,3,opt,name=weight,proto3,oneof"`
}
type Role ¶
type Role int32
func (Role) Descriptor ¶
func (Role) Descriptor() protoreflect.EnumDescriptor
func (Role) EnumDescriptor
deprecated
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
func (Role) Type ¶
func (Role) Type() protoreflect.EnumType
type Temperature ¶ added in v0.12.0
type Temperature struct {
Degrees float64 `protobuf:"fixed64,1,opt,name=degrees,proto3" json:"degrees,omitempty"`
Unit string `protobuf:"bytes,2,opt,name=unit,proto3" json:"unit,omitempty"`
// contains filtered or unexported fields
}
func (*Temperature) Descriptor
deprecated
added in
v0.12.0
func (*Temperature) Descriptor() ([]byte, []int)
Deprecated: Use Temperature.ProtoReflect.Descriptor instead.
func (*Temperature) GetDegrees ¶ added in v0.12.0
func (x *Temperature) GetDegrees() float64
func (*Temperature) GetUnit ¶ added in v0.12.0
func (x *Temperature) GetUnit() string
func (*Temperature) ProtoMessage ¶ added in v0.12.0
func (*Temperature) ProtoMessage()
func (*Temperature) ProtoReflect ¶ added in v0.12.0
func (x *Temperature) ProtoReflect() protoreflect.Message
func (*Temperature) Reset ¶ added in v0.12.0
func (x *Temperature) Reset()
func (*Temperature) String ¶ added in v0.12.0
func (x *Temperature) String() string
type User ¶
type User struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Nickname *string `protobuf:"bytes,3,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"`
Roles []Role `protobuf:"varint,4,rep,packed,name=roles,proto3,enum=spectre.sample.v1.Role" json:"roles,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
Profile *User_Profile `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"`
Avatar []byte `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"`
Revision uint64 `protobuf:"varint,8,opt,name=revision,proto3" json:"revision,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Types that are valid to be assigned to Contact:
//
// *User_Email
// *User_Phone
Contact isUser_Contact `protobuf_oneof:"contact"`
// contains filtered or unexported fields
}
User exercises presence, nested collections, and values that need special JSON encoding.
func (*User) Descriptor
deprecated
func (*User) GetContact ¶
func (x *User) GetContact() isUser_Contact
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetNickname ¶
func (*User) GetProfile ¶
func (x *User) GetProfile() *User_Profile
func (*User) GetRevision ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type User_Email ¶
type User_Email struct {
Email string `protobuf:"bytes,10,opt,name=email,proto3,oneof"`
}
type User_Phone ¶
type User_Phone struct {
Phone *Phone `protobuf:"bytes,11,opt,name=phone,proto3,oneof"`
}
type User_Profile ¶
type User_Profile struct {
Addresses []*Address `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
MarketingConsent *bool `protobuf:"varint,2,opt,name=marketing_consent,json=marketingConsent,proto3,oneof" json:"marketing_consent,omitempty"`
Preferences map[string]*Preference `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*User_Profile) Descriptor
deprecated
func (*User_Profile) Descriptor() ([]byte, []int)
Deprecated: Use User_Profile.ProtoReflect.Descriptor instead.
func (*User_Profile) GetAddresses ¶
func (x *User_Profile) GetAddresses() []*Address
func (*User_Profile) GetMarketingConsent ¶
func (x *User_Profile) GetMarketingConsent() bool
func (*User_Profile) GetPreferences ¶
func (x *User_Profile) GetPreferences() map[string]*Preference
func (*User_Profile) ProtoMessage ¶
func (*User_Profile) ProtoMessage()
func (*User_Profile) ProtoReflect ¶
func (x *User_Profile) ProtoReflect() protoreflect.Message
func (*User_Profile) Reset ¶
func (x *User_Profile) Reset()
func (*User_Profile) String ¶
func (x *User_Profile) String() string
type Wind ¶ added in v0.12.0
type Wind struct {
SpeedKph float64 `protobuf:"fixed64,1,opt,name=speed_kph,json=speedKph,proto3" json:"speed_kph,omitempty"`
Direction string `protobuf:"bytes,2,opt,name=direction,proto3" json:"direction,omitempty"`
// contains filtered or unexported fields
}
func (*Wind) Descriptor
deprecated
added in
v0.12.0
func (*Wind) GetDirection ¶ added in v0.12.0
func (*Wind) GetSpeedKph ¶ added in v0.12.0
func (*Wind) ProtoMessage ¶ added in v0.12.0
func (*Wind) ProtoMessage()
func (*Wind) ProtoReflect ¶ added in v0.12.0
func (x *Wind) ProtoReflect() protoreflect.Message