Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of vectortile v1 client #1629

Merged
merged 1 commit into from Dec 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions api_names_out.yaml
Expand Up @@ -151382,6 +151382,7 @@
"/vault:v1/vault.operations.list/pageSize": page_size
"/vault:v1/vault.operations.list/pageToken": page_token
"/vectortile:v1/Area": area
"/vectortile:v1/Area/basemapZOrder": basemap_z_order
"/vectortile:v1/Area/hasExternalEdges": has_external_edges
"/vectortile:v1/Area/internalEdges": internal_edges
"/vectortile:v1/Area/internalEdges/internal_edge": internal_edge
Expand All @@ -151392,6 +151393,10 @@
"/vectortile:v1/Area/type": type
"/vectortile:v1/Area/vertexOffsets": vertex_offsets
"/vectortile:v1/Area/zOrder": z_order
"/vectortile:v1/BasemapZOrder": basemap_z_order
"/vectortile:v1/BasemapZOrder/zGrade": z_grade
"/vectortile:v1/BasemapZOrder/zPlane": z_plane
"/vectortile:v1/BasemapZOrder/zWithinGrade": z_within_grade
"/vectortile:v1/ExtrudedArea": extruded_area
"/vectortile:v1/ExtrudedArea/area": area
"/vectortile:v1/ExtrudedArea/maxZ": max_z
Expand Down Expand Up @@ -151427,6 +151432,7 @@
"/vectortile:v1/Geometry/modeledVolumes": modeled_volumes
"/vectortile:v1/Geometry/modeledVolumes/modeled_volume": modeled_volume
"/vectortile:v1/Line": line
"/vectortile:v1/Line/basemapZOrder": basemap_z_order
"/vectortile:v1/Line/vertexOffsets": vertex_offsets
"/vectortile:v1/Line/zOrder": z_order
"/vectortile:v1/ModeledVolume": modeled_volume
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/vectortile_v1.rb
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://developers.google.com/maps/contact-sales/
module VectortileV1
VERSION = 'V1'
REVISION = '20200808'
REVISION = '20201202'
end
end
end
63 changes: 59 additions & 4 deletions generated/google/apis/vectortile_v1/classes.rb
Expand Up @@ -22,10 +22,18 @@ module Google
module Apis
module VectortileV1

# Represents an area. Used to represent regions such as water, parks, etc.
# Represents an area. Used to represent regions such as water, parks, etc. Next
# ID: 10
class Area
include Google::Apis::Core::Hashable

# Metadata necessary to determine the ordering of a particular basemap element
# relative to others. To render the basemap correctly, sort by z-plane, then z-
# grade, then z-within-grade.
# Corresponds to the JSON property `basemapZOrder`
# @return [Google::Apis::VectortileV1::BasemapZOrder]
attr_accessor :basemap_z_order

# True if the polygon is not entirely internal to the feature that it belongs to:
# that is, some of the edges are bordering another feature.
# Corresponds to the JSON property `hasExternalEdges`
Expand Down Expand Up @@ -85,7 +93,7 @@ class Area
# about the altitude of the line relative to the ground, but it can be used to
# prevent z-fighting during rendering on the client. This z-ordering can only be
# used to compare areas, and cannot be compared with the z_order field in the
# Line message. The z-order may be negative or zero.
# Line message. The z-order may be negative or zero. Prefer Area.basemap_z_order.
# Corresponds to the JSON property `zOrder`
# @return [Fixnum]
attr_accessor :z_order
Expand All @@ -96,6 +104,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@basemap_z_order = args[:basemap_z_order] if args.key?(:basemap_z_order)
@has_external_edges = args[:has_external_edges] if args.key?(:has_external_edges)
@internal_edges = args[:internal_edges] if args.key?(:internal_edges)
@loop_breaks = args[:loop_breaks] if args.key?(:loop_breaks)
Expand All @@ -106,6 +115,42 @@ def update!(**args)
end
end

# Metadata necessary to determine the ordering of a particular basemap element
# relative to others. To render the basemap correctly, sort by z-plane, then z-
# grade, then z-within-grade.
class BasemapZOrder
include Google::Apis::Core::Hashable

# The second most significant component of the ordering of a component to be
# rendered onto the basemap.
# Corresponds to the JSON property `zGrade`
# @return [Fixnum]
attr_accessor :z_grade

