samplepb

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_forecasts_proto protoreflect.FileDescriptor
View Source
var File_service_proto protoreflect.FileDescriptor
View Source
var File_users_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetCity

func (x *Address) GetCity() string

func (*Address) GetCountryCode

func (x *Address) GetCountryCode() string

func (*Address) GetLines

func (x *Address) GetLines() []string

func (*Address) GetPostalCode

func (x *Address) GetPostalCode() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Alert.ProtoReflect.Descriptor instead.

func (*Alert) GetHeadline added in v0.12.0

func (x *Alert) GetHeadline() string

func (*Alert) GetId added in v0.12.0

func (x *Alert) GetId() string

func (*Alert) GetSeverity added in v0.12.0

func (x *Alert) GetSeverity() string

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

func (*Alert) Reset added in v0.12.0

func (x *Alert) Reset()

func (*Alert) String added in v0.12.0

func (x *Alert) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Forecast.ProtoReflect.Descriptor instead.

func (*Forecast) GetDays added in v0.12.0

func (x *Forecast) GetDays() []*DailyForecast

func (*Forecast) GetLocation added in v0.12.0

func (x *Forecast) GetLocation() string

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

func (*Forecast) Reset added in v0.12.0

func (x *Forecast) Reset()

func (*Forecast) String added in v0.12.0

func (x *Forecast) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Phone.ProtoReflect.Descriptor instead.

func (*Phone) GetCountryCode

func (x *Phone) GetCountryCode() string

func (*Phone) GetExtension

func (x *Phone) GetExtension() string

func (*Phone) GetNumber

func (x *Phone) GetNumber() string

func (*Phone) ProtoMessage

func (*Phone) ProtoMessage()

func (*Phone) ProtoReflect

func (x *Phone) ProtoReflect() protoreflect.Message

func (*Phone) Reset

func (x *Phone) Reset()

func (*Phone) String

func (x *Phone) String() string

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
const (
	Role_ROLE_UNSPECIFIED Role = 0
	Role_ROLE_READER      Role = 1
	Role_ROLE_EDITOR      Role = 2
	Role_ROLE_ADMIN       Role = 3
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

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

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar

func (x *User) GetAvatar() []byte

func (*User) GetContact

func (x *User) GetContact() isUser_Contact

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetLabels

func (x *User) GetLabels() map[string]string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetNickname

func (x *User) GetNickname() string

func (*User) GetPhone

func (x *User) GetPhone() *Phone

func (*User) GetProfile

func (x *User) GetProfile() *User_Profile

func (*User) GetRevision

func (x *User) GetRevision() uint64

func (*User) GetRoles

func (x *User) GetRoles() []Role

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Wind.ProtoReflect.Descriptor instead.

func (*Wind) GetDirection added in v0.12.0

func (x *Wind) GetDirection() string

func (*Wind) GetSpeedKph added in v0.12.0

func (x *Wind) GetSpeedKph() float64

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

func (*Wind) Reset added in v0.12.0

func (x *Wind) Reset()

func (*Wind) String added in v0.12.0

func (x *Wind) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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