| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/maps/routes/v1/polyline.proto |
| |
| package routes |
| |
| import ( |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // A set of values that specify the quality of the polyline. |
| type PolylineQuality int32 |
| |
| const ( |
| // No polyline quality preference specified. Defaults to `OVERVIEW`. |
| PolylineQuality_POLYLINE_QUALITY_UNSPECIFIED PolylineQuality = 0 |
| // Specifies a high-quality polyline - which is composed using more points |
| // than `OVERVIEW`, at the cost of increased response size. Use this value |
| // when you need more precision. |
| PolylineQuality_HIGH_QUALITY PolylineQuality = 1 |
| // Specifies an overview polyline - which is composed using a small number of |
| // points. Use this value when displaying an overview of the route. Using this |
| // option has a lower request latency compared to using the |
| // `HIGH_QUALITY` option. |
| PolylineQuality_OVERVIEW PolylineQuality = 2 |
| ) |
| |
| var PolylineQuality_name = map[int32]string{ |
| 0: "POLYLINE_QUALITY_UNSPECIFIED", |
| 1: "HIGH_QUALITY", |
| 2: "OVERVIEW", |
| } |
| |
| var PolylineQuality_value = map[string]int32{ |
| "POLYLINE_QUALITY_UNSPECIFIED": 0, |
| "HIGH_QUALITY": 1, |
| "OVERVIEW": 2, |
| } |
| |
| func (x PolylineQuality) String() string { |
| return proto.EnumName(PolylineQuality_name, int32(x)) |
| } |
| |
| func (PolylineQuality) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_7da257ea7801fdd8, []int{0} |
| } |
| |
| // Encapsulates an encoded polyline. |
| type Polyline struct { |
| // Encapsulates the type of polyline. Defaults to encoded_polyline. |
| // |
| // Types that are valid to be assigned to PolylineType: |
| // *Polyline_EncodedPolyline |
| PolylineType isPolyline_PolylineType `protobuf_oneof:"polyline_type"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Polyline) Reset() { *m = Polyline{} } |
| func (m *Polyline) String() string { return proto.CompactTextString(m) } |
| func (*Polyline) ProtoMessage() {} |
| func (*Polyline) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7da257ea7801fdd8, []int{0} |
| } |
| |
| func (m *Polyline) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Polyline.Unmarshal(m, b) |
| } |
| func (m *Polyline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Polyline.Marshal(b, m, deterministic) |
| } |
| func (m *Polyline) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Polyline.Merge(m, src) |
| } |
| func (m *Polyline) XXX_Size() int { |
| return xxx_messageInfo_Polyline.Size(m) |
| } |
| func (m *Polyline) XXX_DiscardUnknown() { |
| xxx_messageInfo_Polyline.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Polyline proto.InternalMessageInfo |
| |
| type isPolyline_PolylineType interface { |
| isPolyline_PolylineType() |
| } |
| |
| type Polyline_EncodedPolyline struct { |
| EncodedPolyline string `protobuf:"bytes,1,opt,name=encoded_polyline,json=encodedPolyline,proto3,oneof"` |
| } |
| |
| func (*Polyline_EncodedPolyline) isPolyline_PolylineType() {} |
| |
| func (m *Polyline) GetPolylineType() isPolyline_PolylineType { |
| if m != nil { |
| return m.PolylineType |
| } |
| return nil |
| } |
| |
| func (m *Polyline) GetEncodedPolyline() string { |
| if x, ok := m.GetPolylineType().(*Polyline_EncodedPolyline); ok { |
| return x.EncodedPolyline |
| } |
| return "" |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*Polyline) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*Polyline_EncodedPolyline)(nil), |
| } |
| } |
| |
| func init() { |
| proto.RegisterEnum("google.maps.routes.v1.PolylineQuality", PolylineQuality_name, PolylineQuality_value) |
| proto.RegisterType((*Polyline)(nil), "google.maps.routes.v1.Polyline") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/maps/routes/v1/polyline.proto", fileDescriptor_7da257ea7801fdd8) |
| } |
| |
| var fileDescriptor_7da257ea7801fdd8 = []byte{ |
| // 289 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0xcf, 0xcf, 0x4f, |
| 0xcf, 0x49, 0xd5, 0xcf, 0x4d, 0x2c, 0x28, 0xd6, 0x2f, 0xca, 0x2f, 0x2d, 0x49, 0x2d, 0xd6, 0x2f, |
| 0x33, 0xd4, 0x2f, 0xc8, 0xcf, 0xa9, 0xcc, 0xc9, 0xcc, 0x4b, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, |
| 0x17, 0x12, 0x85, 0xa8, 0xd2, 0x03, 0xa9, 0xd2, 0x83, 0xa8, 0xd2, 0x2b, 0x33, 0x54, 0xf2, 0xe0, |
| 0xe2, 0x08, 0x80, 0x2a, 0x14, 0xd2, 0xe6, 0x12, 0x48, 0xcd, 0x4b, 0xce, 0x4f, 0x49, 0x4d, 0x89, |
| 0x87, 0x69, 0x96, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0xf4, 0x60, 0x08, 0xe2, 0x87, 0xca, 0xc0, 0x14, |
| 0x3b, 0xf1, 0x73, 0xf1, 0xc2, 0x14, 0xc5, 0x97, 0x54, 0x16, 0xa4, 0x6a, 0x05, 0x73, 0xf1, 0xc3, |
| 0x24, 0x03, 0x4b, 0x13, 0x73, 0x32, 0x4b, 0x2a, 0x85, 0x14, 0xb8, 0x64, 0x02, 0xfc, 0x7d, 0x22, |
| 0x7d, 0x3c, 0xfd, 0x5c, 0xe3, 0x03, 0x43, 0x1d, 0x7d, 0x3c, 0x43, 0x22, 0xe3, 0x43, 0xfd, 0x82, |
| 0x03, 0x5c, 0x9d, 0x3d, 0xdd, 0x3c, 0x5d, 0x5d, 0x04, 0x18, 0x84, 0x04, 0xb8, 0x78, 0x3c, 0x3c, |
| 0xdd, 0x3d, 0x60, 0xb2, 0x02, 0x8c, 0x42, 0x3c, 0x5c, 0x1c, 0xfe, 0x61, 0xae, 0x41, 0x61, 0x9e, |
| 0xae, 0xe1, 0x02, 0x4c, 0x4e, 0x8b, 0x19, 0xb9, 0x24, 0x93, 0xf3, 0x73, 0xf5, 0xb0, 0x3a, 0xde, |
| 0x89, 0x17, 0x66, 0x61, 0x00, 0xc8, 0x8b, 0x01, 0x8c, 0x51, 0xd6, 0x50, 0x75, 0xe9, 0xf9, 0x39, |
| 0x89, 0x79, 0xe9, 0x7a, 0xf9, 0x45, 0xe9, 0xfa, 0xe9, 0xa9, 0x79, 0xe0, 0x00, 0xd0, 0x87, 0x48, |
| 0x25, 0x16, 0x64, 0x16, 0xa3, 0x85, 0x94, 0x35, 0x84, 0xf5, 0x83, 0x91, 0x71, 0x11, 0x13, 0x8b, |
| 0xbb, 0x6f, 0x50, 0xf0, 0x2a, 0x26, 0x51, 0x77, 0x88, 0x39, 0xbe, 0x20, 0xfb, 0x82, 0x20, 0xf6, |
| 0x85, 0x19, 0x9e, 0x82, 0x89, 0xc7, 0x80, 0xc4, 0x63, 0x20, 0xe2, 0x31, 0x61, 0x86, 0x49, 0x6c, |
| 0x60, 0x1b, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x97, 0xb7, 0x2e, 0x8a, 0x01, 0x00, |
| 0x00, |
| } |