diff --git a/api_names_out.yaml b/api_names_out.yaml index f60a6cbfb82..6c0dae7cb56 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 @@ -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 @@ -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 diff --git a/generated/google/apis/vectortile_v1.rb b/generated/google/apis/vectortile_v1.rb index 17b51699f56..6a7c517b82d 100644 --- a/generated/google/apis/vectortile_v1.rb +++ b/generated/google/apis/vectortile_v1.rb @@ -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 diff --git a/generated/google/apis/vectortile_v1/classes.rb b/generated/google/apis/vectortile_v1/classes.rb index 8ef3054426b..4dee93760be 100644 --- a/generated/google/apis/vectortile_v1/classes.rb +++ b/generated/google/apis/vectortile_v1/classes.rb @@ -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` @@ -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 @@ -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) @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/generated/google/apis/vectortile_v1/representations.rb b/generated/google/apis/vectortile_v1/representations.rb index 85bf6075ecf..cab00ecb3ee 100644 --- a/generated/google/apis/vectortile_v1/representations.rb +++ b/generated/google/apis/vectortile_v1/representations.rb @@ -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 @@ -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' @@ -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 @@ -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' diff --git a/generated/google/apis/vectortile_v1/synth.metadata b/generated/google/apis/vectortile_v1/synth.metadata index 429012f74d2..b6a63dc38ec 100644 --- a/generated/google/apis/vectortile_v1/synth.metadata +++ b/generated/google/apis/vectortile_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "c98c719bbab68d0890524d53f8b629d7858af9c2" + "sha": "a292c4573b5fbe486f03f257d61ef902d46d167b" } } ]