# The most significant component of the ordering of a component to be rendered
# onto the basemap.
# Corresponds to the JSON property `zPlane`
# @return [Fixnum]
attr_accessor :z_plane

# The least significant component of the ordering of a component to be rendered
# onto the basemap.
# Corresponds to the JSON property `zWithinGrade`
# @return [Fixnum]
attr_accessor :z_within_grade

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@z_grade = args[:z_grade] if args.key?(:z_grade)
@z_plane = args[:z_plane] if args.key?(:z_plane)
@z_within_grade = args[:z_within_grade] if args.key?(:z_within_grade)
end
end

# Represents a height-extruded area: a 3D prism with a constant X-Y plane cross
# section. Used to represent extruded buildings. A single building may consist
# of several extruded areas. The min_z and max_z fields are scaled to the size
Expand All @@ -114,7 +159,8 @@ def update!(**args)
class ExtrudedArea
include Google::Apis::Core::Hashable

# Represents an area. Used to represent regions such as water, parks, etc.
# Represents an area. Used to represent regions such as water, parks, etc. Next
# ID: 10
# Corresponds to the JSON property `area`
# @return [Google::Apis::VectortileV1::Area]
attr_accessor :area
Expand Down Expand Up @@ -355,6 +401,13 @@ def update!(**args)
class Line
include Google::Apis::Core::Hashable

# Metadata necessary to determine the ordering of a particular basemap element
# relative to others. To render the basemap correctly, sort by z-plane, then z-
# grade, then z-within-grade.
# Corresponds to the JSON property `basemapZOrder`
# @return [Google::Apis::VectortileV1::BasemapZOrder]
attr_accessor :basemap_z_order

# 2D vertex list used for lines and areas. Each entry represents an offset from
# the previous one in local tile coordinates. The first entry is offset from (0,
# 0). For example, the list of vertices [(1,1), (2, 2), (1, 2)] would be encoded
Expand All @@ -369,7 +422,8 @@ class Line
# fighting during rendering on the client. In general, larger and more important
# road features will have a higher z-order line associated with them. This z-
# ordering can only be used to compare lines, and cannot be compared with the
# z_order field in the Area message. The z-order may be negative or zero.
# z_order field in the Area message. The z-order may be negative or zero. Prefer
# Line.basemap_z_order.
# Corresponds to the JSON property `zOrder`
# @return [Fixnum]
attr_accessor :z_order
Expand All @@ -380,6 +434,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@basemap_z_order = args[:basemap_z_order] if args.key?(:basemap_z_order)
@vertex_offsets = args[:vertex_offsets] if args.key?(:vertex_offsets)
@z_order = args[:z_order] if args.key?(:z_order)
end
Expand Down
19 changes: 19 additions & 0 deletions generated/google/apis/vectortile_v1/representations.rb
Expand Up @@ -28,6 +28,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class BasemapZOrder
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class ExtrudedArea
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -139,6 +145,8 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
class Area
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :basemap_z_order, as: 'basemapZOrder', class: Google::Apis::VectortileV1::BasemapZOrder, decorator: Google::Apis::VectortileV1::BasemapZOrder::Representation

property :has_external_edges, as: 'hasExternalEdges'
collection :internal_edges, as: 'internalEdges'
collection :loop_breaks, as: 'loopBreaks'
Expand All @@ -150,6 +158,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class BasemapZOrder
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :z_grade, as: 'zGrade'
property :z_plane, as: 'zPlane'
property :z_within_grade, as: 'zWithinGrade'
end
end

class ExtrudedArea
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -216,6 +233,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
class Line
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :basemap_z_order, as: 'basemapZOrder', class: Google::Apis::VectortileV1::BasemapZOrder, decorator: Google::Apis::VectortileV1::BasemapZOrder::Representation

property :vertex_offsets, as: 'vertexOffsets', class: Google::Apis::VectortileV1::Vertex2DList, decorator: Google::Apis::VectortileV1::Vertex2DList::Representation

property :z_order, as: 'zOrder'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/vectortile_v1/synth.metadata
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "c98c719bbab68d0890524d53f8b629d7858af9c2"
"sha": "a292c4573b5fbe486f03f257d61ef902d46d167b"
}
}
]
Expand Down