hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e1806fba05b68b7383f2bb1eff72e70e8ca24d6 | 470 | rb | Ruby | lib/shopify-pagination.rb | agilestep/shopify-pagination | fae752ee07a99f166aae44352a4446cecf49030b | [
"MIT"
] | null | null | null | lib/shopify-pagination.rb | agilestep/shopify-pagination | fae752ee07a99f166aae44352a4446cecf49030b | [
"MIT"
] | 2 | 2020-06-18T09:46:10.000Z | 2020-06-18T10:05:01.000Z | lib/shopify-pagination.rb | agilestep/shopify-pagination | fae752ee07a99f166aae44352a4446cecf49030b | [
"MIT"
] | 1 | 2020-06-30T15:06:10.000Z | 2020-06-30T15:06:10.000Z | # coding: utf-8
# frozen_string_literal: true
require 'shopify_api'
module Shopify
module Pagination
autoload :Collection, 'shopify/pagination/collection'
autoload :Helper, 'shopify/pagination/helper'
autoload :VERSION, 'shopify/pagination/version'
end
end
ActionView::Base.send :include, Shopify::Pagination::Helper
ShopifyAPI::Base.class_eval do
# Set the default collection parser.
self.collection_parser = Shopify::Pagination::Collection
end
| 23.5 | 59 | 0.77234 |
2614e48e08f201893e47bf424fd9afb4271629df | 3,010 | java | Java | Plugins/Aspose.Slides Java for Pptx4j/Maven/src/main/java/com/aspose/slides/examples/asposefeatures/slides/slidecomments/AsposeComments.java | tienph91/Aspose.Slides-for-Java | 874a8245c6e1ae227393644d9bd35d5e65e07d52 | [
"MIT"
] | 27 | 2016-10-25T13:19:25.000Z | 2022-03-03T04:13:53.000Z | Plugins/Aspose.Slides Java for Pptx4j/Maven/src/main/java/com/aspose/slides/examples/asposefeatures/slides/slidecomments/AsposeComments.java | tienph91/Aspose.Slides-for-Java | 874a8245c6e1ae227393644d9bd35d5e65e07d52 | [
"MIT"
] | 9 | 2017-03-14T13:02:17.000Z | 2021-11-25T13:22:20.000Z | Plugins/Aspose.Slides Java for Pptx4j/Maven/src/main/java/com/aspose/slides/examples/asposefeatures/slides/slidecomments/AsposeComments.java | tienph91/Aspose.Slides-for-Java | 874a8245c6e1ae227393644d9bd35d5e65e07d52 | [
"MIT"
] | 38 | 2016-04-07T16:37:29.000Z | 2022-01-17T06:35:14.000Z | package com.aspose.slides.examples.asposefeatures.slides.slidecomments;
import com.aspose.slides.IComment;
import com.aspose.slides.ICommentAuthor;
import com.aspose.slides.ICommentCollection;
import com.aspose.slides.ISlide;
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;
import com.aspose.slides.examples.Utils;
public class AsposeComments
{
public static void main(String[] args)
{
// The path to the documents directory.
String dataDir = Utils.getDataDir(AsposeComments.class);
// ======================================
// Adding Slide Comments
// ======================================
Presentation pres = new Presentation();
// Adding Empty slide
pres.getSlides().addEmptySlide(pres.getLayoutSlides().get_Item(0));
// Adding Author
ICommentAuthor author = pres.getCommentAuthors().addAuthor("Aspose", "AS");
// Position of comments
java.awt.geom.Point2D.Float point = new java.awt.geom.Point2D.Float(0.2f, 0.2f);
java.util.Date date = new java.util.Date();
// Adding slide comment for an author on slide 1
author.getComments().addComment("Hello Mudassir, this is slide comment",
pres.getSlides().get_Item(0), point, date);
// Adding slide comment for an author on slide 1
author.getComments().addComment("Hello Mudassir, this is second slide comment",
pres.getSlides().get_Item(1), point, date);
// Accessing ISlide 1
ISlide slide = pres.getSlides().get_Item(0);
// if null is passed as an argument then it will bring comments from all
// authors on selected slide
IComment[] Comments = slide.getSlideComments(author);
// Accessing the comment at index 0 for slide 1
String str = Comments[0].getText();
pres.save(dataDir + "AsposeComments_Out.pptx", SaveFormat.Pptx);
if (Comments.length > 0)
{
// Select comments collection of Author at index 0
ICommentCollection commentCollection = Comments[0].getAuthor().getComments();
String comment = commentCollection.get_Item(0).getText();
}
// ======================================
// Accessing Slide Comments
// ======================================
// Presentation pres = new Presentation("data/AsposeComments.pptx");
for (ICommentAuthor author1 : pres.getCommentAuthors())
{
for (IComment comment : author1.getComments())
{
System.out.println("ISlide :"
+ comment.getSlide().getSlideNumber()
+ " has comment: " + comment.getText()
+ " with Author: " + comment.getAuthor().getName()
+ " posted on time :" + comment.getCreatedTime() + "\n");
}
}
System.out.println("Done");
}
} | 38.101266 | 89 | 0.580399 |
5c38c9ca831bbd8d4d2943d8f200eb81b627ce3d | 419 | css | CSS | frontend/src/index.css | navikt/helse-spleis-testdata | a731e02b8deec4d119d1a500f0009b3ad28f7c44 | [
"MIT"
] | null | null | null | frontend/src/index.css | navikt/helse-spleis-testdata | a731e02b8deec4d119d1a500f0009b3ad28f7c44 | [
"MIT"
] | null | null | null | frontend/src/index.css | navikt/helse-spleis-testdata | a731e02b8deec4d119d1a500f0009b3ad28f7c44 | [
"MIT"
] | null | null | null | body {
--body-background-color: white;
margin: 0;
font-family: "Open Sans", sans-serif;
background-color: var(--body-background-color);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
--block-extra-small: 0.25rem;
--block-small: 1rem;
--block-medium: 2rem;
--block-large: 4rem;
--border-radius: 0.25rem;
}
* {
box-sizing: border-box;
}
button {
cursor: pointer;
}
| 17.458333 | 49 | 0.658711 |
bd248055a2125b5991f36c3dbc712a232dbc126e | 215 | lua | Lua | src/ServerScriptService/TestCode.server.lua | howmanysmall/FriendChecker | 487adbf01263f5e9c6dd7a60ea3d1b2b3ee8a09c | [
"MIT"
] | 1 | 2020-09-08T12:55:28.000Z | 2020-09-08T12:55:28.000Z | src/ServerScriptService/TestCode.server.lua | howmanysmall/FriendChecker | 487adbf01263f5e9c6dd7a60ea3d1b2b3ee8a09c | [
"MIT"
] | 1 | 2020-08-05T01:32:51.000Z | 2020-08-05T01:32:51.000Z | src/ServerScriptService/TestCode.server.lua | howmanysmall/FriendChecker | 487adbf01263f5e9c6dd7a60ea3d1b2b3ee8a09c | [
"MIT"
] | null | null | null | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Enumeration = require(ReplicatedStorage.Enumerations)
print("3:", Enumeration.LocationType:Cast(3))
print("5:", Enumeration.LocationType:Cast(5)) | 43 | 62 | 0.804651 |
dfdbe8f1e76c623a39c7ea4ef32790e17d5bc7f9 | 276 | tsx | TypeScript | src/components/loading-indicator/loading-indicator.spec.tsx | andy-hook/blocks | c1d99c87112bf7087ef12872fda998befe4a2487 | [
"MIT"
] | 2 | 2020-10-08T19:07:31.000Z | 2022-01-02T00:34:28.000Z | src/components/loading-indicator/loading-indicator.spec.tsx | andy-hook/blocks | c1d99c87112bf7087ef12872fda998befe4a2487 | [
"MIT"
] | 1 | 2020-02-29T11:43:15.000Z | 2020-05-29T21:04:16.000Z | src/components/loading-indicator/loading-indicator.spec.tsx | andy-hook/blocks | c1d99c87112bf7087ef12872fda998befe4a2487 | [
"MIT"
] | 1 | 2022-01-02T00:34:59.000Z | 2022-01-02T00:34:59.000Z | import React from "react"
import LoadingIndicator from "./loading-indicator"
import { render } from "@test-utils"
describe("<LoadingIndicator />", () => {
it("renders correctly", () => {
const tree = render(<LoadingIndicator />)
expect(tree).toBeTruthy()
})
})
| 21.230769 | 50 | 0.652174 |
718fddc9ef27e49e1cef2af59cf596e5f8ac8e04 | 433 | sql | SQL | openGaussBase/testcase/KEYWORDS/returned_sqlstate/Opengauss_Function_Keyword_Returned_sqlstate_Case0026.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/returned_sqlstate/Opengauss_Function_Keyword_Returned_sqlstate_Case0026.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/returned_sqlstate/Opengauss_Function_Keyword_Returned_sqlstate_Case0026.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | -- @testpoint:opengauss关键字returned_sqlstate(非保留),作为模式名
--关键字不带引号-成功
drop schema if exists returned_sqlstate;
create schema returned_sqlstate;
--清理环境
drop schema returned_sqlstate;
--关键字带双引号-成功
drop schema if exists "returned_sqlstate";
create schema "returned_sqlstate";
--清理环境
drop schema "returned_sqlstate";
--关键字带单引号-合理报错
drop schema if exists 'returned_sqlstate';
--关键字带反引号-合理报错
drop schema if exists `returned_sqlstate`;
| 20.619048 | 55 | 0.799076 |
2db6dc94f3a6a07b6e4f37aa2af8c5169c900176 | 801 | kt | Kotlin | scarlet-core/src/main/java/com/tinder/scarlet/Stream.kt | akndmr/Scarlet | 227b493776ae99f0efadc366a9c8bfacff95eb88 | [
"BSD-3-Clause"
] | 2,904 | 2018-06-14T18:35:50.000Z | 2022-03-31T22:40:12.000Z | scarlet-core/src/main/java/com/tinder/scarlet/Stream.kt | akndmr/Scarlet | 227b493776ae99f0efadc366a9c8bfacff95eb88 | [
"BSD-3-Clause"
] | 172 | 2018-06-14T23:15:00.000Z | 2022-03-22T07:02:27.000Z | scarlet-core/src/main/java/com/tinder/scarlet/Stream.kt | akndmr/Scarlet | 227b493776ae99f0efadc366a9c8bfacff95eb88 | [
"BSD-3-Clause"
] | 251 | 2018-06-14T23:09:26.000Z | 2022-03-20T09:52:40.000Z | /*
* © 2018 Match Group, LLC.
*/
package com.tinder.scarlet
import org.reactivestreams.Publisher
/**
* An sequence of asynchronous values of type `T` that is used to emit [WebSocket.Event] and [Message].
*
* A Stream is lazy. It may be started by [start].
*/
interface Stream<T> : Publisher<T> {
fun start(observer: Observer<T>): Disposable
/**
* Observes a [Stream].
*/
interface Observer<in T> {
/**
* Data notification.
*/
fun onNext(data: T)
/**
* Failed terminal state.
*/
fun onError(throwable: Throwable)
/**
* Successful terminal state.
*/
fun onComplete()
}
interface Disposable {
fun dispose()
fun isDisposed(): Boolean
}
}
| 18.204545 | 103 | 0.55181 |
8789c0fbfee561aaeefba02d35d4ad1e7020d771 | 2,187 | html | HTML | _includes/themes/tufte/creative.html | Lemez/yoga-nadopasana | d74931f3dacf48c8e297ed7d474f3f169f06a3a3 | [
"MIT"
] | null | null | null | _includes/themes/tufte/creative.html | Lemez/yoga-nadopasana | d74931f3dacf48c8e297ed7d474f3f169f06a3a3 | [
"MIT"
] | null | null | null | _includes/themes/tufte/creative.html | Lemez/yoga-nadopasana | d74931f3dacf48c8e297ed7d474f3f169f06a3a3 | [
"MIT"
] | null | null | null |
<h1>{{page.title}}</h1>
<h3>{{page.group}}</h3>
<!-- content -->
<div class="row post-full">
<div class="col-xs-12">
<div class="content">
<div class='lyrics'>
{% if (page.credits | size) > 0 %}
<h3 class='lyrics'>credits: {{page.credits}}</h3>
{% endif %}
{% if (page.year | size) > 0 %}
<h3 class='lyrics'>year: {{page.year}}</h3>
{% endif %}
<!-- about -->
{% if (page.about | size) > 0 %}
<h3>About</h3>
<p><em>{{page.about}}</em></p>
{% endif %}
<!-- lyrics -->
{{ content }}
</div>
{% if (page.press | size) > 0 %}
<h3>Press</h3>
<blockquote> <p>{{page.press[0]}}, <em>{{page.press[1]}}</em></p></blockquote>
{% endif %}
</div>
</div>
<hr>
<ul class="pagination">
{% assign songs = (site.lyrics | sort: 'album') %}
{% assign album = site.albumarray %}
{% assign urls = site.urlarray %}
{% for song in songs %}
{% if song.artist == page.artist %}
{% assign album = album | push: song.title %}
{% assign urls = urls | push: song.url %}
{% endif %}
{% endfor %}
{% unless (songs | size) == 1%}
{% for title in album %}
{% if forloop.first %}
{% assign previndex = album | size | minus: 1 %}
{% assign nextindex = forloop.index %}
{% elsif forloop.last %}
{% assign previndex = forloop.index | minus: 2 %}
{% assign nextindex = 0 %}
{% else %}
{% assign previndex = forloop.index | minus: 2 %}
{% assign nextindex = forloop.index %}
{% endif %}
{% assign previous = album[previndex] %}
{% assign next = album[nextindex] %}
{% if title == page.title %}
<li class="previous"><a href="{{urls[previndex]}}" title="{{ previous}}">« {{ previous}}</a></li>
<li><a href="/posts/music/2015-10-10-lyrics.html">Song Lyrics</a></li>
<li class="next"><a href="{{urls[nextindex]}}" title="{{next}}">» {{ next}}</a></li>
{% endif %}
{% endfor %}
{% endunless%}
</ul>
</div>
<hr>
{% include JB/comments %}
| 22.78125 | 109 | 0.481024 |
585f522accd3158d4fd1ab5945f846534406f4e9 | 4,025 | lua | Lua | lua/wincent/pinnacle.lua | Z5483/pinnacle | 477dfc1a316fe893a37ac509f97ea5f884a625af | [
"MIT"
] | null | null | null | lua/wincent/pinnacle.lua | Z5483/pinnacle | 477dfc1a316fe893a37ac509f97ea5f884a625af | [
"MIT"
] | null | null | null | lua/wincent/pinnacle.lua | Z5483/pinnacle | 477dfc1a316fe893a37ac509f97ea5f884a625af | [
"MIT"
] | null | null | null | local pinnacle = {}
local prefix = 'cterm'
if vim.fn.has('gui') then
prefix = 'gui'
elseif vim.fn.has('termguicolors') and vim.api.nvim_get_option('termguicolors') then
prefix = 'gui'
end
-- Gets the current value of a highlight group.
pinnacle.capture_highlight = function(group)
return group .. ' xxx ' .. pinnacle.extract_highlight(group)
end
-- Returns a copy of `group` decorated with `style` (eg. "bold",
-- "italic" etc) suitable for passing to `:highlight`.
--
-- To decorate with multiple styles, `style` should be a comma-separated
-- list.
pinnacle.decorate = function(style, group)
local original = pinnacle.extract_highlight(group)
for _, lhs in ipairs({'gui', 'term', 'cterm'}) do
local before, setting, after = original:match(''
.. '^(.*)'
.. '%f[%a](' .. lhs .. '=%S+)'
.. '(.*)$'
)
if setting == nil then
-- No setting: add one with just style in it.
original = original .. ' ' .. lhs .. '=' .. style
else
for s in vim.gsplit(style, ',') do
local trimmed = vim.trim(s)
if not setting:match('%f[%a]' .. trimmed .. '%f[%A]') then
setting = setting .. ',' .. trimmed
end
end
original = before .. setting .. after
end
return original
end
end
-- Returns a dictionary representation of the specified highlight group.
pinnacle.dump = function(group)
local result = {}
for _, component in ipairs({'bg', 'fg'}) do
local value = pinnacle.extract_component(group, component)
if value ~= '' then
result[component] = value
end
end
local active = {}
for _, component in ipairs({'bold', 'inverse', 'italic', 'reverse', 'standout', 'undercurl', 'underline'}) do
if pinnacle.extract_component(group, component) == '1' then
table.insert(active, component)
end
end
if #active > 0 then
result[prefix] = table.concat(active, ',')
end
return result
end
-- Returns an bold copy of `group` suitable for passing to `:highlight`.
pinnacle.embolden = function(group)
return pinnacle.decorate('bold', group)
end
-- Extracts just the "bg" portion of the specified highlight group.
pinnacle.extract_bg = function(group)
return pinnacle.extract_component(group, 'bg')
end
-- Extracts a single component (eg. "bg", "fg", "italic" etc) from the
-- specified highlight group.
pinnacle.extract_component = function(group, component)
return vim.fn.synIDattr(
vim.fn.synIDtrans(vim.fn.hlID(group)),
component
)
end
-- Extracts just the "fg" portion of the specified highlight group.
pinnacle.extract_fg = function(group)
return pinnacle.extract_component(group, 'fg')
end
-- Extracts a highlight string from a group, recursively traversing
-- linked groups, and returns a string suitable for passing to
-- `:highlight` (effectively extracts the bit after "xxx").
pinnacle.extract_highlight = function(group)
-- We originally relied on:
--
-- vim.api.nvim_exec('0verbose highlight ' .. group, true)
--
-- But for some reason it sometimes returns an empty string, so we do this
-- instead:
return pinnacle.highlight(pinnacle.dump(group))
end
-- Returns a string representation of a table containing bg, fg, term,
-- cterm and guiterm entries.
pinnacle.highlight = function(highlight)
local result = {}
for _, key in ipairs({'bg', 'fg'}) do
if highlight[key] ~= nil then
table.insert(result, prefix .. key .. '=' .. highlight[key])
end
end
for _, key in ipairs({'term', 'cterm', 'guiterm'}) do
if highlight[key] ~= nil then
table.insert(result, prefix .. '=' .. highlight[key])
end
end
return table.concat(result, ' ')
end
-- Returns an italicized copy of `group` suitable for passing to
-- `:highlight`.
pinnacle.italicize = function(group)
return pinnacle.decorate('italic', group)
end
-- Returns an underlined copy of `group` suitable for passing to
-- `:highlight`.
pinnacle.underline = function(group)
return pinnacle.decorate('underline', group)
end
return pinnacle
| 27.951389 | 111 | 0.668323 |
fb135b5e5d280a434622f0714f3b222c32c543cb | 1,239 | h | C | network_kit/FtpClient/FtpClient.h | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-09-09T21:01:57.000Z | 2022-03-27T10:01:27.000Z | network_kit/FtpClient/FtpClient.h | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | null | null | null | network_kit/FtpClient/FtpClient.h | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-04-03T01:45:23.000Z | 2021-05-14T08:23:01.000Z | /*
Copyright 1999, Be Incorporated. All Rights Reserved.
This file may be used under the terms of the Be Sample Code License.
*/
#ifndef _FtpClient_h
#define _FtpClient_h
#include <string>
class FtpClient
{
public:
FtpClient();
~FtpClient();
enum ftp_mode
{
binary_mode,
ascii_mode
};
bool connect(const string &server, const string &login, const string &passwd);
bool putFile(const string &local, const string &remote, ftp_mode mode = binary_mode);
bool getFile(const string &remote, const string &local, ftp_mode mode = binary_mode);
bool moveFile(const string &oldpath, const string &newpath);
bool cd(const string &dir);
bool pwd(string &dir);
bool ls(string &listing);
void setPassive(bool on);
protected:
enum {
ftp_complete = 1UL,
ftp_connected = 2,
ftp_passive = 4
};
unsigned long m_state;
bool p_testState(unsigned long state);
void p_setState(unsigned long state);
void p_clearState(unsigned long state);
bool p_sendRequest(const string &cmd);
bool p_getReply(string &outstr, int &outcode, int &codetype);
bool p_getReplyLine(string &line);
bool p_openDataConnection();
bool p_acceptDataConnection();
BNetEndpoint *m_control;
BNetEndpoint *m_data;
};
#endif /* _FtpClient_h */ | 22.125 | 86 | 0.740113 |
9c3e6a2f65180d766230b5ff503ffe512168b5de | 2,640 | js | JavaScript | resources/assets/components/modal/LoadBoardModal.js | dethi/plugboard | a688847f099b5814f883f11e0eb7bf13ec1e38dc | [
"MIT"
] | 6 | 2017-12-14T21:26:31.000Z | 2019-03-02T01:13:05.000Z | resources/assets/components/modal/LoadBoardModal.js | dethi/plugboard | a688847f099b5814f883f11e0eb7bf13ec1e38dc | [
"MIT"
] | null | null | null | resources/assets/components/modal/LoadBoardModal.js | dethi/plugboard | a688847f099b5814f883f11e0eb7bf13ec1e38dc | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Modal from './Modal';
import SelectableElementBoxImg from '../util/SelectableElementBoxImg';
import BoardAction from '../../actions/boardActions';
class LoadBoardModal extends Component {
constructor(props) {
super(props);
this.state = {
modalName: 'BOARD_LOAD',
boardId: null,
loading: false
};
}
onDisplay = () => {
this.setState({ loading: true });
this.props.dispatch(BoardAction.getBoardsAsync()).then(() => {
this.setState({
loading: false
});
});
};
onCancel = () => {
this.setState({ boardId: null });
};
onApply = () => {
if (this.state.boardId === null) return;
this.props.dispatch(BoardAction.loadBoardAsync(this.state.boardId));
};
selectBoard = id => {
this.setState({ boardId: id });
console.log(id);
};
render() {
const { loading } = this.state;
const { boards } = this.props.board;
return (
<Modal
modalName={this.state.modalName}
title="Load Board"
content={
<div className="list-elements">
{loading &&
<div className="has-text-centered">
<span className="icon is-large">
<i className="fa fa-spinner fa-pulse" />
</span>
</div>}
{boards &&
<div>
{boards.length === 0
? <div className="has-text-centered">
<div className="notification is-warning">
<p>You don't have any saved boards</p>
</div>
</div>
: <div className="parent">
{boards.map(board => (
<SelectableElementBoxImg
key={board.id}
title={board.title}
img={board.preview_url}
selected={board.id === this.state.boardId}
onClick={() => this.selectBoard(board.id)}
/>
))}
</div>}
</div>}
</div>
}
success="Load"
onApply={this.onApply}
onCancel={this.onCancel}
onDisplay={this.onDisplay}
/>
);
}
}
const mapStateToProps = state => {
return {
board: state.board
};
};
LoadBoardModal.propTypes = {
board: PropTypes.object.isRequired
};
export default connect(mapStateToProps)(LoadBoardModal);
| 25.631068 | 72 | 0.499242 |
74ad9110be098af5b7bc43f3d2090a999c55113e | 2,653 | js | JavaScript | index.js | nikitavasilev/mongo-demo | ca1a8349297a3545f9693f54de2ee65b2b386149 | [
"Unlicense"
] | null | null | null | index.js | nikitavasilev/mongo-demo | ca1a8349297a3545f9693f54de2ee65b2b386149 | [
"Unlicense"
] | null | null | null | index.js | nikitavasilev/mongo-demo | ca1a8349297a3545f9693f54de2ee65b2b386149 | [
"Unlicense"
] | null | null | null | const mongoose = require('mongoose');
mongoose
.connect('mongodb://localhost/playground')
.then(() => console.log('Connected to MongoDB...'))
.catch(err => console.error('Could not connect to MongoDB...', err));
const courseSchema = new mongoose.Schema({
name: String,
author: String,
tags: [String],
date: { type: Date, default: Date.now },
isPublished: Boolean
});
const Course = mongoose.model('Course', courseSchema);
async function createCourse() {
const course = new Course({
name: 'Angular Course',
author: 'Mosh',
tags: ['angular', 'frontend'],
isPublished: true
});
const result = await course.save();
console.log(result);
}
/** Comparison query operators:
* eq (equal)
* ne (not equal)
* gt (greater than)
* gte (greater than or equal to)
* lt (less than)
* lte (less than or equal to)
* in
* nin (not in)
*
* Logical operators:
* or
* and
*
* Regex:
* .find({ author: /^Mosh/ }) // starts with Mosh
* .find({ author: /Hamedani$/i }) // ends with Hamedani
*/
// .find({ author: /.*Mosh.*/i }) // contains Mosh
async function getCourses() {
const pageNumber = 2;
const pageSize = 10;
const courses = await Course
// .find({ author: 'Mosh', isPublished: true })
// .find({ price: { $gte: 10, $lte: 20 } })
// .find({ price: { $in: [10, 15, 20] } })
.find()
.or([{ author: 'Mosh' }, { isPublished: true }])
.skip((pageNumber - 1) * pageSize)
.limit(pageSize)
.sort({ name: 1 })
// .count() instead of select, for the count of documents
.select({ name: 1, tags: 1 });
console.log(courses);
}
/** Approach: Query first
* findById()
* Modify its properties
* save()
*/
/* async function updateCourse(id) {
const course = await Course.findById(id);
if (!course) return;
course.set({ isPublished: true, author: 'Another author' });
// or course.isPublished = true; course.author = 'Another author';
const result = await course.save();
console.log(result);
} */
/** Approach: Update first
* Update directly
* Optionally: get the updated document
*/
async function updateCourse(id) {
const course = await Course.findByIdAndUpdate(
id,
{
$set: {
author: 'Jason',
isPublished: false
}
},
{ new: true }
);
console.log(course);
}
async function removeCourse(id) {
const result = await Course.deleteOne({ _id: id });
// or const result = await Course.deleteMany({ _id: id });
// or const course = await Course.findByIdAndRemove(id);
console.log(result);
}
// getCourses();
// updateCourse('5cd82257f2ee345338870081');
removeCourse('5cd82257f2ee345338870081');
| 23.27193 | 71 | 0.624576 |
c7d12c83c01f69678e1379bbe11b70c7748f86c2 | 3,925 | asm | Assembly | release/src/router/gmp/mpn/x86/k7/gcd_1.asm | ghsecuritylab/Toastman-Tinc | 86307e635ac777050d7f48486fe1411bd7249aa0 | [
"FSFAP"
] | 5 | 2015-01-12T13:53:14.000Z | 2020-01-16T02:48:36.000Z | release/src/router/gmp/mpn/x86/k7/gcd_1.asm | ghsecuritylab/Toastman-Tinc | 86307e635ac777050d7f48486fe1411bd7249aa0 | [
"FSFAP"
] | 1 | 2018-08-21T03:44:47.000Z | 2018-08-21T03:44:47.000Z | release/src/router/gmp/mpn/x86/k7/gcd_1.asm | ghsecuritylab/Toastman-Tinc | 86307e635ac777050d7f48486fe1411bd7249aa0 | [
"FSFAP"
] | 2 | 2017-03-24T18:55:32.000Z | 2020-03-08T02:32:43.000Z | dnl x86 mpn_gcd_1 optimised for AMD K7.
dnl Contributed to the GNU project by by Kevin Ryde. Rehacked by Torbjorn
dnl Granlund.
dnl Copyright 2000-2002, 2005, 2009, 2011, 2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C cycles/bit (approx)
C AMD K7 5.31
C AMD K8,K9 5.33
C AMD K10 5.30
C AMD bd1 ?
C AMD bobcat 7.02
C Intel P4-2 10.1
C Intel P4-3/4 10.0
C Intel P6/13 5.88
C Intel core2 6.26
C Intel NHM 6.83
C Intel SBR 8.50
C Intel atom 8.90
C VIA nano ?
C Numbers measured with: speed -CD -s16-32 -t16 mpn_gcd_1
C TODO
C * Tune overhead, this takes 2-3 cycles more than old code when v0 is tiny.
C * Stream things better through registers, avoiding some copying.
C ctz_table[n] is the number of trailing zeros on n, or MAXSHIFT if n==0.
deflit(MAXSHIFT, 6)
deflit(MASK, eval((m4_lshift(1,MAXSHIFT))-1))
DEF_OBJECT(ctz_table,64)
.byte MAXSHIFT
forloop(i,1,MASK,
` .byte m4_count_trailing_zeros(i)
')
END_OBJECT(ctz_table)
C Threshold of when to call bmod when U is one limb. Should be about
C (time_in_cycles(bmod_1,1) + call_overhead) / (cycles/bit).
define(`DIV_THRES_LOG2', 7)
define(`up', `%edi')
define(`n', `%esi')
define(`v0', `%edx')
ASM_START()
TEXT
ALIGN(16)
PROLOGUE(mpn_gcd_1)
push %edi
push %esi
mov 12(%esp), up
mov 16(%esp), n
mov 20(%esp), v0
mov (up), %eax C U low limb
or v0, %eax C x | y
mov $-1, %ecx
L(twos):
inc %ecx
shr %eax
jnc L(twos)
shr %cl, v0
mov %ecx, %eax C common twos
L(divide_strip_y):
shr v0
jnc L(divide_strip_y)
adc v0, v0
push %eax
push v0
cmp $1, n
jnz L(reduce_nby1)
C Both U and V are single limbs, reduce with bmod if u0 >> v0.
mov (up), %ecx
mov %ecx, %eax
shr $DIV_THRES_LOG2, %ecx
cmp %ecx, v0
ja L(reduced)
mov v0, %esi
xor %edx, %edx
div %esi
mov %edx, %eax
jmp L(reduced)
L(reduce_nby1):
ifdef(`PIC_WITH_EBX',`
push %ebx
call L(movl_eip_to_ebx)
add $_GLOBAL_OFFSET_TABLE_, %ebx
')
push v0 C param 3
push n C param 2
push up C param 1
cmp $BMOD_1_TO_MOD_1_THRESHOLD, n
jl L(bmod)
CALL( mpn_mod_1)
jmp L(called)
L(bmod):
CALL( mpn_modexact_1_odd)
L(called):
add $12, %esp C deallocate params
ifdef(`PIC_WITH_EBX',`
pop %ebx
')
L(reduced):
pop %edx
LEA( ctz_table, %esi)
test %eax, %eax
mov %eax, %ecx
jnz L(mid)
jmp L(end)
ALIGN(16) C K8 BC P4 NHM SBR
L(top): cmovc( %ecx, %eax) C if x-y < 0 0
cmovc( %edi, %edx) C use x,y-x 0
L(mid): and $MASK, %ecx C 0
movzbl (%esi,%ecx), %ecx C 1
jz L(shift_alot) C 1
shr %cl, %eax C 3
mov %eax, %edi C 4
mov %edx, %ecx C 3
sub %eax, %ecx C 4
sub %edx, %eax C 4
jnz L(top) C 5
L(end): pop %ecx
mov %edx, %eax
shl %cl, %eax
pop %esi
pop %edi
ret
L(shift_alot):
shr $MAXSHIFT, %eax
mov %eax, %ecx
jmp L(mid)
ifdef(`PIC_WITH_EBX',`
L(movl_eip_to_ebx):
mov (%esp), %ebx
ret
')
EPILOGUE()
| 20.989305 | 79 | 0.677962 |
807d00f6e132432f03e66aeb1a90ab708f18d61b | 455 | sql | SQL | mysql/projects/sage/views/event_vw.sql | JaneliaSciComp/DatabaseScripts | a026b20ccebed41e1e9923423edba5c87d3b8964 | [
"BSD-3-Clause"
] | null | null | null | mysql/projects/sage/views/event_vw.sql | JaneliaSciComp/DatabaseScripts | a026b20ccebed41e1e9923423edba5c87d3b8964 | [
"BSD-3-Clause"
] | null | null | null | mysql/projects/sage/views/event_vw.sql | JaneliaSciComp/DatabaseScripts | a026b20ccebed41e1e9923423edba5c87d3b8964 | [
"BSD-3-Clause"
] | null | null | null | CREATE OR REPLACE VIEW event_vw AS
SELECT e.id AS id
,cv_term.name AS process
,le.id AS line_event_id
,l.id AS line_id
,l.name AS line
,e.action AS action
,e.operator AS operator
,e.create_date AS create_date
FROM event e
JOIN cv_term ON (e.process_id = cv_term.id)
JOIN line_event le ON (e.id = le.event_id)
JOIN line l on (l.id = le.line_id)
;
| 30.333333 | 43 | 0.571429 |
e77f64ac730fdf76fea38cee325f804edfb4a516 | 1,132 | js | JavaScript | data/create-tables.js | gitThere-API/gitthere-api-be | 2af4e842b44fb4821413e8a1a8240ac3a1824e2d | [
"MIT"
] | null | null | null | data/create-tables.js | gitThere-API/gitthere-api-be | 2af4e842b44fb4821413e8a1a8240ac3a1824e2d | [
"MIT"
] | 3 | 2020-12-23T20:14:10.000Z | 2021-03-28T06:26:38.000Z | data/create-tables.js | gitThere-API/gitthere-api-be | 2af4e842b44fb4821413e8a1a8240ac3a1824e2d | [
"MIT"
] | 2 | 2020-12-10T01:17:07.000Z | 2020-12-19T22:41:13.000Z | const client = require('../lib/client');
const { getEmoji } = require('../lib/emoji.js');
// async/await needs to run in a function
run();
async function run() {
try {
// initiate connecting to db
await client.connect();
// run a query to create tables
await client.query(`
CREATE TABLE users (
id SERIAL PRIMARY KEY,
email VARCHAR(256) NOT NULL,
hash VARCHAR(512) NOT NULL
);
CREATE TABLE favorites (
id SERIAL PRIMARY KEY NOT NULL,
name VARCHAR(512) NOT NULL,
lat DECIMAL NOT NULL,
lng DECIMAL NOT NULL,
address VARCHAR(512) NOT NULL,
owner_id INTEGER NOT NULL REFERENCES users(id)
);
`);
console.log('create tables complete', getEmoji(), getEmoji(), getEmoji());
}
catch(err) {
// problem? let's see the error...
console.log(err);
}
finally {
// success or failure, need to close the db connection
client.end();
}
}
| 26.952381 | 78 | 0.515901 |
00b70be7fd745abae0b0a256b27e52e32d8a8819 | 6,347 | kt | Kotlin | app/src/main/java/com/example/androiddevchallenge/MainActivity.kt | Nilhcem/android-dev-challenge-compose-week2 | 210de3fbcaa5e193fb266658b8993af488d22cae | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/example/androiddevchallenge/MainActivity.kt | Nilhcem/android-dev-challenge-compose-week2 | 210de3fbcaa5e193fb266658b8993af488d22cae | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/example/androiddevchallenge/MainActivity.kt | Nilhcem/android-dev-challenge-compose-week2 | 210de3fbcaa5e193fb266658b8993af488d22cae | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.androiddevchallenge
import android.os.Bundle
import android.widget.Toast
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.requiredWidth
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.Button
import androidx.compose.material.CircularProgressIndicator
import androidx.compose.material.MaterialTheme
import androidx.compose.material.OutlinedTextField
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.livedata.observeAsState
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.text.input.ImeAction
import androidx.compose.ui.text.input.KeyboardType
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.lifecycle.viewmodel.compose.viewModel
import com.example.androiddevchallenge.ui.theme.MyTheme
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
MyTheme {
MyApp()
}
}
}
}
// Start building your app here!
@Composable
fun MyApp(countdownViewModel: CountdownViewModel = viewModel()) {
val context = LocalContext.current
val isStarted by countdownViewModel.isStarted.observeAsState(false)
val seconds by countdownViewModel.setupSeconds.observeAsState(initial = 0L)
val progress by countdownViewModel.countdownProgress.observeAsState(1.0f)
val label by countdownViewModel.countdownLabel.observeAsState(initial = "")
MyScreen(
isStarted = isStarted,
seconds = if (seconds == 0L) "" else seconds.toString(),
progress = progress,
label = label,
onSecondsChange = { countdownViewModel.setSeconds(it.toLongOrNull() ?: 0L) },
onStartCountdown = {
Toast.makeText(context, "Started!", Toast.LENGTH_SHORT).show()
countdownViewModel.startCountdown()
},
onStopCountdown = {
Toast.makeText(context, "Stopped!", Toast.LENGTH_SHORT).show()
countdownViewModel.stopCountdown()
}
)
}
@OptIn(ExperimentalAnimationApi::class)
@Composable
fun MyScreen(
isStarted: Boolean,
seconds: String,
progress: Float,
label: String,
onSecondsChange: (String) -> Unit,
onStartCountdown: () -> Unit,
onStopCountdown: () -> Unit
) {
Surface(color = MaterialTheme.colors.background) {
Column(
modifier = Modifier
.padding(32.dp)
.fillMaxSize(),
horizontalAlignment = Alignment.CenterHorizontally
) {
AnimatedVisibility(visible = isStarted) {
Countdown(progress, label)
Spacer(modifier = Modifier.height(8.dp))
}
Column(
modifier = Modifier
.fillMaxWidth()
.wrapContentHeight(),
horizontalAlignment = Alignment.CenterHorizontally
) {
AnimatedVisibility(visible = !isStarted) {
OutlinedTextField(
modifier = Modifier.requiredWidth(240.dp),
value = seconds,
keyboardOptions = KeyboardOptions(
keyboardType = KeyboardType.Number,
imeAction = ImeAction.Next
),
keyboardActions = KeyboardActions { onStartCountdown() },
onValueChange = onSecondsChange,
label = { Text("Seconds") }
)
}
Button(
modifier = Modifier.padding(vertical = 24.dp),
enabled = isStarted || !isStarted && seconds.isNotBlank(),
onClick = { if (isStarted) onStopCountdown() else onStartCountdown() }
) {
Text(text = if (isStarted) "STOP!" else "START!")
}
}
}
}
}
@Composable
fun Countdown(progress: Float, label: String) {
Box(modifier = Modifier.aspectRatio(ratio = 1f), contentAlignment = Alignment.Center) {
CircularProgressIndicator(
modifier = Modifier.fillMaxSize(),
progress = progress
)
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Text(
text = label,
style = MaterialTheme.typography.h4
)
}
}
}
@Preview("Light Theme", widthDp = 360, heightDp = 640)
@Composable
fun LightPreview() {
MyTheme {
MyApp()
}
}
@Preview("Dark Theme", widthDp = 360, heightDp = 640)
@Composable
fun DarkPreview() {
MyTheme(darkTheme = true) {
MyApp()
}
}
| 35.458101 | 91 | 0.663936 |
a57a91b3b664cbb1174bf32b7a51131cee3adf5a | 770 | swift | Swift | Sources/ProcessController/SilenceBehavior.swift | renovate-tests/Emcee | e0eaf8cbae7a4472aecf8b13b2dfb0c8fc4258f3 | [
"MIT"
] | null | null | null | Sources/ProcessController/SilenceBehavior.swift | renovate-tests/Emcee | e0eaf8cbae7a4472aecf8b13b2dfb0c8fc4258f3 | [
"MIT"
] | null | null | null | Sources/ProcessController/SilenceBehavior.swift | renovate-tests/Emcee | e0eaf8cbae7a4472aecf8b13b2dfb0c8fc4258f3 | [
"MIT"
] | null | null | null | import Foundation
public class SilenceBehavior {
public typealias Handler = (ProcessController) -> ()
public enum Action {
case noAutomaticAction
case terminateAndForceKill
case interruptAndForceKill
case handler(Handler)
}
public let automaticAction: Action
public let allowedSilenceDuration: TimeInterval
public let allowedTimeToConsumeStdin: TimeInterval
public init(
automaticAction: Action,
allowedSilenceDuration: TimeInterval,
allowedTimeToConsumeStdin: TimeInterval = 30
) {
self.automaticAction = automaticAction
self.allowedSilenceDuration = allowedSilenceDuration
self.allowedTimeToConsumeStdin = allowedTimeToConsumeStdin
}
}
| 28.518519 | 66 | 0.707792 |
70d7116bb36b6ebf22a1f76a9c8d334db6ddd421 | 3,838 | c | C | src/semantic_analysis/expansions/arithmetic_expansion.c | Travmatth/21sh | 721dc139aa8d3ad88dd08e85f59786ecc0146283 | [
"MIT"
] | null | null | null | src/semantic_analysis/expansions/arithmetic_expansion.c | Travmatth/21sh | 721dc139aa8d3ad88dd08e85f59786ecc0146283 | [
"MIT"
] | 74 | 2019-03-06T21:41:50.000Z | 2020-12-17T02:56:09.000Z | src/semantic_analysis/expansions/arithmetic_expansion.c | Travmatth/21sh | 721dc139aa8d3ad88dd08e85f59786ecc0146283 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* arithmetic_expansion.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmatthew <tmatthew@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/04 12:40:09 by tmatthew #+# #+# */
/* Updated: 2019/06/13 16:55:08 by tmatthew ### ########.fr */
/* */
/* ************************************************************************** */
#include "../../../includes/shell.h"
/*
** 21sh does not support arithmetic expansion, so on detection of an arithmetic
** expansion shell should fail gracefully so that next command may be inputted
*/
int arith_exp_err(char **str, int start, int end)
{
(void)end;
if (ARITH_EXP((*str), start))
{
ft_printf("Semantic Error: arithmetic expansion not implemented\n");
return (NIL);
}
return (SUCCESS);
}
/*
** Arithmetic Expansion
** Arithmetic expansion provides a mechanism for evaluating an arithmetic
** expression and substituting its value. The format for arithmetic expansion
** shall be as follows:
**
** $((expression))
**
** The expression shall be treated as if it were in double-quotes, except that
** a double-quote inside the expression is not treated specially. The shell
** shall expand all tokens in the expression for parameter expansion, command
** substitution, and quote removal.
**
** Next, the shell shall treat this as an arithmetic expression and substitute
** the value of the expression. The arithmetic expression shall be processed
** according to the rules given in Arithmetic Precision and Operations, with
** the following exceptions:
**
** Only signed long integer arithmetic is required.
**
** Only the decimal-constant, octal-constant, and hexadecimal-constant constants
** specified in the ISO C standard, Section 6.4.4.1 are required to be
** recognized as constants.
**
** The sizeof() operator and the prefix and postfix "++" and "--" operators are
** not required.
**
** Selection, iteration, and jump statements are not supported.
**
** All changes to variables in an arithmetic expression shall be in effect after
** the arithmetic expansion, as in the parameter expansion "${x=value}".
**
** If the shell variable x contains a value that forms a valid integer constant,
** optionally including a leading <plus-sign> or <hyphen-minus>, then the
** arithmetic expansions "$((x))" and "$(($x))" shall return the same value.
**
** As an extension, the shell may recognize arithmetic expressions beyond
** those listed. The shell may use a signed integer type with a rank larger
** than the rank of signed long. The shell may use a real-floating type
** instead of signed long as long as it does not affect the results in cases
** where there is no overflow. If the expression is invalid, or the contents
** of a shell variable used in the expression are not recognized by the shell,
** the expansion fails and the shell shall write a diagnostic message to
** standard error indicating the failure.
*/
int arithmetic_expansion(char **parameter)
{
int i;
size_t end;
int status;
char *name;
i = 0;
if (!(name = ft_strdup(*parameter)))
return (ERROR);
status = SUCCESS;
while (OK(status) && name[i])
{
if (name[i] == '\\')
i += 1;
else if (P_ARITH(status, (&name), arith_exp_err, i, (&end)))
i += end;
i += 1;
}
free(*parameter);
*parameter = name;
return (status);
}
| 38.38 | 80 | 0.584419 |
9cfab6837236179fb4102b82924e3b800cf89a3a | 1,504 | kt | Kotlin | app/src/main/java/org/blitzortung/android/util/Period.kt | raymas/bo-android | 9d5a186e7b6775abb9ca4b4c76f8ddc3f79c6582 | [
"Apache-2.0"
] | 86 | 2015-01-07T01:13:46.000Z | 2021-12-08T03:07:11.000Z | app/src/main/java/org/blitzortung/android/util/Period.kt | raymas/bo-android | 9d5a186e7b6775abb9ca4b4c76f8ddc3f79c6582 | [
"Apache-2.0"
] | 179 | 2015-05-06T06:53:11.000Z | 2022-01-08T01:02:54.000Z | app/src/main/java/org/blitzortung/android/util/Period.kt | raymas/bo-android | 9d5a186e7b6775abb9ca4b4c76f8ddc3f79c6582 | [
"Apache-2.0"
] | 37 | 2015-05-17T16:26:15.000Z | 2021-09-15T15:58:51.000Z | /*
Copyright 2015 Andreas Würl
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.blitzortung.android.util
class Period {
internal var lastUpdateTime: Long = 0L
internal var updateCount: Int = 0
private set
init {
restart()
}
fun shouldUpdate(currentTime: Long, currentPeriod: Int): Boolean {
return if (currentTime >= lastUpdateTime + currentPeriod) {
updateCount++
lastUpdateTime = currentTime
true
} else {
false
}
}
fun isNthUpdate(countPeriod: Int): Boolean {
return (updateCount % countPeriod) == 0
}
fun getCurrentUpdatePeriod(currentTime: Long, currentPeriod: Int): Long {
return currentPeriod - (currentTime - lastUpdateTime)
}
fun restart() {
lastUpdateTime = 0
updateCount = 0
}
companion object {
val currentTime: Long
get() = System.currentTimeMillis() / 1000
}
}
| 25.066667 | 77 | 0.649601 |
6b5c1e5011e68e86f6ef842a221af04e37b47b86 | 5,559 | h | C | src/lib/OpenEXRCore/openexr_base.h | lheckemann/openexr | c3f291bb2fc4194d9e9765767c422e7813909734 | [
"BSD-3-Clause"
] | null | null | null | src/lib/OpenEXRCore/openexr_base.h | lheckemann/openexr | c3f291bb2fc4194d9e9765767c422e7813909734 | [
"BSD-3-Clause"
] | null | null | null | src/lib/OpenEXRCore/openexr_base.h | lheckemann/openexr | c3f291bb2fc4194d9e9765767c422e7813909734 | [
"BSD-3-Clause"
] | null | null | null | /*
** SPDX-License-Identifier: BSD-3-Clause
** Copyright Contributors to the OpenEXR Project.
*/
#ifndef OPENEXR_BASE_H
#define OPENEXR_BASE_H
#include "openexr_conf.h"
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @brief Retrieve the current library version. The 'extra' string is for
* custom installs, and is a static string, do not free the returned pointer */
EXR_EXPORT void
exr_get_library_version (int* maj, int* min, int* patch, const char** extra);
/**
* @defgroup SafetyChecks Controls for internal safety checks
* @{
*/
/** @brief Limit the size of image allowed to be parsed or created by
* the library
*
* This is used as a safety check against corrupt files, but can also
* serve to avoid potential issues on machines which have very
* constrained RAM
*
* These values are among the only globals in the core layer of
* OpenEXR. The intended use is for applications to define a global
* default, which will be combined with the values provided to the
* individual context creation routine. The values are used to check
* against parsed header values. This adds some level of safety from
* memory overruns where a corrupt file given to the system may cause
* a large allocation to happen, enabling buffer overruns or other
* potential security issue.
*
* These global values are combined with the values in
* @sa exr_context_initializer using the following rules:
*
* 1. negative values are ignored
*
* 2. if either value has a positive (non-zero) value, and the other
* has 0, the positive value is preferred.
*
* 3. If both are positive (non-zero), the minimum value is used
*
* 4. If both values are 0, this disables the constrained size checks.
*
* This function does not fail
*/
EXR_EXPORT void exr_set_default_maximum_image_size (int w, int h);
/** @brief Retrieve the global default maximum image size
*
* This function does not fail
*/
EXR_EXPORT void exr_get_default_maximum_image_size (int* w, int* h);
/** @brief Limit the size of an image tile allowed to be parsed or
* created by the library
*
* Similar to image size, this places constraints on the maximum tile
* size as a safety check against bad file data
*
* This is used as a safety check against corrupt files, but can also
* serve to avoid potential issues on machines which have very
* constrained RAM
*
* These values are among the only globals in the core layer of
* OpenEXR. The intended use is for applications to define a global
* default, which will be combined with the values provided to the
* individual context creation routine. The values are used to check
* against parsed header values. This adds some level of safety from
* memory overruns where a corrupt file given to the system may cause
* a large allocation to happen, enabling buffer overruns or other
* potential security issue.
*
* These global values are combined with the values in
* @sa exr_context_initializer using the following rules:
*
* 1. negative values are ignored
*
* 2. if either value has a positive (non-zero) value, and the other
* has 0, the positive value is preferred.
*
* 3. If both are positive (non-zero), the minimum value is used
*
* 4. If both values are 0, this disables the constrained size checks.
*
* This function does not fail
*/
EXR_EXPORT void exr_set_default_maximum_tile_size (int w, int h);
/** @brief Retrieve the global maximum tile size.
*
* This function does not fail
*/
EXR_EXPORT void exr_get_default_maximum_tile_size (int* w, int* h);
/** @brief function pointer used to hold a malloc-like routine
*
* Providing these to a context will override what memory is used to
* allocate the context itself, as well as any allocations which
* happen during processing of a file or stream. This can be used by
* systems which provide rich malloc tracking routines to override the
* internal allocations performed by the library.
*
* This function is expected to allocate and return a new memory
* handle, or NULL if allocation failed (which the library will then
* handle and return an out-of-memory error).
*
* If providing one, probably need to provide both routines.
* @sa exr_memory_free_func_t
*/
typedef void* (*exr_memory_allocation_func_t) (size_t bytes);
/** @brief function pointer used to hold a free-like routine
*
* Providing these to a context will override what memory is used to
* allocate the context itself, as well as any allocations which
* happen during processing of a file or stream. This can be used by
* systems which provide rich malloc tracking routines to override the
* internal allocations performed by the library.
*
* This function is expected to return memory to the system, ala free
* from the C library.
*
* If providing one, probably need to provide both routines.
* @sa exr_memory_allocation_func_t
*/
typedef void (*exr_memory_free_func_t) (void* ptr);
/** @brief Allows the user to override default allocator used internal allocations necessary for
* files, attributes, and other temporary memory.
*
* These routines may be overridden when creating a specific context,
* however this provides global defaults such that the default can be
* applied.
*
* If either pointer is NULL, the appropriate malloc / free routine will be substituted
*
* This function does not fail
*/
EXR_EXPORT void exr_set_default_memory_routines (
exr_memory_allocation_func_t alloc_func, exr_memory_free_func_t free_func);
/** @} */
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* OPENEXR_BASE_H */
| 34.74375 | 96 | 0.750495 |
a2fa1d44b2ab65c93184dd3fb35f2f9cdd7c9cc9 | 10,491 | kt | Kotlin | src/main/kotlin/com/mrpowergamerbr/jfesm/JFESM.kt | MrPowerGamerBR/JFESM | 84c4d2bfd40da0933b9636e1b49d31be7d74f271 | [
"MIT"
] | 4 | 2019-06-03T03:46:23.000Z | 2021-04-06T12:18:44.000Z | src/main/kotlin/com/mrpowergamerbr/jfesm/JFESM.kt | MrPowerGamerBR/JFESM | 84c4d2bfd40da0933b9636e1b49d31be7d74f271 | [
"MIT"
] | null | null | null | src/main/kotlin/com/mrpowergamerbr/jfesm/JFESM.kt | MrPowerGamerBR/JFESM | 84c4d2bfd40da0933b9636e1b49d31be7d74f271 | [
"MIT"
] | 3 | 2019-08-25T09:18:14.000Z | 2021-05-02T05:45:48.000Z | package com.mrpowergamerbr.jfesm
import com.github.salomonbrys.kotson.char
import com.github.salomonbrys.kotson.jsonObject
import com.github.salomonbrys.kotson.string
import com.github.salomonbrys.kotson.toJsonArray
import com.mrpowergamerbr.jfesm.entities.Player
import com.mrpowergamerbr.jfesm.entities.Sentence
import kotlinx.coroutines.*
import java.util.*
class JFESM(val jfesmServer: JFESMServer) {
companion object {
val RANDOM = SplittableRandom()
}
val players: MutableList<Player> = mutableListOf()
var currentIndex = 0
var sentence1: Sentence? = null
var sentence2: Sentence? = null
val alreadyGuessed = mutableSetOf<Char>()
suspend fun start() {
if (2 >= players.size)
throw RuntimeException("Players insuficientes!")
if (players.size > 5)
throw RuntimeException("Players demais!")
val clonedPlayers = players.toMutableList()
val player1 = clonedPlayers.random()
clonedPlayers.remove(player1)
val player2 = clonedPlayers.random()
val tasks = listOf(
GlobalScope.async { chooseSentence(player1, 1) },
GlobalScope.async { chooseSentence(player2, 2) }
)
val sentencedPlayers = tasks.awaitAll().shuffled()
// Hora de sortear os players!
players.shuffle() // Sortear a lista...
players.removeAll(sentencedPlayers)
players.addAll(sentencedPlayers)
// Os players A, B sempre devem ficar no final da lista...
// players.addAll(sentencedPlayers)
// Vamos começar!
gameLoop()
}
fun gameLoop() {
while (true) {
println(" ")
println(" ")
if (players.isEmpty()) {
println("Parece que todos os jogadores perderam a partida!")
return
}
if (currentIndex >= players.size)
currentIndex = 0
val currentPlayer = players[currentIndex]
players.filterNot { it == currentPlayer }.forEach {
GlobalScope.launch {
it.sendPayload(
jsonObject(
"code" to OpCode.UPDATE_STATUS,
"currentPlayer" to currentPlayer.name,
"sentence1" to sentence1!!.originalSentence,
"sentence2" to sentence2!!.originalSentence,
"alreadyGuessed" to alreadyGuessed.toJsonArray(),
"players" to players.map {
jsonObject(
"name" to it.name,
"cutLimbs" to it.hangman.cutLimbs
)
}.toJsonArray()
)
)
}
}
println("PLAYER ${currentPlayer.name}, ainda existem ${players.size} jogadores jogando!")
val actionPayload = runBlocking {
currentPlayer.sendPayload(
jsonObject(
"code" to OpCode.YOUR_TURN,
"sentence1" to sentence1!!.originalSentence,
"sentence2" to sentence2!!.originalSentence,
"alreadyGuessed" to alreadyGuessed.toJsonArray(),
"cutLimbs" to currentPlayer.hangman.cutLimbs,
"players" to players.map {
jsonObject(
"name" to it.name,
"cutLimbs" to it.hangman.cutLimbs
)
}.toJsonArray()
)
)
}
val action = actionPayload["action"].string
when (action) {
"guess" -> {
val letter = actionPayload["letter"].char
if (!sentence1!!.originalSentence.any { it == letter } && !sentence2!!.originalSentence.any { it == letter }) {
runBlocking {
currentPlayer.sendPayload(
jsonObject(
"code" to OpCode.SEND_MESSAGE,
"message" to "Pelo visto você adivinhou uma letra que não existe nas palavras... hora de cortar uma parte do seu corpo!"
)
)
}
val hangman = currentPlayer.hangman
hangman.cutLimbs += 1
if (hangman.cutLimbs == 5) {
// Perdeu o jogo
val tasks = players.map {
GlobalScope.async {
it.sendPayload(
jsonObject(
"code" to OpCode.SEND_MESSAGE,
"message" to "Parece que alguém chamado ${currentPlayer.name} foi morto... quem mandou ser burrinho?"
)
)
}
}
runBlocking {
currentPlayer.sendPayload(
jsonObject(
"code" to OpCode.SEND_MESSAGE,
"message" to "E parece que só sobrou a sua cabeça, que triste, né?"
)
)
}
players.remove(currentPlayer)
}
}
alreadyGuessed.add(letter)
}
OpCode.SENTENCE_GUESS -> {
val palpiteA = actionPayload["sentence1"].string
val palpiteB = actionPayload["sentence2"].string
val matchesSentence1 = sentence1!!.originalSentence == palpiteA
val matchesSentence2 = sentence2!!.originalSentence == palpiteB
if (matchesSentence1 && matchesSentence2) {
val wonGameResult = players.map {
GlobalScope.async {
it.sendPayload(
jsonObject(
"code" to OpCode.WON_GAME,
"playerName" to currentPlayer.name,
"sentence1" to palpiteA,
"sentence2" to palpiteB
)
)
}
}
runBlocking {
wonGameResult.awaitAll()
}
System.exit(0)
} else {
println("Mal palpite realizado!")
val tasks = players.map {
GlobalScope.async {
it.sendPayload(
jsonObject(
"code" to OpCode.SEND_MESSAGE,
"message" to "Parece que alguém chamado ${currentPlayer.name} fez o palpite errado... meus pêsames para ele."
)
)
}
}
runBlocking {
tasks.awaitAll()
}
println("Avisado para todos os players, OK")
runBlocking {
println("Enviando aviso")
currentPlayer.sendPayload(
jsonObject(
"code" to OpCode.QUIT_GAME_DUE_TO_BAD_GUESS
)
)
println("Aviso enviado!")
}
players.remove(currentPlayer)
}
}
}
/* players.filterNot { it == currentPlayer }.forEach {
it as NetworkPlayer
GlobalScope.launch {
it.sendPayload(
jsonObject(
"code" to OpCode.UPDATE_STATUS,
"currentPlayer" to currentPlayer.name,
"sentence1" to sentence1!!.originalSentence,
"sentence2" to sentence2!!.originalSentence,
"alreadyGuessed" to alreadyGuessed.toJsonArray(),
"players" to players.map {
jsonObject(
"name" to it.name,
"cutLimbs" to it.hangman.cutLimbs
)
}.toJsonArray()
)
)
}
} */
currentIndex++
}
}
suspend fun chooseSentence(player: Player, sentenceKind: Int): Player {
// players.remove(player)
val payload = player.sendPayload(
jsonObject(
"code" to OpCode.SELECT_SENTENCE,
"sentence" to sentenceKind
)
)
val sentence = payload["sentence"].string
println("Recebeu $sentence")
// TODO: Filtrar coisas inválidas
if (sentenceKind == 1) {
sentence1 = Sentence(sentence.toUpperCase())
} else {
sentence2 = Sentence(sentence.toUpperCase())
}
/* if (sentence1 == null) {
println("${player.name}, qual será a palavra A a ser adivinhada?")
sentence1 = Sentence(readLine()!!.toUpperCase()) // TODO: Filtrar coisas inválidas
} else {
println("${player.name}, qual será a palavra B a ser adivinhada?")
sentence2 = Sentence(readLine()!!.toUpperCase()) // TODO: Filtrar coisas inválidas
} */
return player
}
} | 39 | 156 | 0.425317 |
4d179499a8c78540d17a04cde8af430229c7e2ad | 354 | sql | SQL | src/LyphTEC.Repository.Dapper.Tests/SQLite/Sql/CreateCustomerTable.sql | lyphtec/LyphTEC.Repository.Dapper | fb26db78244a3484408fc7aefbe7a9d11bee0132 | [
"Apache-2.0"
] | 1 | 2019-02-06T14:50:04.000Z | 2019-02-06T14:50:04.000Z | src/LyphTEC.Repository.Dapper.Tests/SQLite/Sql/CreateCustomerTable.sql | lyphtec/LyphTEC.Repository.Dapper | fb26db78244a3484408fc7aefbe7a9d11bee0132 | [
"Apache-2.0"
] | null | null | null | src/LyphTEC.Repository.Dapper.Tests/SQLite/Sql/CreateCustomerTable.sql | lyphtec/LyphTEC.Repository.Dapper | fb26db78244a3484408fc7aefbe7a9d11bee0132 | [
"Apache-2.0"
] | null | null | null | CREATE TABLE Customer (
Id INTEGER PRIMARY KEY AUTOINCREMENT, -- In SQLITE3, this is the alias for ROWID
FirstName NVARCHAR(50),
LastName NVARCHAR(50),
Company NVARCHAR(100),
Phone NVARCHAR(50),
Email NVARCHAR(50),
[Address] NVARCHAR(600),
DateCreatedUtc DATETIME,
DateUpdatedUtc DATETIME
) | 27.230769 | 83 | 0.646893 |
87502e1ab6da2aae8bac714026695a6ca8057ac1 | 2,618 | html | HTML | Aula 10. Certificard/index.html | Michael-saeek/Curso-ImersaoDev-Alura | 49434e83f641cb1296a3ed7a9b7877b6b6a88b61 | [
"MIT"
] | null | null | null | Aula 10. Certificard/index.html | Michael-saeek/Curso-ImersaoDev-Alura | 49434e83f641cb1296a3ed7a9b7877b6b6a88b61 | [
"MIT"
] | null | null | null | Aula 10. Certificard/index.html | Michael-saeek/Curso-ImersaoDev-Alura | 49434e83f641cb1296a3ed7a9b7877b6b6a88b61 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Certificard - Michael Andrade</title>
<link rel="stylesheet" href="estilo.css" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" />
</head>
<body>
<section class="container">
<div class="header">
<div class="divFoto">
<img src="https://avatars.githubusercontent.com/u/76621748?v=4" class="fotoMichael" height="150px" width="auto" alt="">
</div>
<h1 class="title-Michael">Michael Andrade Davila</h1>
</div>
<div class="container-informacoes">
<div class="conteudo-corpo">
<h1 class="title-corpo">Insígnias da Imersão Dev</h1>
<ul>
<li><a href="https://codepen.io/michael-saeek/full/XWpbrBw" target="_blank">💰 Conversor de Moedas</a></li>
<li><a href="https://michael-saeek.github.io/Curso-ImersaoDev-Alura/Aula%202.%20Adivinhe%20o%20personagem/index.html" target="_blank">🎎 Quem é esse personagem (Versão Anime)</a></li>
<li><a href="https://codepen.io/michael-saeek/full/RwKrozr" target="_blank">🔮 Mentalista (Adivinhe a idade)</a></li>
<li><a href="https://codepen.io/michael-saeek/pen/poREayM" target="_blank">🎬 Animeflix</a></li>
<li><a href="https://codepen.io/michael-saeek/pen/vYgyZKQ" target="_blank">🏆 Tabela de classificação</a></li>
<li><a href="https://codepen.io/michael-saeek/pen/gOggoXr" target="_blank">🃏 Jogo Supertrunfo</a></li>
<li><a href="https://codepen.io/michael-saeek/pen/bGgWzYR" target="_blank">🎓 Certificard</a></li>
</ul>
</div>
<div class="midias-sociais">
<a href="https://github.com/Michael-saeek" target="_blank"><img id="github" src="https://cdn4.iconfinder.com/data/icons/iconsimple-logotypes/512/github-512.png" alt="" height="35px" width="auto"></a>
<a href="https://www.linkedin.com/in/michael-andrade-955073203/" target="_blank"><img src="https://image.flaticon.com/icons/png/512/174/174857.png" alt="" height="35px" width="auto"></a>
</div>
</div>
</section>
<script src="script.js"></script>
</body>
</html> | 58.177778 | 243 | 0.620321 |
b2fdbd3d23a1257e8c2fb2f6d739b834e644b93d | 5,220 | py | Python | cplcom/moa/device/mcdaq.py | matham/cplcom | 54b1dc8445ff97bab248418d861354beb7c4e656 | [
"MIT"
] | null | null | null | cplcom/moa/device/mcdaq.py | matham/cplcom | 54b1dc8445ff97bab248418d861354beb7c4e656 | [
"MIT"
] | null | null | null | cplcom/moa/device/mcdaq.py | matham/cplcom | 54b1dc8445ff97bab248418d861354beb7c4e656 | [
"MIT"
] | null | null | null | '''Barst Measurement Computing DAQ Wrapper
==========================================
'''
from functools import partial
from pybarst.mcdaq import MCDAQChannel
from kivy.properties import NumericProperty, ObjectProperty
from moa.threads import ScheduledEventLoop
from moa.device.digital import ButtonViewPort
from cplcom.moa.device import DeviceExceptionBehavior
__all__ = ('MCDAQDevice', )
class MCDAQDevice(DeviceExceptionBehavior, ButtonViewPort, ScheduledEventLoop):
'''A :class:`moa.device.digital.ButtonViewPort` wrapper around a
:class:`pybarst.mcdaq.MCDAQChannel` instance which controls a Switch
and Sense 8/8.
For this class, :class:`moa.device.digital.ButtonViewPort.dev_map` must be
provided upon creation and it's a dict whose keys are the property names
and whose values are the Switch and Sense 8/8 channel numbers that the
property controls.
E.g. for a light switch connected to channel 3 on the Switch and Sense
8/8 output port define the class::
class MyMCDAQDevice(MCDAQDevice):
light = BooleanProperty(False)
And then create the instance with::
dev = MyMCDAQDevice(dev_map={'light': 3})
And then we can set it high by calling e.g.::
dev.set_state(high=['light'])
For an input devices it can defined similarly and the state of the property
reflects the value of the port. A switch and sense which has both a input
and output device still needs to create two device for each.
'''
__settings_attrs__ = ('SAS_chan', )
_read_event = None
def _write_callback(self, value, mask, result):
self.timestamp = result
for idx, name in self.chan_dev_map.iteritems():
if mask & (1 << idx):
setattr(self, name, bool(value & (1 << idx)))
self.dispatch('on_data_update', self)
def _read_callback(self, result, **kwargs):
t, val = result
self.timestamp = t
for idx, name in self.chan_dev_map.iteritems():
setattr(self, name, bool(val & (1 << idx)))
self.dispatch('on_data_update', self)
def set_state(self, high=[], low=[], **kwargs):
if self.activation != 'active':
raise TypeError('Can only set state of an active device. Device '
'is currently "{}"'.format(self.activation))
if 'o' not in self.direction:
raise TypeError('Cannot write state for a input device')
dev_map = self.dev_map
mask = 0
val = 0
for name in high:
idx = dev_map[name]
val |= (1 << idx)
mask |= (1 << idx)
for name in low:
mask |= (1 << dev_map[name])
self.request_callback(
self.chan.write, callback=partial(self._write_callback, val, mask),
mask=mask, value=val)
def get_state(self):
if self.activation != 'active':
raise TypeError('Can only read state of an active device. Device '
'is currently "{}"'.format(self.activation))
if 'i' in self.direction: # happens anyway
return
self._read_event = self.request_callback(
self.chan.read, callback=self._read_callback)
def activate(self, *largs, **kwargs):
kwargs['state'] = 'activating'
if not super(MCDAQDevice, self).activate(*largs, **kwargs):
return False
self.start_thread()
self.chan = MCDAQChannel(chan=self.SAS_chan, server=self.server.server)
def finish_activate(*largs):
self.activation = 'active'
if 'i' in self.direction:
self._read_event = self.request_callback(
self.chan.read, repeat=True, callback=self._read_callback)
self.request_callback(self._start_channel, finish_activate)
return True
def _start_channel(self):
chan = self.chan
chan.open_channel()
if 'o' in self.direction:
chan.write(mask=0xFF, value=0)
def deactivate(self, *largs, **kwargs):
kwargs['state'] = 'deactivating'
if not super(MCDAQDevice, self).deactivate(*largs, **kwargs):
return False
self.remove_request(self.chan.read, self._read_event)
self._read_event = None
def finish_deactivate(*largs):
self.activation = 'inactive'
self.stop_thread()
self.request_callback(self._stop_channel, finish_deactivate)
return True
def _stop_channel(self):
if 'o' in self.direction:
self.chan.write(mask=0xFF, value=0)
if 'i' in self.direction and self.chan.continuous:
self.chan.cancel_read(flush=True)
chan = ObjectProperty(None)
'''The internal :class:`pybarst.mcdaq.MCDAQChannel` instance.
It is read only and is automatically created.
'''
server = ObjectProperty(None, allownone=True)
'''The internal barst :class:`pybarst.core.server.BarstServer`. It
must be provided to the instance.
'''
SAS_chan = NumericProperty(0)
'''The channel number of the Switch & Sense 8/8 as configured in InstaCal.
Defaults to zero.
'''
| 35.033557 | 79 | 0.627203 |
d2d8f35eeccee3b6bb68cabac9976e9d95cc1ca2 | 543 | php | PHP | resources/views/site/partials_2/header.blade.php | Huukhanh994/cinema_application_NLN | 98f7446d03d2bfa3fb50fd614dc2ad408a8c41ae | [
"MIT"
] | null | null | null | resources/views/site/partials_2/header.blade.php | Huukhanh994/cinema_application_NLN | 98f7446d03d2bfa3fb50fd614dc2ad408a8c41ae | [
"MIT"
] | 9 | 2020-04-26T02:32:09.000Z | 2022-02-27T00:21:17.000Z | resources/views/site/partials_2/header.blade.php | Huukhanh994/cinema_application_NLN | 98f7446d03d2bfa3fb50fd614dc2ad408a8c41ae | [
"MIT"
] | null | null | null | <header class="header-section">
<div class="container">
<div class="header-wrapper">
<div class="logo">
<a href="http://127.0.0.1:8000/">
<img src="{{asset('assets_client/images/logo/logo.png')}}" alt="logo">
</a>
</div>
@include('site.partials.nav_menu')
<div class="header-bar d-lg-none">
<span></span>
<span></span>
<span></span>
</div>
</div>
</div>
</header> | 31.941176 | 86 | 0.432781 |
84ccba810b87d37478c15c6a06e9c602c586860b | 459 | h | C | Dawg/Dawg.h | ChrisAU/Dawg | 451bf44491e02c045341c0250daec48e2ac3df1c | [
"MIT"
] | 3 | 2017-02-26T13:06:36.000Z | 2018-04-10T09:09:25.000Z | Dawg/Dawg.h | cjnevin/Dawg | 451bf44491e02c045341c0250daec48e2ac3df1c | [
"MIT"
] | 5 | 2016-11-26T13:35:30.000Z | 2017-03-02T01:09:12.000Z | Dawg/Dawg.h | ChrisAU/Dawg | 451bf44491e02c045341c0250daec48e2ac3df1c | [
"MIT"
] | 1 | 2019-06-11T03:17:37.000Z | 2019-06-11T03:17:37.000Z | //
// Dawg.h
// Dawg
//
// Created by Chris Nevin on 25/06/2016.
// Copyright © 2016 CJNevin. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for Dawg.
FOUNDATION_EXPORT double DawgVersionNumber;
//! Project version string for Dawg.
FOUNDATION_EXPORT const unsigned char DawgVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <Dawg/PublicHeader.h>
| 22.95 | 129 | 0.740741 |
f03ab886461270d772569e4546b232254bbdaeb6 | 3,525 | py | Python | .ipynb_checkpoints/main2-checkpoint.py | jcus/python-challenge | 8e00b7ae932e970a98c419e5b49fc7a0dfc3eac5 | [
"RSA-MD"
] | null | null | null | .ipynb_checkpoints/main2-checkpoint.py | jcus/python-challenge | 8e00b7ae932e970a98c419e5b49fc7a0dfc3eac5 | [
"RSA-MD"
] | null | null | null | .ipynb_checkpoints/main2-checkpoint.py | jcus/python-challenge | 8e00b7ae932e970a98c419e5b49fc7a0dfc3eac5 | [
"RSA-MD"
] | null | null | null | {
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "001887f2",
"metadata": {},
"outputs": [],
"source": [
"# import os modules to create path across operating system to load csv file\n",
"import os\n",
"# module for reading csv files\n",
"import csv"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "77c0f7d8",
"metadata": {},
"outputs": [],
"source": [
"# read csv data and load to budgetDB\n",
"csvpath = os.path.join(\"Resources\",\"budget_data.csv\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b2da0e1e",
"metadata": {},
"outputs": [],
"source": [
"# creat a txt file to hold the analysis\n",
"outputfile = os.path.join(\"Analysis\",\"budget_analysis.txt\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f3c0fd89",
"metadata": {},
"outputs": [],
"source": [
"# set var and initialize to zero\n",
"totalMonths = 0 \n",
"totalBudget = 0"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4f807576",
"metadata": {},
"outputs": [],
"source": [
"# set list to store all of the monthly changes\n",
"monthChange = [] \n",
"months = []"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ad264653",
"metadata": {},
"outputs": [],
"source": [
"# use csvreader object to import the csv library with csvreader object\n",
"with open(csvpath, newline = \"\") as csvfile:\n",
"# # create a csv reader object\n",
" csvreader = csv.reader(csvfile, delimiter=\",\")\n",
" \n",
" # skip the first row since it has all of the column information\n",
" #next(csvreader)\n",
" \n",
"#header: date, profit/losses\n",
"print(csvreader)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "27fc81c1",
"metadata": {},
"outputs": [],
"source": [
"for p in csvreader:\n",
" print(\"date: \" + p[0])\n",
" print(\"profit: \" + p[1])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "83749f03",
"metadata": {},
"outputs": [],
"source": [
"# read the header row\n",
"header = next(csvreader)\n",
"print(f\"csv header:{header}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3b441a20",
"metadata": {},
"outputs": [],
"source": [
"# move to the next row (first row)\n",
"firstRow = next(csvreader)\n",
"totalMonths = (len(f\"[csvfile.index(months)][csvfile]\"))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a815e200",
"metadata": {},
"outputs": [],
"source": [
"output = (\n",
" f\"Financial Anaylsis \\n\"\n",
" f\"------------------------- \\n\"\n",
" f\"Total Months: {totalMonths} \\n\")\n",
"print(output)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "6bf35c14",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
| 21.759259 | 84 | 0.508936 |
ffda5a7bf44a91fe8df700bc98017edd6fc5625e | 555 | html | HTML | calla/templates/index.html | xiaojieluo/undefined | ffdbfe108bd9d7f8589d9178177647563b504474 | [
"Apache-2.0"
] | 1 | 2018-02-25T03:13:11.000Z | 2018-02-25T03:13:11.000Z | calla/templates/index.html | xiaojieluo/undefined | ffdbfe108bd9d7f8589d9178177647563b504474 | [
"Apache-2.0"
] | 1 | 2022-02-10T15:23:10.000Z | 2022-02-10T15:23:10.000Z | calla/templates/index.html | xiaojieluo/undefined | ffdbfe108bd9d7f8589d9178177647563b504474 | [
"Apache-2.0"
] | null | null | null | <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>Calla</title><link href=/static/dist/static/css/app.ebead974cbbbfd5faa5c9e58d81aab1d.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/dist/static/js/manifest.4dbab555adced95e4c3b.js></script><script type=text/javascript src=/static/dist/static/js/vendor.f83a88205277b01dc10c.js></script><script type=text/javascript src=/static/dist/static/js/app.4bd46ff1052e2880f943.js></script></body></html> | 555 | 555 | 0.796396 |
18a1b41f472e0f85396979e6e43c78eacc664468 | 327 | swift | Swift | Tests/ValidationsTests/BoolTests.swift | lukeredpath/swift-validations | 3657c3ee35234d71700498e01895bbc04b627f99 | [
"MIT"
] | 7 | 2021-02-19T08:54:21.000Z | 2022-01-14T15:39:24.000Z | Tests/ValidationsTests/BoolTests.swift | lukeredpath/swift-validations | 3657c3ee35234d71700498e01895bbc04b627f99 | [
"MIT"
] | null | null | null | Tests/ValidationsTests/BoolTests.swift | lukeredpath/swift-validations | 3657c3ee35234d71700498e01895bbc04b627f99 | [
"MIT"
] | 1 | 2020-07-01T16:50:47.000Z | 2020-07-01T16:50:47.000Z | import XCTest
@testable import Validations
final class BoolTests: XCTestCase {
func testIsTrue() {
assertValid(.isTrue, given: true)
assertNotValid(.isTrue, given: false)
}
func testIsFalse() {
assertValid(.isFalse, given: false)
assertNotValid(.isFalse, given: true)
}
}
| 20.4375 | 45 | 0.639144 |
40d68c457dd1bf669f7df4f1243971e115eccd61 | 772 | swift | Swift | SwiftIsland/Mentor/MentorCollectionViewCell.swift | SpacyRicochet/island-app | c17419928359bb726f72d0a093c4ae9fbff9a0f4 | [
"MIT"
] | null | null | null | SwiftIsland/Mentor/MentorCollectionViewCell.swift | SpacyRicochet/island-app | c17419928359bb726f72d0a093c4ae9fbff9a0f4 | [
"MIT"
] | null | null | null | SwiftIsland/Mentor/MentorCollectionViewCell.swift | SpacyRicochet/island-app | c17419928359bb726f72d0a093c4ae9fbff9a0f4 | [
"MIT"
] | null | null | null | //
// MentorCollectionViewCell.swift
// SwiftIsland
//
// Created by Paul Peelen on 2019-06-19.
// Copyright © 2019 AppTrix AB. All rights reserved.
//
import UIKit
class MentorCollectionViewCell: UICollectionViewCell {
@IBOutlet weak var mentorImage: UIImageView!
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var countryLabel: UILabel!
override func prepareForReuse() {
super.prepareForReuse()
mentorImage.image = nil
nameLabel.text = nil
}
func setup(withMentor mentor: Mentor) {
if let image = UIImage(named: mentor.image) {
mentorImage.image = image
}
nameLabel.text = mentor.name
if let country = mentor.country {
countryLabel.text = country
} else {
countryLabel.text = ""
}
}
}
| 21.444444 | 54 | 0.683938 |
3df56042ffa6b031b8e81a03c39cc0074eddc513 | 1,096 | rs | Rust | src/fs/write.rs | sunjay/async-std | e56233245f8e256b2eb44f0fde2627205ecd1187 | [
"Apache-2.0",
"MIT"
] | 1 | 2019-10-30T04:07:58.000Z | 2019-10-30T04:07:58.000Z | src/fs/write.rs | sunjay/async-std | e56233245f8e256b2eb44f0fde2627205ecd1187 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/fs/write.rs | sunjay/async-std | e56233245f8e256b2eb44f0fde2627205ecd1187 | [
"Apache-2.0",
"MIT"
] | null | null | null | use crate::io;
use crate::path::Path;
use crate::task::blocking;
/// Writes a slice of bytes as the new contents of a file.
///
/// This function will create a file if it does not exist, and will entirely replace its contents
/// if it does.
///
/// This function is an async version of [`std::fs::write`].
///
/// [`std::fs::write`]: https://doc.rust-lang.org/std/fs/fn.write.html
///
/// # Errors
///
/// An error will be returned in the following situations:
///
/// * The file's parent directory does not exist.
/// * The current process lacks permissions to write to the file.
/// * Some other I/O error occurred.
///
/// # Examples
///
/// ```no_run
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
/// #
/// use async_std::fs;
///
/// fs::write("a.txt", b"Hello world!").await?;
/// #
/// # Ok(()) }) }
/// ```
pub async fn write<P: AsRef<Path>, C: AsRef<[u8]>>(path: P, contents: C) -> io::Result<()> {
let path = path.as_ref().to_owned();
let contents = contents.as_ref().to_owned();
blocking::spawn(move || std::fs::write(path, contents)).await
}
| 28.842105 | 97 | 0.614051 |
12e0fff755f75aeb8e44b98a0ffe621145282b44 | 40,342 | html | HTML | week3-01-tidy+wrangle/index.html | Jasm33/slides | 96464c7188496ec8c1edda19d339b020a0eb6981 | [
"CC0-1.0"
] | null | null | null | week3-01-tidy+wrangle/index.html | Jasm33/slides | 96464c7188496ec8c1edda19d339b020a0eb6981 | [
"CC0-1.0"
] | null | null | null | week3-01-tidy+wrangle/index.html | Jasm33/slides | 96464c7188496ec8c1edda19d339b020a0eb6981 | [
"CC0-1.0"
] | 2 | 2022-01-25T15:36:13.000Z | 2022-02-15T15:41:45.000Z | <!DOCTYPE html>
<html lang="" xml:lang="">
<head>
<title>Wrangling and tidying data</title>
<meta charset="utf-8" />
<meta name="author" content="JooYoung Seo" />
<script src="libs/header-attrs/header-attrs.js"></script>
<link href="libs/font-awesome/css/all.css" rel="stylesheet" />
<link href="libs/font-awesome/css/v4-shims.css" rel="stylesheet" />
<link href="libs/panelset/panelset.css" rel="stylesheet" />
<script src="libs/panelset/panelset.js"></script>
<script src="libs/tone/Tone.js"></script>
<script src="libs/slide-tone/slide-tone.js"></script>
<link rel="stylesheet" href="../xaringan-themer.css" type="text/css" />
<link rel="stylesheet" href="../slides.css" type="text/css" />
</head>
<body data-at-shortcutkeys = "{"k": "Go the previous slide", "j": "Go the next slide", "b": "Toggle black out a slide", "m": "Toggle mirror a slide", "f": "Toggle fullscreen mode", "w": "Toggle widescreen mode", "c": "Clone slides to a new browser window", "p": "Toggle the presenter mode"}">
<textarea id="source">
class: center, middle, inverse, title-slide
# Wrangling and tidying data
## <br><br> IS 407
### JooYoung Seo
---
## Tidy data
.pull-left[
**Characteristics of tidy data:**
- Each variable forms a column.
- Each observation forms a row.
- Each type of observational unit forms a table.
]
--
.pull-right[
**Characteristics of untidy data:**
!@#$%^&*()
]
---
.question[
What makes this data not tidy?
]
<img src="img/hyperwar-airplanes-on-hand.png" width="70%" style="display: block; margin: auto;" />
.footnote[
Source: [Army Air Forces Statistical Digest, WW II](https://www.ibiblio.org/hyperwar/AAF/StatDigest/aafsd-3.html)
]
---
.question[
What makes this data not tidy?
]
<br>
<img src="img/hiv-est-prevalence-15-49.png" width="70%" style="display: block; margin: auto;" />
.footnote[
Source: [Gapminder, Estimated HIV prevalence among 15-49 year olds](https://www.gapminder.org/data)
]
---
.question[
What makes this data not tidy?
]
<br>
<img src="img/us-general-economic-characteristic-acs-2017.png" width="85%" style="display: block; margin: auto;" />
.footnote[
Source: [US Census Fact Finder, General Economic Characteristics, ACS 2017](https://factfinder.census.gov/faces/tableservices/jsf/pages/productview.xhtml?pid=ACS_17_5YR_DP03&src=pt)
]
---
## Displaying vs. summarizing data
.panelset[
.panel[.panel-name[Output]
.pull-left[
```
## # A tibble: 87 x 3
## name height mass
## <chr> <int> <dbl>
## 1 Luke Skywalker 172 77
## 2 C-3PO 167 75
## 3 R2-D2 96 32
## 4 Darth Vader 202 136
## 5 Leia Organa 150 49
## 6 Owen Lars 178 120
## # ... with 81 more rows
```
]
.pull-right[
```
## # A tibble: 3 x 2
## gender avg_ht
## <chr> <dbl>
## 1 feminine 165.
## 2 masculine 177.
## 3 <NA> 181.
```
]
]
.panel[.panel-name[Code]
.pull-left[
```r
starwars %>%
select(name, height, mass)
```
]
.pull-right[
```r
starwars %>%
group_by(gender) %>%
summarize(
avg_ht = mean(height, na.rm = TRUE)
)
```
]
]
]
---
class: middle
# Grammar of data wrangling
---
## A grammar of data wrangling...
... based on the concepts of functions as verbs that manipulate data frames
.pull-left[
<img src="img/dplyr-part-of-tidyverse.png" width="70%" style="display: block; margin: auto;" />
]
.pull-right[
.midi[
- `select`: pick columns by name
- `arrange`: reorder rows
- `slice`: pick rows using index(es)
- `filter`: pick rows matching criteria
- `distinct`: filter for unique rows
- `mutate`: add new variables
- `summarise`: reduce variables to values
- `group_by`: for grouped operations
- ... (many more)
]
]
---
## Rules of **dplyr** functions
- First argument is *always* a data frame
- Subsequent arguments say what to do with that data frame
- Always return a data frame
- Don't modify in place
---
## Data: Hotel bookings
- Data from two hotels: one resort and one city hotel
- Observations: Each row represents a hotel booking
- Goal for original data collection: Development of prediction models to classify a hotel booking's likelihood to be cancelled ([Antonia et al., 2019](https://www.sciencedirect.com/science/article/pii/S2352340918315191#bib5))
```r
hotels <- read_csv("data/hotels.csv")
```
.footnote[
Source: [TidyTuesday](https://github.com/rfordatascience/tidytuesday/blob/master/data/2020/2020-02-11/readme.md)
]
---
## First look: Variables
```r
names(hotels)
```
```
## [1] "hotel"
## [2] "is_canceled"
## [3] "lead_time"
## [4] "arrival_date_year"
## [5] "arrival_date_month"
## [6] "arrival_date_week_number"
## [7] "arrival_date_day_of_month"
## [8] "stays_in_weekend_nights"
## [9] "stays_in_week_nights"
## [10] "adults"
## [11] "children"
## [12] "babies"
## [13] "meal"
## [14] "country"
## [15] "market_segment"
## [16] "distribution_channel"
## [17] "is_repeated_guest"
## [18] "previous_cancellations"
...
```
---
## Second look: Overview
```r
glimpse(hotels)
```
```
## Rows: 119,390
## Columns: 32
## $ hotel <chr> "Resort Hotel", "Resort ~
## $ is_canceled <dbl> 0, 0, 0, 0, 0, 0, 0, 0, ~
## $ lead_time <dbl> 342, 737, 7, 13, 14, 14,~
## $ arrival_date_year <dbl> 2015, 2015, 2015, 2015, ~
## $ arrival_date_month <chr> "July", "July", "July", ~
## $ arrival_date_week_number <dbl> 27, 27, 27, 27, 27, 27, ~
## $ arrival_date_day_of_month <dbl> 1, 1, 1, 1, 1, 1, 1, 1, ~
## $ stays_in_weekend_nights <dbl> 0, 0, 0, 0, 0, 0, 0, 0, ~
## $ stays_in_week_nights <dbl> 0, 0, 1, 1, 2, 2, 2, 2, ~
## $ adults <dbl> 2, 2, 1, 1, 2, 2, 2, 2, ~
## $ children <dbl> 0, 0, 0, 0, 0, 0, 0, 0, ~
## $ babies <dbl> 0, 0, 0, 0, 0, 0, 0, 0, ~
## $ meal <chr> "BB", "BB", "BB", "BB", ~
## $ country <chr> "PRT", "PRT", "GBR", "GB~
## $ market_segment <chr> "Direct", "Direct", "Dir~
## $ distribution_channel <chr> "Direct", "Direct", "Dir~
...
```
---
## Select a single column
View only `lead_time` (number of days between booking and arrival date):
```r
select(hotels, lead_time)
```
```
## # A tibble: 119,390 x 1
## lead_time
## <dbl>
## 1 342
## 2 737
## 3 7
## 4 13
## 5 14
## 6 14
## # ... with 119,384 more rows
```
---
## Select a single column
.pull-left[
```r
*select(
hotels,
lead_time
)
```
]
.pull-right[
- Start with the function (a verb): `select()`
]
---
## Select a single column
.pull-left[
```r
select(
* hotels,
lead_time
)
```
]
.pull-right[
- Start with the function (a verb): `select()`
- First argument: data frame we're working with , `hotels`
]
---
## Select a single column
.pull-left[
```r
select(
hotels,
* lead_time
)
```
]
.pull-right[
- Start with the function (a verb): `select()`
- First argument: data frame we're working with , `hotels`
- Second argument: variable we want to select, `lead_time`
]
---
## Select a single column
.pull-left[
```r
select(
hotels,
lead_time
)
```
```
## # A tibble: 119,390 x 1
## lead_time
## <dbl>
## 1 342
## 2 737
## 3 7
## 4 13
## 5 14
## 6 14
## # ... with 119,384 more rows
```
]
.pull-right[
- Start with the function (a verb): `select()`
- First argument: data frame we're working with , `hotels`
- Second argument: variable we want to select, `lead_time`
- Result: data frame with 119390 rows and 1 column
]
---
.tip[
dplyr functions always expect a data frame and always yield a data frame.
]
```r
select(hotels, lead_time)
```
```
## # A tibble: 119,390 x 1
## lead_time
## <dbl>
## 1 342
## 2 737
## 3 7
## 4 13
## 5 14
## 6 14
## # ... with 119,384 more rows
```
---
## Select multiple columns
View only the `hotel` type and `lead_time`:
--
.pull-left[
```r
select(hotels, hotel, lead_time)
```
```
## # A tibble: 119,390 x 2
## hotel lead_time
## <chr> <dbl>
## 1 Resort Hotel 342
## 2 Resort Hotel 737
## 3 Resort Hotel 7
## 4 Resort Hotel 13
## 5 Resort Hotel 14
## 6 Resort Hotel 14
## # ... with 119,384 more rows
```
]
--
.pull-right[
.question[
What if we wanted to select these columns, and then arrange the data in descending order of lead time?
]
]
---
## Data wrangling, step-by-step
.pull-left[
Select:
```r
hotels %>%
select(hotel, lead_time)
```
```
## # A tibble: 119,390 x 2
## hotel lead_time
## <chr> <dbl>
## 1 Resort Hotel 342
## 2 Resort Hotel 737
## 3 Resort Hotel 7
## 4 Resort Hotel 13
## 5 Resort Hotel 14
## 6 Resort Hotel 14
## # ... with 119,384 more rows
```
]
--
.pull-right[
Select, then arrange:
```r
hotels %>%
select(hotel, lead_time) %>%
arrange(desc(lead_time))
```
```
## # A tibble: 119,390 x 2
## hotel lead_time
## <chr> <dbl>
## 1 Resort Hotel 737
## 2 Resort Hotel 709
## 3 City Hotel 629
## 4 City Hotel 629
## 5 City Hotel 629
## 6 City Hotel 629
## # ... with 119,384 more rows
```
]
---
class: middle
# Pipes
---
## What is a pipe?
In programming, a pipe is a technique for passing information from one process to another.
--
.pull-left[
- Start with the data frame `hotels`, and pass it to the `select()` function,
]
.pull-right[
.small[
```r
*hotels %>%
select(hotel, lead_time) %>%
arrange(desc(lead_time))
```
```
## # A tibble: 119,390 x 2
## hotel lead_time
## <chr> <dbl>
## 1 Resort Hotel 737
## 2 Resort Hotel 709
## 3 City Hotel 629
## 4 City Hotel 629
## 5 City Hotel 629
## 6 City Hotel 629
## # ... with 119,384 more rows
```
]
]
---
## What is a pipe?
In programming, a pipe is a technique for passing information from one process to another.
.pull-left[
- Start with the data frame `hotels`, and pass it to the `select()` function,
- then we select the variables `hotel` and `lead_time`,
]
.pull-right[
.small[
```r
hotels %>%
* select(hotel, lead_time) %>%
arrange(desc(lead_time))
```
```
## # A tibble: 119,390 x 2
## hotel lead_time
## <chr> <dbl>
## 1 Resort Hotel 737
## 2 Resort Hotel 709
## 3 City Hotel 629
## 4 City Hotel 629
## 5 City Hotel 629
## 6 City Hotel 629
## # ... with 119,384 more rows
```
]
]
---
## What is a pipe?
In programming, a pipe is a technique for passing information from one process to another.
.pull-left[
- Start with the data frame `hotels`, and pass it to the `select()` function,
- then we select the variables `hotel` and `lead_time`,
- and then we arrange the data frame by `lead_time` in descending order.
]
.pull-right[
.small[
```r
hotels %>%
select(hotel, lead_time) %>%
* arrange(desc(lead_time))
```
```
## # A tibble: 119,390 x 2
## hotel lead_time
## <chr> <dbl>
## 1 Resort Hotel 737
## 2 Resort Hotel 709
## 3 City Hotel 629
## 4 City Hotel 629
## 5 City Hotel 629
## 6 City Hotel 629
## # ... with 119,384 more rows
```
]
]
---
## Aside
The pipe operator is implemented in the package **magrittr**, though we don't need to load this package explicitly since **tidyverse** does this for us.
--
.question[
Any guesses as to why the package is called magrittr?
]
--
.pull-left[
<img src="img/magritte.jpg" width="90%" style="display: block; margin: auto;" />
]
.pull-right[
<img src="img/magrittr.jpg" width="100%" style="display: block; margin: auto;" />
]
---
## How does a pipe work?
- You can think about the following sequence of actions - find keys,
unlock car, start car, drive to work, park.
--
- Expressed as a set of nested functions in R pseudocode this would look like:
```r
park(drive(start_car(find("keys")), to = "work"))
```
--
- Writing it out using pipes give it a more natural (and easier to read)
structure:
```r
find("keys") %>%
start_car() %>%
drive(to = "work") %>%
park()
```
---
## A note on piping and layering
- `%>%` used mainly in **dplyr** pipelines, *we pipe the output of the previous line of code as the first input of the next line of code*
--
- `+` used in **ggplot2** plots is used for "layering", *we create the plot in layers, separated by `+`*
---
## dplyr
.midi[
❌
```r
hotels +
select(hotel, lead_time)
```
```
## Error in select(hotel, lead_time): object 'hotel' not found
```
✅
```r
hotels %>%
select(hotel, lead_time)
```
```
## # A tibble: 119,390 x 2
## hotel lead_time
## <chr> <dbl>
## 1 Resort Hotel 342
## 2 Resort Hotel 737
## 3 Resort Hotel 7
...
```
]
---
## ggplot2
.midi[
❌
```r
ggplot(hotels, aes(x = hotel, fill = deposit_type)) %>%
geom_bar()
```
```
## Error in `validate_mapping()`:
## ! `mapping` must be created by `aes()`
## Did you use %>% instead of +?
```
✅
```r
ggplot(hotels, aes(x = hotel, fill = deposit_type)) +
geom_bar()
```
<img src="index_files/figure-html/unnamed-chunk-27-1.png" width="25%" style="display: block; margin: auto;" />
]
---
## Code styling
Many of the styling principles are consistent across `%>%` and `+`:
- always a space before
- always a line break after (for pipelines with more than 2 lines)
❌
```r
ggplot(hotels, aes(x = hotel, y = deposit_type)) +
geom_bar()
```
✅
```r
ggplot(hotels, aes(x = hotel, y = deposit_type)) +
geom_bar()
```
---
class: middle
# .hand[We...]
.huge[.green[have]] .hand[a single data frame]
.huge[.pink[want]] .hand[to slice it, and dice it, and juice it, and process it]
---
class: middle
# `select`, `arrange`, and `slice`
---
## `select` to keep variables
```r
hotels %>%
* select(hotel, lead_time)
```
```
## # A tibble: 119,390 x 2
## hotel lead_time
## <chr> <dbl>
## 1 Resort Hotel 342
## 2 Resort Hotel 737
## 3 Resort Hotel 7
## 4 Resort Hotel 13
## 5 Resort Hotel 14
## 6 Resort Hotel 14
## # ... with 119,384 more rows
```
---
## `select` to exclude variables
.small[
```r
hotels %>%
* select(-agent)
```
```
## # A tibble: 119,390 x 31
## hotel is_canceled lead_time arrival_date_ye~ arrival_date_mo~
## <chr> <dbl> <dbl> <dbl> <chr>
## 1 Resort~ 0 342 2015 July
## 2 Resort~ 0 737 2015 July
## 3 Resort~ 0 7 2015 July
## 4 Resort~ 0 13 2015 July
## 5 Resort~ 0 14 2015 July
## 6 Resort~ 0 14 2015 July
## # ... with 119,384 more rows, and 26 more variables:
## # arrival_date_week_number <dbl>,
## # arrival_date_day_of_month <dbl>,
## # stays_in_weekend_nights <dbl>, stays_in_week_nights <dbl>,
## # adults <dbl>, children <dbl>, babies <dbl>, meal <chr>,
## # country <chr>, market_segment <chr>,
## # distribution_channel <chr>, is_repeated_guest <dbl>, ...
```
]
---
## `select` a range of variables
```r
hotels %>%
* select(hotel:arrival_date_month)
```
```
## # A tibble: 119,390 x 5
## hotel is_canceled lead_time arrival_date_ye~ arrival_date_mo~
## <chr> <dbl> <dbl> <dbl> <chr>
## 1 Resort~ 0 342 2015 July
## 2 Resort~ 0 737 2015 July
## 3 Resort~ 0 7 2015 July
## 4 Resort~ 0 13 2015 July
## 5 Resort~ 0 14 2015 July
## 6 Resort~ 0 14 2015 July
## # ... with 119,384 more rows
```
---
## `select` variables with certain characteristics
```r
hotels %>%
* select(starts_with("arrival"))
```
```
## # A tibble: 119,390 x 4
## arrival_date_year arrival_date_month arrival_date_week_number
## <dbl> <chr> <dbl>
## 1 2015 July 27
## 2 2015 July 27
## 3 2015 July 27
## 4 2015 July 27
## 5 2015 July 27
## 6 2015 July 27
## # ... with 119,384 more rows, and 1 more variable:
## # arrival_date_day_of_month <dbl>
```
---
## `select` variables with certain characteristics
```r
hotels %>%
* select(ends_with("type"))
```
```
## # A tibble: 119,390 x 4
## reserved_room_type assigned_room_ty~ deposit_type customer_type
## <chr> <chr> <chr> <chr>
## 1 C C No Deposit Transient
## 2 C C No Deposit Transient
## 3 A C No Deposit Transient
## 4 A A No Deposit Transient
## 5 A A No Deposit Transient
## 6 A A No Deposit Transient
## # ... with 119,384 more rows
```
---
## Select helpers
- `starts_with()`: Starts with a prefix
- `ends_with()`: Ends with a suffix
- `contains()`: Contains a literal string
- `num_range()`: Matches a numerical range like x01, x02, x03
- `one_of()`: Matches variable names in a character vector
- `everything()`: Matches all variables
- `last_col()`: Select last variable, possibly with an offset
- `matches()`: Matches a regular expression (a sequence of symbols/characters expressing a string/pattern to be searched for within text)
.footnote[
See help for any of these functions for more info, e.g. `?everything`.
]
---
## `arrange` in ascending / descending order
.pull-left[
```r
hotels %>%
select(adults, children, babies) %>%
* arrange(babies)
```
```
## # A tibble: 119,390 x 3
## adults children babies
## <dbl> <dbl> <dbl>
## 1 2 0 0
## 2 2 0 0
## 3 1 0 0
## 4 1 0 0
## 5 2 0 0
## 6 2 0 0
## # ... with 119,384 more rows
```
]
.pull-right[
```r
hotels %>%
select(adults, children, babies) %>%
* arrange(desc(babies))
```
```
## # A tibble: 119,390 x 3
## adults children babies
## <dbl> <dbl> <dbl>
## 1 2 0 10
## 2 1 0 9
## 3 2 0 2
## 4 2 0 2
## 5 2 0 2
## 6 2 0 2
## # ... with 119,384 more rows
```
]
---
## `slice` for certain row numbers
.midi[
```r
# first five
hotels %>%
* slice(1:5)
```
```
## # A tibble: 5 x 32
## hotel is_canceled lead_time arrival_date_ye~ arrival_date_mo~
## <chr> <dbl> <dbl> <dbl> <chr>
## 1 Resort~ 0 342 2015 July
## 2 Resort~ 0 737 2015 July
## 3 Resort~ 0 7 2015 July
## 4 Resort~ 0 13 2015 July
## 5 Resort~ 0 14 2015 July
## # ... with 27 more variables: arrival_date_week_number <dbl>,
## # arrival_date_day_of_month <dbl>,
## # stays_in_weekend_nights <dbl>, stays_in_week_nights <dbl>,
## # adults <dbl>, children <dbl>, babies <dbl>, meal <chr>,
## # country <chr>, market_segment <chr>,
## # distribution_channel <chr>, is_repeated_guest <dbl>,
## # previous_cancellations <dbl>, ...
```
]
---
.tip[
In R, you can use the `#` for adding comments to your code.
Any text following `#` will be printed as is, and won't be run as R code.
This is useful for leaving comments in your code and for temporarily disabling
certain lines of code while debugging.
]
.small[
```r
hotels %>%
# slice the first five rows # this line is a comment
# select(hotel) %>% # this one doesn't run
slice(1:5) # this line runs
```
```
## # A tibble: 5 x 32
## hotel is_canceled lead_time arrival_date_ye~ arrival_date_mo~
## <chr> <dbl> <dbl> <dbl> <chr>
## 1 Resort~ 0 342 2015 July
## 2 Resort~ 0 737 2015 July
## 3 Resort~ 0 7 2015 July
## 4 Resort~ 0 13 2015 July
## 5 Resort~ 0 14 2015 July
## # ... with 27 more variables: arrival_date_week_number <dbl>,
## # arrival_date_day_of_month <dbl>,
...
```
]
---
class: middle
# `filter`
---
## `filter` to select a subset of rows
.midi[
```r
# bookings in City Hotels
hotels %>%
* filter(hotel == "City Hotel")
```
```
## # A tibble: 79,330 x 32
## hotel is_canceled lead_time arrival_date_ye~ arrival_date_mo~
## <chr> <dbl> <dbl> <dbl> <chr>
## 1 City H~ 0 6 2015 July
## 2 City H~ 1 88 2015 July
## 3 City H~ 1 65 2015 July
## 4 City H~ 1 92 2015 July
## 5 City H~ 1 100 2015 July
## 6 City H~ 1 79 2015 July
## # ... with 79,324 more rows, and 27 more variables:
## # arrival_date_week_number <dbl>,
## # arrival_date_day_of_month <dbl>,
## # stays_in_weekend_nights <dbl>, stays_in_week_nights <dbl>,
## # adults <dbl>, children <dbl>, babies <dbl>, meal <chr>,
## # country <chr>, market_segment <chr>,
## # distribution_channel <chr>, is_repeated_guest <dbl>, ...
```
]
---
## `filter` for many conditions at once
```r
hotels %>%
filter(
* adults == 0,
* children >= 1
) %>%
select(adults, babies, children)
```
```
## # A tibble: 223 x 3
## adults babies children
## <dbl> <dbl> <dbl>
## 1 0 0 3
## 2 0 0 2
## 3 0 0 2
## 4 0 0 2
## 5 0 0 2
## 6 0 0 3
## # ... with 217 more rows
```
---
## `filter` for more complex conditions
```r
# bookings with no adults and some children or babies in the room
hotels %>%
filter(
adults == 0,
* children >= 1 | babies >= 1 # | means or
) %>%
select(adults, babies, children)
```
```
## # A tibble: 223 x 3
## adults babies children
## <dbl> <dbl> <dbl>
## 1 0 0 3
## 2 0 0 2
## 3 0 0 2
## 4 0 0 2
## 5 0 0 2
## 6 0 0 3
## # ... with 217 more rows
```
---
## Logical operators in R
<br>
operator | definition || operator | definition
------------|------------------------------||--------------|----------------
`<` | less than ||`x`&nbsp;&#124;&nbsp;`y` | `x` OR `y`
`<=` | less than or equal to ||`is.na(x)` | test if `x` is `NA`
`>` | greater than ||`!is.na(x)` | test if `x` is not `NA`
`>=` | greater than or equal to ||`x %in% y` | test if `x` is in `y`
`==` | exactly equal to ||`!(x %in% y)` | test if `x` is not in `y`
`!=` | not equal to ||`!x` | not `x`
`x & y` | `x` AND `y` || |
---
class: middle
# `distinct` and `count`
---
## `distinct` to filter for unique rows
... and `arrange` to order alphabetically
.small[
.pull-left[
```r
hotels %>%
* distinct(market_segment) %>%
arrange(market_segment)
```
```
## # A tibble: 8 x 1
## market_segment
## <chr>
## 1 Aviation
## 2 Complementary
## 3 Corporate
## 4 Direct
## 5 Groups
## 6 Offline TA/TO
## 7 Online TA
## 8 Undefined
```
]
.pull-right[
```r
hotels %>%
* distinct(hotel, market_segment) %>%
arrange(hotel, market_segment)
```
```
## # A tibble: 14 x 2
## hotel market_segment
## <chr> <chr>
## 1 City Hotel Aviation
## 2 City Hotel Complementary
## 3 City Hotel Corporate
## 4 City Hotel Direct
## 5 City Hotel Groups
## 6 City Hotel Offline TA/TO
## 7 City Hotel Online TA
## 8 City Hotel Undefined
## 9 Resort Hotel Complementary
## 10 Resort Hotel Corporate
...
```
]
]
---
## `count` to create frequency tables
.pull-left[
```r
# alphabetical order by default
hotels %>%
* count(market_segment)
```
```
## # A tibble: 8 x 2
## market_segment n
## <chr> <int>
## 1 Aviation 237
## 2 Complementary 743
## 3 Corporate 5295
## 4 Direct 12606
## 5 Groups 19811
## 6 Offline TA/TO 24219
## 7 Online TA 56477
## 8 Undefined 2
```
]
--
.pull-right[
```r
# descending frequency order
hotels %>%
* count(market_segment, sort = TRUE)
```
```
## # A tibble: 8 x 2
## market_segment n
## <chr> <int>
## 1 Online TA 56477
## 2 Offline TA/TO 24219
## 3 Groups 19811
## 4 Direct 12606
## 5 Corporate 5295
## 6 Complementary 743
## 7 Aviation 237
## 8 Undefined 2
```
]
---
## `count` and `arrange`
.pull-left[
```r
# ascending frequency order
hotels %>%
count(market_segment) %>%
* arrange(n)
```
```
## # A tibble: 8 x 2
## market_segment n
## <chr> <int>
## 1 Undefined 2
## 2 Aviation 237
## 3 Complementary 743
## 4 Corporate 5295
## 5 Direct 12606
## 6 Groups 19811
## 7 Offline TA/TO 24219
## 8 Online TA 56477
```
]
.pull-right[
```r
# descending frequency order
# just like adding sort = TRUE
hotels %>%
count(market_segment) %>%
* arrange(desc(n))
```
```
## # A tibble: 8 x 2
## market_segment n
## <chr> <int>
## 1 Online TA 56477
## 2 Offline TA/TO 24219
## 3 Groups 19811
## 4 Direct 12606
## 5 Corporate 5295
## 6 Complementary 743
## 7 Aviation 237
## 8 Undefined 2
```
]
---
## `count` for multiple variables
```r
hotels %>%
* count(hotel, market_segment)
```
```
## # A tibble: 14 x 3
## hotel market_segment n
## <chr> <chr> <int>
## 1 City Hotel Aviation 237
## 2 City Hotel Complementary 542
## 3 City Hotel Corporate 2986
## 4 City Hotel Direct 6093
## 5 City Hotel Groups 13975
## 6 City Hotel Offline TA/TO 16747
## 7 City Hotel Online TA 38748
## 8 City Hotel Undefined 2
## 9 Resort Hotel Complementary 201
## 10 Resort Hotel Corporate 2309
## 11 Resort Hotel Direct 6513
## 12 Resort Hotel Groups 5836
## 13 Resort Hotel Offline TA/TO 7472
## 14 Resort Hotel Online TA 17729
```
---
## order matters when you `count`
.midi[
.pull-left[
```r
# hotel type first
hotels %>%
* count(hotel, market_segment)
```
```
## # A tibble: 14 x 3
## hotel market_segment n
## <chr> <chr> <int>
## 1 City Hotel Aviation 237
## 2 City Hotel Complementary 542
## 3 City Hotel Corporate 2986
## 4 City Hotel Direct 6093
## 5 City Hotel Groups 13975
## 6 City Hotel Offline TA/TO 16747
## 7 City Hotel Online TA 38748
## 8 City Hotel Undefined 2
## 9 Resort Hotel Complementary 201
## 10 Resort Hotel Corporate 2309
## 11 Resort Hotel Direct 6513
## 12 Resort Hotel Groups 5836
## 13 Resort Hotel Offline TA/TO 7472
## 14 Resort Hotel Online TA 17729
```
]
.pull-right[
```r
# market segment first
hotels %>%
* count(market_segment, hotel)
```
```
## # A tibble: 14 x 3
## market_segment hotel n
## <chr> <chr> <int>
## 1 Aviation City Hotel 237
## 2 Complementary City Hotel 542
## 3 Complementary Resort Hotel 201
## 4 Corporate City Hotel 2986
## 5 Corporate Resort Hotel 2309
## 6 Direct City Hotel 6093
## 7 Direct Resort Hotel 6513
## 8 Groups City Hotel 13975
## 9 Groups Resort Hotel 5836
## 10 Offline TA/TO City Hotel 16747
## 11 Offline TA/TO Resort Hotel 7472
## 12 Online TA City Hotel 38748
## 13 Online TA Resort Hotel 17729
## 14 Undefined City Hotel 2
```
]
]
---
class: middle
# `mutate`
---
## `mutate` to add a new variable
```r
hotels %>%
* mutate(little_ones = children + babies) %>%
select(children, babies, little_ones) %>%
arrange(desc(little_ones))
```
```
## # A tibble: 119,390 x 3
## children babies little_ones
## <dbl> <dbl> <dbl>
## 1 10 0 10
## 2 0 10 10
## 3 0 9 9
## 4 2 1 3
## 5 2 1 3
## 6 2 1 3
## # ... with 119,384 more rows
```
---
## Little ones in resort and city hotels
.midi[
.pull-left[
```r
# Resort Hotel
hotels %>%
mutate(little_ones = children + babies) %>%
filter(
little_ones >= 1,
hotel == "Resort Hotel"
) %>%
select(hotel, little_ones)
```
```
## # A tibble: 3,929 x 2
## hotel little_ones
## <chr> <dbl>
## 1 Resort Hotel 1
## 2 Resort Hotel 2
## 3 Resort Hotel 2
## 4 Resort Hotel 2
## 5 Resort Hotel 1
## 6 Resort Hotel 1
## # ... with 3,923 more rows
```
]
.pull-right[
```r
# City Hotel
hotels %>%
mutate(little_ones = children + babies) %>%
filter(
little_ones >= 1,
hotel == "City Hotel"
) %>%
select(hotel, little_ones)
```
```
## # A tibble: 5,403 x 2
## hotel little_ones
## <chr> <dbl>
## 1 City Hotel 1
## 2 City Hotel 1
## 3 City Hotel 2
## 4 City Hotel 1
## 5 City Hotel 1
## 6 City Hotel 1
## # ... with 5,397 more rows
```
]
]
---
.question[
What is happening in the following chunk?
]
.midi[
```r
hotels %>%
mutate(little_ones = children + babies) %>%
count(hotel, little_ones) %>%
mutate(prop = n / sum(n))
```
```
## # A tibble: 12 x 4
## hotel little_ones n prop
## <chr> <dbl> <int> <dbl>
## 1 City Hotel 0 73923 0.619
## 2 City Hotel 1 3263 0.0273
## 3 City Hotel 2 2056 0.0172
## 4 City Hotel 3 82 0.000687
## 5 City Hotel 9 1 0.00000838
## 6 City Hotel 10 1 0.00000838
## 7 City Hotel NA 4 0.0000335
## 8 Resort Hotel 0 36131 0.303
## 9 Resort Hotel 1 2183 0.0183
## 10 Resort Hotel 2 1716 0.0144
## 11 Resort Hotel 3 29 0.000243
## 12 Resort Hotel 10 1 0.00000838
```
]
---
class: middle
# `summarise` and `group_by`
---
## `summarise` for summary stats
```r
# mean average daily rate for all bookings
hotels %>%
* summarise(mean_adr = mean(adr))
```
```
## # A tibble: 1 x 1
## mean_adr
## <dbl>
## 1 102.
```
--
.pull-left-wide[
.tip[
`summarise()` changes the data frame entirely, it collapses rows down to a single
summary statistic, and removes all columns that are irrelevant to the calculation.
]
]
---
.tip[
`summarise()` also lets you get away with being sloppy and not naming your new
column, but that's not recommended!
]
.pull-left[
❌
```r
hotels %>%
summarise(mean(adr))
```
```
## # A tibble: 1 x 1
## `mean(adr)`
## <dbl>
## 1 102.
```
]
.pull-right[
✅
```r
hotels %>%
summarise(mean_adr = mean(adr))
```
```
## # A tibble: 1 x 1
## mean_adr
## <dbl>
## 1 102.
```
]
---
## `group_by` for grouped operations
```r
# mean average daily rate for all booking at city and resort hotels
hotels %>%
* group_by(hotel) %>%
summarise(mean_adr = mean(adr))
```
```
## # A tibble: 2 x 2
## hotel mean_adr
## <chr> <dbl>
## 1 City Hotel 105.
## 2 Resort Hotel 95.0
```
---
## Calculating frequencies
The following two give the same result, so `count` is simply short for `group_by` then determine frequencies
.pull-left[
```r
hotels %>%
group_by(hotel) %>%
summarise(n = n())
```
```
## # A tibble: 2 x 2
## hotel n
## <chr> <int>
## 1 City Hotel 79330
## 2 Resort Hotel 40060
```
]
.pull-right[
```r
hotels %>%
count(hotel)
```
```
## # A tibble: 2 x 2
## hotel n
## <chr> <int>
## 1 City Hotel 79330
## 2 Resort Hotel 40060
```
]
---
## Multiple summary statistics
`summarise` can be used for multiple summary statistics as well
```r
hotels %>%
summarise(
min_adr = min(adr),
mean_adr = mean(adr),
median_adr = median(adr),
max_adr = max(adr)
)
```
```
## # A tibble: 1 x 4
## min_adr mean_adr median_adr max_adr
## <dbl> <dbl> <dbl> <dbl>
## 1 -6.38 102. 94.6 5400
```
---
.your-turn[
### Your turn!
Time to actually play around with the Hotels dataset!
- git clone https://github.com/uiuc-ischool-20221-jseo1005-1/wrangling_practice.
- Open the R Markdown document and complete Exercises 1 - 8.
]
---
# Git Command Summary
1. Download: `git clone [project-URL]`
1. Sync: `git pull`
1. [Do your homework]
- 3.1 Mark all the changes you've made: `git add *`
- 3.2 Attach a brief label to the changes: `git commit -m "[Your Change Label]"`
1. Sync: `git pull`
1. Upload: `git push`
</textarea>
<style data-target="print-only">@media screen {.remark-slide-container{display:block;}.remark-slide-scaler{box-shadow:none;}}</style>
<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script>var slideshow = remark.create({
"ratio": "16:9",
"highlightLines": true,
"highlightStyle": "solarized-light",
"countIncrementalSlides": false
});
if (window.HTMLWidgets) slideshow.on('afterShowSlide', function (slide) {
window.dispatchEvent(new Event('resize'));
});
(function(d) {
var s = d.createElement("style"), r = d.querySelector(".remark-slide-scaler");
if (!r) return;
s.type = "text/css"; s.innerHTML = "@page {size: " + r.style.width + " " + r.style.height +"; }";
d.head.appendChild(s);
})(document);
(function(d) {
var el = d.getElementsByClassName("remark-slides-area");
if (!el) return;
var slide, slides = slideshow.getSlides(), els = el[0].children;
for (var i = 1; i < slides.length; i++) {
slide = slides[i];
if (slide.properties.continued === "true" || slide.properties.count === "false") {
els[i - 1].className += ' has-continuation';
}
}
var s = d.createElement("style");
s.type = "text/css"; s.innerHTML = "@media print { .has-continuation { display: none; } }";
d.head.appendChild(s);
})(document);
// delete the temporary CSS (for displaying all slides initially) when the user
// starts to view slides
(function() {
var deleted = false;
slideshow.on('beforeShowSlide', function(slide) {
if (deleted) return;
var sheets = document.styleSheets, node;
for (var i = 0; i < sheets.length; i++) {
node = sheets[i].ownerNode;
if (node.dataset["target"] !== "print-only") continue;
node.parentNode.removeChild(node);
}
deleted = true;
});
})();
(function() {
"use strict"
// Replace <script> tags in slides area to make them executable
var scripts = document.querySelectorAll(
'.remark-slides-area .remark-slide-container script'
);
if (!scripts.length) return;
for (var i = 0; i < scripts.length; i++) {
var s = document.createElement('script');
var code = document.createTextNode(scripts[i].textContent);
s.appendChild(code);
var scriptAttrs = scripts[i].attributes;
for (var j = 0; j < scriptAttrs.length; j++) {
s.setAttribute(scriptAttrs[j].name, scriptAttrs[j].value);
}
scripts[i].parentElement.replaceChild(s, scripts[i]);
}
})();
(function() {
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
if (/^(https?:)?\/\//.test(links[i].getAttribute('href'))) {
links[i].target = '_blank';
}
}
})();
// adds .remark-code-has-line-highlighted class to <pre> parent elements
// of code chunks containing highlighted lines with class .remark-code-line-highlighted
(function(d) {
const hlines = d.querySelectorAll('.remark-code-line-highlighted');
const preParents = [];
const findPreParent = function(line, p = 0) {
if (p > 1) return null; // traverse up no further than grandparent
const el = line.parentElement;
return el.tagName === "PRE" ? el : findPreParent(el, ++p);
};
for (let line of hlines) {
let pre = findPreParent(line);
if (pre && !preParents.includes(pre)) preParents.push(pre);
}
preParents.forEach(p => p.classList.add("remark-code-has-line-highlighted"));
})(document);</script>
<script>
slideshow._releaseMath = function(el) {
var i, text, code, codes = el.getElementsByTagName('code');
for (i = 0; i < codes.length;) {
code = codes[i];
if (code.parentNode.tagName !== 'PRE' && code.childElementCount === 0) {
text = code.textContent;
if (/^\\\((.|\s)+\\\)$/.test(text) || /^\\\[(.|\s)+\\\]$/.test(text) ||
/^\$\$(.|\s)+\$\$$/.test(text) ||
/^\\begin\{([^}]+)\}(.|\s)+\\end\{[^}]+\}$/.test(text)) {
code.outerHTML = code.innerHTML; // remove <code></code>
continue;
}
}
i++;
}
};
slideshow._releaseMath(document);
</script>
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
(function () {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML';
if (location.protocol !== 'file:' && /^https?:/.test(script.src))
script.src = script.src.replace(/^https?:/, '');
document.getElementsByTagName('head')[0].appendChild(script);
})();
</script>
</body>
</html>
| 22.263797 | 464 | 0.54556 |
a1f3e95d735e8ad038253a62d64fed46e0c32736 | 2,922 | h | C | build/toolchain/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include/mac80211-backport/linux/mdio.h | juanesf/hyperion_openwrt_mt7620 | a29624e1ca03c37517b043956b55064b6021c7b4 | [
"MIT"
] | null | null | null | build/toolchain/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include/mac80211-backport/linux/mdio.h | juanesf/hyperion_openwrt_mt7620 | a29624e1ca03c37517b043956b55064b6021c7b4 | [
"MIT"
] | null | null | null | build/toolchain/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include/mac80211-backport/linux/mdio.h | juanesf/hyperion_openwrt_mt7620 | a29624e1ca03c37517b043956b55064b6021c7b4 | [
"MIT"
] | null | null | null | #ifndef __BACKPORT_LINUX_MDIO_H
#define __BACKPORT_LINUX_MDIO_H
#include_next <linux/mdio.h>
#ifndef MDIO_EEE_100TX
/* EEE Supported/Advertisement/LP Advertisement registers.
*
* EEE capability Register (3.20), Advertisement (7.60) and
* Link partner ability (7.61) registers have and can use the same identical
* bit masks.
*/
#define MDIO_AN_EEE_ADV_100TX 0x0002 /* Advertise 100TX EEE cap */
#define MDIO_AN_EEE_ADV_1000T 0x0004 /* Advertise 1000T EEE cap */
/* Note: the two defines above can be potentially used by the user-land
* and cannot remove them now.
* So, we define the new generic MDIO_EEE_100TX and MDIO_EEE_1000T macros
* using the previous ones (that can be considered obsolete).
*/
#define MDIO_EEE_100TX MDIO_AN_EEE_ADV_100TX /* 100TX EEE cap */
#define MDIO_EEE_1000T MDIO_AN_EEE_ADV_1000T /* 1000T EEE cap */
#define MDIO_EEE_10GT 0x0008 /* 10GT EEE cap */
#define MDIO_EEE_1000KX 0x0010 /* 1000KX EEE cap */
#define MDIO_EEE_10GKX4 0x0020 /* 10G KX4 EEE cap */
#define MDIO_EEE_10GKR 0x0040 /* 10G KR EEE cap */
#endif /* MDIO_EEE_100TX */
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)
/**
* mmd_eee_adv_to_ethtool_adv_t
* @eee_adv: value of the MMD EEE Advertisement/Link Partner Ability registers
*
* A small helper function that translates the MMD EEE Advertisment (7.60)
* and MMD EEE Link Partner Ability (7.61) bits to ethtool advertisement
* settings.
*/
#define mmd_eee_adv_to_ethtool_adv_t LINUX_BACKPORT(mmd_eee_adv_to_ethtool_adv_t)
static inline u32 mmd_eee_adv_to_ethtool_adv_t(u16 eee_adv)
{
u32 adv = 0;
if (eee_adv & MDIO_EEE_100TX)
adv |= ADVERTISED_100baseT_Full;
if (eee_adv & MDIO_EEE_1000T)
adv |= ADVERTISED_1000baseT_Full;
if (eee_adv & MDIO_EEE_10GT)
adv |= ADVERTISED_10000baseT_Full;
if (eee_adv & MDIO_EEE_1000KX)
adv |= ADVERTISED_1000baseKX_Full;
if (eee_adv & MDIO_EEE_10GKX4)
adv |= ADVERTISED_10000baseKX4_Full;
if (eee_adv & MDIO_EEE_10GKR)
adv |= ADVERTISED_10000baseKR_Full;
return adv;
}
#define ethtool_adv_to_mmd_eee_adv_t LINUX_BACKPORT(ethtool_adv_to_mmd_eee_adv_t)
/**
* ethtool_adv_to_mmd_eee_adv_t
* @adv: the ethtool advertisement settings
*
* A small helper function that translates ethtool advertisement settings
* to EEE advertisements for the MMD EEE Advertisement (7.60) and
* MMD EEE Link Partner Ability (7.61) registers.
*/
static inline u16 ethtool_adv_to_mmd_eee_adv_t(u32 adv)
{
u16 reg = 0;
if (adv & ADVERTISED_100baseT_Full)
reg |= MDIO_EEE_100TX;
if (adv & ADVERTISED_1000baseT_Full)
reg |= MDIO_EEE_1000T;
if (adv & ADVERTISED_10000baseT_Full)
reg |= MDIO_EEE_10GT;
if (adv & ADVERTISED_1000baseKX_Full)
reg |= MDIO_EEE_1000KX;
if (adv & ADVERTISED_10000baseKX4_Full)
reg |= MDIO_EEE_10GKX4;
if (adv & ADVERTISED_10000baseKR_Full)
reg |= MDIO_EEE_10GKR;
return reg;
}
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0) */
#endif /* __BACKPORT_LINUX_MDIO_H */
| 33.204545 | 81 | 0.765914 |
7d74dec518699e1f8b6d307978200577b11fd14a | 563 | html | HTML | public/index.html | wangding/reformat-markdown-table | 907d9d2c708a59f42e1b4f0e5059ae1cece59942 | [
"MIT"
] | 4 | 2018-03-25T10:52:20.000Z | 2020-10-28T02:59:14.000Z | public/index.html | wangding/reformat-markdown-table | 907d9d2c708a59f42e1b4f0e5059ae1cece59942 | [
"MIT"
] | null | null | null | public/index.html | wangding/reformat-markdown-table | 907d9d2c708a59f42e1b4f0e5059ae1cece59942 | [
"MIT"
] | 5 | 2018-04-16T07:32:44.000Z | 2021-07-24T02:19:35.000Z | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>格式化 MarkDown 表格</title>
<link rel="stylesheet" href="./layout.css">
<script src="bundle.js"></script>
</head>
<body>
<div class="main">
<button id="reformat-btn">格式化</button><br>
<textarea id="md-table" autofocus="true" placeholder="这里是 MarkDown 表格"></textarea>
</div>
<script src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="//i.wangding.co/js/fork-me-github.js"></script>
<script src="//i.wangding.co/js/bsz-page-footer.js"></script>
</body>
</html>
| 29.631579 | 84 | 0.666075 |
df44d7c1f800a5c5e71f930f65159062c36021a9 | 998 | rb | Ruby | spec/br_danfe/uf_spec.rb | asseinfo/br_danfe | 1ea212723f69e6aee094fd7e5a8bd3c07c0720d3 | [
"MIT"
] | 25 | 2015-01-10T20:40:04.000Z | 2020-08-26T04:09:45.000Z | spec/br_danfe/uf_spec.rb | asseinfo/br_danfe | 1ea212723f69e6aee094fd7e5a8bd3c07c0720d3 | [
"MIT"
] | 93 | 2016-11-05T04:26:46.000Z | 2021-11-18T02:59:50.000Z | spec/br_danfe/uf_spec.rb | asseinfo/br_danfe | 1ea212723f69e6aee094fd7e5a8bd3c07c0720d3 | [
"MIT"
] | 25 | 2015-02-08T04:49:34.000Z | 2021-01-11T19:43:51.000Z | require 'spec_helper'
describe BrDanfe::Uf do
describe '#include?' do
ufs =
%w[
AC AL AP AM BA CE DF ES GO MA MT MS MG PA PB PR PE PI RJ
RN RS RO RR SC SP SE TO
]
context 'when uf is symbol' do
ufs.each do |uf|
it "returns true for uf #{uf}" do
expect(BrDanfe::Uf.include?(uf.to_sym)).to be true
end
end
end
context 'when uf is string' do
ufs.each do |uf|
it "returns true for uf #{uf}" do
expect(BrDanfe::Uf.include?(uf)).to be true
end
end
end
context 'when uf is not from Brazil' do
it 'returns false' do
expect(BrDanfe::Uf.include?('EX')).to be false
end
end
context 'when uf is blank' do
it 'returns false' do
expect(BrDanfe::Uf.include?('')).to be false
end
end
context 'when uf is nil' do
it 'returns false' do
expect(BrDanfe::Uf.include?(nil)).to be false
end
end
end
end
| 21.695652 | 64 | 0.55511 |
878bf0f8d331476d8be81d056393f369a9897707 | 100,066 | html | HTML | public/scalingbitcoin/tokyo-2018/edgedevplusplus/python-bitcoinlib/index.html | bitcointranscripts/bitcointranscripts.github.io | d0af441424db5517a9e16bb7904e21f4c7670bf8 | [
"MIT"
] | 3 | 2021-04-06T00:38:58.000Z | 2022-03-15T00:38:50.000Z | public/scalingbitcoin/tokyo-2018/edgedevplusplus/python-bitcoinlib/index.html | bitcointranscripts/bitcointranscripts.github.io | d0af441424db5517a9e16bb7904e21f4c7670bf8 | [
"MIT"
] | 8 | 2021-04-02T17:08:02.000Z | 2022-03-31T11:16:13.000Z | public/scalingbitcoin/tokyo-2018/edgedevplusplus/python-bitcoinlib/index.html | bitcointranscripts/bitcointranscripts.github.io | d0af441424db5517a9e16bb7904e21f4c7670bf8 | [
"MIT"
] | 10 | 2021-02-17T20:07:56.000Z | 2022-03-15T00:38:53.000Z | <!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="canonical" href="https://btctranscripts.com/scalingbitcoin/tokyo-2018/edgedevplusplus/python-bitcoinlib/">
<title>
Python Bitcoinlib | ₿itcoin Transcripts
</title>
<link href="https://btctranscripts.com/css/fontawesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://btctranscripts.com/css/ace.min.css">
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="https://btctranscripts.com/images/btctranscripts.png"/>
<meta name="twitter:title" content="Python Bitcoinlib"/>
<meta name="twitter:description" content="Name: Bryan Bishop
Topic: Overview of python-bitcoinlib
Location: Bitcoin Edge Dev++, Keto University, Tokyo, Japan
Date: October 5th 2018
Video: https://www.youtube.com/watch?v=JnBOO1zjm4I
python-bitcoinlib repo: https://github.com/petertodd/python-bitcoinlib
Bitcoin Edge schedule: https://keio-devplusplus-2018.bitcoinedge.org/#schedule
Twitter announcement: https://twitter.com/kanzure/status/1052927707888189442
Transcript completed by: Bryan Bishop Edited by: Michael Folkson
Intro I will be talking about python-bitcoinlib.
whoami First I am going to start with an introduction slide. This is because I keep forgetting who I am so I have to write it down in all of my presentations."/>
</head>
<body><nav class="navbar navbar-expand-lg navbar-dark bg-primary shadow sticky-top" id="navbarMain">
<div class="container">
<div>
<a class="navbar-brand" href="/">
₿itcoin Transcripts
</a>
</div>
<div class="collapse navbar-collapse" id="navbarMainCollapse">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="https://github.com/bitcointranscripts/bitcointranscripts" target="_blank">
<i class='fab fa-github'></i>
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="docs-sidenav order-0 col-12 col-md-3 col-lg-2 col-xl-2 position-sticky border-right"><nav class="navbar navbar-expand-md navbar-light pl-0">
<button class="navbar-toggler navbar-toggler-right collapsed" type="button" data-toggle="collapse" data-target="#sidenav-left-collapse" aria-controls="sidenav-left-collapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse align-items-start flex-column" id="sidenav-left-collapse">
<form class="form-inline my-2 my-lg-0 searchbox">
<input class="form-control mr-sm-2 w-100" data-search-input id="search-by" type="text" placeholder='Search (press "/")'>
</form>
<ul class="navbar-nav flex-column pt-3">
<li data-nav-id="/advancing-bitcoin/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/advancing-bitcoin/"><h6>Advancing Bitcoin</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/advancing-bitcoin/2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/advancing-bitcoin/2019/"><h6>Advancing Bitcoin 2019</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/advancing-bitcoin/2020/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/advancing-bitcoin/2020/"><h6>Advancing Bitcoin 2020</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/andreas-antonopoulos/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/andreas-antonopoulos/"><h6>Andreas Antonopoulos</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/austin-bitcoin-developers/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/austin-bitcoin-developers/"><h6>Austin Bitcoin Developers</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/baltic-honeybadger/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/baltic-honeybadger/"><h6>Baltic Honeybadger</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/baltic-honeybadger/2018/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/baltic-honeybadger/2018/"><h6>Baltic Honeybadger 2018</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/baltic-honeybadger/2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/baltic-honeybadger/2019/"><h6>Baltic Honeybadger 2019</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/bit-block-boom/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/bit-block-boom/"><h6>Bit Block Boom</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/bit-block-boom/2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/bit-block-boom/2019/"><h6>Bit Block Boom 2019</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/bitcoin-core-dev-tech/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/bitcoin-core-dev-tech/"><h6>Bitcoin Core Dev Tech</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/bitcoin-core-dev-tech/bitcoin-devcore-2015/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/bitcoin-core-dev-tech/bitcoin-devcore-2015/"><h6>Bitcoin Devcore Meetup (2015)</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/bitcoin-design/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/bitcoin-design/"><h6>Bitcoin Design</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/bitcoin-magazine/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/bitcoin-magazine/"><h6>Bitcoin Magazine</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/bitcoinops/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/bitcoinops/"><h6>Bitcoinops</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/bitcoinops/schnorr-taproot-workshop-2019/" class="nav-item my-1
">
<a class="nav-link p-0" href="/bitcoinops/schnorr-taproot-workshop-2019/"><h6>Schnorr Taproot Workshop 2019</h6></a>
</li>
</ul>
</li>
<li data-nav-id="/blockchain-protocol-analysis-security-engineering/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/blockchain-protocol-analysis-security-engineering/"><h6>Blockchain Protocol Analysis Security Eng</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/blockchain-protocol-analysis-security-engineering/2017/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/blockchain-protocol-analysis-security-engineering/2017/"><h6>Blockchain Protocol Analysis Security Engineering 2017</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/blockchain-protocol-analysis-security-engineering/2018/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/blockchain-protocol-analysis-security-engineering/2018/"><h6>Blockchain Protocol Analysis Security Engineering 2018</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/blockstream-webinars/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/blockstream-webinars/"><h6>Blockstream Webinars</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/boltathon/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/boltathon/"><h6>Boltathon</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/breaking-bitcoin/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/breaking-bitcoin/"><h6>Breaking Bitcoin</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/breaking-bitcoin/2017/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/breaking-bitcoin/2017/"><h6>Breaking Bitcoin 2017</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/breaking-bitcoin/2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/breaking-bitcoin/2019/"><h6>Breaking Bitcoin 2019</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/building-on-bitcoin/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/building-on-bitcoin/"><h6>Building On Bitcoin</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/building-on-bitcoin/2018/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/building-on-bitcoin/2018/"><h6>Building On Bitcoin 2018</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/c-lightning/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/c-lightning/"><h6>c-lightning</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/chaincode-labs/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/chaincode-labs/"><h6>Chaincode Labs</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/chaincode-labs/chaincode-podcast/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/chaincode-labs/chaincode-podcast/"><h6>Chaincode Podcast</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/chaincode-labs/chaincode-residency/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/chaincode-labs/chaincode-residency/"><h6>Chaincode Residency</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/chicago-bitdevs/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/chicago-bitdevs/"><h6>Chicago Bitdevs</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/coindesk-consensus-2016/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/coindesk-consensus-2016/"><h6>Coindesk Consensus</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/coordination-of-decentralized-finance-workshop/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/coordination-of-decentralized-finance-workshop/"><h6>Coordination of Decentralized Finance</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/coordination-of-decentralized-finance-workshop/2020-stanford/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/coordination-of-decentralized-finance-workshop/2020-stanford/"><h6>2020 Stanford</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/cppcon/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/cppcon/"><h6>CPPcon</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/cppcon/2017/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/cppcon/2017/"><h6>CPPcon 2017</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/cppcon/2020/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/cppcon/2020/"><h6>CPPcon 2020</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/cryptoeconomic-systems/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/cryptoeconomic-systems/"><h6>Cryptoeconomic Systems</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/cryptoeconomic-systems/2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/cryptoeconomic-systems/2019/"><h6>Cryptoeconomic Systems 2019</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/dallas-bitcoin-symposium/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/dallas-bitcoin-symposium/"><h6>Dallas Bitcoin Symposium</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/decentralized-financial-architecture-workshop/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/decentralized-financial-architecture-workshop/"><h6>Decentralized Financial Architecture Workshop</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/bitcoin-developers-miners-meeting-2016/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/bitcoin-developers-miners-meeting-2016/"><h6>Developers-Miners Meeting</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/greg-maxwell/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/greg-maxwell/"><h6>Greg Maxwell</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/grincon/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/grincon/"><h6>Grincon</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/grincon/2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/grincon/2019/"><h6>Grincon 2019</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/honey-badger-diaries/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/honey-badger-diaries/"><h6>Honey Badger Diaries</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/la-bitdevs/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/la-bitdevs/"><h6>LA Bitdevs</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/layer2-summit/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/layer2-summit/"><h6>Layer2 Summit</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/layer2-summit/2018/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/layer2-summit/2018/"><h6>Layer2 Summit 2018</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/lets-talk-bitcoin-podcast/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/lets-talk-bitcoin-podcast/"><h6>Lets Talk Bitcoin Podcast</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/lightning-conference/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/lightning-conference/"><h6>Lightning Conference</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/lightning-conference/2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/lightning-conference/2019/"><h6>Lightning Conference 2019</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/lightning-hack-day/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/lightning-hack-day/"><h6>Lightning Hack Day</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/lightning-specification/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/lightning-specification/"><h6>Lightning Specification</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/london-bitcoin-devs/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/london-bitcoin-devs/"><h6>London Bitcoin Devs</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/magicalcryptoconference/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/magicalcryptoconference/"><h6>Magicalcryptoconference</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/magicalcryptoconference/2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/magicalcryptoconference/2019/"><h6>Magicalcryptoconference 2019</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/misc/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/misc/"><h6>Misc</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/mit-bitcoin-expo/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/mit-bitcoin-expo/"><h6>MIT Bitcoin Expo</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/mit-bitcoin-expo/mit-bitcoin-expo-2015/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/mit-bitcoin-expo/mit-bitcoin-expo-2015/"><h6>Mit Bitcoin Expo 2015</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/mit-bitcoin-expo/mit-bitcoin-expo-2016/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/mit-bitcoin-expo/mit-bitcoin-expo-2016/"><h6>Mit Bitcoin Expo 2016</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/mit-bitcoin-expo/mit-bitcoin-expo-2017/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/mit-bitcoin-expo/mit-bitcoin-expo-2017/"><h6>Mit Bitcoin Expo 2017</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/mit-bitcoin-expo/mit-bitcoin-expo-2018/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/mit-bitcoin-expo/mit-bitcoin-expo-2018/"><h6>Mit Bitcoin Expo 2018</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/mit-bitcoin-expo/mit-bitcoin-expo-2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/mit-bitcoin-expo/mit-bitcoin-expo-2019/"><h6>Mit Bitcoin Expo 2019</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/mit-bitcoin-expo/mit-bitcoin-expo-2020/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/mit-bitcoin-expo/mit-bitcoin-expo-2020/"><h6>Mit Bitcoin Expo 2020</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/mit-bitcoin-expo/mit-bitcoin-expo-2021/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/mit-bitcoin-expo/mit-bitcoin-expo-2021/"><h6>Mit Bitcoin Expo 2021</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/munich-meetup/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/munich-meetup/"><h6>Munich Meetup</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/noded-podcast/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/noded-podcast/"><h6>Noded Podcast</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/realworldcrypto/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/realworldcrypto/"><h6>Realworldcrypto</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/realworldcrypto/2018/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/realworldcrypto/2018/"><h6>Realworldcrypto 2018</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/rebooting-web-of-trust/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/rebooting-web-of-trust/"><h6>Rebooting Web Of Trust</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/rebooting-web-of-trust/2019-prague/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/rebooting-web-of-trust/2019-prague/"><h6>2019 Prague</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/ruben-somsen/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/ruben-somsen/"><h6>Ruben Somsen</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/satoshi-roundtable/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/satoshi-roundtable/"><h6>Satoshi Roundtable</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/satoshi-roundtable/sr-004/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/satoshi-roundtable/sr-004/"><h6>Sr 004</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/scalingbitcoin/" class="nav-item my-1 parent haschildren
">
<a class="nav-link p-0" href="/scalingbitcoin/"><h6>Scaling Bitcoin Conference</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/scalingbitcoin/montreal-2015/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/scalingbitcoin/montreal-2015/"><h6>Montreal (2015)</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/scalingbitcoin/hong-kong-2015/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/scalingbitcoin/hong-kong-2015/"><h6>Hong Kong (2015)</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/scalingbitcoin/milan-2016/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/scalingbitcoin/milan-2016/"><h6>Milan (2016)</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/scalingbitcoin/stanford-2017/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/scalingbitcoin/stanford-2017/"><h6>Stanford (2017)</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/scalingbitcoin/stanford-2017/edgeplusplus/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/scalingbitcoin/stanford-2017/edgeplusplus/"><h6>Edgeplusplus</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/scalingbitcoin/tokyo-2018/" class="nav-item my-1 parent haschildren
">
<a class="nav-link p-0" href="/scalingbitcoin/tokyo-2018/"><h6>Tokyo (2018)</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/scalingbitcoin/tokyo-2018/edgedevplusplus/" class="nav-item my-1 parent haschildren
">
<a class="nav-link p-0" href="/scalingbitcoin/tokyo-2018/edgedevplusplus/"><h6>Edgedevplusplus</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/scalingbitcoin/tel-aviv-2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/scalingbitcoin/tel-aviv-2019/"><h6>Tel Aviv (2019)</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/scalingbitcoin/tel-aviv-2019/edgedevplusplus/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/scalingbitcoin/tel-aviv-2019/edgedevplusplus/"><h6>Edgedevplusplus</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li data-nav-id="/sf-bitcoin-meetup/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/sf-bitcoin-meetup/"><h6>SF Bitcoin Meetup</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/simons-institute/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/simons-institute/"><h6>Simons Institute</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/stanford-blockchain-conference/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/stanford-blockchain-conference/"><h6>Stanford Blockchain</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/stanford-blockchain-conference/2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/stanford-blockchain-conference/2019/"><h6>Stanford Blockchain Conference 2019</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/stanford-blockchain-conference/2020/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/stanford-blockchain-conference/2020/"><h6>Stanford Blockchain Conference 2020</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/stephan-livera-podcast/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/stephan-livera-podcast/"><h6>Stephan Livera Podcast</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/sydney-bitcoin-meetup/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/sydney-bitcoin-meetup/"><h6>Sydney Bitcoin Meetup</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/tabconf/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/tabconf/"><h6>TABConf</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/tabconf/2021/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/tabconf/2021/"><h6>TABConf 2021</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/texas-bitcoin-conference-2014/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/texas-bitcoin-conference-2014/"><h6>Texas Bitcoin Conference</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/tftc-podcast/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/tftc-podcast/"><h6>TFTC Podcast</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/verifiable-delay-functions/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/verifiable-delay-functions/"><h6>Verifiable Delay Functions</h6></a>
<ul class="list-unstyled ml-2">
<li data-nav-id="/verifiable-delay-functions/vdf-day-2019/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/verifiable-delay-functions/vdf-day-2019/"><h6>Vdf Day 2019</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</li>
<li data-nav-id="/vr-bitcoin/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/vr-bitcoin/"><h6>VR Bitcoin</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/w3-blockchain-workshop-2016/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/w3-blockchain-workshop-2016/"><h6>W3 Blockchain Workshop</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/wasabi-research-club/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/wasabi-research-club/"><h6>Wasabi Research Club</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
<li data-nav-id="/what-bitcoin-did-podcast/" class="nav-item my-1 haschildren
">
<a class="nav-link p-0" href="/what-bitcoin-did-podcast/"><h6>What Bitcoin Did Podcast</h6></a>
<ul class="list-unstyled ml-2">
</ul>
</li>
</ul>
</div>
</nav>
</div>
<div class="docs-toc large order-lg-2 order-md-0 order-xs-1 col-12 col-lg-2 col-xl-2 position-sticky"><div class="docs-toc">
<nav id="TableOfContents">
<ul>
<li><a href="#intro">Intro</a></li>
<li><a href="#whoami">whoami</a></li>
<li><a href="#what-is-python-bitcoinlib-and-where-to-find-it">What is python-bitcoinlib and where to find it</a></li>
<li><a href="#library-history">Library history</a></li>
<li><a href="#library-structure">Library structure</a></li>
<li><a href="#mutable-vs-immutable-data-structures">Mutable vs immutable data structures</a></li>
<li><a href="#endianness-gotchas">Endianness gotchas</a></li>
<li><a href="#other-stuff-in-python-bitcoinlib">Other stuff in python-bitcoinlib</a></li>
<li><a href="#rpc">RPC</a></li>
<li><a href="#signmessage--verifymessage">signmessage / verifymessage</a></li>
<li><a href="#example-spend-p2pkh-utxo-15">Example: Spend p2pkh UTXO (1/5)</a></li>
<li><a href="#example-spend-p2pkh-utxo-25">Example: Spend p2pkh UTXO (2/5)</a></li>
<li><a href="#example-spend-p2pkh-utxo-35">Example: Spend p2pkh UTXO (3/5)</a></li>
<li><a href="#example-spend-p2pkh-utxo-45">Example: Spend p2pkh UTXO (4/5)</a></li>
<li><a href="#example-spend-p2pkh-utxo-55">Example: Spend p2pkh UTXO (5/5)</a></li>
<li><a href="#future-improvements-wish-list">Future improvements (wish list)</a></li>
<li><a href="#thats-all-folks">That’s all, folks</a></li>
<li><a href="#qa">Q&A</a></li>
</ul>
</nav>
</div>
</div>
<div class="main col-12 order-1 col-md-9 col-lg-10 col-xl-8 py-3">
<a href="/">Home</a>
< <a href="/scalingbitcoin/">
Scaling Bitcoin Conference
</a>
< <a href="/scalingbitcoin/tokyo-2018/">
Tokyo (2018)
</a>
< <a href="/scalingbitcoin/tokyo-2018/edgedevplusplus/">
Edgedevplusplus
</a>
< Python Bitcoinlib
<h1>Python Bitcoinlib</h1>
<p><i>Transcript By: Bryan Bishop</i></p>
<p>Category:
<a href='/categories/conference'>Conference</a></p>
<p>Name: Bryan Bishop</p>
<p>Topic: Overview of python-bitcoinlib</p>
<p>Location: Bitcoin Edge Dev++, Keto University, Tokyo, Japan</p>
<p>Date: October 5th 2018</p>
<p>Video: <a href="https://www.youtube.com/watch?v=JnBOO1zjm4I">https://www.youtube.com/watch?v=JnBOO1zjm4I</a></p>
<p>python-bitcoinlib repo: <a href="https://github.com/petertodd/python-bitcoinlib">https://github.com/petertodd/python-bitcoinlib</a></p>
<p>Bitcoin Edge schedule: <a href="https://keio-devplusplus-2018.bitcoinedge.org/#schedule">https://keio-devplusplus-2018.bitcoinedge.org/#schedule</a></p>
<p>Twitter announcement: <a href="https://twitter.com/kanzure/status/1052927707888189442">https://twitter.com/kanzure/status/1052927707888189442</a></p>
<p>Transcript completed by: Bryan Bishop Edited by: Michael Folkson</p>
<h1 id="intro">Intro</h1>
<p>I will be talking about python-bitcoinlib.</p>
<h1 id="whoami">whoami</h1>
<p>First I am going to start with an introduction slide. This is because I keep forgetting who I am so I have to write it down in all of my presentations. (Joke)</p>
<p>Before I get started, there is a presentation right after mine that is about libbitcoin. That is a separate project. This is python-bitcoinlib. Sorry for the ambiguity but it is not my fault.</p>
<h1 id="what-is-python-bitcoinlib-and-where-to-find-it">What is python-bitcoinlib and where to find it</h1>
<p>Retrieve from: <a href="https://github.com/petertodd/python-bitcoinlib">https://github.com/petertodd/python-bitcoinlib</a></p>
<p><code>pip3 install python-bitcoinlib</code></p>
<p>python-bitcoinlib is a library of Python classes, functions and other little helper methods for representing, parsing and serializing Bitcoin data. Running Bitcoin scripts, evaluating Bitcoin scripts. It is a Python library. It is very useful for application development, for testing, things like that. Before I get too deep into this, I’m quite curious. Can I see a show of hands for who actually writes in Python in this audience? python-bitcoinlib is useful if you are doing rapid application prototyping or something. It is not a full node implementation. I suppose you could in theory make a full node implementation from it but there are a lot of pieces missing so it is not a full node.</p>
<h1 id="library-history">Library history</h1>
<p>I believe originally this was started by Jeff Garzik as python-bitcoinrpc and then it evolved over the years passing from maintainer to maintainer or fork to fork. There are also a few other forks flying around, one called python-bitcoinrpc1 I believe made it into the Bitcoin Core repository for testing of Bitcoin Core. There are a lot of Python scripts there. Anyway that is a separate branch and separate evolution of the library. python-bitcoinlib itself is currently hosted under Peter Todd’s repository. He is ostensibly the maintainer although he warns that it will go unmaintained very soon or already has. That is something that people are going to have to deal with. Peter has been more interested in Rust lately which I will mention in a moment.</p>
<h1 id="library-structure">Library structure</h1>
<p><code>bitcoin.core</code> - Basic core definitions, data structures and (context independent) validation</p>
<p><code>bitcoin.core.key</code> - ECC pubkeys</p>
<p><code>bitcoin.core.script</code> - Scripts and opcodes</p>
<p><code>bitcoin.core.scripteval</code> - Script evaluation/verification</p>
<p><code>bitcoin.core.serialize</code> - Serialization</p>
<p><code>bitcoin</code> - Chain selection</p>
<p><code>bitcoin.base58</code> - Base58 encoding</p>
<p><code>bitcoin.bloom</code> - Bloom filters (incomplete)</p>
<p><code>bitcoin.net</code> - Network communication (in flux)</p>
<p><code>bitcoin.messages</code> - Network messages (in flux)</p>
<p><code>bitcoin.rpc</code> - Bitcoin Core RPC interface support</p>
<p><code>bitcoin.wallet</code> - Wallet related code, currently Bitcoin address and private key support</p>
<p>So what does the library have? It has some of the basic data structures you’d expect such as representing transactions and blocks. It has a basic ability to represent keys and secret keys, things like that. Also opcodes and scripts, it can represent scripts and parse abstract syntax tree formats. It is not really a tree, it is a list of operations. It can evaluate scripts and verify them as well. Also it can serialize data, it can construct certain network messages, it has a basic ability to interface with RPC. It has a bunch of items and fun things you can do.</p>
<h1 id="mutable-vs-immutable-data-structures">Mutable vs immutable data structures</h1>
<p>In python-bitcoinlib there is a distinction between mutable data structures and immutable data structures. This is a little odd because Python is generally considered to be not the right language to use if you want to preserve memory correctness which you generally want to do when you are dealing with Bitcoin. The theory behind this is if you are going to handle transaction data in Python or any other language, at least you want to try to mark which ones are final and aren’t going to be modified. In python-bitcoinlib that is <code>CMutableTransaction</code> and <code>CTransaction</code> is the immutable version. Whereas if you create a <code>CTransaction</code> and you initialize the data structure with a list of transaction inputs and a list of transaction outputs, the <code>CTransaction</code> type is not going to allow you to add extra inputs because theoretically you have already defined the transaction. The transaction should not be able to be updated after that point.</p>
<p>(From slide - Unlike the Bitcoin Core codebase this distinction also applies to <code>COutPoint</code>, <code>CTxIn</code>, <code>CTxOut</code> and <code>Cblock</code>. This is helpful for preventing mutation of transaction data in memory throughout a Python application but this is not Python’s superpower.)</p>
<h1 id="endianness-gotchas">Endianness gotchas</h1>
<p>Also Bitcoin Core shows transaction and block hashes as little endian hex and everything else is big endian hex. There are some conversion tools to be able to play around with data. This is very useful if you are ever on the command line just playing around with Bitcoin stuff.</p>
<p><code>x</code> is the function for big endian hex to bytes. Since it is used so often it had a one letter name. This is really terrible if you are in the habit of using one letter abbreviations for names for your variables when you are doing rapid prototyping or testing. Just be aware that <code>x</code> is actually a function.</p>
<p>Similarly there is a function which is <code>lx</code> little endian hex to bytes. Or <code>b2lx</code> which is bytes to little endian hex and <code>b2x</code> which is bytes to big endian hex.</p>
<h1 id="other-stuff-in-python-bitcoinlib">Other stuff in python-bitcoinlib</h1>
<p>The library helps you use both testnet and mainnet. The way it does that is switching through a function called <code>SelectParams</code>. <code>SignatureHash</code> is for transaction signing and hashing the transaction in the correct format so you can sign it. I believe it does have transaction signing capability using OpenSSL although you should probably not intend to use it for that purpose. Perhaps for testing it is fine. <code>VerifyScript</code> seems to be consensus correct. You can run a script through it and check whether or not it ends up returning TRUE or FALSE. There are a bunch of unit tests and you can do pay-to-script-hash for multisig although it doesn’t implement BIP 32. For that I use pycoin’s <code>BIP32Node</code> class when I need to use BIP 32.</p>
<h1 id="rpc">RPC</h1>
<p>There is a RPC library for communicating with Bitcoin nodes, in particular Bitcoin Core. I have often found that I’ve needed to write a wrapper around the RPC connection function especially if you ever use this in a high volume environment where you are rapidly in succession querying the Bitcoin Core RPC. There is a RPC thread limit and sometimes you need to refresh the connections. Often I write a decorator around this RPC make-connection or any other RPC call to refresh the connection in the event that an error like that occurs. One interesting thing to note here is that when you are developing an application that uses Bitcoin Core you should be careful not to treat Bitcoin Core as a database because it is really not a database. Even though some of the RPC interfaces used to pretend it was, especially around accounts. Accounts were a good example because if you issue a RPC command to change an accounts, I guess a benign one would be to change an account’s name or something, it is not really a transactional interface like you would with a Postgres database. In the event that other things in your software stack have failed you would have to manually go back and fix all the things that you’ve told Bitcoin Core to do. There is no transactional atomicity guarantees.</p>
<p>(From slide - I have often found myself using the <code>_call</code> helper. I have often needed to write a wrapper around the make-new-RPC-connection function so that when RPC commands are called, a new RPC connection is established regardless of whether the connection is stale. Bitcoin Core RPC isn’t what you think it is (this is not database software with transactional capability or integrity guarantees) FakeBitcoinProxy class (available in a pull request) helps make unit tests without running bitcoind (mocks of bitcoin RPC)</p>
<h1 id="signmessage--verifymessage">signmessage / verifymessage</h1>
<p><a href="https://github.com/petertodd/python-bitcoinlib/blob/master/examples/sign-message.py">https://github.com/petertodd/python-bitcoinlib/blob/master/examples/sign-message.py</a></p>
<p>Another useful thing in here is <code>signmessage</code> and <code>verifymessage</code>. This is very useful for audits or proving that you have control over a certain key. It is not just signing a message or a hash of a message directly. Rather there is a weird prefix. This isn’t the fault of python-bitcoinlib, this is a Bitcoin Core thing if you want to comply with this <code>signmessage</code> <code>verifymessage</code> standard. In fact there is a new standard being proposed for pay-to-witness-pubkey-hash. In certain situations you need to be able to prove that you have control of a certain output or whatever. <code>signmessage</code> doesn’t support all of those scenarios. Your wallet software needs to know how to produce those signatures and verify those signatures. One of the reasons why there is a prefix is so that you can’t do attacks. If you just ask an arbitrary user to sign this message to prove you have control and oops it is actually a transaction that you sign that spends all your coins to me, that would be a pretty bad vulnerability. Having a prefix makes sense. Also it uses something called ECDSA pubkey recovery. This is an interesting thing. I know it is completely off topic but in Ethereum, if you have ever looked at the Ethereum transaction data structure, unlike Bitcoin it doesn’t use UTXOs, it uses credits and debits. There is actually no “from address”. The address from which an account is debited in Ethereum is derived using ECDSA pubkey recovery. Similar to <code>signmessage</code> in Bitcoin, to derive the “from account” from the signature on the Ethereum transaction. I regret knowing this. I don’t want to know this but anyway. The URL at the bottom of the screen is an example of using <code>signmessage</code> and <code>verifymessage</code>.</p>
<h1 id="example-spend-p2pkh-utxo-15">Example: Spend p2pkh UTXO (1/5)</h1>
<p><a href="https://github.com/petertodd/python-bitcoinlib/blob/master/examples/spend-p2pkh-txout.py">https://github.com/petertodd/python-bitcoinlib/blob/master/examples/spend-p2pkh-txout.py</a></p>
<p>I am going to walk through an example of spending a P2PKH output. This scenario is that if you are paid and then you want to spend the money that you’re paid, this is an example of how to go about doing that using python-bitcoinlib. This page of code is setting it up and importing all the required functions, libraries and tools. Line 25 on the screen if you can see it, it is the longest line on the page, it is importing some of the script opcodes. <code>OP_HASH160</code>, this is P2PKH so there is a hash in there. There is a CHECKSIG because you want to check the signature, whether it matches. You need to do a <code>SignatureHash</code> because you want to sign the input. The next line, you have a <code>VerifyScript</code> because you want to check it is actually working. Also <code>SelectParams</code> is mainnet because you want to use mainnet not testnet. That’s where you are paid.</p>
<h1 id="example-spend-p2pkh-utxo-25">Example: Spend p2pkh UTXO (2/5)</h1>
<p>Before we begin, transactions have inputs and outputs. If you are spending this input, you were paid some Bitcoin and now you want to spend it, the transaction that you are creating to spend your money that you’ve earned is going to have to have an input. For the sake of example we can just arbitrarily say we were paid with this transaction hash ID. The next one (<code>vout</code>) is the index in that transaction of course. At the very bottom we are creating a transaction input based off of that transaction ID and the index.</p>
<p><code>txin = CMutableTxIn(COutPoint(txid, vout))</code></p>
<h1 id="example-spend-p2pkh-utxo-35">Example: Spend p2pkh UTXO (3/5)</h1>
<p>Then we also have to make the scriptPubKey. Also we are going to make a transaction output because we are spending it. This address is provided by whoever we are spending the money to so that is not our data.</p>
<p><code>txin_scriptPubKey = CScript([OP_DUP, OP_HASH160, Hash160(seckey.pub), OP_EQUALVERIFY, OP_CHECKSIG])</code></p>
<p><code>txout = CMutableTxOut(0.001*COIN, CBitcoinAddress('1C7zdTfnkzmr13HfA2vNm5SJYRK6nEKyq8').to_scriptPubKey())</code></p>
<h1 id="example-spend-p2pkh-utxo-45">Example: Spend p2pkh UTXO (4/5)</h1>
<p><code>tx = CMutableTransaction([txin], [txout])</code></p>
<p>Finally we are making a mutable transaction. That is because we are not done creating the transaction, we can have these inputs and outputs. If you notice the input hasn’t been signed yet. Then you have to figure out what are you signing. That is what the signature hash is for.</p>
<p><code>sighash = SignatureHash(txin_scriptPubKey, tx, 0, SIGHASH_ALL)</code></p>
<p>You sign the scriptPubKey from the transaction and we want SIGHASH_ALL because we want to ensure the transaction doesn’t change.</p>
<p><code>sig = seckey.sign(sighash) + bytes([SIGHASH_ALL])</code></p>
<p>This is pretty insecure. Don’t do this in production code. This is using OpenSSL under the hood. For the sake of testing, examples and demos it is about as good as you are going to get. It is just a function, sign this please. It produces a cryptographic signature and then you can add the signature to the actual scriptSig on the input.</p>
<p><code>txin.scriptSig = CScript([sig, seckey.pub])</code></p>
<p>Line 70, you have already created the transaction earlier at the top line of this slide. Now we are modifying it by adding a scriptSig. That’s why it needs to be mutable.</p>
<h1 id="example-spend-p2pkh-utxo-55">Example: Spend p2pkh UTXO (5/5)</h1>
<p>Then we can verify that the scriptSig works based off of the scriptPubKey for that input.</p>
<p><code>VerifyScript(txin.scriptSig, txin_scriptPubKey, tx, 0, (SCRIPT_VERIFY_P2SH,))</code></p>
<p>In python-bitcoinlib it will just fail with a raise an exception. I’m not going to catch the exception here. Finally there is a serialize method at the very end. You want to convert that to hex because serialization always produces bytes and you want some pretty printed hex so that you can copy and paste that into <code>sendrawtransaction</code> in the Bitcoin Core RPC interface.</p>
<p><code>print(b2x(tx.serialize()))</code></p>
<h1 id="future-improvements-wish-list">Future improvements (wish list)</h1>
<p>Some things notably absent from python-bitcoinlib. If you are going to implement something related to SegWit, don’t, because there is nothing implemented in there to handle SegWit. It is something important to note. It doesn’t have bech32 from BIP 173. It doesn’t have BIP 32 support. It doesn’t support BIP 174 (PSBTs). It doesn’t support output descriptors which I recognize that we haven’t talked about this past two days. There is no generally accepted proposal yet for script v2. Interestingly enough this will probably be called script v1 which is very confusing. That is because Bitcoin script is currently version zero. These guys are laughing over here but it is actually a huge problem. It is very ambiguous. Why is it still using OpenSSL? Who knows? In general for signing the signature is still going to be correct no matter which of the two libraries you are using. Perhaps an ability to switch out between the two, that would be an interesting project to implement. A simple weekend thing or something.</p>
<h1 id="thats-all-folks">That’s all, folks</h1>
<p>That’s python-bitcoinlib. Just to be clear that’s not libbitcoin. Thanks</p>
<h1 id="qa">Q&A</h1>
<p>Q - This is completely different from bitcoind?</p>
<p>A - This is not related to bitcoind although the RPC interface, if you want to communicate to a Bitcoin node on the other end it would be bitcoind.</p>
<p>Q - When I look at this it seems like a great learning tool but who else uses it? What are the use cases?</p>
<p>A - I have used this in many projects for application development for everything from making exchanges for handling deposits and withdrawals. Anytime I have handled Bitcoin transactions. My two main options have been either write something in bash with the bitcoin-cli, <code>createrawtransaction</code> interface or you can use some other language other than bash. Why would anyone want to write in bash?</p>
<p>Q - I am one of the people working on bitcoinjs-lib and SegWit support is really hard.</p>
<p>A - That’s not my job.</p>
<p>Q - It sounds like people are using this for production code.</p>
<p>A - Yes</p>
<p>Q - It is scary that you mentioned that it is probably already unmaintained and it doesn’t support of all of these things.</p>
<p>A - Yes</p>
<p>Q - What is the history of maintainership?</p>
<p>A - Poor</p>
<p>Q - I think there’s an opportunity if you are into Python, this is a way to get involved in Bitcoin development.</p>
<p>A - Absolutely. In general it is considered a bad idea to use unmaintained code. At the same time there is a collection of work that has been performed here that could be useful. Some of the data structures are quite basic and they are not going to be deprecated. There are bits and pieces that you could probably safely use. Other parts that you should probably stay away from. Unfortunately this requires expertise to tell the difference.</p>
<p>Q - If someone is good at Python who could they talk to about reviving this as a maintained project?</p>
<p>A - Feel free to talk to me or Peter Todd. He makes himself available. Those are the two starting places I would recommend.</p>
<div class="row"></div>
</div>
</div>
</div>
<script src="https://btctranscripts.com/lib/jquery.min.js"></script>
<script src="https://btctranscripts.com/lib/popper.min.js"></script>
<script src="https://btctranscripts.com/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/plugins/lunr.min.js"></script>
<script type="text/javascript" src="/plugins/auto-complete.js"></script>
<link href="/plugins/auto-complete.css" rel="stylesheet">
<script type="text/javascript">
var baseurl = "https:\/\/btctranscripts.com\/";
</script>
<script type="text/javascript" src="/plugins/search.js"></script>
<script type="text/javascript" src="https://btctranscripts.com/js/custom.js"></script>
<script type="text/javascript" src="/plugins/clipboard.js"></script>
<script>
new ClipboardJS('.btn');
</script>
</body>
</html>
| 12.415136 | 1,804 | 0.339306 |
26adbc008a0176cb04279a6c52aa47303f021749 | 714 | java | Java | core/src/main/java/dev/iiprocraft/sg/base/SurvivalGamesApiImpl.java | iiProCraft/SurvivalGames | 5b791e44eb38e2ca91d2a158fa0bf63a99e03a19 | [
"MIT"
] | 11 | 2021-11-05T10:28:25.000Z | 2021-11-12T16:35:58.000Z | core/src/main/java/dev/iiprocraft/sg/base/SurvivalGamesApiImpl.java | ID2R/SurvivalGames | 5b791e44eb38e2ca91d2a158fa0bf63a99e03a19 | [
"MIT"
] | null | null | null | core/src/main/java/dev/iiprocraft/sg/base/SurvivalGamesApiImpl.java | ID2R/SurvivalGames | 5b791e44eb38e2ca91d2a158fa0bf63a99e03a19 | [
"MIT"
] | 3 | 2021-11-07T15:11:00.000Z | 2021-11-15T16:38:55.000Z | package dev.iiprocraft.sg.base;
import dev.iiprocraft.sg.api.SurvivalGames;
import dev.iiprocraft.sg.api.arena.ArenaManager;
import dev.iiprocraft.sg.api.player.PlayerManager;
import dev.iiprocraft.sg.base.plugin.SGPluginBootstrap;
import lombok.Data;
/**
* @author DirectPlan
*/
@Data
public class SurvivalGamesApiImpl implements SurvivalGames {
private final SGPluginBootstrap plugin;
public SurvivalGamesApiImpl(SGPluginBootstrap plugin) {
this.plugin = plugin;
}
@Override
public ArenaManager getArenaManager() {
return plugin.getArenaManager();
}
@Override
public PlayerManager getPlayerManager() {
return plugin.getPlayerManager();
}
}
| 23.032258 | 60 | 0.733894 |
c7fb6154ca10ab7d67391cf6e3c2b0462d98a7a9 | 1,809 | java | Java | aidev-system/src/main/java/com/aidev/system/service/ISysRoleService.java | cicada-singing/AiDev | cfbfaf83680f432de4ee56db6f19cd1c65923c14 | [
"MIT"
] | null | null | null | aidev-system/src/main/java/com/aidev/system/service/ISysRoleService.java | cicada-singing/AiDev | cfbfaf83680f432de4ee56db6f19cd1c65923c14 | [
"MIT"
] | null | null | null | aidev-system/src/main/java/com/aidev/system/service/ISysRoleService.java | cicada-singing/AiDev | cfbfaf83680f432de4ee56db6f19cd1c65923c14 | [
"MIT"
] | null | null | null | package com.aidev.system.service;
import com.aidev.common.core.domain.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import java.util.Set;
/**
* 角色业务层
*
* @author aidev
*/
public interface ISysRoleService extends IService<SysRole> {
/**
* 根据条件分页查询角色数据
*
* @param domain 角色信息
* @return 角色数据集合信息
*/
List<SysRole> selectRoleList(SysRole domain);
/**
* 根据用户ID查询角色
*
* @param userId 用户ID
* @return 权限列表
*/
Set<String> selectRoleKeys(Long userId);
/**
* 根据用户ID查询角色
*
* @param userId 用户ID
* @return 角色列表
*/
List<SysRole> selectRolesByUserId(Long userId);
/**
* 查询所有角色
*
* @return 角色列表
*/
List<SysRole> selectRoleAll();
/**
* 批量删除角色用户信息
*
* @param ids 需要删除的数据ID
* @return 结果
* @throws Exception 异常
*/
boolean deleteRoleByIds(String ids);
/**
* 新增保存角色信息
*
* @param role 角色信息
* @return 结果
*/
boolean insertRole(SysRole role);
/**
* 修改保存角色信息
*
* @param role 角色信息
* @return 结果
*/
boolean updateRole(SysRole role);
/**
* 修改数据权限信息
*
* @param role 角色信息
* @return 结果
*/
boolean authDataScope(SysRole role);
/**
* 校验角色名称是否唯一
*
* @param role 角色信息
* @return 结果
*/
String checkRoleNameUnique(SysRole role);
/**
* 校验角色权限是否唯一
*
* @param role 角色信息
* @return 结果
*/
String checkRoleKeyUnique(SysRole role);
/**
* 校验角色是否允许操作
*
* @param role 角色信息
*/
void checkRoleAllowed(SysRole role);
/**
* 角色状态修改
*
* @param role 角色信息
* @return 结果
*/
boolean changeStatus(SysRole role);
}
| 16.445455 | 60 | 0.546711 |
0ebc2ec26a9ddb1d9ccbf49c54c5b2dd51b750ed | 657 | ts | TypeScript | src/monitor-formula/monitor-formula.module.ts | US-EPA-CAMD/easey-monitor-plan-api | eceb7127caf47f6166c3be909e72db9275b92daa | [
"MIT"
] | 1 | 2020-12-03T21:42:32.000Z | 2020-12-03T21:42:32.000Z | src/monitor-formula/monitor-formula.module.ts | US-EPA-CAMD/easey-monitor-plan-api | eceb7127caf47f6166c3be909e72db9275b92daa | [
"MIT"
] | 163 | 2020-12-06T06:23:35.000Z | 2022-03-31T17:52:35.000Z | src/monitor-formula/monitor-formula.module.ts | US-EPA-CAMD/easey-monitor-plan-api | eceb7127caf47f6166c3be909e72db9275b92daa | [
"MIT"
] | 1 | 2021-04-05T19:18:25.000Z | 2021-04-05T19:18:25.000Z | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MonitorFormulaController } from './monitor-formula.controller';
import { MonitorFormulaService } from './monitor-formula.service';
import { MonitorFormulaRepository } from './monitor-formula.repository';
import { MonitorFormulaMap } from '../maps/monitor-formula.map';
@Module({
imports: [TypeOrmModule.forFeature([MonitorFormulaRepository])],
controllers: [MonitorFormulaController],
providers: [MonitorFormulaService, MonitorFormulaMap],
exports: [TypeOrmModule, MonitorFormulaService, MonitorFormulaMap],
})
export class MonitorFormulaModule {}
| 41.0625 | 72 | 0.777778 |
d954be8b07582ef33edfa3ef6b895cc36a2805ea | 3,476 | rs | Rust | src/layout/linear/secondary_alignment.rs | bugadani/embedded-layout | b6403eee34e16f78186e6f164876cae40de29c97 | [
"MIT"
] | 11 | 2020-08-12T03:17:54.000Z | 2022-02-24T02:50:56.000Z | src/layout/linear/secondary_alignment.rs | bugadani/embedded-layout | b6403eee34e16f78186e6f164876cae40de29c97 | [
"MIT"
] | 9 | 2020-07-06T22:25:37.000Z | 2021-03-15T16:33:56.000Z | src/layout/linear/secondary_alignment.rs | bugadani/embedded-layout | b6403eee34e16f78186e6f164876cae40de29c97 | [
"MIT"
] | 3 | 2021-07-27T18:26:12.000Z | 2022-02-10T09:01:55.000Z | use embedded_graphics::prelude::Size;
use crate::{align::Alignment, prelude::*};
/// Secondary alignment is used to align views perpendicular to the placement axis.
///
/// For example, use [`horizontal::Right`] to align views to the right in a vertical linear layout.
///
/// `SecondaryAlignment` should be implemented by custom `Alignment` types, otherwise they won't be
/// compatible with [`LinearLayout`].
///
/// [`LinearLayout`]: crate::layout::linear::LinearLayout
pub trait SecondaryAlignment: Alignment {
/// The secondary alignment of the first view
type First: Alignment;
/// Return the combined `Size` occupied by both `Views` after they are arranged.
///
/// I.e. [`horizontal::Left`] returns the maximum width, while [`horizontal::LeftToRight`]
/// returns the sum of the two widths.
fn measure(prev: Size, view_size: Size) -> Size;
}
fn max_width(prev_size: Size, view_size: Size) -> Size {
Size::new(
prev_size.width.max(view_size.width),
prev_size.height + view_size.height,
)
}
const fn cascading(prev_size: Size, view_size: Size) -> Size {
Size::new(
prev_size.width + view_size.width,
prev_size.height + view_size.height,
)
}
impl SecondaryAlignment for horizontal::Left {
type First = horizontal::Left;
#[inline]
fn measure(prev_size: Size, view_size: Size) -> Size {
max_width(prev_size, view_size)
}
}
impl SecondaryAlignment for horizontal::Center {
type First = horizontal::Center;
#[inline]
fn measure(prev_size: Size, view_size: Size) -> Size {
max_width(prev_size, view_size)
}
}
impl SecondaryAlignment for horizontal::Right {
type First = horizontal::Right;
#[inline]
fn measure(prev_size: Size, view_size: Size) -> Size {
max_width(prev_size, view_size)
}
}
impl SecondaryAlignment for horizontal::RightToLeft {
type First = horizontal::Right;
#[inline]
fn measure(prev_size: Size, view_size: Size) -> Size {
cascading(prev_size, view_size)
}
}
impl SecondaryAlignment for horizontal::LeftToRight {
type First = horizontal::Left;
#[inline]
fn measure(prev_size: Size, view_size: Size) -> Size {
cascading(prev_size, view_size)
}
}
fn max_height(prev_size: Size, view_size: Size) -> Size {
Size::new(
prev_size.width + view_size.width,
prev_size.height.max(view_size.height),
)
}
impl SecondaryAlignment for vertical::Top {
type First = vertical::Top;
#[inline]
fn measure(prev_size: Size, view_size: Size) -> Size {
max_height(prev_size, view_size)
}
}
impl SecondaryAlignment for vertical::Center {
type First = vertical::Center;
#[inline]
fn measure(prev_size: Size, view_size: Size) -> Size {
max_height(prev_size, view_size)
}
}
impl SecondaryAlignment for vertical::Bottom {
type First = vertical::Bottom;
#[inline]
fn measure(prev_size: Size, view_size: Size) -> Size {
max_height(prev_size, view_size)
}
}
impl SecondaryAlignment for vertical::TopToBottom {
type First = vertical::Top;
#[inline]
fn measure(prev_size: Size, view_size: Size) -> Size {
cascading(prev_size, view_size)
}
}
impl SecondaryAlignment for vertical::BottomToTop {
type First = vertical::Bottom;
#[inline]
fn measure(prev_size: Size, view_size: Size) -> Size {
cascading(prev_size, view_size)
}
}
| 25.940299 | 99 | 0.66542 |
175702d911079cd7b9c8194add27068c9a5854b0 | 1,431 | html | HTML | src/app/scheduler/scheduler.page.html | Aksoylu/Deskmate | 9741c35ec5b270a3e64918f34aac942e261f49e0 | [
"CC0-1.0"
] | null | null | null | src/app/scheduler/scheduler.page.html | Aksoylu/Deskmate | 9741c35ec5b270a3e64918f34aac942e261f49e0 | [
"CC0-1.0"
] | null | null | null | src/app/scheduler/scheduler.page.html | Aksoylu/Deskmate | 9741c35ec5b270a3e64918f34aac942e261f49e0 | [
"CC0-1.0"
] | null | null | null | <ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button (click)="back()" default-href="tabs" text="Geri" ></ion-back-button>
</ion-buttons>
<ion-title>{{taskname}}</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<center>
<p class='{{_event}}'> {{event}}</p>
<br>
<div (click)="timerEnable()">
<circle-progress
[percent]=" 100 -timePercent"
[radius]="100"
[outerStrokeWidth]="16"
[innerStrokeWidth]="8"
[outerStrokeColor]="'#78C000'"
[innerStrokeColor]="'#C7E596'"
[animation]="true"
[animationDuration]="300"
>
</circle-progress>
</div>
<ion-fab-button style="--background:#78C000" (click)="timerEnable()">
<ion-icon [name]="fabIcon"></ion-icon>
</ion-fab-button>
<p> {{ minuteLeft }} dakika {{ secondLeft }} saniye</p>
<!--
<ion-grid>
<ion-row>
<ion-col>
<div class="relax">
1 of 3
</div>
<br>
<div class="relax">
1 of 3
</div>
<br>
<div class="relax">
1 of 3
</div>
</ion-col>
<ion-col>
<div class="work ">
1 of 2
</div>
</ion-col>
</ion-row>
</ion-grid>
-->
<br>
<audio controls #audio style="visibility: hidden;">
<source src="../../assets/triangle.mp3" type="audio/mpeg">
</audio>
<!--
<ion-button class="specialbutton" (click)="exit()" shape="round">Çıkış</ion-button>
-->
</center>
</ion-content>
| 15.9 | 91 | 0.55276 |
fd07ad3ba931b253594d03ae05bcb63f4d581562 | 6,072 | swift | Swift | Pods/Nuke/Sources/ImagePreheater.swift | AyushKumar8286/SupplyApplyPod28 | 50ee44b743f3eab14eb4b8bad9da3f2ab3cb6a85 | [
"MIT"
] | 241 | 2020-07-15T04:59:13.000Z | 2022-03-29T11:58:42.000Z | Pods/Nuke/Sources/ImagePreheater.swift | AyushKumar8286/SupplyApplyPod28 | 50ee44b743f3eab14eb4b8bad9da3f2ab3cb6a85 | [
"MIT"
] | 21 | 2020-02-17T16:43:56.000Z | 2022-01-18T22:39:58.000Z | Pods/Nuke/Sources/ImagePreheater.swift | AyushKumar8286/SupplyApplyPod28 | 50ee44b743f3eab14eb4b8bad9da3f2ab3cb6a85 | [
"MIT"
] | 12 | 2020-07-20T14:41:56.000Z | 2022-02-04T15:20:31.000Z | // The MIT License (MIT)
//
// Copyright (c) 2015-2020 Alexander Grebenyuk (github.com/kean).
import Foundation
/// Prefetches and caches image in order to eliminate delays when you request
/// individual images later.
///
/// To start preheating call `startPreheating(with:)` method. When you
/// need an individual image just start loading an image using `Loading` object.
/// When preheating is no longer necessary call `stopPreheating(with:)` method.
///
/// All `Preheater` methods are thread-safe.
public final class ImagePreheater {
private let pipeline: ImagePipeline
private let queue = DispatchQueue(label: "com.github.kean.Nuke.Preheater", target: .global(qos: .userInitiated))
private let preheatQueue = OperationQueue()
private var tasks = [AnyHashable: Task]()
private let destination: Destination
/// Prefetching destination.
public enum Destination {
/// Prefetches the image and stores it both in memory and disk caches
/// (in case they are enabled, naturally, there is no reason to prefetch
/// unless they are).
case memoryCache
/// Prefetches image data and stores in disk cache. Will no decode
/// the image data and will therefore use less CPU.
case diskCache
}
/// Initializes the `Preheater` instance.
/// - parameter manager: `Loader.shared` by default.
/// - parameter `maxConcurrentRequestCount`: 2 by default.
/// - parameter destination: `.memoryCache` by default.
public init(pipeline: ImagePipeline = ImagePipeline.shared,
destination: Destination = .memoryCache,
maxConcurrentRequestCount: Int = 2) {
self.pipeline = pipeline
self.destination = destination
self.preheatQueue.maxConcurrentOperationCount = maxConcurrentRequestCount
}
/// Starte preheating images for the given urls.
/// - note: See `func startPreheating(with requests: [ImageRequest])` for more info
public func startPreheating(with urls: [URL]) {
startPreheating(with: _requests(for: urls))
}
/// Starts preheating images for the given requests.
///
/// When you call this method, `Preheater` starts to load and cache images
/// for the given requests. At any time afterward, you can create tasks
/// for individual images with equivalent requests.
public func startPreheating(with requests: [ImageRequest]) {
queue.async {
for request in requests {
self._startPreheating(with: request)
}
}
}
private func _startPreheating(with request: ImageRequest) {
let key = request.makeLoadKeyForProcessedImage()
guard tasks[key] == nil else {
return // Already started prefetching
}
guard pipeline.configuration.imageCache?.cachedResponse(for: request) == nil else {
return // The image is already in memory cache
}
let task = Task(request: request, key: key)
// Use `Operation` to limit maximum number of concurrent preheating jobs
let operation = Operation(starter: { [weak self, weak task] finish in
guard let self = self, let task = task else {
return finish()
}
self.queue.async {
self.loadImage(with: request, task: task, finish: finish)
}
})
preheatQueue.addOperation(operation)
tasks[key] = task
}
private func loadImage(with request: ImageRequest, task: Task, finish: @escaping () -> Void) {
guard !task.isCancelled else {
return finish()
}
let imageTask: ImageTask
switch destination {
case .diskCache:
imageTask = pipeline.loadData(with: request) { [weak self] _ in
self?._remove(task)
finish()
}
case .memoryCache:
imageTask = pipeline.loadImage(with: request) { [weak self] _ in
self?._remove(task)
finish()
}
}
task.onCancelled = {
imageTask.cancel()
finish()
}
}
private func _remove(_ task: Task) {
queue.async {
guard self.tasks[task.key] === task else {
return
}
self.tasks[task.key] = nil
}
}
/// Stops preheating images for the given urls.
public func stopPreheating(with urls: [URL]) {
stopPreheating(with: _requests(for: urls))
}
/// Stops preheating images for the given requests and cancels outstanding
/// requests.
///
/// - parameter destination: `.memoryCache` by default.
public func stopPreheating(with requests: [ImageRequest]) {
queue.async {
for request in requests {
self._stopPreheating(with: request)
}
}
}
private func _stopPreheating(with request: ImageRequest) {
if let task = tasks[request.makeLoadKeyForProcessedImage()] {
tasks[task.key] = nil
task.cancel()
}
}
/// Stops all preheating tasks.
public func stopPreheating() {
queue.async {
self.tasks.values.forEach { $0.cancel() }
self.tasks.removeAll()
}
}
private func _requests(for urls: [URL]) -> [ImageRequest] {
return urls.map {
var request = ImageRequest(url: $0)
request.priority = .low
return request
}
}
private final class Task {
let key: AnyHashable
let request: ImageRequest
var isCancelled = false
var onCancelled: (() -> Void)?
weak var operation: Operation?
init(request: ImageRequest, key: AnyHashable) {
self.request = request
self.key = key
}
func cancel() {
guard !isCancelled else { return }
isCancelled = true
operation?.cancel()
onCancelled?()
}
}
}
| 33 | 116 | 0.599473 |
2a4f168eb5330060d96f18e9d5b3812d4919ee1e | 9,990 | java | Java | src/main/java/com/alexrnl/commons/utils/StringUtils.java | AlexRNL/Commons | e65e42f3649d6381a6f644beb03304c2ae4ad524 | [
"BSD-3-Clause"
] | 1 | 2015-04-03T00:25:56.000Z | 2015-04-03T00:25:56.000Z | src/main/java/com/alexrnl/commons/utils/StringUtils.java | AlexRNL/Commons | e65e42f3649d6381a6f644beb03304c2ae4ad524 | [
"BSD-3-Clause"
] | null | null | null | src/main/java/com/alexrnl/commons/utils/StringUtils.java | AlexRNL/Commons | e65e42f3649d6381a6f644beb03304c2ae4ad524 | [
"BSD-3-Clause"
] | 2 | 2015-04-03T00:25:58.000Z | 2019-04-23T03:47:15.000Z | package com.alexrnl.commons.utils;
import java.nio.charset.Charset;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.text.html.HTML.Tag;
import com.alexrnl.commons.error.ExceptionUtils;
import com.alexrnl.commons.error.TopLevelError;
/**
* Utility methods for {@link String}.<br />
* @author Alex
*/
public final class StringUtils {
/** Logger */
private static final Logger LG = Logger.getLogger(StringUtils.class.getName());
/** The HTML tag for a new HTML document */
public static final String HTML_HTML_START = "<" + Tag.HTML + ">";
/** The HTML tag for the end of an HTML document */
public static final String HTML_HTML_END = "</" + Tag.HTML + ">";
/** The HTML tag for new line */
public static final String HTML_NEW_LINE = "<" + Tag.BR + " />";
/** The new line (line feed) character */
public static final Character NEW_LINE = '\n';
/** The new line (carriage return) character */
public static final Character NEW_LINE_CR = '\r';
/** The space character */
public static final Character SPACE = ' ';
/** The name of the MD5 algorithm */
private static final String MD5_ALGORITHM_NAME = "MD5";
/** The MD5 message digest algorithm */
private static final MessageDigest MD5_MESSAGE_DIGEST;
/** The name of the SHA-1 algorithm */
private static final String SHA1_ALGORITHM_NAME = "SHA-1";
/** The SHA-1 message digest algorithm */
private static final MessageDigest SHA1_MESSAGE_DIGEST;
/**
* Load the message digest algorithm
*/
static {
try {
MD5_MESSAGE_DIGEST = MessageDigest.getInstance(MD5_ALGORITHM_NAME);
SHA1_MESSAGE_DIGEST = MessageDigest.getInstance(SHA1_ALGORITHM_NAME);
} catch (final NoSuchAlgorithmException e) {
LG.severe("Message digest algorithm not found: "
+ ExceptionUtils.display(e));
throw new TopLevelError(e);
}
}
/**
* Constructor #1.<br />
* Default private constructor.
*/
private StringUtils () {
super();
throw new InstantiationError("Instantiation of class " + StringUtils.class + " is forbidden");
}
/**
* Check if the character is a new line (CR or LF).
* @param c the character to test.
* @return <code>true</code> if the character is a new line.
*/
public static boolean isNewLine (final char c) {
return c == NEW_LINE || c == NEW_LINE_CR;
}
/**
* Check if the string specified is <code>null</code> or empty.
* @param s
* the string to check.
* @return <code>true</code> if the string is <code>null</code> or empty.
*/
public static boolean nullOrEmpty (final String s) {
return s == null || s.isEmpty();
}
/**
* Check if the string specified is neither <code>null</code> nor empty.
* @param s
* the string to check.
* @return <code>true</code> if the string is neither <code>null</code> nor empty.
*/
public static boolean neitherNullNorEmpty (final String s) {
return s != null && !s.isEmpty();
}
/**
* Return the string specified, or its replacement if it is <code>null</code>.
* @param s
* the string to return.
* @param replace
* its replacement, is the first string is <code>null</code>.
* @return <code>s</code>, or <code>replace</code> if <code>s</code> is <code>null</code>.
*/
public static String replaceIfNull (final String s, final String replace) {
return s == null ? replace : s;
}
/**
* Return the string specified, or an empty {@link String}, if it is <code>null</code>.
* @param s
* the string to return.
* @return an empty String if the parameter is <code>null</code>, else the string.
*/
public static String emptyIfNull (final String s) {
return replaceIfNull(s, "");
}
/**
* Separate a list of objects with a given separator.<br />
* @param separator
* the separator.
* @param s
* the objects to display.
* @return the objects separated by the separator specified.
*/
public static String separateWith (final String separator, final Object... s) {
return separateWith(separator, Arrays.asList(s));
}
/**
* Separate a collection of objects with a given separator.<br />
* @param separator
* the separator.
* @param s
* the objects to display.
* @return the objects separated by the separator specified.
*/
public static String separateWith (final String separator, final Iterable<?> s) {
final StringBuilder builder = new StringBuilder();
for (final Object object : s) {
builder.append(object).append(separator);
}
return builder.substring(0, builder.length() - separator.length());
}
/**
* Computes the MD5 of a string.<br />
* Uses the JVM's default charset.
* @param text
* the text to hash.
* @return the MD5 hash of the text.
*/
public static String getMD5 (final String text) {
return getMD5(text, Charset.defaultCharset());
}
/**
* Computes the MD5 of a string.
* @param text
* the text to hash.
* @param charset the charset.
* @return the hash of the text.
*/
public static String getMD5 (final String text, final Charset charset) {
return getHash(text, charset, MD5_MESSAGE_DIGEST);
}
/**
* Computes the SHA-1 of a string.<br />
* Uses the JVM's default charset.
* @param text
* the text to hash.
* @return the hash of the text.
*/
public static String getSHA1 (final String text) {
return getSHA1(text, Charset.defaultCharset());
}
/**
* Computes the SHA-1 of a string.
* @param text
* the text to hash.
* @param charset
* the charset of the text.
* @return the hash of the text.
*/
public static String getSHA1 (final String text, final Charset charset) {
return getHash(text, charset, SHA1_MESSAGE_DIGEST);
}
/**
* Computes the hash of a given text.<br />
* @param text
* the text to hash.
* @param charset
* the charset of the text.
* @param algorithm
* the algorithm to use for the hash.
* @return the hash of the text.
*/
public static String getHash (final String text, final Charset charset, final MessageDigest algorithm) {
final StringBuilder buffer = new StringBuilder();
algorithm.reset();
algorithm.update(text.getBytes(charset));
final byte[] digest = algorithm.digest();
for (final byte element : digest) {
int value = element;
if (value < 0) {
value += Byte.MAX_VALUE - Byte.MIN_VALUE + 1;
}
// Add a zero in case of 'short' hash.
final String hex = Integer.toHexString(value);
if (hex.length() == 1) {
buffer.append(0);
}
buffer.append(hex);
}
return buffer.toString();
}
/**
* Remove the multiple spaces which compose a String.<br />
* @param input
* the String to clean-up.
* @return the input, with only single spaces.
*/
public static String removeMultipleSpaces (final String input) {
Objects.requireNonNull(input, "Cannot work on null input String");
// If the string has only spaces
if (input.trim().isEmpty()) {
return input.trim();
}
// Other cases
final StringBuilder result = new StringBuilder();
for (final String part : input.split(SPACE.toString())) {
if (!part.isEmpty()) {
result.append(part).append(SPACE);
}
}
return result.substring(0, result.length() - 1);
}
/**
* Cut a {@link String} in multiple line, so they don't exceed a specified length.<br />
* @param input
* the input string to be cut.
* @param maxLength
* the maximum length allowed.
* @return the string divided in several lines.
*/
public static String splitInLines (final String input, final int maxLength) {
Objects.requireNonNull(input, "Cannot work on null input String");
if (maxLength < 1) {
LG.warning("Cannot split line with maxLength=" + maxLength);
throw new IllegalArgumentException("maxLength for spliting in line cannot be less than 1 (was " + maxLength + ")");
}
// If input is shorter than the limit
if (input.trim().length() < maxLength) {
return input.trim();
}
// Other cases
final StringBuilder result = new StringBuilder();
String remaining = removeMultipleSpaces(input);
while (remaining.length() > maxLength) {
String nextLine = remaining.substring(0, maxLength);
if (LG.isLoggable(Level.FINE)) {
LG.fine("Next characters to split '" + nextLine + "'");
}
final int lastSpace = nextLine.lastIndexOf(SPACE);
if (lastSpace > 0) {
nextLine = nextLine.substring(0, lastSpace);
} else {
LG.warning("No space in line '" + nextLine + "' cannot properly split String.");
}
if (LG.isLoggable(Level.FINE)) {
LG.fine("Next line is '" + nextLine + "'");
}
result.append(nextLine).append(NEW_LINE);
remaining = remaining.substring(nextLine.length()).trim();
}
result.append(remaining);
return result.toString();
}
/**
* Cut a {@link String} in multiple line, so they don't exceed a certain length.<br />
* @param input
* the input string to be cut.
* @param maxLength
* the maximum length allowed.
* @return the content spread on several lines (using <code><br /></code>) and between
* <code><html></code> tags.
* @see #splitInLines(String, int)
*/
public static String splitInLinesHTML (final String input, final int maxLength) {
return (HTML_HTML_START + splitInLines(input, maxLength) + HTML_HTML_END).replace(String.valueOf(NEW_LINE), HTML_NEW_LINE);
}
/**
* Build a list with the characters of the string.<br />
* @param s
* the string to parse.
* @return the list with the characters of the string.
*/
public static List<Character> toCharList (final String s) {
final List<Character> charList = new ArrayList<>();
for (final char c : s.toCharArray()) {
charList.add(c);
}
return charList;
}
} | 31.024845 | 125 | 0.664965 |
f9f63e65e35dee5482da6989921d792d782b07a6 | 45 | sql | SQL | microservicio/infraestructura/src/main/resources/sql/glamping/obtenerPorId.sql | SebastianGironArcila/ADN_backend_glamping | 6906b4fc2e8ac87fc597bdf2000eff3ce937c74b | [
"Apache-2.0"
] | null | null | null | microservicio/infraestructura/src/main/resources/sql/glamping/obtenerPorId.sql | SebastianGironArcila/ADN_backend_glamping | 6906b4fc2e8ac87fc597bdf2000eff3ce937c74b | [
"Apache-2.0"
] | null | null | null | microservicio/infraestructura/src/main/resources/sql/glamping/obtenerPorId.sql | SebastianGironArcila/ADN_backend_glamping | 6906b4fc2e8ac87fc597bdf2000eff3ce937c74b | [
"Apache-2.0"
] | null | null | null | select *
from glamping
where id = :idGlamping | 15 | 22 | 0.777778 |
01d096efa0c1de7119e5be24700263dafb51798e | 444 | kt | Kotlin | app/src/main/java/com/example/facedetection/utils/Constants.kt | alekseytimoshchenko/FaceDetection | c1408b57d261715f81c76f5ac22c09472eb8a529 | [
"WTFPL"
] | null | null | null | app/src/main/java/com/example/facedetection/utils/Constants.kt | alekseytimoshchenko/FaceDetection | c1408b57d261715f81c76f5ac22c09472eb8a529 | [
"WTFPL"
] | null | null | null | app/src/main/java/com/example/facedetection/utils/Constants.kt | alekseytimoshchenko/FaceDetection | c1408b57d261715f81c76f5ac22c09472eb8a529 | [
"WTFPL"
] | null | null | null | package com.example.facedetection.utils
class Constants {
companion object {
const val REQUEST_READ_EXTERNAL_STORAGE = 123
const val GRID_COLUMNS = 3
const val CAMERA_APPENDIX = "/Camera"
const val DB_NAME = "face_detection_db"
const val JPG = ".jpg"
const val PNG = ".png"
const val NOTIFICATION_CHANEL = "my_notification_chanel"
const val STATIC_NOTIFICATION_ID = 1
}
} | 31.714286 | 64 | 0.662162 |
62838bc37fdeb3c744e6a8477960494bb0538aa4 | 646 | rs | Rust | fruity_platform/pc_mac/fruity_wgpu_graphic/src/lib.rs | DoYouRockBaby/fruity_game_engine | 299a8fe641efb142a551640f6d1aa4868e1ad670 | [
"MIT"
] | null | null | null | fruity_platform/pc_mac/fruity_wgpu_graphic/src/lib.rs | DoYouRockBaby/fruity_game_engine | 299a8fe641efb142a551640f6d1aa4868e1ad670 | [
"MIT"
] | null | null | null | fruity_platform/pc_mac/fruity_wgpu_graphic/src/lib.rs | DoYouRockBaby/fruity_game_engine | 299a8fe641efb142a551640f6d1aa4868e1ad670 | [
"MIT"
] | null | null | null | use crate::graphic_service::WgpuGraphicService;
use fruity_core::resource::resource_container::ResourceContainer;
use fruity_core::settings::Settings;
use fruity_graphic::graphic_service::GraphicService;
use std::sync::Arc;
pub mod graphic_service;
pub mod resources;
pub mod wgpu_bridge;
/// The module name
pub static MODULE_NAME: &str = "fruity_wgpu_graphic";
// #[no_mangle]
pub fn initialize(resource_container: Arc<ResourceContainer>, _settings: &Settings) {
let graphic_service = WgpuGraphicService::new(resource_container.clone());
resource_container.add::<dyn GraphicService>("graphic_service", Box::new(graphic_service));
}
| 32.3 | 95 | 0.789474 |
26434870e6da364c96e1ac8bb9230d91099dd433 | 259 | java | Java | app/src/main/java/ar/com/wolox/android/example/ui/session/SessionModule.java | wolox-training/rt-android | fbe1ceb52fbad9f38b693b4bc9ba464d30196bb8 | [
"MIT"
] | null | null | null | app/src/main/java/ar/com/wolox/android/example/ui/session/SessionModule.java | wolox-training/rt-android | fbe1ceb52fbad9f38b693b4bc9ba464d30196bb8 | [
"MIT"
] | null | null | null | app/src/main/java/ar/com/wolox/android/example/ui/session/SessionModule.java | wolox-training/rt-android | fbe1ceb52fbad9f38b693b4bc9ba464d30196bb8 | [
"MIT"
] | null | null | null | package ar.com.wolox.android.example.ui.session;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
@Module
public abstract class SessionModule {
@ContributesAndroidInjector
public abstract SessionActivity sessionActivity();
}
| 21.583333 | 54 | 0.814672 |
892250b2e5d4bbe7693c02ff11f3b0ead7bf1e4e | 398 | kt | Kotlin | app/src/main/kotlin/com/github/starter/core/exception/StatusCodes.kt | skhatri/microservices-starter-kotlin | 3e2728a126b136c24cbb2277df9cbf928b341aff | [
"Apache-2.0"
] | 7 | 2020-04-05T15:07:45.000Z | 2022-03-14T12:24:07.000Z | app/src/main/kotlin/com/github/starter/core/exception/StatusCodes.kt | skhatri/microservices-starter-kotlin | 3e2728a126b136c24cbb2277df9cbf928b341aff | [
"Apache-2.0"
] | 1 | 2020-04-07T03:07:08.000Z | 2020-04-07T03:07:08.000Z | app/src/main/kotlin/com/github/starter/core/exception/StatusCodes.kt | skhatri/microservices-starter-kotlin | 3e2728a126b136c24cbb2277df9cbf928b341aff | [
"Apache-2.0"
] | 3 | 2020-04-03T12:30:57.000Z | 2020-08-05T08:56:11.000Z | package com.github.starter.core.exception;
enum class StatusCodes(val code: Int) {
OK(200), BAD_REQUEST(400), NOT_FOUND(404), UNAUTHORIZED(401), FORBIDDEN(403), INTERNAL_SERVER_ERROR(500);
companion object {
fun fromValue(value: Int): StatusCodes {
return StatusCodes.values().find { statusCode -> statusCode.code == value } ?: INTERNAL_SERVER_ERROR
}
}
}
| 33.166667 | 112 | 0.680905 |
b67c2d4d755559ffa7d7729b6082fa4cd5311c02 | 197 | rb | Ruby | test/models/long_task_test.rb | santi-git/todoist | 6ae3e7eadf670524d26cfff457ca2fceca9ae1c8 | [
"MIT"
] | 1 | 2018-11-14T15:01:24.000Z | 2018-11-14T15:01:24.000Z | test/models/long_task_test.rb | santi-git/todoist | 6ae3e7eadf670524d26cfff457ca2fceca9ae1c8 | [
"MIT"
] | null | null | null | test/models/long_task_test.rb | santi-git/todoist | 6ae3e7eadf670524d26cfff457ca2fceca9ae1c8 | [
"MIT"
] | null | null | null | require 'test_helper'
class LongTaskTest < ActiveSupport::TestCase
test "progress must be between 1 and 100" do
task = LongTask.new
task.progress = 200
refute task.save
end
end
| 17.909091 | 47 | 0.71066 |
e514c4060ba5cd08ea121b0c8c25750591da23d9 | 928 | ts | TypeScript | src/app/core/resolvers/user-details.resolver.ts | PWrGitHub194238/Chemistry-Home-Office | e8a630f43ca864596b761aeba240720edcb3ba20 | [
"MIT"
] | 1 | 2020-04-13T14:08:38.000Z | 2020-04-13T14:08:38.000Z | src/app/core/resolvers/user-details.resolver.ts | PWrGitHub194238/Chemistry-Home-Office | e8a630f43ca864596b761aeba240720edcb3ba20 | [
"MIT"
] | 1 | 2022-03-02T07:56:38.000Z | 2022-03-02T07:56:38.000Z | src/app/core/resolvers/user-details.resolver.ts | PWrGitHub194238/Chemistry-Home-Office | e8a630f43ca864596b761aeba240720edcb3ba20 | [
"MIT"
] | null | null | null | import { Injectable } from "@angular/core";
import { UntilDestroy, untilDestroyed } from "@ngneat/until-destroy";
import { Observable, of } from "rxjs";
import { UserDetailsDictEntry } from "../models";
import { AuthService } from "../services/auth.service";
import { FirestoreDocumentService } from "../services/firestore-document.service";
@UntilDestroy()
@Injectable({
providedIn: "root"
})
export class UserDetailsResolver {
constructor(
private authService: AuthService,
private firestoreDocumentService: FirestoreDocumentService
) {}
resolve(): Observable<UserDetailsDictEntry | null> {
if (this.authService.user && this.authService.user.details) {
return of(this.authService.user.details);
}
if (this.authService.user) {
this.firestoreDocumentService
.getUserDetails$(this.authService.user.auth.uid)
.pipe(untilDestroyed(this));
}
return of(null);
}
}
| 29.935484 | 82 | 0.710129 |
969f37981ad3d209afd4d4cbd7cbd4ec20de681f | 25,923 | html | HTML | index.html | xistingsherman/RBAC-Swim-Lessons-Survey | c803473feaf37b5f60375d2d1b9cc9aed19805d6 | [
"MIT"
] | null | null | null | index.html | xistingsherman/RBAC-Swim-Lessons-Survey | c803473feaf37b5f60375d2d1b9cc9aed19805d6 | [
"MIT"
] | null | null | null | index.html | xistingsherman/RBAC-Swim-Lessons-Survey | c803473feaf37b5f60375d2d1b9cc9aed19805d6 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans" />
</head>
<body>
<div id="wrapper">
<img id="logo" src="logo.jpg">
<br />
<h1> Which class should you enroll in?</h1>
<div class="questions">
<p>Welcome back to the Swim Lesson Program at the RBAC! We are excited to get back in the water and teach the community a balance between learning how to swim and having fun. The water is a great equalizer amongst our diverse community and we want everyone to be able to enjoy the water safely. It is our mission to make sure that every person is water safe. Quality swim lessons save lives.<br/> <br/><b>Take this questionnaire to find out which class to sign up for!</b></p>
<h2>What is the Swimmer's name?</h2>
<form>
<label for="fname">First name:</label>
<input type="text" name="fname" id="fname" onchange="updateName()"/><br/>
</form>
</div>
<div class="questions"> <h2>How old is <label for="firstname"
id="firstname0"></label>?</h2> <form> <label><input type="radio" name="q1"
value="parentInfant" required> 6 months-3 years </label><br /> <label><input
type="radio" name="q1" value="preschool" required> 3 years-6 years
</label><br /> <label><input type="radio" name="q1" value="schoolAge"
required> 6 years-13 years </label><br /> <label><input type="radio"
name="q1" value="juniorAdult"required> 13 years-17 years </label><br />
<label><input type="radio" name="q1" value="adult" required> 18 years or
older Vqasw </form> </div> <br />
<div class="questions">
<h2>Is <label for="firstname" id="firstname1"></label> older than 6 months?</h2>
<form>
<label><input type="radio" name="q2" value="yes">
Yes
</label><br />
<label><input type="radio" name="q2" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname2"></label> hold their head up on their own?</h2>
<form>
<label><input type="radio" name="q3" value="yes">
Yes
</label><br />
<label><input type="radio" name="q3" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Is <label for="firstname" id="firstname3"></label> comfortable putting their face in the water on their own?</h2>
<form>
<label><input type="radio" name="q4" value="yes">
Yes
</label><br />
<label><input type="radio" name="q4" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname4"></label> blow bubbles voluntarily?</h2>
<form>
<label><input type="radio" name="q5" value="yes">
Yes
</label><br />
<label><input type="radio" name="q5" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Is <label for="firstname" id="firstname5"></label> older than 18 months?</h2>
<form>
<label><input type="radio" name="q6" value="yes">
Yes
</label><br />
<label><input type="radio" name="q6" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Does <label for="firstname" id="firstname6"></label> show signs of wanting to swim out of your hands when in the water?</h2>
<form>
<label><input type="radio" name="q7" value="yes">
Yes
</label><br />
<label><input type="radio" name="q7" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Is <label for="firstname" id="firstname7"></label> fearful of water?</h2>
<form>
<label><input type="radio" name="q8" value="yes">
Yes
</label><br />
<label><input type="radio" name="q8" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Is <label for="firstname" id="firstname8"></label> able to float on their belly unassisted</h2>
<form>
<label><input type="radio" name="q9" value="yes">
Yes
</label><br />
<label><input type="radio" name="q9" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Is <label for="firstname" id="firstname9"></label> able to do a front glide for 5 ft?</h2>
<form>
<label><input type="radio" name="q10" value="yes">
Yes
</label><br />
<label><input type="radio" name="q10" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Is <label for="firstname" id="firstname10"></label> able to swim 5-10 ft unassisted and take one breath, then continue to swim?</h2>
<form>
<label><input type="radio" name="q11" value="yes">
Yes
</label><br />
<label><input type="radio" name="q11" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname11"></label> swim 15 feet unassisted with multiple breaths?</h2>
<form>
<label><input type="radio" name="q12" value="yes">
Yes
</label><br />
<label><input type="radio" name="q12" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname12"></label> comfortably swim 20 – 25 feet unassisted with multiple breaths?</h2>
<form>
<label><input type="radio" name="q13" value="yes">
Yes
</label><br />
<label><input type="radio" name="q13" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname13"></label> swim 25 yards of Freestyle and Backstroke correctly, comfortably, and without assistance?</h2>
<form>
<label><input type="radio" name="q14" value="yes">
Yes
</label><br />
<label><input type="radio" name="q14" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname14"></label> swim Elementary Backstroke comfortably?</h2>
<form>
<label><input type="radio" name="q15" value="yes">
Yes
</label><br />
<label><input type="radio" name="q15" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname15"></label> retrieve an object from a 5 foot depth without assistance?</h2>
<form>
<label><input type="radio" name="q16" value="yes">
Yes
</label><br />
<label><input type="radio" name="q16" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname16"></label> swim 50 yards of Freestyle and Backstroke?</h2>
<form>
<label><input type="radio" name="q17" value="yes">
Yes
</label><br />
<label><input type="radio" name="q17" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname17"></label> swim 25 yards of Breaststroke?</h2>
<form>
<label><input type="radio" name="q18" value="yes">
Yes
</label><br />
<label><input type="radio" name="q18" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Is <label for="firstname" id="firstname18"></label> familiar with the butterfly kick?</h2>
<form>
<label><input type="radio" name="q19" value="yes">
Yes
</label><br />
<label><input type="radio" name="q19" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname19"></label> tread water using an egg beater kick?</h2>
<form>
<label><input type="radio" name="q20" value="yes">
Yes
</label><br />
<label><input type="radio" name="q20" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Is <label for="firstname" id="firstname20"></label> comfortable submerging their face in the water?</h2>
<form>
<label><input type="radio" name="q21" value="yes">
Yes
</label><br />
<label><input type="radio" name="q21" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Is <label for="firstname" id="firstname21"></label> able to float on their belly unassisted?</h2>
<form>
<label><input type="radio" name="q22" value="yes">
Yes
</label><br />
<label><input type="radio" name="q22" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Is <label for="firstname" id="firstname22"></label> able to do a front glide for 5 feet?</h2>
<form>
<label><input type="radio" name="q23" value="yes">
Yes
</label><br />
<label><input type="radio" name="q23" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname23"></label> comfortably swim 20 feet unassisted with multiple breaths?</h2>
<form>
<label><input type="radio" name="q24" value="yes">
Yes
</label><br />
<label><input type="radio" name="q24" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname25"></label> do a back glide?</h2>
<form>
<label><input type="radio" name="q25" value="yes">
Yes
</label><br />
<label><input type="radio" name="q25" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname26"></label> tread water?</h2>
<form>
<label><input type="radio" name="q26" value="yes">
Yes
</label><br />
<label><input type="radio" name="q26" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname27"></label> swim 30 feet using the ½ noodle doing rainbow arms?</h2>
<form>
<label><input type="radio" name="q27" value="yes">
Yes
</label><br />
<label><input type="radio" name="q27" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname28"></label> kick on their back using a kickboard or noodle for 30 feet?</h2>
<form>
<label><input type="radio" name="q28" value="yes">
Yes
</label><br />
<label><input type="radio" name="q28" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname29"></label> swim 50 yards of Freestyle?</h2>
<form>
<label><input type="radio" name="q29" value="yes">
Yes
</label><br />
<label><input type="radio" name="q29" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname30"></label> swim 50 yards of Backstroke?</h2>
<form>
<label><input type="radio" name="q30" value="yes">
Yes
</label><br />
<label><input type="radio" name="q30" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname31"></label> swim 25 yards of Elementary Backstroke?</h2>
<form>
<label><input type="radio" name="q31" value="yes">
Yes
</label><br />
<label><input type="radio" name="q31" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname32"></label> swim 100 yards of Freestyle?</h2>
<form>
<label><input type="radio" name="q32" value="yes">
Yes
</label><br />
<label><input type="radio" name="q32" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname33"></label> backstroke with proper form?</h2>
<form>
<label><input type="radio" name="q33" value="yes">
Yes
</label><br />
<label><input type="radio" name="q33" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname34"></label> swim 50 yards of Breaststroke?</h2>
<form>
<label><input type="radio" name="q34" value="yes">
Yes
</label><br />
<label><input type="radio" name="q34" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Can <label for="firstname" id="firstname35"></label> swim all 4 competitive strokes with proper form and efficient technique?</h2>
<form>
<label><input type="radio" name="q35" value="yes">
Yes
</label><br />
<label><input type="radio" name="q35" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Is <label for="firstname" id="firstname36"></label> proficient with deep water and distance swimming?</h2>
<form>
<label><input type="radio" name="q36" value="yes">
Yes
</label><br />
<label><input type="radio" name="q36" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Are you fearful of the water or inexperienced?</h2>
<form>
<label><input type="radio" name="q37" value="yes">
Yes
</label><br />
<label><input type="radio" name="q37" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Are you able to float on your back while kicking?</h2>
<form>
<label><input type="radio" name="q38" value="yes">
Yes
</label><br />
<label><input type="radio" name="q38" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Are you comfortable standing in a depth where you are not able to stand on the pool floor?</h2>
<form>
<label><input type="radio" name="q39" value="yes">
Yes
</label><br />
<label><input type="radio" name="q39" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Are you interested in training for a triathlon?</h2>
<form>
<label><input type="radio" name="q40" value="yes">
Yes
</label><br />
<label><input type="radio" name="q40" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Have you done a triathlon before?</h2>
<form>
<label><input type="radio" name="q41" value="yes">
Yes
</label><br />
<label><input type="radio" name="q41" value="no">
No
</label><br />
</form>
</div>
<div class="questions">
<h2>Cannot take classes yet.</h2>
<p>For safety reasons, we currently do not offer classes for infants that are under 6 months old or cannot hold their head up on their own.</p>
</div>
<div class="questions">
<h2>Parent Infant Beginner – Rubber Ducky</h2>
<p>This level is a priceless parent infant bonding class that allows children to be stimulated in a new environment and eventually feel comfortable being in the water. Parents will learn to interact with their child safely in the water.</p>
</div>
<div class="questions">
<h2>Parent Infant Intermediate – Baby Beluga</h2>
<p>This level is a priceless parent infant bonding class, in which the infant already feels comfortable in the water. Parents will be encouraged to allow their infants to voluntarily put their face in the water and blow bubbles. An instructor will facilitate group activities that promote safe water exploration for infants.</p>
</div>
<div class="questions">
<h2>Parent Preschool – Sea Otters</h2>
<p>This level is designed for avid toddlers that want to explore the water more freely while still having their parents by their side. They will be introduced to important swimming and survival skills. Depending on how receptive the toddler is, they may even begin to swim short distances on their own.</p>
</div>
<div class="questions">
<h2>Preschool 1 Beginner – Pufferfish</h2>
<p>This level is designed to introduce the inexperienced or fearful child to the water.</p>
</div>
<div class="questions">
<h2>Preschool 1 – Starfish </h2>
<p>This level is designed to help students feel comfortable in the water and to enjoy the water safely. Children will learn how to enter and exit the pool, hold their breath, blow bubbles, and put their face in the water. They will also learn to float on their belly, back and learn a front glide.</p>
</div>
<div class="questions">
<h2>Preschool 2 – Seahorse</h2>
<p>This level introduces true locomotion skills. Children expand on their front glides to learn how to travel through the water without support. Breath control is introduced and taking a voluntary breath is practiced until mastered.</p>
</div>
<div class="questions">
<h2>Preschool 3 – Clownfish</h2>
<p>The objective of this level is to increase confidence and water independence. Children will learn to come up for a breath independently and rhythmically. They will become comfortable with distance and deep water swimming. Change of direction is mastered and diving to the bottom of the shallow pool to retrieve an object is introduced. Children also learn how to enter and exit from the side of the pool deck.</p>
</div>
<div class="questions">
<h2>Preschool 3 Endurance – Penguin</h2>
<p>The objective of this level is to develop the endurance necessary for Preschool 4. Children will practice swimming 20-25 feet with multiple breaths. Children will be introduced to side breathing with assistance, rainbow arms with assistance, and kicking on their back with assistance.</p>
</div>
<div class="questions">
<h2>Preschool 4 – Spotted Seal </h2>
<p>This level is introduces the three strokes – Freestyle, Elementary Backstroke, and Backstroke. Treading water, recovery to a swimming position, and change of direction is mastered.</p>
</div>
<div class="questions">
<h2>Preschool 5 – Dolphin </h2>
<p>The level refines the Freestyle and Backstroke technique. Endurance will increase as swimmers practice strokes in 50 yard increments. Breaststroke dolphin kicks, and treading water with an egg beater kick are introduced.</p>
</div>
<div class="questions">
<h2>Preschool 6 – Hammerhead Shark</h2>
<p>The objective of this level is to prepare students to join a formal swim team. The four competitive strokes are mastered: Freestyle, Backstroke, Breaststroke, and Butterfly. Swim team prep such as racing starts, racing dives, and flip turns, will be covered.</p>
</div>
<div class="questions">
<h2>School Age 1 – Turtle</h2>
<p>The objective of this level is to help students feel comfortable in the water and to enjoy the water safely. Children will learn how to enter and exit the pool safely, hold their breath, blow bubbles, and put their face in the water. They will learn how to float on their belly, float on their back, and how to do a front glide.</p>
</div>
<div class="questions">
<h2>School Age 2 – Octopus</h2>
<p>The objective of this level is to introduce true locomotion skills. Since children already know how to glide, they can now travel through the water with the use of their arms and legs. They will learn how to flutter kick and swim with a basic paddle stroke. They will master floating on their belly and their back. They will continue to work on their front glide and will be taught how to back glide. They will practice treading water. Breath control and taking a voluntary breath is practiced until mastered.</p>
</div>
<div class="questions">
<h2>School Age 3 – Manta Ray</h2>
<p>The objective of this level is to increase confidence and water independence. Change of direction and diving to the bottom of the shallow pool to retrieve an object is mastered. Students are introduced to aspects of Freestyle and Backstroke. Treading water, recovery to a swimming position, and change of direction are mastered. Water safety is achieved!</p>
</div>
<div class="questions">
<h2>School Age 3 Endurance – Polar Bear</h2>
<p>The objective of this level is to develop the endurance necessary for School Age 4. Students will be taught to swim Freestyle and Backstroke without assistance. They will learn how to circle swim, and how to swim with fins. They will be taught a safety stroke (Elementary Backstroke) for in the event that they are too tired to finish the lap.</p>
</div>
<div class="questions">
<h2>School Age 4 – Crocodile</h2>
<p>The objective of this level is to allow students to develop their natural rhythm when swimming Freestyle and Backstroke. They will become comfortable with distance and deep water swimming. Students will be taught a new stroke: Breaststroke.</p>
</div>
<div class="questions">
<h2>School Age 5 – Killer Whale</h2>
<p>The objective of this level is to learn 2 new strokes: Sidestroke and Butterfly. Endurance and stamina will continue to increase as students practice swimming 100+ yards of each stroke. Treading water with an egg beater kick will be taught.</p>
</div>
<div class="questions">
<h2>School Age 6 – Great White Shark </h2>
<p>The objective of this level is to prepare students for a formal swim team. The four competitive strokes are mastered: Freestyle, Backstroke, Breaststroke, and Butterfly. Swim team prep such as racing starts, racing dives, and flip turns will be covered.</p>
</div>
<div class="questions">
<h2>Junior Adult Swim Lessons</h2>
<p>Whether a complete beginner or an experienced swimmer, this class allows teens to comfortably learn how to swim amongst their peers. As they build their confidence, they will master breath control, learn how to float, kick with proper form, and will eventually be taught true strokes.</p>
</div>
<div class="questions">
<h2>Adult – Beginner</h2>
<p>This class is designed to introduce the fearful or inexperienced adult to the water. Adults will learn how to relax and feel comfortable in the water. Once a certain level of comfort is achieved adults will be taught breath control, how to float on their belly and back, glide, and then progress to a basic paddle stroke. Freestyle will be taught and practiced until mastered. Adults will also learn to float on their back while kicking.</p>
</div>
<div class="questions">
<h2>Adult – Intermediate/ Advanced</h2>
<p>This course covers refining Freestyle and increasing one’s endurance from 150 yards to 400+ yards of Freestyle. Adults will be taught a progression of new strokes: Backstroke, Breaststroke, and Butterfly. Adults will begin to develop more strength and power as they swim. Once the class starts swimming sets, they will learn open turns and flip turns. Water safety is achieved!</p>
</div>
<div class="questions">
<h2>Triathlon Training – Beginner</h2>
<p>When training for the swimming portion of a triathlon, it is important to first feel comfortable in the water. This class will not only teach you how to feel comfortable, but will provide you with enough stroke proficiency to complete any desired distance. Typically, adults are most efficient when swimming Freestyle, so that stroke will be emphasized throughout the course of the class.</p>
</div>
<div class="questions">
<h2>Triathlon Training – Intermediate/Advanced</h2>
<p>This course is designed to provide Triathletes with an experienced coach while they train for their next Triathlon. Long distance swimming will be emphasized while the instructor breaks down everyone’s stroke so that they swim as efficiently as possible.</p>
</div>
<input type="button" id='next' value="Next" onclick="next()">
<br /><br/>
<div id="answer">Your result will show up here!</div>
<br />
<input type="button" id='reset' value="Reset" onclick="reset()">
<br />
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>
| 40.695447 | 524 | 0.604444 |
84b59f2300eb3e1adfbd408cf9cf80a02be1edf3 | 362 | c | C | orte/mca/rml/oob/rml_oob_ping.c | urids/XSCALAMPI | 38624f682211d55c047183637fed8dbcc09f6d74 | [
"BSD-3-Clause-Open-MPI"
] | 1 | 2019-02-25T19:56:36.000Z | 2019-02-25T19:56:36.000Z | orte/mca/rml/oob/rml_oob_ping.c | urids/XSCALAMPI | 38624f682211d55c047183637fed8dbcc09f6d74 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | orte/mca/rml/oob/rml_oob_ping.c | urids/XSCALAMPI | 38624f682211d55c047183637fed8dbcc09f6d74 | [
"BSD-3-Clause-Open-MPI"
] | 3 | 2015-11-29T06:00:56.000Z | 2021-03-29T07:03:29.000Z | /*
* Copyright (c) 2011-2013 Los Alamos National Security, LLC. All rights
* reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "orte_config.h"
#include "rml_oob.h"
int
orte_rml_oob_ping(const char* uri,
const struct timeval* tv)
{
return ORTE_ERR_NOT_SUPPORTED;
}
| 17.238095 | 73 | 0.610497 |
f46912ab6a7a982506786f5573fd43c1251da562 | 5,645 | kt | Kotlin | src/test/kotlin/com/dmdirc/ktirc/model/ServerStateTest.kt | csmith/KtIrc | e6e36b93cd3d3594fe79b826911bbb8c3ca63de8 | [
"MIT"
] | 1 | 2019-03-10T02:48:01.000Z | 2019-03-10T02:48:01.000Z | src/test/kotlin/com/dmdirc/ktirc/model/ServerStateTest.kt | csmith/KtIrc | e6e36b93cd3d3594fe79b826911bbb8c3ca63de8 | [
"MIT"
] | 14 | 2019-02-05T12:19:09.000Z | 2019-03-14T15:15:20.000Z | src/test/kotlin/com/dmdirc/ktirc/model/ServerStateTest.kt | csmith/KtIrc | e6e36b93cd3d3594fe79b826911bbb8c3ca63de8 | [
"MIT"
] | null | null | null | package com.dmdirc.ktirc.model
import com.dmdirc.ktirc.TestConstants
import com.dmdirc.ktirc.events.EventMetadata
import com.dmdirc.ktirc.events.IrcEvent
import kotlinx.coroutines.channels.Channel
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
internal class ServerStateTest {
@Test
fun `ServerState should use the initial nickname as local nickname`() {
val serverState = ServerState("acidBurn", "")
assertEquals("acidBurn", serverState.localNickname)
}
@Test
fun `ServerState should use the initial name as server name`() {
val serverState = ServerState("", "the.gibson")
assertEquals("the.gibson", serverState.serverName)
}
@Test
fun `ServerState should default status to disconnected`() {
val serverState = ServerState("acidBurn", "")
assertEquals(ServerStatus.Disconnected, serverState.status)
}
@Test
fun `returns mode type for known channel mode`() {
val serverState = ServerState("acidBurn", "")
serverState.features[ServerFeature.ChannelModes] = arrayOf("ab", "cd", "ef", "gh")
assertEquals(ChannelModeType.List, serverState.channelModeType('a'))
assertEquals(ChannelModeType.SetUnsetParameter, serverState.channelModeType('d'))
assertEquals(ChannelModeType.SetParameter, serverState.channelModeType('e'))
assertEquals(ChannelModeType.NoParameter, serverState.channelModeType('g'))
}
@Test
fun `returns whether a mode is a channel user mode or not`() {
val serverState = ServerState("acidBurn", "")
serverState.features[ServerFeature.ModePrefixes] = ModePrefixMapping("oqv", "@~+")
assertTrue(serverState.isChannelUserMode('o'))
assertTrue(serverState.isChannelUserMode('q'))
assertTrue(serverState.isChannelUserMode('v'))
assertFalse(serverState.isChannelUserMode('@'))
assertFalse(serverState.isChannelUserMode('!'))
assertFalse(serverState.isChannelUserMode('z'))
}
@Test
fun `returns NoParameter for unknown channel mode`() {
val serverState = ServerState("acidBurn", "")
serverState.features[ServerFeature.ChannelModes] = arrayOf("ab", "cd", "ef", "gh")
assertEquals(ChannelModeType.NoParameter, serverState.channelModeType('z'))
}
@Test
fun `returns NoParameter for channel modes if feature doesn't exist`() {
val serverState = ServerState("acidBurn", "")
assertEquals(ChannelModeType.NoParameter, serverState.channelModeType('b'))
}
@Test
fun `indicates labels are enabled when cap is present`() {
val serverState = ServerState("acidBurn", "")
serverState.capabilities.enabledCapabilities[Capability.LabeledResponse] = ""
assertTrue(serverState.asyncResponseState.supportsLabeledResponses)
}
@Test
fun `indicates labels are not enabled when cap is absent`() {
val serverState = ServerState("acidBurn", "")
assertFalse(serverState.asyncResponseState.supportsLabeledResponses)
}
@Test
fun `reset clears all state`() = with(ServerState("acidBurn", "")) {
receivedWelcome = true
status = ServerStatus.Connecting
localNickname = "acidBurn3"
serverName = "root.the.gibson"
features[ServerFeature.Network] = "gibson"
capabilities.advertisedCapabilities["sasl"] = "sure"
sasl.saslBuffer = "in progress"
batches["batch"] = Batch("type", emptyList(), EventMetadata(TestConstants.time))
asyncResponseState.labelCounter.set(100)
asyncResponseState.pendingResponses["#thegibson"] = Pair<Channel<IrcEvent>, (IrcEvent) -> Boolean>(Channel(1)) { false }
reset()
assertFalse(receivedWelcome)
assertEquals(ServerStatus.Disconnected, status)
assertEquals("acidBurn", localNickname)
assertEquals("", serverName)
assertTrue(features.isEmpty())
assertTrue(capabilities.advertisedCapabilities.isEmpty())
assertEquals("", sasl.saslBuffer)
assertTrue(batches.isEmpty())
assertEquals(0, asyncResponseState.labelCounter.get())
assertTrue(asyncResponseState.pendingResponses.isEmpty())
}
}
internal class ModePrefixMappingTest {
@Test
fun `ModePrefixMapping identifies which chars are prefixes`() {
val mapping = ModePrefixMapping("oav", "+@-")
assertTrue(mapping.isPrefix('+'))
assertTrue(mapping.isPrefix('@'))
assertFalse(mapping.isPrefix('!'))
assertFalse(mapping.isPrefix('o'))
}
@Test
fun `ModePrefixMapping identifies which chars are modes`() {
val mapping = ModePrefixMapping("oav", "+@-")
assertFalse(mapping.isMode('+'))
assertFalse(mapping.isMode('@'))
assertFalse(mapping.isMode('!'))
assertTrue(mapping.isMode('o'))
}
@Test
fun `ModePrefixMapping maps prefixes to modes`() {
val mapping = ModePrefixMapping("oav", "+@-")
assertEquals('o', mapping.getMode('+'))
assertEquals('a', mapping.getMode('@'))
assertEquals('v', mapping.getMode('-'))
}
@Test
fun `ModePrefixMapping maps prefix strings to modes`() {
val mapping = ModePrefixMapping("oav", "+@-")
assertEquals("oa", mapping.getModes("+@"))
assertEquals("o", mapping.getModes("+"))
assertEquals("", mapping.getModes(""))
assertEquals("vao", mapping.getModes("-@+"))
}
} | 39.201389 | 129 | 0.651904 |
fb0f2cdf05e6d2e83e197b23de7a83376ce35d13 | 700 | h | C | src/client/chat_server.h | thomascrmbz/cpp-chatapp | 1aaf4dd013e32a223c2b7c9b2470d80a321c704e | [
"MIT"
] | null | null | null | src/client/chat_server.h | thomascrmbz/cpp-chatapp | 1aaf4dd013e32a223c2b7c9b2470d80a321c704e | [
"MIT"
] | null | null | null | src/client/chat_server.h | thomascrmbz/cpp-chatapp | 1aaf4dd013e32a223c2b7c9b2470d80a321c704e | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <functional>
#include <websocket_client.h>
namespace ChatApp {
class ChatServer {
public:
ChatServer(std::string ip);
~ChatServer();
public:
void set_username(std::string username);
public:
void connect(void);
void write(std::string message, int type);
bool is_connected(void);
public:
std::function<void(std::string, std::string, int)> on_message = [](std::string username, std::string message, int type) {};
private:
void listen(void);
private:
std::string ip;
std::string username;
WebSocket::Connection * connection;
bool connected = false;
};
} | 18.918919 | 129 | 0.627143 |
fbacd852db86add7a9b06d533c72f7892a3ad7df | 356 | h | C | Chalmers Card/CardData/CardData.h | jesperlindstrom/ChalmersCard_iOS | e697de3813a7cbbb7638e64303f7fb2a1decba4e | [
"MIT"
] | null | null | null | Chalmers Card/CardData/CardData.h | jesperlindstrom/ChalmersCard_iOS | e697de3813a7cbbb7638e64303f7fb2a1decba4e | [
"MIT"
] | null | null | null | Chalmers Card/CardData/CardData.h | jesperlindstrom/ChalmersCard_iOS | e697de3813a7cbbb7638e64303f7fb2a1decba4e | [
"MIT"
] | 1 | 2018-03-13T11:15:09.000Z | 2018-03-13T11:15:09.000Z | #import <UIKit/UIKit.h>
//! Project version number for CardData.
FOUNDATION_EXPORT double CardDataVersionNumber;
//! Project version string for CardData.
FOUNDATION_EXPORT const unsigned char CardDataVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <CardData/PublicHeader.h>
| 29.666667 | 133 | 0.800562 |
9cdf13059db8337e1f6db6b26d6cbd8c6d5c6689 | 108 | lua | Lua | DeepSleep/test1/start_boot.lua | zuzu59/NodeMCU_Lua | f612ffea710466e5f7b4fa428ab6165709af3846 | [
"MIT"
] | 6 | 2020-05-08T16:21:24.000Z | 2020-12-09T16:39:51.000Z | DeepSleep/test1/start_boot.lua | zuzu59/NodeMCU_Lua | f612ffea710466e5f7b4fa428ab6165709af3846 | [
"MIT"
] | null | null | null | DeepSleep/test1/start_boot.lua | zuzu59/NodeMCU_Lua | f612ffea710466e5f7b4fa428ab6165709af3846 | [
"MIT"
] | 4 | 2018-10-17T05:35:48.000Z | 2021-01-05T20:50:27.000Z | -- Scripts à charger au moment du boot
print("\n start_boot.lua zf181118.1043 \n")
dofile("dsleep.lua")
| 13.5 | 43 | 0.703704 |
5cb7fea680ca5281e8bdb9dabcca3ba692cb280f | 1,474 | swift | Swift | AEPAudience/Sources/AudienceHitResponse.swift | addb/aepsdk-audience-ios | 327c453826b55a6422de5845e0be05801f4e4bbe | [
"Apache-2.0"
] | null | null | null | AEPAudience/Sources/AudienceHitResponse.swift | addb/aepsdk-audience-ios | 327c453826b55a6422de5845e0be05801f4e4bbe | [
"Apache-2.0"
] | 18 | 2021-01-30T01:57:45.000Z | 2021-12-04T05:15:22.000Z | AEPAudience/Sources/AudienceHitResponse.swift | addb/aepsdk-audience-ios | 327c453826b55a6422de5845e0be05801f4e4bbe | [
"Apache-2.0"
] | 4 | 2021-05-05T18:26:39.000Z | 2021-10-01T17:55:32.000Z | /*
Copyright 2020 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
import Foundation
/// Struct to represent Audience Manager Extension network call json response.
struct AudienceHitResponse: Codable {
/// UUID value as received in the audience manager network response json
let uuid: String?
/// Stuff array as received in the audience manager network response json
let stuff: [AudienceStuffObject]?
/// Dests array as received in the audience manager network response json
let dests: [[String: String]]?
/// DCS region hint as received in the audience manager network response json
let region: Int?
/// The transaction id as received in the audience manager network response json
let tid: String?
enum CodingKeys: String, CodingKey {
case uuid = "uuid"
case stuff = "stuff"
case dests = "dests"
case region = "dcs_region"
case tid = "tid"
}
}
| 37.794872 | 87 | 0.725237 |
c642042a5e581a2c6b837028a9d0f2be1897d121 | 93 | rb | Ruby | spec/controllers/user_registration_controller_spec.rb | ryiskate/Nunes-Bambu | ea14d76f3a303c51a2d9349cca65a3be1d0926a0 | [
"MIT"
] | null | null | null | spec/controllers/user_registration_controller_spec.rb | ryiskate/Nunes-Bambu | ea14d76f3a303c51a2d9349cca65a3be1d0926a0 | [
"MIT"
] | null | null | null | spec/controllers/user_registration_controller_spec.rb | ryiskate/Nunes-Bambu | ea14d76f3a303c51a2d9349cca65a3be1d0926a0 | [
"MIT"
] | null | null | null | require 'rails_helper'
RSpec.describe UserRegistrationController, type: :controller do
end
| 15.5 | 63 | 0.827957 |
deda7a7a4f48203c13d13f43ddcc7f63ffbbc01d | 6,961 | rs | Rust | libsodium-sys/src/crypto_box.rs | exonum/exonum_sodiumoxide | fa93330a73ddd2d8a9f70b9e6440fe330615da6a | [
"Apache-2.0",
"MIT"
] | 5 | 2018-02-28T18:40:25.000Z | 2019-09-14T21:05:18.000Z | libsodium-sys/src/crypto_box.rs | exonum/exonum_sodiumoxide | fa93330a73ddd2d8a9f70b9e6440fe330615da6a | [
"Apache-2.0",
"MIT"
] | 9 | 2017-08-29T09:15:02.000Z | 2022-02-17T10:57:06.000Z | libsodium-sys/src/crypto_box.rs | exonum/exonum_sodiumoxide | fa93330a73ddd2d8a9f70b9e6440fe330615da6a | [
"Apache-2.0",
"MIT"
] | 12 | 2017-08-10T13:48:55.000Z | 2021-02-09T16:44:38.000Z | // crypto_box.h
pub const crypto_box_SEEDBYTES: usize = crypto_box_curve25519xsalsa20poly1305_SEEDBYTES;
pub const crypto_box_PUBLICKEYBYTES: usize = crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES;
pub const crypto_box_SECRETKEYBYTES: usize = crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES;
pub const crypto_box_BEFORENMBYTES: usize = crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES;
pub const crypto_box_NONCEBYTES: usize = crypto_box_curve25519xsalsa20poly1305_NONCEBYTES;
pub const crypto_box_ZEROBYTES: usize = crypto_box_curve25519xsalsa20poly1305_ZEROBYTES;
pub const crypto_box_BOXZEROBYTES: usize = crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES;
pub const crypto_box_MACBYTES: usize = crypto_box_curve25519xsalsa20poly1305_MACBYTES;
pub const crypto_box_PRIMITIVE: &str = "curve25519xsalsa20poly1305";
pub const crypto_box_SEALBYTES: usize = crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES;
extern {
pub fn crypto_box_seedbytes() -> size_t;
pub fn crypto_box_publickeybytes() -> size_t;
pub fn crypto_box_secretkeybytes() -> size_t;
pub fn crypto_box_beforenmbytes() -> size_t;
pub fn crypto_box_noncebytes() -> size_t;
pub fn crypto_box_zerobytes() -> size_t;
pub fn crypto_box_boxzerobytes() -> size_t;
pub fn crypto_box_macbytes() -> size_t;
pub fn crypto_box_primitive() -> *const c_char;
pub fn crypto_box_sealbytes() -> size_t;
pub fn crypto_box_seed_keypair(
pk: *mut [u8; crypto_box_PUBLICKEYBYTES],
sk: *mut [u8; crypto_box_SECRETKEYBYTES],
seed: *const [u8; crypto_box_SEEDBYTES])
-> c_int;
pub fn crypto_box_keypair(
pk: *mut [u8; crypto_box_PUBLICKEYBYTES],
sk: *mut [u8; crypto_box_SECRETKEYBYTES])
-> c_int;
pub fn crypto_box_beforenm(
k: *mut [u8; crypto_box_BEFORENMBYTES],
pk: *const [u8; crypto_box_PUBLICKEYBYTES],
sk: *const [u8; crypto_box_SECRETKEYBYTES])
-> c_int;
pub fn crypto_box_afternm(
c: *mut u8,
m: *const u8,
mlen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
k: *const [u8; crypto_box_BEFORENMBYTES])
-> c_int;
pub fn crypto_box_open_afternm(
m: *mut u8,
c: *const u8,
clen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
k: *const [u8; crypto_box_BEFORENMBYTES])
-> c_int;
pub fn crypto_box(
c: *mut u8,
m: *const u8,
mlen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
pk: *const [u8; crypto_box_PUBLICKEYBYTES],
sk: *const [u8; crypto_box_SECRETKEYBYTES])
-> c_int;
pub fn crypto_box_open(
m: *mut u8,
c: *const u8,
clen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
pk: *const [u8; crypto_box_PUBLICKEYBYTES],
sk: *const [u8; crypto_box_SECRETKEYBYTES])
-> c_int;
pub fn crypto_box_easy(
c: *mut u8,
m: *const u8,
mlen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
pk: *const [u8; crypto_box_PUBLICKEYBYTES],
sk: *const [u8; crypto_box_SECRETKEYBYTES])
-> c_int;
pub fn crypto_box_open_easy(
m: *mut u8,
c: *const u8,
clen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
pk: *const [u8; crypto_box_PUBLICKEYBYTES],
sk: *const [u8; crypto_box_SECRETKEYBYTES])
-> c_int;
pub fn crypto_box_detached(
c: *mut u8,
mac: *mut [u8; crypto_box_MACBYTES],
m: *const u8,
mlen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
pk: *const [u8; crypto_box_PUBLICKEYBYTES],
sk: *const [u8; crypto_box_SECRETKEYBYTES])
-> c_int;
pub fn crypto_box_open_detached(
m: *mut u8,
c: *const u8,
mac: *const [u8; crypto_box_MACBYTES],
clen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
pk: *const [u8; crypto_box_PUBLICKEYBYTES],
sk: *const [u8; crypto_box_SECRETKEYBYTES])
-> c_int;
pub fn crypto_box_detached_afternm(
c: *mut u8,
mac: *mut [u8; crypto_box_MACBYTES],
m: *const u8,
mlen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
k: *const [u8; crypto_box_BEFORENMBYTES])
-> c_int;
pub fn crypto_box_open_detached_afternm(
m: *mut u8,
c: *const u8,
mac: *const [u8; crypto_box_MACBYTES],
clen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
k: *const [u8; crypto_box_BEFORENMBYTES])
-> c_int;
pub fn crypto_box_seal(
c: *mut u8,
m: *const u8,
mlen: c_ulonglong,
pk: *const [u8; crypto_box_PUBLICKEYBYTES])
-> c_int;
pub fn crypto_box_seal_open(
m: *mut u8,
c: *const u8,
clen: c_ulonglong,
pk: *const [u8; crypto_box_PUBLICKEYBYTES],
sk: *const [u8; crypto_box_SECRETKEYBYTES])
-> c_int;
pub fn crypto_box_easy_afternm(
c: *mut u8,
m: *const u8,
mlen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
k: *const [u8; crypto_box_BEFORENMBYTES])
-> c_int;
pub fn crypto_box_open_easy_afternm(
m: *mut u8,
c: *const u8,
clen: c_ulonglong,
n: *const [u8; crypto_box_NONCEBYTES],
k: *const [u8; crypto_box_BEFORENMBYTES])
-> c_int;
}
#[test]
fn test_crypto_box_seedbytes() {
assert!(unsafe {
crypto_box_seedbytes() as usize
} == crypto_box_SEEDBYTES)
}
#[test]
fn test_crypto_box_publickeybytes() {
assert!(unsafe {
crypto_box_publickeybytes() as usize
} == crypto_box_PUBLICKEYBYTES)
}
#[test]
fn test_crypto_box_secretkeybytes() {
assert!(unsafe {
crypto_box_secretkeybytes() as usize
} == crypto_box_SECRETKEYBYTES)
}
#[test]
fn test_crypto_box_beforenmbytes() {
assert!(unsafe {
crypto_box_beforenmbytes() as usize
} == crypto_box_BEFORENMBYTES)
}
#[test]
fn test_crypto_box_noncebytes() {
assert!(unsafe {
crypto_box_noncebytes() as usize
} == crypto_box_NONCEBYTES)
}
#[test]
fn test_crypto_box_zerobytes() {
assert!(unsafe {
crypto_box_zerobytes() as usize
} == crypto_box_ZEROBYTES)
}
#[test]
fn test_crypto_box_boxzerobytes() {
assert!(unsafe {
crypto_box_boxzerobytes() as usize
} == crypto_box_BOXZEROBYTES)
}
#[test]
fn test_crypto_box_macbytes() {
assert!(unsafe {
crypto_box_macbytes() as usize
} == crypto_box_MACBYTES)
}
#[test]
fn test_crypto_box_primitive() {
unsafe {
let s = crypto_box_primitive();
let s = std::ffi::CStr::from_ptr(s).to_bytes();
assert!(s == crypto_box_PRIMITIVE.as_bytes());
}
}
#[test]
fn test_crypto_box_sealbytes() {
assert!(unsafe {
crypto_box_sealbytes() as usize
} == crypto_box_SEALBYTES)
}
| 32.680751 | 98 | 0.644879 |
8140d3dc7a1f71c7edfea15afae9432ee14ac9e6 | 23,221 | rs | Rust | src/index.rs | irevoire/polaris | ad080661490b1c919ef57f7a228956ed6779a23b | [
"MIT"
] | null | null | null | src/index.rs | irevoire/polaris | ad080661490b1c919ef57f7a228956ed6779a23b | [
"MIT"
] | null | null | null | src/index.rs | irevoire/polaris | ad080661490b1c919ef57f7a228956ed6779a23b | [
"MIT"
] | null | null | null | use core::ops::Deref;
use diesel;
use diesel::dsl::sql;
use diesel::prelude::*;
use diesel::sql_types;
use diesel::sqlite::SqliteConnection;
use error_chain::bail;
#[cfg(feature = "profile-index")]
use flame;
use log::{error, info};
use regex::Regex;
use serde::{Deserialize, Serialize};
use std::fs;
use std::path::Path;
#[cfg(test)]
use std::path::PathBuf;
use std::sync::mpsc::*;
use std::sync::{Arc, Mutex};
use std::thread;
use std::time;
use crate::config::MiscSettings;
#[cfg(test)]
use crate::db;
use crate::db::{directories, misc_settings, songs};
use crate::db::{ConnectionSource, DB};
use crate::errors;
use crate::metadata;
use crate::vfs::{VFSSource, VFS};
const INDEX_BUILDING_INSERT_BUFFER_SIZE: usize = 1000; // Insertions in each transaction
const INDEX_BUILDING_CLEAN_BUFFER_SIZE: usize = 500; // Insertions in each transaction
no_arg_sql_function!(
random,
sql_types::Integer,
"Represents the SQL RANDOM() function"
);
enum Command {
REINDEX,
EXIT,
}
struct CommandReceiver {
receiver: Receiver<Command>,
}
impl CommandReceiver {
fn new(receiver: Receiver<Command>) -> CommandReceiver {
CommandReceiver { receiver }
}
}
pub struct CommandSender {
sender: Mutex<Sender<Command>>,
}
impl CommandSender {
fn new(sender: Sender<Command>) -> CommandSender {
CommandSender {
sender: Mutex::new(sender),
}
}
pub fn trigger_reindex(&self) -> Result<(), errors::Error> {
let sender = self.sender.lock().unwrap();
match sender.send(Command::REINDEX) {
Ok(_) => Ok(()),
Err(_) => bail!("Trigger reindex channel error"),
}
}
#[allow(dead_code)]
pub fn exit(&self) -> Result<(), errors::Error> {
let sender = self.sender.lock().unwrap();
match sender.send(Command::EXIT) {
Ok(_) => Ok(()),
Err(_) => bail!("Index exit channel error"),
}
}
}
pub fn init(db: Arc<DB>) -> Arc<CommandSender> {
let (index_sender, index_receiver) = channel();
let command_sender = Arc::new(CommandSender::new(index_sender));
let command_receiver = CommandReceiver::new(index_receiver);
// Start update loop
let db_ref = db.clone();
std::thread::spawn(move || {
let db = db_ref.deref();
update_loop(db, &command_receiver);
});
command_sender
}
#[derive(Debug, PartialEq, Queryable, QueryableByName, Serialize, Deserialize)]
#[table_name = "songs"]
pub struct Song {
#[serde(skip_serializing, skip_deserializing)]
id: i32,
pub path: String,
#[serde(skip_serializing, skip_deserializing)]
pub parent: String,
pub track_number: Option<i32>,
pub disc_number: Option<i32>,
pub title: Option<String>,
pub artist: Option<String>,
pub album_artist: Option<String>,
pub year: Option<i32>,
pub album: Option<String>,
pub artwork: Option<String>,
pub duration: Option<i32>,
}
#[derive(Debug, PartialEq, Queryable, Serialize, Deserialize)]
pub struct Directory {
#[serde(skip_serializing, skip_deserializing)]
id: i32,
pub path: String,
#[serde(skip_serializing, skip_deserializing)]
pub parent: Option<String>,
pub artist: Option<String>,
pub year: Option<i32>,
pub album: Option<String>,
pub artwork: Option<String>,
pub date_added: i32,
}
#[derive(Debug, PartialEq, Serialize, Deserialize)]
pub enum CollectionFile {
Directory(Directory),
Song(Song),
}
#[derive(Debug, Insertable)]
#[table_name = "songs"]
struct NewSong {
path: String,
parent: String,
track_number: Option<i32>,
disc_number: Option<i32>,
title: Option<String>,
artist: Option<String>,
album_artist: Option<String>,
year: Option<i32>,
album: Option<String>,
artwork: Option<String>,
duration: Option<i32>,
}
#[derive(Debug, Insertable)]
#[table_name = "directories"]
struct NewDirectory {
path: String,
parent: Option<String>,
artist: Option<String>,
year: Option<i32>,
album: Option<String>,
artwork: Option<String>,
date_added: i32,
}
struct IndexBuilder<'conn> {
new_songs: Vec<NewSong>,
new_directories: Vec<NewDirectory>,
connection: &'conn Mutex<SqliteConnection>,
album_art_pattern: Regex,
}
impl<'conn> IndexBuilder<'conn> {
#[cfg_attr(feature = "profile-index", flame)]
fn new(
connection: &Mutex<SqliteConnection>,
album_art_pattern: Regex,
) -> Result<IndexBuilder<'_>, errors::Error> {
let mut new_songs = Vec::new();
let mut new_directories = Vec::new();
new_songs.reserve_exact(INDEX_BUILDING_INSERT_BUFFER_SIZE);
new_directories.reserve_exact(INDEX_BUILDING_INSERT_BUFFER_SIZE);
Ok(IndexBuilder {
new_songs,
new_directories,
connection,
album_art_pattern,
})
}
#[cfg_attr(feature = "profile-index", flame)]
fn flush_songs(&mut self) -> Result<(), errors::Error> {
let connection = self.connection.lock().unwrap();
let connection = connection.deref();
connection.transaction::<_, errors::Error, _>(|| {
diesel::insert_into(songs::table)
.values(&self.new_songs)
.execute(connection)?;
Ok(())
})?;
self.new_songs.clear();
Ok(())
}
#[cfg_attr(feature = "profile-index", flame)]
fn flush_directories(&mut self) -> Result<(), errors::Error> {
let connection = self.connection.lock().unwrap();
let connection = connection.deref();
connection.transaction::<_, errors::Error, _>(|| {
diesel::insert_into(directories::table)
.values(&self.new_directories)
.execute(connection)?;
Ok(())
})?;
self.new_directories.clear();
Ok(())
}
#[cfg_attr(feature = "profile-index", flame)]
fn push_song(&mut self, song: NewSong) -> Result<(), errors::Error> {
if self.new_songs.len() >= self.new_songs.capacity() {
self.flush_songs()?;
}
self.new_songs.push(song);
Ok(())
}
#[cfg_attr(feature = "profile-index", flame)]
fn push_directory(&mut self, directory: NewDirectory) -> Result<(), errors::Error> {
if self.new_directories.len() >= self.new_directories.capacity() {
self.flush_directories()?;
}
self.new_directories.push(directory);
Ok(())
}
fn get_artwork(&self, dir: &Path) -> Result<Option<String>, errors::Error> {
for file in fs::read_dir(dir)? {
let file = file?;
if let Some(name_string) = file.file_name().to_str() {
if self.album_art_pattern.is_match(name_string) {
return Ok(file.path().to_str().map(|p| p.to_owned()));
}
}
}
Ok(None)
}
#[cfg_attr(feature = "profile-index", flame)]
fn populate_directory(
&mut self,
parent: Option<&Path>,
path: &Path,
) -> Result<(), errors::Error> {
// Find artwork
let artwork = self.get_artwork(path).unwrap_or(None);
// Extract path and parent path
let parent_string = parent.and_then(|p| p.to_str()).map(|s| s.to_owned());
let path_string = path.to_str().ok_or("Invalid directory path")?;
// Find date added
let metadata = fs::metadata(path_string)?;
let created = metadata
.created()
.or_else(|_| metadata.modified())?
.duration_since(time::UNIX_EPOCH)?
.as_secs() as i32;
let mut directory_album = None;
let mut directory_year = None;
let mut directory_artist = None;
let mut inconsistent_directory_album = false;
let mut inconsistent_directory_year = false;
let mut inconsistent_directory_artist = false;
// Sub directories
let mut sub_directories = Vec::new();
// Insert content
for file in fs::read_dir(path)? {
#[cfg(feature = "profile-index")]
let _guard = flame::start_guard("directory-entry");
let file_path = match file {
Ok(ref f) => f.path(),
_ => {
error!("File read error within {}", path_string);
break;
}
};
if file_path.is_dir() {
sub_directories.push(file_path.to_path_buf());
continue;
}
if let Some(file_path_string) = file_path.to_str() {
if let Ok(tags) = metadata::read(file_path.as_path()) {
if tags.year.is_some() {
inconsistent_directory_year |=
directory_year.is_some() && directory_year != tags.year;
directory_year = tags.year;
}
if tags.album.is_some() {
inconsistent_directory_album |=
directory_album.is_some() && directory_album != tags.album;
directory_album = tags.album.as_ref().cloned();
}
if tags.album_artist.is_some() {
inconsistent_directory_artist |=
directory_artist.is_some() && directory_artist != tags.album_artist;
directory_artist = tags.album_artist.as_ref().cloned();
} else if tags.artist.is_some() {
inconsistent_directory_artist |=
directory_artist.is_some() && directory_artist != tags.artist;
directory_artist = tags.artist.as_ref().cloned();
}
let song = NewSong {
path: file_path_string.to_owned(),
parent: path_string.to_owned(),
disc_number: tags.disc_number.map(|n| n as i32),
track_number: tags.track_number.map(|n| n as i32),
title: tags.title,
duration: tags.duration.map(|n| n as i32),
artist: tags.artist,
album_artist: tags.album_artist,
album: tags.album,
year: tags.year,
artwork: artwork.as_ref().cloned(),
};
self.push_song(song)?;
}
}
}
// Insert directory
if inconsistent_directory_year {
directory_year = None;
}
if inconsistent_directory_album {
directory_album = None;
}
if inconsistent_directory_artist {
directory_artist = None;
}
let directory = NewDirectory {
path: path_string.to_owned(),
parent: parent_string,
artwork,
album: directory_album,
artist: directory_artist,
year: directory_year,
date_added: created,
};
self.push_directory(directory)?;
// Populate subdirectories
for sub_directory in sub_directories {
self.populate_directory(Some(path), &sub_directory)?;
}
Ok(())
}
}
#[cfg_attr(feature = "profile-index", flame)]
fn clean<T>(db: &T) -> Result<(), errors::Error>
where
T: ConnectionSource + VFSSource,
{
let vfs = db.get_vfs()?;
{
let all_songs: Vec<String>;
{
let connection = db.get_connection();
all_songs = songs::table.select(songs::path).load(connection.deref())?;
}
let missing_songs = all_songs
.into_iter()
.filter(|ref song_path| {
let path = Path::new(&song_path);
!path.exists() || vfs.real_to_virtual(path).is_err()
})
.collect::<Vec<_>>();
{
let connection = db.get_connection();
for chunk in missing_songs[..].chunks(INDEX_BUILDING_CLEAN_BUFFER_SIZE) {
diesel::delete(songs::table.filter(songs::path.eq_any(chunk)))
.execute(connection.deref())?;
}
}
}
{
let all_directories: Vec<String>;
{
let connection = db.get_connection();
all_directories = directories::table
.select(directories::path)
.load(connection.deref())?;
}
let missing_directories = all_directories
.into_iter()
.filter(|ref directory_path| {
let path = Path::new(&directory_path);
!path.exists() || vfs.real_to_virtual(path).is_err()
})
.collect::<Vec<_>>();
{
let connection = db.get_connection();
for chunk in missing_directories[..].chunks(INDEX_BUILDING_CLEAN_BUFFER_SIZE) {
diesel::delete(directories::table.filter(directories::path.eq_any(chunk)))
.execute(connection.deref())?;
}
}
}
Ok(())
}
#[cfg_attr(feature = "profile-index", flame)]
fn populate<T>(db: &T) -> Result<(), errors::Error>
where
T: ConnectionSource + VFSSource,
{
let vfs = db.get_vfs()?;
let mount_points = vfs.get_mount_points();
let album_art_pattern;
{
let connection = db.get_connection();
let settings: MiscSettings = misc_settings::table.get_result(connection.deref())?;
album_art_pattern = Regex::new(&settings.index_album_art_pattern)?;
}
let connection_mutex = db.get_connection_mutex();
let mut builder = IndexBuilder::new(connection_mutex.deref(), album_art_pattern)?;
for target in mount_points.values() {
builder.populate_directory(None, target.as_path())?;
}
builder.flush_songs()?;
builder.flush_directories()?;
Ok(())
}
pub fn update<T>(db: &T) -> Result<(), errors::Error>
where
T: ConnectionSource + VFSSource,
{
let start = time::Instant::now();
info!("Beginning library index update");
clean(db)?;
populate(db)?;
info!(
"Library index update took {} seconds",
start.elapsed().as_secs()
);
#[cfg(feature = "profile-index")]
flame::dump_html(&mut fs::File::create("index-flame-graph.html").unwrap()).unwrap();
Ok(())
}
fn update_loop<T>(db: &T, command_buffer: &CommandReceiver)
where
T: ConnectionSource + VFSSource,
{
loop {
// Wait for a command
if command_buffer.receiver.recv().is_err() {
return;
}
// Flush the buffer to ignore spammy requests
loop {
match command_buffer.receiver.try_recv() {
Err(TryRecvError::Disconnected) => return,
Ok(Command::EXIT) => return,
Err(TryRecvError::Empty) => break,
Ok(_) => (),
}
}
// Do the update
if let Err(e) = update(db) {
error!("Error while updating index: {}", e);
}
}
}
pub fn self_trigger<T>(db: &T, command_buffer: &Arc<CommandSender>)
where
T: ConnectionSource,
{
loop {
{
let command_buffer = command_buffer.deref();
if let Err(e) = command_buffer.trigger_reindex() {
error!("Error while writing to index command buffer: {}", e);
return;
}
}
let sleep_duration;
{
let connection = db.get_connection();
let settings: Result<MiscSettings, errors::Error> = misc_settings::table
.get_result(connection.deref())
.map_err(|e| e.into());
if let Err(ref e) = settings {
error!("Could not retrieve index sleep duration: {}", e);
}
sleep_duration = settings
.map(|s| s.index_sleep_duration_seconds)
.unwrap_or(1800);
}
thread::sleep(time::Duration::from_secs(sleep_duration as u64));
}
}
#[cfg_attr(feature = "profile-index", flame)]
pub fn virtualize_song(vfs: &VFS, mut song: Song) -> Option<Song> {
song.path = match vfs.real_to_virtual(Path::new(&song.path)) {
Ok(p) => p.to_string_lossy().into_owned(),
_ => return None,
};
if let Some(artwork_path) = song.artwork {
song.artwork = match vfs.real_to_virtual(Path::new(&artwork_path)) {
Ok(p) => Some(p.to_string_lossy().into_owned()),
_ => None,
};
}
Some(song)
}
#[cfg_attr(feature = "profile-index", flame)]
fn virtualize_directory(vfs: &VFS, mut directory: Directory) -> Option<Directory> {
directory.path = match vfs.real_to_virtual(Path::new(&directory.path)) {
Ok(p) => p.to_string_lossy().into_owned(),
_ => return None,
};
if let Some(artwork_path) = directory.artwork {
directory.artwork = match vfs.real_to_virtual(Path::new(&artwork_path)) {
Ok(p) => Some(p.to_string_lossy().into_owned()),
_ => None,
};
}
Some(directory)
}
pub fn browse<T, P>(db: &T, virtual_path: P) -> Result<Vec<CollectionFile>, errors::Error>
where
T: ConnectionSource + VFSSource,
P: AsRef<Path>,
{
let mut output = Vec::new();
let vfs = db.get_vfs()?;
let connection = db.get_connection();
if virtual_path.as_ref().components().count() == 0 {
// Browse top-level
let real_directories: Vec<Directory> = directories::table
.filter(directories::parent.is_null())
.load(connection.deref())?;
let virtual_directories = real_directories
.into_iter()
.filter_map(|s| virtualize_directory(&vfs, s));
output.extend(virtual_directories.map(CollectionFile::Directory));
} else {
// Browse sub-directory
let real_path = vfs.virtual_to_real(virtual_path)?;
let real_path_string = real_path.as_path().to_string_lossy().into_owned();
let real_directories: Vec<Directory> = directories::table
.filter(directories::parent.eq(&real_path_string))
.order(sql::<sql_types::Bool>("path COLLATE NOCASE ASC"))
.load(connection.deref())?;
let virtual_directories = real_directories
.into_iter()
.filter_map(|s| virtualize_directory(&vfs, s));
output.extend(virtual_directories.map(CollectionFile::Directory));
let real_songs: Vec<Song> = songs::table
.filter(songs::parent.eq(&real_path_string))
.order(sql::<sql_types::Bool>("path COLLATE NOCASE ASC"))
.load(connection.deref())?;
let virtual_songs = real_songs
.into_iter()
.filter_map(|s| virtualize_song(&vfs, s));
output.extend(virtual_songs.map(CollectionFile::Song));
}
Ok(output)
}
pub fn flatten<T, P>(db: &T, virtual_path: P) -> Result<Vec<Song>, errors::Error>
where
T: ConnectionSource + VFSSource,
P: AsRef<Path>,
{
use self::songs::dsl::*;
let vfs = db.get_vfs()?;
let connection = db.get_connection();
let real_songs: Vec<Song> = if virtual_path.as_ref().parent() != None {
let real_path = vfs.virtual_to_real(virtual_path)?;
let like_path = real_path.as_path().to_string_lossy().into_owned() + "%";
songs
.filter(path.like(&like_path))
.order(path)
.load(connection.deref())?
} else {
songs.order(path).load(connection.deref())?
};
let virtual_songs = real_songs
.into_iter()
.filter_map(|s| virtualize_song(&vfs, s));
Ok(virtual_songs.collect::<Vec<_>>())
}
pub fn get_random_albums<T>(db: &T, count: i64) -> Result<Vec<Directory>, errors::Error>
where
T: ConnectionSource + VFSSource,
{
use self::directories::dsl::*;
let vfs = db.get_vfs()?;
let connection = db.get_connection();
let real_directories = directories
.filter(album.is_not_null())
.limit(count)
.order(random)
.load(connection.deref())?;
let virtual_directories = real_directories
.into_iter()
.filter_map(|s| virtualize_directory(&vfs, s));
Ok(virtual_directories.collect::<Vec<_>>())
}
pub fn get_recent_albums<T>(db: &T, count: i64) -> Result<Vec<Directory>, errors::Error>
where
T: ConnectionSource + VFSSource,
{
use self::directories::dsl::*;
let vfs = db.get_vfs()?;
let connection = db.get_connection();
let real_directories: Vec<Directory> = directories
.filter(album.is_not_null())
.order(date_added.desc())
.limit(count)
.load(connection.deref())?;
let virtual_directories = real_directories
.into_iter()
.filter_map(|s| virtualize_directory(&vfs, s));
Ok(virtual_directories.collect::<Vec<_>>())
}
pub fn search<T>(db: &T, query: &str) -> Result<Vec<CollectionFile>, errors::Error>
where
T: ConnectionSource + VFSSource,
{
let vfs = db.get_vfs()?;
let connection = db.get_connection();
let like_test = format!("%{}%", query);
let mut output = Vec::new();
// Find dirs with matching path and parent not matching
{
use self::directories::dsl::*;
let real_directories: Vec<Directory> = directories
.filter(path.like(&like_test))
.filter(parent.not_like(&like_test))
.load(connection.deref())?;
let virtual_directories = real_directories
.into_iter()
.filter_map(|s| virtualize_directory(&vfs, s));
output.extend(virtual_directories.map(CollectionFile::Directory));
}
// Find songs with matching title/album/artist and non-matching parent
{
use self::songs::dsl::*;
let real_songs: Vec<Song> = songs
.filter(
path.like(&like_test)
.or(title.like(&like_test))
.or(album.like(&like_test))
.or(artist.like(&like_test))
.or(album_artist.like(&like_test)),
)
.filter(parent.not_like(&like_test))
.load(connection.deref())?;
let virtual_songs = real_songs
.into_iter()
.filter_map(|s| virtualize_song(&vfs, s));
output.extend(virtual_songs.map(CollectionFile::Song));
}
Ok(output)
}
pub fn get_song<T>(db: &T, virtual_path: &Path) -> Result<Song, errors::Error>
where
T: ConnectionSource + VFSSource,
{
let vfs = db.get_vfs()?;
let connection = db.get_connection();
let real_path = vfs.virtual_to_real(virtual_path)?;
let real_path_string = real_path.as_path().to_string_lossy();
use self::songs::dsl::*;
let real_song: Song = songs
.filter(path.eq(real_path_string))
.get_result(connection.deref())?;
match virtualize_song(&vfs, real_song) {
Some(s) => Ok(s),
_ => bail!("Missing VFS mapping"),
}
}
#[test]
fn test_populate() {
let db = db::_get_test_db("populate.sqlite");
update(&db).unwrap();
update(&db).unwrap(); // Check that subsequent updates don't run into conflicts
let connection = db.get_connection();
let all_directories: Vec<Directory> = directories::table.load(connection.deref()).unwrap();
let all_songs: Vec<Song> = songs::table.load(connection.deref()).unwrap();
assert_eq!(all_directories.len(), 5);
assert_eq!(all_songs.len(), 12);
}
#[test]
fn test_metadata() {
let mut target = PathBuf::new();
target.push("test");
target.push("collection");
target.push("Tobokegao");
target.push("Picnic");
let mut song_path = target.clone();
song_path.push("05 - シャーベット (Sherbet).mp3");
let mut artwork_path = target.clone();
artwork_path.push("Folder.png");
let db = db::_get_test_db("metadata.sqlite");
update(&db).unwrap();
let connection = db.get_connection();
let songs: Vec<Song> = songs::table
.filter(songs::title.eq("シャーベット (Sherbet)"))
.load(connection.deref())
.unwrap();
assert_eq!(songs.len(), 1);
let song = &songs[0];
assert_eq!(song.path, song_path.to_string_lossy().as_ref());
assert_eq!(song.track_number, Some(5));
assert_eq!(song.disc_number, None);
assert_eq!(song.title, Some("シャーベット (Sherbet)".to_owned()));
assert_eq!(song.artist, Some("Tobokegao".to_owned()));
assert_eq!(song.album_artist, None);
assert_eq!(song.album, Some("Picnic".to_owned()));
assert_eq!(song.year, Some(2016));
assert_eq!(
song.artwork,
Some(artwork_path.to_string_lossy().into_owned())
);
}
#[test]
fn test_browse_top_level() {
let mut root_path = PathBuf::new();
root_path.push("root");
let db = db::_get_test_db("browse_top_level.sqlite");
update(&db).unwrap();
let results = browse(&db, Path::new("")).unwrap();
assert_eq!(results.len(), 1);
match results[0] {
CollectionFile::Directory(ref d) => assert_eq!(d.path, root_path.to_str().unwrap()),
_ => panic!("Expected directory"),
}
}
#[test]
fn test_browse() {
let mut khemmis_path = PathBuf::new();
khemmis_path.push("root");
khemmis_path.push("Khemmis");
let mut tobokegao_path = PathBuf::new();
tobokegao_path.push("root");
tobokegao_path.push("Tobokegao");
let db = db::_get_test_db("browse.sqlite");
update(&db).unwrap();
let results = browse(&db, Path::new("root")).unwrap();
assert_eq!(results.len(), 2);
match results[0] {
CollectionFile::Directory(ref d) => assert_eq!(d.path, khemmis_path.to_str().unwrap()),
_ => panic!("Expected directory"),
}
match results[1] {
CollectionFile::Directory(ref d) => assert_eq!(d.path, tobokegao_path.to_str().unwrap()),
_ => panic!("Expected directory"),
}
}
#[test]
fn test_flatten() {
let db = db::_get_test_db("flatten.sqlite");
update(&db).unwrap();
let results = flatten(&db, Path::new("root")).unwrap();
assert_eq!(results.len(), 12);
assert_eq!(results[0].title, Some("Above The Water".to_owned()));
}
#[test]
fn test_random() {
let db = db::_get_test_db("random.sqlite");
update(&db).unwrap();
let results = get_random_albums(&db, 1).unwrap();
assert_eq!(results.len(), 1);
}
#[test]
fn test_recent() {
let db = db::_get_test_db("recent.sqlite");
update(&db).unwrap();
let results = get_recent_albums(&db, 2).unwrap();
assert_eq!(results.len(), 2);
assert!(results[0].date_added >= results[1].date_added);
}
#[test]
fn test_get_song() {
let db = db::_get_test_db("get_song.sqlite");
update(&db).unwrap();
let mut song_path = PathBuf::new();
song_path.push("root");
song_path.push("Khemmis");
song_path.push("Hunted");
song_path.push("02 - Candlelight.mp3");
let song = get_song(&db, &song_path).unwrap();
assert_eq!(song.title.unwrap(), "Candlelight");
}
| 26.78316 | 92 | 0.6824 |
18e10b7cad38434caf91d0e6d5a62ee66d57b1cd | 3,209 | swift | Swift | iVault/Views/Wallet/TransactionCell.swift | scala-network/ScalaiVault | 13d3acacf38e791abf942090bd5af0755d754b84 | [
"MIT"
] | 1 | 2021-08-04T12:08:33.000Z | 2021-08-04T12:08:33.000Z | iVault/Views/Wallet/TransactionCell.swift | scala-network/iVault | 13d3acacf38e791abf942090bd5af0755d754b84 | [
"MIT"
] | null | null | null | iVault/Views/Wallet/TransactionCell.swift | scala-network/iVault | 13d3acacf38e791abf942090bd5af0755d754b84 | [
"MIT"
] | null | null | null | //
// TransactionCell.swift
// XWallet
//
// Created by loj on 19.11.17.
//
import UIKit
public class TransactionCell: UITableViewCell {
@IBOutlet weak var directionImageView: UIImageView!
@IBOutlet weak var trxTimeLabel: UILabel!
@IBOutlet weak var trxAmountLabel: UILabel!
@IBOutlet weak var confirmationsStackView: UIStackView!
@IBOutlet weak var confirmationsLabel: UILabel!
public var direction: TransactionDirection?
public var isPending: Bool?
public var isFailed: Bool?
public var trxAmount: String?
public var confirmations: UInt64?
public var trxTimestamp: String?
public var localizer: Localizable?
private let arrowReceived = "ReceivedTransactionIcon"
private let arrowSent = "SentTransactionIcon"
public func redraw() {
self.showData()
}
private func showData() {
guard let localizer = self.localizer else { return }
var amountDescription = ""
var isPendingDescription = ""
var isFailedDescription = ""
if let direction = self.direction {
switch direction {
case .received:
self.directionImageView.image = UIImage(named: arrowReceived)!
case .sent:
self.directionImageView.image = UIImage(named: arrowSent)
}
amountDescription = " \(localizer.localized(direction))"
}
if let isPending = self.isPending {
isPendingDescription = isPending ? " \(localizer.localized("trxState.pending"))" : ""
}
if let isFailed = self.isFailed {
isFailedDescription = isFailed ? " \(localizer.localized("trxState.failed"))" : ""
}
if let trxAmount = self.trxAmount {
self.trxAmountLabel.text = trxAmount
}
if let trxTimestamp = self.trxTimestamp {
self.trxTimeLabel.text = trxTimestamp
}
self.trxAmountLabel.text?.append(amountDescription)
self.trxAmountLabel.text?.append(isPendingDescription)
self.trxAmountLabel.text?.append(isFailedDescription)
//Debug.print(s: "### A: \(amountDescription) P: \(isPendingDescription) F: \(isFailedDescription) T : \(trxAmount)")
self.showConfirmations()
}
private func showConfirmations() {
guard let confirmations = self.confirmations,
let localizer = self.localizer,
let isPending = self.isPending,
let isFailed = self.isFailed else
{
self.confirmationsStackView.isHidden = true
return
}
if isFailed {
self.confirmationsStackView.isHidden = true
return
}
if isPending {
self.confirmationsStackView.isHidden = true
return
}
if confirmations >= Constants.numberOfRequiredConfirmations {
self.confirmationsStackView.isHidden = true
return
}
self.confirmationsStackView.isHidden = false
self.confirmationsLabel.text = "\(localizer.localized("global.confirmations")): \(confirmations)"
}
}
| 32.414141 | 125 | 0.61608 |
3e8c22202da01b70bc9d5701843e59dd49e6045e | 4,943 | h | C | utils.h | pch18-fork/redsocks2- | b9cafa94664551362fb6a17b2933c1fefc14bf8f | [
"Apache-2.0"
] | 22 | 2019-05-21T07:44:34.000Z | 2021-04-26T06:51:42.000Z | utils.h | pch18-fork/redsocks2- | b9cafa94664551362fb6a17b2933c1fefc14bf8f | [
"Apache-2.0"
] | 1 | 2021-02-02T02:40:20.000Z | 2021-02-02T02:40:20.000Z | utils.h | pch18-fork/redsocks2- | b9cafa94664551362fb6a17b2933c1fefc14bf8f | [
"Apache-2.0"
] | 8 | 2019-02-26T17:32:41.000Z | 2021-11-12T05:05:46.000Z | #ifndef UTILS_H_SAT_FEB__2_02_24_05_2008
#define UTILS_H_SAT_FEB__2_02_24_05_2008
#include <stddef.h>
#include <time.h>
#include <netinet/in.h>
#include <event2/event.h>
#include <event2/buffer.h>
#include <event2/bufferevent.h>
#if defined(ENABLE_HTTPS_PROXY)
#include <openssl/ssl.h>
#include <event2/bufferevent_ssl.h>
#endif
struct sockaddr_in;
#define SIZEOF_ARRAY(arr) (sizeof(arr) / sizeof(arr[0]))
#define FOREACH(ptr, array) for (ptr = array; ptr < array + SIZEOF_ARRAY(array); ptr++)
#define FOREACH_REV(ptr, array) for (ptr = array + SIZEOF_ARRAY(array) - 1; ptr >= array; ptr--)
#define UNUSED(x) ((void)(x))
#if defined __GNUC__
#define PACKED __attribute__((packed))
#else
#error Unknown compiler, modify utils.h for it
#endif
#ifdef __GNUC__
#define member_type(type, member) __typeof(((type *)0)->member)
#else
#define member_type(type, member) const void
#endif
/**
* container_of - cast a member of a structure out to the containing structure
* @ptr: the pointer to the member.
* @type: the type of the container struct this is embedded in.
* @member: the name of the member within the struct.
*
*/
#define container_of(ptr, type, member) \
((type *)( \
(char *)(member_type(type, member) *){ ptr } - offsetof(type, member) \
))
#define clamp_value(value, min_val, max_val) do { \
if (value < min_val) \
value = min_val; \
if (value > max_val) \
value = max_val; \
} while (0)
uint32_t red_randui32();
time_t redsocks_time(time_t *t);
char *redsocks_evbuffer_readline(struct evbuffer *buf);
struct bufferevent* red_prepare_relay(const char *ifname,
bufferevent_data_cb readcb,
bufferevent_data_cb writecb,
bufferevent_event_cb errorcb,
void *cbarg);
struct bufferevent* red_connect_relay(const char *ifname,
struct sockaddr_in *addr,
bufferevent_data_cb readcb,
bufferevent_data_cb writecb,
bufferevent_event_cb errorcb,
void *cbarg,
const struct timeval *timeout_write);
#if defined(ENABLE_HTTPS_PROXY)
struct bufferevent* red_connect_relay_ssl(const char *ifname,
struct sockaddr_in *addr,
SSL * ssl,
bufferevent_data_cb readcb,
bufferevent_data_cb writecb,
bufferevent_event_cb errorcb,
void *cbarg,
const struct timeval *timeout_write);
#endif
struct bufferevent* red_connect_relay_tfo(const char *ifname,
struct sockaddr_in *addr,
bufferevent_data_cb readcb,
bufferevent_data_cb writecb,
bufferevent_event_cb errorcb,
void *cbarg,
const struct timeval *timeout_write,
void *data,
size_t *len);
int red_socket_geterrno(struct bufferevent *buffev);
int red_is_socket_connected_ok(struct bufferevent *buffev);
int red_recv_udp_pkt(int fd, char *buf, size_t buflen, struct sockaddr_in *fromaddr, struct sockaddr_in *toaddr);
size_t copy_evbuffer(struct bufferevent * dst, struct bufferevent * src, size_t skip);
size_t get_write_hwm(struct bufferevent *bufev);
int make_socket_transparent(int fd);
int apply_tcp_fastopen(int fd);
void replace_readcb(struct bufferevent * buffev, bufferevent_data_cb readcb);
void replace_writecb(struct bufferevent * buffev, bufferevent_data_cb writecb);
void replace_eventcb(struct bufferevent * buffev, bufferevent_event_cb eventcb);
#define event_fmt_str "%s|%s|%s|%s|%s|%s|0x%x"
#define event_fmt(what) \
(what) & BEV_EVENT_READING ? "READING" : "0", \
(what) & BEV_EVENT_WRITING ? "WRITING" : "0", \
(what) & BEV_EVENT_EOF ? "EOF" : "0", \
(what) & BEV_EVENT_ERROR ? "ERROR" : "0", \
(what) & BEV_EVENT_TIMEOUT ? "TIMEOUT" : "0", \
(what) & BEV_EVENT_CONNECTED ? "CONNECTED" : "0", \
(what) & ~(BEV_EVENT_READING|BEV_EVENT_WRITING|BEV_EVENT_EOF|BEV_EVENT_ERROR|BEV_EVENT_TIMEOUT|BEV_EVENT_CONNECTED)
#if INET6_ADDRSTRLEN < INET_ADDRSTRLEN
# error Impossible happens: INET6_ADDRSTRLEN < INET_ADDRSTRLEN
#else
# define RED_INET_ADDRSTRLEN (1 + INET6_ADDRSTRLEN + 1 + 1 + 5 + 1) // [ + addr + ] + : + port + \0
#endif
char *red_inet_ntop(const struct sockaddr_in* sa, char* buffer, size_t buffer_size);
/* vim:set tabstop=4 softtabstop=4 shiftwidth=4: */
/* vim:set foldmethod=marker foldlevel=32 foldmarker={,}: */
#endif /* UTILS_H_SAT_FEB__2_02_24_05_2008 */
| 39.862903 | 119 | 0.621687 |
5c9afbb319eb0aec6ed472d0a2f5d73ba9a8327a | 306 | h | C | QtumJsIosServer/qtum-ios-develop/qtum wallet/Wallet Flow/Token Address Library Flow/Controllers/TokenAddressControlViewControllerLight.h | shekoocoder/telepathy | 8da35e3dc41baf6f479b129dc723d8f321ccd39d | [
"MIT"
] | 1 | 2019-07-08T09:33:56.000Z | 2019-07-08T09:33:56.000Z | QtumJsIosServer/qtum-ios-develop/qtum wallet/Wallet Flow/Token Address Library Flow/Controllers/TokenAddressControlViewControllerLight.h | shekoocoder/telepathy | 8da35e3dc41baf6f479b129dc723d8f321ccd39d | [
"MIT"
] | null | null | null | QtumJsIosServer/qtum-ios-develop/qtum wallet/Wallet Flow/Token Address Library Flow/Controllers/TokenAddressControlViewControllerLight.h | shekoocoder/telepathy | 8da35e3dc41baf6f479b129dc723d8f321ccd39d | [
"MIT"
] | null | null | null | //
// TokenAddressControlViewControllerLight.h
// qtum wallet
//
// Created by Vladimir Lebedevich on 03.08.17.
// Copyright © 2017 QTUM. All rights reserved.
//
#import "TokenAddressControlViewController.h"
@interface TokenAddressControlViewControllerLight : TokenAddressControlViewController
@end
| 21.857143 | 85 | 0.787582 |
cebd89bf6a4dda94ab76d06cf391344d07974b47 | 69 | sql | SQL | db/updates/update_2.0.8-2.0.9.sql | rickylinden/parfumvault | bc61c9f78ae4594de6580fafbba72d8b26fc2a8d | [
"MIT"
] | 12 | 2020-05-17T05:33:47.000Z | 2022-03-15T06:13:21.000Z | db/updates/update_2.0.8-2.0.9.sql | rickylinden/parfumvault | bc61c9f78ae4594de6580fafbba72d8b26fc2a8d | [
"MIT"
] | 4 | 2021-02-25T08:53:40.000Z | 2022-01-14T20:28:15.000Z | db/updates/update_2.0.8-2.0.9.sql | rickylinden/parfumvault | bc61c9f78ae4594de6580fafbba72d8b26fc2a8d | [
"MIT"
] | 4 | 2021-07-19T14:14:28.000Z | 2022-01-14T20:36:07.000Z | ALTER TABLE `cart` ADD `purity` VARCHAR(255) NULL AFTER `quantity`;
| 34.5 | 68 | 0.724638 |
8bcdeb6dd00b10559dc2cf10898ef43696fe6dbe | 2,885 | swift | Swift | ThinMP/View/Page/MainPageView.swift | tkwtokyo/ThinMP_iOS | b6a1f356a79f96129f3c07c88e6d6cb6b055e600 | [
"MIT"
] | 7 | 2021-04-06T13:02:57.000Z | 2021-12-24T08:46:07.000Z | ThinMP/View/Page/MainPageView.swift | tkwtokyo/ThinMP_iOS | b6a1f356a79f96129f3c07c88e6d6cb6b055e600 | [
"MIT"
] | 5 | 2021-07-28T15:19:17.000Z | 2021-07-30T14:43:07.000Z | ThinMP/View/Page/MainPageView.swift | tkwtokyo/ThinMP_iOS | b6a1f356a79f96129f3c07c88e6d6cb6b055e600 | [
"MIT"
] | null | null | null | //
// MainPageView.swift
// ThinMP
//
// Created by tk on 2020/01/04.
//
import SwiftUI
struct MainPageView: View {
@StateObject private var vm = MainViewModel()
var body: some View {
GeometryReader { geometry in
NavigationView {
VStack(spacing: 0) {
ScrollView {
VStack(alignment: .leading) {
Spacer()
HStack {
MainTitleView(LabelConstant.library)
Spacer()
EditButtonView {
MainEditPageView()
}
}
}
.frame(height: geometry.safeAreaInsets.top + StyleConstant.Height.header)
.padding(.leading, StyleConstant.Padding.large)
VStack(spacing: 0) {
Divider()
ForEach(vm.menus) { menu in
if menu.visibility {
MainMenuButtonView(menu: menu)
Divider()
}
}
}
.padding(.leading, StyleConstant.Padding.medium)
.padding(.bottom, StyleConstant.Padding.large)
if vm.shortcutMenu.visibility {
VStack(alignment: .leading) {
SectionTitleView(vm.shortcutMenu.primaryText)
.padding(.leading, StyleConstant.Padding.large)
ShortcutListView(shortcuts: vm.shortcuts, width: geometry.size.width) { vm.load() }
.padding(.bottom, StyleConstant.Padding.small)
}
}
if vm.recentlyMenu.visibility {
VStack(alignment: .leading) {
SectionTitleView(vm.recentlyMenu.primaryText)
.padding(.leading, StyleConstant.Padding.large)
AlbumListView(albums: vm.albums, width: geometry.size.width) { vm.load() }
.padding(.bottom, StyleConstant.Padding.small)
}
}
}
MiniPlayerView(bottom: geometry.safeAreaInsets.bottom)
}
.navigationBarHidden(true)
.navigationBarTitle(Text(""))
.edgesIgnoringSafeArea(.all)
.onAppear {
vm.load()
}
}
}
}
}
| 41.214286 | 115 | 0.39688 |
665ca674953c61f707656d4cddab245b8c26242b | 1,593 | swift | Swift | neuCKAN/Controllers/DetailsViewController.swift | WowbaggersLiquidLunch/neuCKAN | 29ee17f90966617d2c32d94d325609d2baad73f4 | [
"WTFPL"
] | null | null | null | neuCKAN/Controllers/DetailsViewController.swift | WowbaggersLiquidLunch/neuCKAN | 29ee17f90966617d2c32d94d325609d2baad73f4 | [
"WTFPL"
] | 1 | 2020-08-05T17:32:45.000Z | 2020-08-26T02:49:15.000Z | neuCKAN/Controllers/DetailsViewController.swift | WowbaggersLiquidLunch/neuCKAN | 29ee17f90966617d2c32d94d325609d2baad73f4 | [
"WTFPL"
] | null | null | null | //
// DetailsViewController.swift
// neuCKAN
//
// Created by you on 20-01-11.
// Copyleft © 2020 Wowbagger & His Liquid Lunch. All wrongs reserved.
//
import Cocoa
import SwiftUI
/// A controller that manages the details split view of neuCKAN.
class DetailsViewController: NSViewController {
/// The details view.
let detailsView = NSHostingView(rootView: DetailsView(release: nil))
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
NotificationCenter.default.addObserver(self, selector: #selector(modReleaseSelectionDidChange(_:)), name: .modReleaseSelectionDidChange, object: nil)
// MARK: Subview Configurations
detailsView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(detailsView)
detailsView.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
detailsView.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
detailsView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
detailsView.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true
}
override var representedObject: Any? {
didSet {
// Update the view, if already loaded.
}
}
/// Called after the details view controller receives a notification that the mod release selection change.
/// - Parameter notification: The notification that the mod release selection change.
@objc func modReleaseSelectionDidChange(_ notification: Notification) {
if let release = notification.object as? Release {
detailsView.rootView.release = release
}
}
}
| 33.893617 | 151 | 0.770873 |
516868f573cc358556116c4c6e19e894cc0b85a3 | 1,253 | kt | Kotlin | pipeline/plugins/pathextractor/src/main/kotlin/nl/tudelft/hyperion/pipeline/pathextractor/ExtractPath.kt | SERG-Delft/hyperion | a010d1b6e59592231a2ed29a6d11af38644f2834 | [
"Apache-2.0"
] | 10 | 2020-06-12T07:55:09.000Z | 2020-10-21T17:29:20.000Z | pipeline/plugins/pathextractor/src/main/kotlin/nl/tudelft/hyperion/pipeline/pathextractor/ExtractPath.kt | SERG-Delft/hyperion | a010d1b6e59592231a2ed29a6d11af38644f2834 | [
"Apache-2.0"
] | 40 | 2020-06-12T13:48:36.000Z | 2020-07-01T16:21:09.000Z | pipeline/plugins/pathextractor/src/main/kotlin/nl/tudelft/hyperion/pipeline/pathextractor/ExtractPath.kt | SERG-Delft/hyperion | a010d1b6e59592231a2ed29a6d11af38644f2834 | [
"Apache-2.0"
] | 2 | 2020-07-01T17:17:12.000Z | 2020-07-29T19:26:03.000Z | package nl.tudelft.hyperion.pipeline.pathextractor
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.node.ObjectNode
import nl.tudelft.hyperion.pipeline.findParent
private val mapper = ObjectMapper()
/**
* Function that replaces the value of a package field with the actual java class path
* @param input The json string
* @param config The path renaming configuration
* @return A JSON string with the new value
*/
@Suppress("ReturnCount", "TooGenericExceptionCaught")
fun extractPath(input: String, config: Configuration): String {
// Return value unmodified if JSON is invalid or not an object
try {
val tree = mapper.readTree(input) as ObjectNode
val parent = findParent(tree, config.field)
val packageNode = parent.findValue(config.fieldName)
// Drop Kt suffix for kotlin support.
val packageFields = packageNode.textValue().split(".").map {
if (it.endsWith("Kt")) it.dropLast(2) else it
}
val value = "${config.relativePathFromSource}/${packageFields.joinToString("/")}${config.postfix}"
parent.put(config.fieldName, value)
return tree.toString()
} catch (ex: Exception) {
return input
}
}
| 34.805556 | 106 | 0.703911 |
290b5634c64e1aaac95702f8338b8a495beb453e | 374 | py | Python | django_socketio_chat/admin.py | leukeleu/django-socketio-chat | 8bdebfe6591202b9e13144afbea40e93189082d0 | [
"Apache-2.0"
] | 6 | 2016-10-29T13:31:53.000Z | 2021-04-21T04:42:47.000Z | django_socketio_chat/admin.py | leukeleu/django-socketio-chat | 8bdebfe6591202b9e13144afbea40e93189082d0 | [
"Apache-2.0"
] | null | null | null | django_socketio_chat/admin.py | leukeleu/django-socketio-chat | 8bdebfe6591202b9e13144afbea40e93189082d0 | [
"Apache-2.0"
] | 7 | 2015-04-09T22:34:09.000Z | 2022-03-17T20:06:14.000Z | from django.contrib import admin
from .models import Chat, UserChatStatus, Message
class ChatAdmin(admin.ModelAdmin):
pass
class UserChatStatusAdmin(admin.ModelAdmin):
pass
class MessageAdmin(admin.ModelAdmin):
pass
admin.site.register(Chat, ChatAdmin)
admin.site.register(UserChatStatus, UserChatStatusAdmin)
admin.site.register(Message, MessageAdmin)
| 17.809524 | 56 | 0.794118 |
4c68a60da9c5465bebc517b307848bf3754e7912 | 1,086 | kt | Kotlin | app/src/main/java/com/bharathvishal/appmanager/Classes/AppInfo.kt | gaptab/uninstaller | 6703f91b70eb56418459b8892852c2e12c83f4e4 | [
"Apache-2.0"
] | 33 | 2018-07-10T09:29:53.000Z | 2022-01-17T12:46:53.000Z | app/src/main/java/com/bharathvishal/appmanager/Classes/AppInfo.kt | gaptab/uninstaller | 6703f91b70eb56418459b8892852c2e12c83f4e4 | [
"Apache-2.0"
] | 2 | 2018-06-28T08:52:18.000Z | 2019-01-28T22:17:50.000Z | app/src/main/java/com/bharathvishal/appmanager/Classes/AppInfo.kt | gaptab/uninstaller | 6703f91b70eb56418459b8892852c2e12c83f4e4 | [
"Apache-2.0"
] | 15 | 2018-08-15T14:01:43.000Z | 2021-03-04T01:01:21.000Z | package com.bharathvishal.appmanager.Classes
import android.net.Uri
import com.bharathvishal.appmanager.Constants.Constants
/**
* Created by Bharath Vishal on 25-06-2018.
* App info Class
*/
class AppInfo {
var appName: String? = null
var appPackage: String? = null
var installedOn: String? = null
var lastUpdated: String? = null
var appVersion: String? = null
var appDrawableURI: Uri? = null
constructor() {
appName = Constants.STRING_EMPTY
appPackage = Constants.STRING_EMPTY
installedOn = Constants.STRING_EMPTY
lastUpdated = Constants.STRING_EMPTY
appVersion = Constants.STRING_EMPTY
appDrawableURI = Uri.EMPTY
}
constructor(appName: String, appPackage: String, installed_On: String, last_Updated: String, appVersion: String, appDrawableURI: Uri) {
this.appName = appName
this.appPackage = appPackage
this.installedOn = installed_On
this.lastUpdated = last_Updated
this.appVersion = appVersion
this.appDrawableURI = appDrawableURI
}
}
| 27.15 | 139 | 0.691529 |
c65ab78ea4810b41513d4c516b74bf900cb757e4 | 590 | rb | Ruby | db/migrate/002_create_project_typologies_table.rb | nanego/redmine_typologies | 5489abb83e8d9baa5a019b05a90725a80dcaec69 | [
"MIT"
] | 1 | 2020-11-18T07:07:54.000Z | 2020-11-18T07:07:54.000Z | db/migrate/002_create_project_typologies_table.rb | nanego/redmine_typologies | 5489abb83e8d9baa5a019b05a90725a80dcaec69 | [
"MIT"
] | 1 | 2020-11-16T10:00:45.000Z | 2020-11-21T19:07:21.000Z | db/migrate/002_create_project_typologies_table.rb | nanego/redmine_typologies | 5489abb83e8d9baa5a019b05a90725a80dcaec69 | [
"MIT"
] | 1 | 2021-09-07T23:27:32.000Z | 2021-09-07T23:27:32.000Z | class CreateProjectTypologiesTable < ActiveRecord::Migration[5.2]
def self.up
unless ActiveRecord::Base.connection.table_exists? 'project_typologies'
create_table :project_typologies do |t|
t.column :typology_id, :integer, :null => false
t.column :project_id, :integer, :null => false
t.column :tracker_id, :integer
t.column :active, :boolean
end
add_index :project_typologies, [:project_id, :typology_id], :unique => true, :name => :projects_typologies_ids
end
end
def self.down
drop_table :project_typologies
end
end
| 32.777778 | 116 | 0.694915 |
75191625d09c0790030fff7c91b25137853c8c04 | 65,656 | h | C | include/math/mmMath.h | ogx/Calculation2D | 79f9d05986227e4677a8f88309c2eb6512a3de69 | [
"Unlicense",
"MIT"
] | null | null | null | include/math/mmMath.h | ogx/Calculation2D | 79f9d05986227e4677a8f88309c2eb6512a3de69 | [
"Unlicense",
"MIT"
] | 1 | 2015-04-18T16:56:43.000Z | 2015-04-18T16:56:43.000Z | include/math/mmMath.h | ogx/Calculation2D | 79f9d05986227e4677a8f88309c2eb6512a3de69 | [
"Unlicense",
"MIT"
] | null | null | null | //******************************************************************************
//******************************************************************************
//
// Description: This header defines math functionality for the system.
//
//******************************************************************************
//******************************************************************************
#ifndef mmMathH
#define mmMathH
#include <vector>
#define _USE_MATH_DEFINES 1
#include <math.h>
#include <mmGlobalDefs.h>
////////////////////////////////////////////////////////////////////////////////
/// This namespace implements math routines used in the system.
////////////////////////////////////////////////////////////////////////////////
namespace mmMath
{
extern const mmReal g_rPI;
extern const mmReal g_r2PI;
extern const mmReal g_rPI_div2;
extern const mmReal g_rPIAndMargin;
extern const mmReal g_rMaxReal;
extern const mmReal g_rMinReal;
extern const mmFloat g_fMaxFloat;
extern const mmFloat g_fMinFloat;
extern const mmReal g_rOne;
extern const mmReal g_rSmall;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines two dimensional point with real coords.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// X coord.
////////////////////////////////////////////////////////////////////////////////
mmReal rX;
////////////////////////////////////////////////////////////////////////////////
/// Y coord.
////////////////////////////////////////////////////////////////////////////////
mmReal rY;
} sPoint2D;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines three dimensional point with real coords.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// X coord.
////////////////////////////////////////////////////////////////////////////////
mmReal rX;
////////////////////////////////////////////////////////////////////////////////
/// Y coord.
////////////////////////////////////////////////////////////////////////////////
mmReal rY;
////////////////////////////////////////////////////////////////////////////////
/// Z coord.
////////////////////////////////////////////////////////////////////////////////
mmReal rZ;
} sPoint3D;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines two dimensional line (y=A*x + B).
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// A coefficient of line.
////////////////////////////////////////////////////////////////////////////////
mmReal rA;
////////////////////////////////////////////////////////////////////////////////
/// B coefficient of line.
////////////////////////////////////////////////////////////////////////////////
mmReal rB;
} sLine2D;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines fields required to calculate three dimensional line
/// with real coords by MinRMS method.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Z^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumZ2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXY;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Z.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXZ;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y*Z.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumYZ;
////////////////////////////////////////////////////////////////////////////////
/// Points count.
////////////////////////////////////////////////////////////////////////////////
mmReal rCount;
} sLine3DCalc;
////////////////////////////////////////////////////////////////////////////////
/// Values for calculating best fitted polynomial y = ax^3 + bx^2 +cx + d
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// Sum of x^6.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX6;
////////////////////////////////////////////////////////////////////////////////
/// Sum of x^5.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX5;
////////////////////////////////////////////////////////////////////////////////
/// Sum of x^4.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX4;
////////////////////////////////////////////////////////////////////////////////
/// Sum of x^3.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX3;
////////////////////////////////////////////////////////////////////////////////
/// Sum of x^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of x.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX;
////////////////////////////////////////////////////////////////////////////////
/// Sum of (x^3)*y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX3Y;
////////////////////////////////////////////////////////////////////////////////
/// Sum of (x^2)*y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2Y;
////////////////////////////////////////////////////////////////////////////////
/// Sum of xy.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXY;
////////////////////////////////////////////////////////////////////////////////
/// Sum of y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY;
////////////////////////////////////////////////////////////////////////////////
/// Points count.
////////////////////////////////////////////////////////////////////////////////
mmReal rCount;
} s3OrderPolynomialXtoYCalc;
////////////////////////////////////////////////////////////////////////////////
/// Definition of polynomial y = ax^3 + bx^2 +cx + d
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// A coefficient.
////////////////////////////////////////////////////////////////////////////////
mmReal rA;
////////////////////////////////////////////////////////////////////////////////
/// B coefficient.
////////////////////////////////////////////////////////////////////////////////
mmReal rB;
////////////////////////////////////////////////////////////////////////////////
/// C coefficient.
////////////////////////////////////////////////////////////////////////////////
mmReal rC;
////////////////////////////////////////////////////////////////////////////////
/// D coefficient.
////////////////////////////////////////////////////////////////////////////////
mmReal rD;
} s3OrderPolynomialXtoY;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines three dimensional line (x-x0)/A = (y-y0)/B = (z-z0)/C.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// A coefficient of line.
////////////////////////////////////////////////////////////////////////////////
mmReal rA;
////////////////////////////////////////////////////////////////////////////////
/// B coefficient of line.
////////////////////////////////////////////////////////////////////////////////
mmReal rB;
////////////////////////////////////////////////////////////////////////////////
/// C coefficient of line.
////////////////////////////////////////////////////////////////////////////////
mmReal rC;
////////////////////////////////////////////////////////////////////////////////
/// Point on line.
////////////////////////////////////////////////////////////////////////////////
sPoint3D sP;
} sLine3D;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines fields required to calculate three dimensional plane
/// with real coords by MinRMS method.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Z^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumZ2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXY;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Z.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXZ;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y*Z.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumYZ;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Z.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumZ;
////////////////////////////////////////////////////////////////////////////////
/// Points count.
////////////////////////////////////////////////////////////////////////////////
mmReal rCount;
} sPlane3DCalc;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines plane formula.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// A coefficient of plane.
////////////////////////////////////////////////////////////////////////////////
mmReal rA;
////////////////////////////////////////////////////////////////////////////////
/// B coefficient of plane.
////////////////////////////////////////////////////////////////////////////////
mmReal rB;
////////////////////////////////////////////////////////////////////////////////
/// C coefficient of plane.
////////////////////////////////////////////////////////////////////////////////
mmReal rC;
////////////////////////////////////////////////////////////////////////////////
/// D coefficient of plane.
////////////////////////////////////////////////////////////////////////////////
mmReal rD;
} sPlane3D;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines fields required to calculate two dimensional circle
/// with real coords by MinRMS method.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^3.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX3;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^2*Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2Y;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Y^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXY2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y^3.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY3;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXY;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY;
////////////////////////////////////////////////////////////////////////////////
/// Pixels/points count.
////////////////////////////////////////////////////////////////////////////////
mmReal rCount;
} sCircle2DCalc;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines fields required to calculate three dimensional sphere
/// with real coords by MinRMS method.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^3.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX3;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^2*Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2Y;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^2*Z.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2Z;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Y^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXY2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Z^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXZ2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y^2*Z.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY2Z;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y*Z^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumYZ2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y^3.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY3;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Z^3.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumZ3;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXY;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Z.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXZ;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y*Z.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumYZ;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Z^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumZ2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Z.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumZ;
////////////////////////////////////////////////////////////////////////////////
/// Pixels/points count.
////////////////////////////////////////////////////////////////////////////////
mmReal rCount;
} sSphere3DCalc;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines three dimensional sphere with real coords.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// X coord of sphere center.
////////////////////////////////////////////////////////////////////////////////
mmReal rX0;
////////////////////////////////////////////////////////////////////////////////
/// Y coord of sphere center.
////////////////////////////////////////////////////////////////////////////////
mmReal rY0;
////////////////////////////////////////////////////////////////////////////////
/// Z coord of sphere center.
////////////////////////////////////////////////////////////////////////////////
mmReal rZ0;
////////////////////////////////////////////////////////////////////////////////
/// Radius of sphere.
////////////////////////////////////////////////////////////////////////////////
mmReal rRadius;
} sSphere3D;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines two dimensional circle with real coords.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// X coord of circle center.
////////////////////////////////////////////////////////////////////////////////
mmReal rX0;
////////////////////////////////////////////////////////////////////////////////
/// Y coord of circle center.
////////////////////////////////////////////////////////////////////////////////
mmReal rY0;
////////////////////////////////////////////////////////////////////////////////
/// Radius of circle.
////////////////////////////////////////////////////////////////////////////////
mmReal rRadius;
} sCircle2D;
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// X coord of circle center.
////////////////////////////////////////////////////////////////////////////////
mmReal rX0;
////////////////////////////////////////////////////////////////////////////////
/// Y coord of circle center.
////////////////////////////////////////////////////////////////////////////////
mmReal rY0;
////////////////////////////////////////////////////////////////////////////////
/// Z coord of circle center.
////////////////////////////////////////////////////////////////////////////////
mmReal rZ0;
////////////////////////////////////////////////////////////////////////////////
/// Radius of circle.
////////////////////////////////////////////////////////////////////////////////
mmReal rRadius;
////////////////////////////////////////////////////////////////////////////////
/// X coord of normal vector to circle plane.
////////////////////////////////////////////////////////////////////////////////
mmReal rA;
////////////////////////////////////////////////////////////////////////////////
/// Y coord of normal vector to circle plane.
////////////////////////////////////////////////////////////////////////////////
mmReal rB;
////////////////////////////////////////////////////////////////////////////////
/// Z coord of normal vector to circle plane.
////////////////////////////////////////////////////////////////////////////////
mmReal rC;
mmReal rPlaneError;
mmReal rCircleError;
} sCircle3D;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines fields required to calculate two dimensional ellipse
/// with real coords by MinRMS method.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^4.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX4;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^3*Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX3Y;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^2*Y^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2Y2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Y^3.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXY3;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y^4.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY4;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^3.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX3;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^2*Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2Y;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Y^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXY2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y^3.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY3;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X*Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumXY;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y^2.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY2;
////////////////////////////////////////////////////////////////////////////////
/// Sum of X.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumX;
////////////////////////////////////////////////////////////////////////////////
/// Sum of Y.
////////////////////////////////////////////////////////////////////////////////
mmReal rSumY;
////////////////////////////////////////////////////////////////////////////////
/// Pixels/points count.
////////////////////////////////////////////////////////////////////////////////
mmReal rCount;
} sEllipse2DCalc;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines two dimensional ellipse with real coords.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// X coord of ellipse center.
////////////////////////////////////////////////////////////////////////////////
mmReal rX0;
////////////////////////////////////////////////////////////////////////////////
/// Y coord of ellipse center.
////////////////////////////////////////////////////////////////////////////////
mmReal rY0;
////////////////////////////////////////////////////////////////////////////////
/// Rotation angle of ellipse.
////////////////////////////////////////////////////////////////////////////////
mmReal rAngle;
////////////////////////////////////////////////////////////////////////////////
/// Radius in x axis of ellipse.
////////////////////////////////////////////////////////////////////////////////
mmReal rRadiusA;
////////////////////////////////////////////////////////////////////////////////
/// Radius in y axis of ellipse.
////////////////////////////////////////////////////////////////////////////////
mmReal rRadiusB;
////////////////////////////////////////////////////////////////////////////////
/// Coefficient of canonical form a: a*x^2 + b*2*x*y + c*y^2 + d*x + e*y + f = 0
////////////////////////////////////////////////////////////////////////////////
mmReal rA;
////////////////////////////////////////////////////////////////////////////////
/// Coefficient of canonical form b: a*x^2 + b*2*x*y + c*y^2 + d*x + e*y + f = 0
////////////////////////////////////////////////////////////////////////////////
mmReal rB;
////////////////////////////////////////////////////////////////////////////////
/// Coefficient of canonical form c: a*x^2 + b*2*x*y + c*y^2 + d*x + e*y + f = 0
////////////////////////////////////////////////////////////////////////////////
mmReal rC;
////////////////////////////////////////////////////////////////////////////////
/// Coefficient of canonical form d: a*x^2 + b*2*x*y + c*y^2 + d*x + e*y + f = 0
////////////////////////////////////////////////////////////////////////////////
mmReal rD;
////////////////////////////////////////////////////////////////////////////////
/// Coefficient of canonical form e: a*x^2 + b*2*x*y + c*y^2 + d*x + e*y + f = 0
////////////////////////////////////////////////////////////////////////////////
mmReal rE;
////////////////////////////////////////////////////////////////////////////////
/// Coefficient of canonical form f: a*x^2 + b*2*x*y + c*y^2 + d*x + e*y + f = 0
////////////////////////////////////////////////////////////////////////////////
mmReal rF;
} sEllipse2D;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines 3D transformation.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// X translation.
////////////////////////////////////////////////////////////////////////////////
mmReal rTranslationX;
////////////////////////////////////////////////////////////////////////////////
/// Y translation.
////////////////////////////////////////////////////////////////////////////////
mmReal rTranslationY;
////////////////////////////////////////////////////////////////////////////////
/// Z translation.
////////////////////////////////////////////////////////////////////////////////
mmReal rTranslationZ;
////////////////////////////////////////////////////////////////////////////////
/// X rotation.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationX;
////////////////////////////////////////////////////////////////////////////////
/// Y rotation.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationY;
////////////////////////////////////////////////////////////////////////////////
/// Z rotation.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationZ;
////////////////////////////////////////////////////////////////////////////////
/// X rotation sin+.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationXSinP;
////////////////////////////////////////////////////////////////////////////////
/// X rotation sin-.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationXSinM;
////////////////////////////////////////////////////////////////////////////////
/// X rotation cos+.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationXCosP;
////////////////////////////////////////////////////////////////////////////////
/// X rotation cos-.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationXCosM;
////////////////////////////////////////////////////////////////////////////////
/// Y rotation sin+.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationYSinP;
////////////////////////////////////////////////////////////////////////////////
/// Y rotation sin-.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationYSinM;
////////////////////////////////////////////////////////////////////////////////
/// Y rotation cos+.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationYCosP;
////////////////////////////////////////////////////////////////////////////////
/// Y rotation cos-.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationYCosM;
////////////////////////////////////////////////////////////////////////////////
/// Z rotation sin+.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationZSinP;
////////////////////////////////////////////////////////////////////////////////
/// Z rotation sin-.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationZSinM;
////////////////////////////////////////////////////////////////////////////////
/// Z rotation cos+.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationZCosP;
////////////////////////////////////////////////////////////////////////////////
/// Z rotation cos-.
////////////////////////////////////////////////////////////////////////////////
mmReal rRotationZCosM;
} s3DTransformation;
////////////////////////////////////////////////////////////////////////////////
/// This structure defines point set.
////////////////////////////////////////////////////////////////////////////////
typedef struct
{
////////////////////////////////////////////////////////////////////////////////
/// Vector of pont indexes.
////////////////////////////////////////////////////////////////////////////////
std::vector<mmInt> vIndexes;
} sFittingPoints;
////////////////////////////////////////////////////////////////////////////////
/// Function solves set of linear equations. All fields of table p_sTB have to be
/// non zeros.
///
/// @param[in] p_psTA input table (size p_iN*p_iN)
/// @param[in,out] p_psTB input/output table (size p_iN)
/// @param[in] p_iN size of tables
////////////////////////////////////////////////////////////////////////////////
void SolveSetOfLinearEquations(mmReal* p_psTA,
mmReal* p_psTB,
mmInt p_iN);
////////////////////////////////////////////////////////////////////////////////
/// Function returns smallest power of 2 but bigger than input number.
///
/// @param[in] p_iInputValue input number
/// @return bigger smallest power of 2
////////////////////////////////////////////////////////////////////////////////
mmInt GetSmallestsBiggerPowerOf2(mmInt p_iInputValue);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates vector product in 3D.
///
/// @param[in] p_sVec1 input vector 1
/// @param[in] p_sVec2 input vector 2
/// @return vector
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D CalcVectorProduct3D(mmMath::sPoint3D p_sVec1,
mmMath::sPoint3D p_sVec2);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates circle by minimum RMS criterion.
///
/// @param[in] p_sCircle2DParams calculated params of circle
/// @return circle definition
////////////////////////////////////////////////////////////////////////////////
mmMath::sCircle2D CalcCircle2DFormulaByMinRMS(sCircle2DCalc p_sCircle2DParams);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates RMS value from set of distances between p_sPoint3D point
/// and each point in vector pointed by p_pvInPoints.
///
/// @param[in] p_sPoint3D input point,
/// @param[in] p_pvInPoints pointer to vector of points,
/// @return RMS value calculated.
////////////////////////////////////////////////////////////////////////////////
mmReal CalcPoint3DToPointsRMSError(mmMath::sPoint3D p_sPoint3D,
std::vector<mmMath::sPoint3D>* p_pvInPoints);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates RMS value from set of distances between circle center
/// p_sPoint3D point and each point in vector pointed by p_pvInPoints representing
/// points on circumference of a circle. Radius is calculated on base of square
/// root average sum of distances from circle center and rest of points.
///
/// @param[in] p_sPoint3D circle center,
/// @param[in] p_pvInPoints pointer to vector of points on circumference of a crcle,
/// @return RMS value calculated.
////////////////////////////////////////////////////////////////////////////////
mmReal CalcCircle3DCenterToPointsRMSError(mmMath::sPoint3D p_sPoint3D,
std::vector<mmMath::sPoint3D>* p_pvInPoints);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates formula of circle 3D on base of ponts stored in vector.
///
/// @param[in] p_pvInPoints pointer to vector of points on circumference of a crcle,
/// @return circle 3D formula calculated.
////////////////////////////////////////////////////////////////////////////////
mmMath::sCircle3D CalcCircle3DFormulaByMinRMS(std::vector<mmMath::sPoint3D>* p_pvInPoints);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates sphere by minimum RMS criterion.
///
/// @param[in] p_psSphere3DParams calculated params of sphere,
/// @return sphere definition.
////////////////////////////////////////////////////////////////////////////////
mmMath::sSphere3D CalcSphere3DFormulaByMinRMS(sSphere3DCalc* p_psSphere3DParams);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates sphere by minimum RMS criterion.
///
/// @param[in] p_pvInPoints pointer to vector of points representing sphere,
/// @return sphere definition.
////////////////////////////////////////////////////////////////////////////////
mmMath::sSphere3D CalcSphere3DFormulaByMinRMS(std::vector<mmMath::sPoint3D>* p_pvInPoints);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates ellipse by minimum RMS criterion.
///
/// @param[in] p_sEllipse2DParams calculated params of ellipse
/// @return ellipse definition
////////////////////////////////////////////////////////////////////////////////
mmMath::sEllipse2D CalcEllipse2DFormulaByMinRMS(sEllipse2DCalc p_sEllipse2DParams);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 2D line formula from two points.
///
/// @param[in] p_sPoint1 point of line
/// @param[in] p_sPoint2 point of line
/// @return line definition
////////////////////////////////////////////////////////////////////////////////
mmMath::sLine2D CalcLine2D(mmMath::sPoint2D p_sPoint1,
mmMath::sPoint2D p_sPoint2);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D line formula from two points.
///
/// @param[in] p_sPoint1 point of line
/// @param[in] p_sPoint2 point of line
/// @return line definition
////////////////////////////////////////////////////////////////////////////////
mmMath::sLine3D CalcLine3D(mmMath::sPoint3D p_sPoint1,
mmMath::sPoint3D p_sPoint2);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D line formula from many points. If A=B=C=0 then
/// line calculation error.
///
/// @param[in] p_pvPoints pointer to vector with 3D points,
/// @param[out] p_psLineFormula line formula,
/// @return TRUE if success, FALSE otherwise.
////////////////////////////////////////////////////////////////////////////////
bool CalcBestLine3D(std::vector<mmMath::sPoint3D>* p_pvPoints,
mmMath::sLine3D* p_psLineFormula);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D line formula from precalculated sphere calc params
/// and central point (point of line).
///
/// @param[in] p_sLineCalcValues precalculated values for line formula calculation,
/// @param[in] p_sCentralPoint point of line (in most cases average point),
/// @param[out] p_psLineFormula line formula,
/// @return TRUE if success, FALSE otherwise
////////////////////////////////////////////////////////////////////////////////
bool CalcBestLine3D(mmMath::sLine3DCalc p_sLineCalcValues,
mmMath::sPoint3D p_sCentralPoint,
mmMath::sLine3D* p_psLineFormula);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D plane formula from three points.
///
/// @param[in] p_sPoint1 point of plane
/// @param[in] p_sPoint2 point of plane
/// @param[in] p_sPoint3 point of plane
/// @return plane formula
////////////////////////////////////////////////////////////////////////////////
mmMath::sPlane3D CalcPlane3D(mmMath::sPoint3D p_sPoint1,
mmMath::sPoint3D p_sPoint2,
mmMath::sPoint3D p_sPoint3);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D plane formula from point and vector.
///
/// @param[in] p_sPoint point of plane
/// @param[in] p_sVector normal vector of plane
/// @return plane formula
////////////////////////////////////////////////////////////////////////////////
mmMath::sPlane3D CalcPlane3D(mmMath::sPoint3D p_sPoint,
mmMath::sPoint3D p_sVector);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D plane formula from set of points.
///
/// @param[in] p_vPoints vector with points for plane calculation
/// @param[out] p_prError if not NULL the plane fitting RMS error
/// @return plane formula
////////////////////////////////////////////////////////////////////////////////
mmMath::sPlane3D CalcBestPlane3D(std::vector<mmMath::sPoint3D> p_vPoints,
mmReal* p_prError = NULL);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D plane formula from set of points.
///
/// @param[in] p_prInXYZPoints ponter to array of (x,y,z) points for plane calculation
/// @param[in] p_iXYZPointsCount point count n array p_prInXYZPoints
/// @param[out] p_prError if not NULL the plane fitting RMS error
/// @param[out] p_prMaxError if not NULL the plane fitting maximum error
/// @return plane formula
////////////////////////////////////////////////////////////////////////////////
mmMath::sPlane3D CalcBestPlane3D(mmReal* p_prInXYZPoints,
mmInt p_iXYZPointsCount,
mmReal* p_prError = NULL,
mmReal* p_prMaxError = NULL);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D plane formula from a precalculated structure.
///
/// @param[in] p_psPlaneCalcParams pointer to precalculated mmMath::sPlane3DCalc
/// structure
/// @return vector with possible plane formulas
////////////////////////////////////////////////////////////////////////////////
std::vector<mmMath::sPlane3D> CalcBestPossiblePlanes3D(mmMath::sPlane3DCalc* p_psPlaneCalcParams);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D point projection on 3D plane.
///
/// @param[in] p_sPlane3D input plane formula
/// @param[in] p_sPoint3D input point coordinates
/// @return point coordinates
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D CalcPoint3DProjectionOnPlane3D(mmMath::sPlane3D p_sPlane3D,
mmMath::sPoint3D p_sPoint3D);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D point representing intersection of two 3D lines.
/// In case of not crossed lines the closest point to these two lines is
/// returned.
///
/// @param[in] p_sLine1 input first line formula
/// @param[in] p_sLine2 input second line formula
/// @param[out] p_psPoint coordnates of calculated point
/// @return TRUE if success, FALSE otherwise
////////////////////////////////////////////////////////////////////////////////
bool CalcLinesIntersection2D(mmMath::sLine2D p_sLine1,
mmMath::sLine2D p_sLine2,
mmMath::sPoint2D* p_psPoint);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates two points from two lines. These points are closest
/// to other line and laying on one line.
///
/// @param[in] p_sLine1 first line
/// @param[in] p_sLine2 second line
/// @param[out] p_psPointOnLine1 resultant point from line 1
/// @param[out] p_psPointOnLine2 resultant point from line 2
/// @return TRUE if success, FALSE otherwise
////////////////////////////////////////////////////////////////////////////////
bool CalcLineToLineClosestPoints(mmMath::sLine3D p_sLine1,
mmMath::sLine3D p_sLine2,
mmMath::sPoint3D* p_psPointOnLine1,
mmMath::sPoint3D* p_psPointOnLine2);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D distance between line and point.
///
/// @param[in] p_sPoint point
/// @param[in] p_sLine line
/// @return distance
////////////////////////////////////////////////////////////////////////////////
mmReal CalcPointToLineDistance3D(mmMath::sPoint3D p_sPoint,
mmMath::sLine3D p_sLine);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D distance between plane and point.
///
/// @param[in] p_sPoint3D point
/// @param[in] p_sPlane3D line
/// @return distance
////////////////////////////////////////////////////////////////////////////////
mmReal CalcPointToPlaneDistance3D(mmMath::sPoint3D p_sPoint3D,
mmMath::sPlane3D p_sPlane3D);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D point projection on 3D line.
///
/// @param[in] p_sPoint input point coordinates
/// @param[in] p_sLine input line formula
/// @return point coordinates
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D CalcPoint3DProjectionOnLine3D(mmMath::sPoint3D p_sPoint,
mmMath::sLine3D p_sLine);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D distance between point and point.
///
/// @param[in] p_sPoint1 point 1
/// @param[in] p_sPoint2 point 2
/// @return distance
////////////////////////////////////////////////////////////////////////////////
mmReal CalcPointToPointDistance3D(mmMath::sPoint3D p_sPoint1,
mmMath::sPoint3D p_sPoint2);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D distance between point and point.
///
/// @param[in] p_rPoint1X point 1 x coord
/// @param[in] p_rPoint1Y point 1 y coord
/// @param[in] p_rPoint1Z point 1 z coord
/// @param[in] p_sPoint2X point 2 x coord
/// @param[in] p_sPoint2Y point 2 y coord
/// @param[in] p_sPoint2Z point 2 z coord
/// @return distance
////////////////////////////////////////////////////////////////////////////////
mmReal CalcPointToPointDistance3D(mmReal p_rPoint1X,
mmReal p_rPoint1Y,
mmReal p_rPoint1Z,
mmReal p_rPoint2X,
mmReal p_rPoint2Y,
mmReal p_rPoint2Z);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3D vector length.
///
/// @param[in] p_sVector vector coordinates
/// @return vector length
////////////////////////////////////////////////////////////////////////////////
mmReal CalcVector3DLength(mmMath::sPoint3D p_sVector);
////////////////////////////////////////////////////////////////////////////////
/// Function normalizes coordinates of 3D vector.
///
/// @param[in] p_sInVector input vector coordinates
/// @return normalzed vector
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D NormalizeVector3D(mmMath::sPoint3D p_sInVector);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates point after transformation.
///
/// @param[in] p_psPoint pointer to point
/// @param[in] p_psTransformation pointer to transformation matrix
/// @return calculated point
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D TransformPoint(mmMath::sPoint3D* p_psPoint,
mmMath::s3DTransformation* p_psTransformation);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates point after transformation using pre-calculated rotations.
///
/// @param[in] p_psPoint pointer to point
/// @param[in] p_psTransformation pointer to transformation matrix
/// @return calculated point
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D TransformPointFast(mmMath::sPoint3D* p_psPoint,
mmMath::s3DTransformation* p_psTransformation);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates point after inverse transformation.
///
/// @param[in] p_psPoint pointer to point
/// @param[in] p_psTransformation pointer to transformation matrix
/// @return calculated point
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D UntransformPoint(mmMath::sPoint3D* p_psPoint,
mmMath::s3DTransformation* p_psTransformation);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates vector after rotations from transformation.
///
/// @param[in] p_psVector pointer to vector
/// @param[in] p_psTransformation pointer to transformation matrix
/// @return calculated vector
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D TransformVector(mmMath::sPoint3D* p_psVector,
mmMath::s3DTransformation* p_psTransformation);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates vector after inverse rotations from transformation.
///
/// @param[in] p_psVector pointer to vector
/// @param[in] p_psTransformation pointer to transformation matrix
/// @return calculated vector
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D UntransformVector(mmMath::sPoint3D* p_psVector,
mmMath::s3DTransformation* p_psTransformation);
////////////////////////////////////////////////////////////////////////////////
/// Function transforms vector from local to global coords according to
/// defined axes of global coordinate set.
///
/// @param[in] p_sGlobalXAxis vector with X axis of global coord set
/// @param[in] p_sGlobalYAxis vector with Y axis of global coord set
/// @param[in] p_sGlobalZAxis vector with Z axis of global coord set
/// @param[in] p_sLocalVector vector in local coords to transform
/// @return calculated vector in global coords
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D CalcVectorInGlobalCoords(mmMath::sPoint3D p_sGlobalXAxis,
mmMath::sPoint3D p_sGlobalYAxis,
mmMath::sPoint3D p_sGlobalZAxis,
mmMath::sPoint3D p_sLocalVector);
////////////////////////////////////////////////////////////////////////////////
/// Function transforms vector from global to local coords according to
/// defined axes of global coordinate set.
///
/// @param[in] p_sGlobalXAxis vector with X axis of global coord set
/// @param[in] p_sGlobalYAxis vector with Y axis of global coord set
/// @param[in] p_sGlobalZAxis vector with Z axis of global coord set
/// @param[in] p_sGlobalVector vector in global coords to transform
/// @return calculated vector in local coords
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D CalcVectorInLocalCoords(mmMath::sPoint3D p_sGlobalXAxis,
mmMath::sPoint3D p_sGlobalYAxis,
mmMath::sPoint3D p_sGlobalZAxis,
mmMath::sPoint3D p_sGlobalVector);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates error from p_vStablePoints to p_vToFitPoints
/// using min RMS criterion.
///
/// @param[in] p_pvStablePoints pointer to set of stable points
/// @param[in] p_pvToFitPoints pointer to set of points to transform
/// @param[in] p_psTransformation pointer to transformation matrix
/// @return calculated error
////////////////////////////////////////////////////////////////////////////////
mmReal CalcPointsToPointsMinRMSError(std::vector<sPoint3D>* p_pvStablePoints,
std::vector<sPoint3D>* p_pvToFitPoints,
mmMath::s3DTransformation* p_psTransformation);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates best translation (with minimal RMS error) between
/// groups of points with threshold distance.
///
/// @param[in] p_pvStablePoints pointer to set of stable points
/// @param[in] p_pvToFitPoints pointer to set of points to transform
/// @param[in] p_psTransformation pointer to transformation matrix
/// @param[in] p_rIterationDist transformation distance threshold
/// @return calculated error
////////////////////////////////////////////////////////////////////////////////
mmReal CalcPointsToPointsBestTranslation(std::vector<sPoint3D>* p_pvStablePoints,
std::vector<sPoint3D>* p_pvToFitPoints,
mmMath::s3DTransformation* p_psTransformation,
mmReal p_rIterationDist);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates translation between first points in vectors after
/// transformation.
///
/// @param[in] p_pvStablePoints pointer to set of stable points
/// @param[in] p_pvToFitPoints pointer to set of points to transform
/// @param[in] p_psTransformation pointer to transformation matrix
/// @return calculated error
////////////////////////////////////////////////////////////////////////////////
mmReal CalcFirstPointsTranslation(std::vector<sPoint3D>* p_pvStablePoints,
std::vector<sPoint3D>* p_pvToFitPoints,
mmMath::s3DTransformation* p_psTransformation);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates simple transformation from p_vStablePoints to p_vToFitPoints
/// using first three poits angles criterion.
///
/// @param[in] p_vStablePoints set of stable points
/// @param[in] p_vToFitPoints set of points to transform
/// @param[in] p_rIterValue iteration value in [mm]
/// @param[out] p_prFittingError if not NULL then fttng RMS error is returned
/// @return calculated transformation
////////////////////////////////////////////////////////////////////////////////
mmMath::s3DTransformation CalcInitialPointsToPointsTransformation(std::vector<sPoint3D> p_vStablePoints,
std::vector<sPoint3D> p_vToFitPoints,
mmReal p_rIterValue = 1.0,
mmReal* p_prFittingError = NULL);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates transformation from p_vStablePoints to p_vToFitPoints
/// using min RMS criterion.
///
/// @param[in] p_vStablePoints set of stable points
/// @param[in] p_vToFitPoints set of points to transform
/// @param[in] p_rMaxIterValue maximum iteration value in [mm]
/// @param[in] p_rMinIterValue minimum iteration value in [mm]
/// @param[in] p_bLockTranslations if equal to TRUE then translationa are locked
/// @param[in] p_psInitialTransformation initial transformation for iterations
/// @param[out] p_prFittingError if not NULL then fttng RMS error is returned
/// @return calculated transformation
////////////////////////////////////////////////////////////////////////////////
mmMath::s3DTransformation CalcPointsToPointsTransformation(std::vector<sPoint3D> p_vStablePoints,
std::vector<sPoint3D> p_vToFitPoints,
mmReal p_rMaxIterValue = 5.0,
mmReal p_rMinIterValue = 0.000001,
bool p_bLockTranslations = false,
mmMath::s3DTransformation* p_psInitialTransformation = NULL,
mmReal* p_prFittingError = NULL);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates transformation from p_vStablePoints to p_vToFitPoints
/// with assumption that points representing a rigid body. It uses min RMS
/// criterion.
///
/// @param[in] p_vStablePoints set of stable points
/// @param[in] p_vToFitPoints set of points to transform
/// @param[in] p_rMaxIterValue maximum iteration value in [mm]
/// @param[in] p_rMinIterValue minimum iteration value in [mm]
/// @param[in] p_psInitialTransformation initial transformation for iterations
/// @param[out] p_prFittingError if not NULL then fttng RMS error is returned
/// @return calculated transformation
////////////////////////////////////////////////////////////////////////////////
mmMath::s3DTransformation CalcRigidBodyTransformation(std::vector<sPoint3D> p_vStablePoints,
std::vector<sPoint3D> p_vToFitPoints,
mmReal p_rMaxIterValue = 5.0,
mmReal p_rMinIterValue = 0.000001,
mmMath::s3DTransformation* p_psInitialTransformation = NULL,
mmReal* p_prFittingError = NULL);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates transformation from p_sStableVector to p_sToFitVector
/// with assumption that only rotations are used.
///
/// @param[in] p_sStableVector stable vector
/// @param[in] p_sToFitVector to transform vector
/// @param[in] p_bLockXRotation defines if X rotation is used
/// @param[in] p_bLockYRotation defines if Y rotation is used
/// @param[in] p_bLockZRotation defines if Z rotation is used
/// @param[in] p_rMaxIterValueInDeg maximum iteration value in [deg]
/// @param[in] p_rMinIterValueInDeg minimum iteration value in [deg]
/// @param[out] p_prFittingError if not NULL then error is returned
/// @return calculated transformation
////////////////////////////////////////////////////////////////////////////////
mmMath::s3DTransformation CalcVectorToVectorTransformation(mmMath::sPoint3D p_sStableVector,
mmMath::sPoint3D p_sToFitVector,
bool p_bLockXRotation = false,
bool p_bLockYRotation = false,
bool p_bLockZRotation = false,
mmReal p_rMaxIterValueInDeg = 5.0,
mmReal p_rMinIterValueInDeg = 0.0000001,
mmReal* p_prFittingError = NULL);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates plane and line intersection in 3D.
///
/// @param[in] p_sPlane plane formula
/// @param[in] p_sLine line formula
/// @return calculated point
////////////////////////////////////////////////////////////////////////////////
mmMath::sPoint3D CalcPlaneAndLineIntersection3D(mmMath::sPlane3D p_sPlane,
mmMath::sLine3D p_sLine);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates 3 order polynomial X to Y.
///
/// @param[in] p_sInValues plane formula
/// @return definition of polynomial
////////////////////////////////////////////////////////////////////////////////
mmMath::s3OrderPolynomialXtoY Calc3OrderPolynomialYtoY(mmMath::s3OrderPolynomialXtoYCalc p_sInValues);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates if 2D point is located inside rectangle 2D.
///
/// @param[in] p_sPoint11 point 1 coordinates
/// @param[in] p_sPoint12 point 2 coordinates
/// @param[in] p_sPoint21 point 3 coordinates
/// @param[in] p_sPoint22 point 4 coordinates
/// @param[in] p_sPoint coordinates of calculated point
/// @return TRUE if it is inside, FALSE otherwise
////////////////////////////////////////////////////////////////////////////////
bool IsPointInsideRectangle2D(mmMath::sPoint2D p_sPoint11,
mmMath::sPoint2D p_sPoint12,
mmMath::sPoint2D p_sPoint21,
mmMath::sPoint2D p_sPoint22,
mmMath::sPoint2D p_sPoint);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates linear weights of pont inside rectangle.
///
/// @param[in] p_sPoint11 point 1 coordinates
/// @param[in] p_sPoint12 point 2 coordinates
/// @param[in] p_sPoint21 point 3 coordinates
/// @param[in] p_sPoint22 point 4 coordinates
/// @param[in] p_sPoint coordinates of calculated point
/// @param[out] p_prWeightX pointer to resulting X coords weight
/// @param[out] p_prWeightY pointer to resulting Y coords weight
////////////////////////////////////////////////////////////////////////////////
void CalcXYWeightsFromRectangle2D(mmMath::sPoint2D p_sPoint11,
mmMath::sPoint2D p_sPoint12,
mmMath::sPoint2D p_sPoint21,
mmMath::sPoint2D p_sPoint22,
mmMath::sPoint2D p_sPoint,
mmReal* p_prWeightX,
mmReal* p_prWeightY);
////////////////////////////////////////////////////////////////////////////////
/// Function searches for largest group of points in two sets. Criterion of
/// selection is based on rule that all distances between ponts insode group
/// should be the same for both sets with accuracy less than p_rDistanceThreshold.
///
/// @param[in] p_pv1stGroupOfPoints pointer to vector with 1st group
/// @param[in] p_pv2ndGroupOfPoints pointer to vector with 2nd group
/// @param[in] p_rDistanceThreshold distance threshold
/// @param[out] p_pvFoundPointIndexes pointer to vector which stores indexes
/// of largest group points
/// @return number of points in largest group
////////////////////////////////////////////////////////////////////////////////
mmInt FindLargerGroupOfFittingPointsFromOrderedGroups(std::vector<mmMath::sPoint3D>* p_pv1stGroupOfPoints,
std::vector<mmMath::sPoint3D>* p_pv2ndGroupOfPoints,
mmReal p_rDistanceThreshold,
std::vector<mmInt>* p_pvFoundPointIndexes);
////////////////////////////////////////////////////////////////////////////////
/// Function calculates angle between two 3D vectors.
///
/// @param[in] p_psP3D1 pointer to normalized vector 1
/// @param[in] p_psP3D2 pointer to normalized vector 2
/// @return angle in degrees between vectors
////////////////////////////////////////////////////////////////////////////////
mmReal CalcNormalizedVector3DToNormalizedVector3DAngle(mmMath::sPoint3D* p_psP3D1,
mmMath::sPoint3D* p_psP3D2);
};
#endif
| 50.738794 | 108 | 0.31857 |
cb68fc62fbe6a6134146433a816764e573e5b009 | 1,512 | html | HTML | index.html | doerfli/bytesinmotion | b2af9a9dffb28cc3f23f64d2096d182b0be6a8fa | [
"MIT"
] | 2 | 2015-02-19T10:01:25.000Z | 2015-02-19T13:18:27.000Z | index.html | doerfli/bytesinmotion | b2af9a9dffb28cc3f23f64d2096d182b0be6a8fa | [
"MIT"
] | null | null | null | index.html | doerfli/bytesinmotion | b2af9a9dffb28cc3f23f64d2096d182b0be6a8fa | [
"MIT"
] | null | null | null | <!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Nova+Mono" rel="stylesheet">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/bytes.css">
</head>
<body>
<style>#forkongithub a{background:#111;color:#1B3F8B;text-decoration:none;font-family:arial,sans-serif;text-align:center;font-weight:bold;padding:5px 40px;font-size:1rem;line-height:2rem;position:relative;transition:0.5s;}#forkongithub a:hover{background:#27408B;color:#fff;}#forkongithub a::before,#forkongithub a::after{content:"";width:100%;display:block;position:absolute;top:1px;left:0;height:1px;background:#fff;}#forkongithub a::after{bottom:1px;top:auto;}@media screen and (min-width:800px){#forkongithub{position:absolute;display:block;top:0;right:0;width:200px;overflow:hidden;height:200px;z-index:9999;}#forkongithub a{width:200px;position:absolute;top:60px;right:-60px;transform:rotate(45deg);-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);-moz-transform:rotate(45deg);-o-transform:rotate(45deg);box-shadow:4px 4px 10px rgba(0,0,0,0.8);}}</style><span id="forkongithub"><a href="https://github.com/doerfli/bytesinmotion">Fork me on GitHub</a></span>
<div class="main">
</div>
<script src="js/main.js"></script>
</body>
</html>
| 60.48 | 976 | 0.739418 |
6184642f1b59c73f7bb90b7745c0d644006f3e4b | 2,057 | css | CSS | main.css | panicsteve/blogging-with-bear | e7977b13e67ed48c4965e552aa2d9e2e0af28736 | [
"MIT"
] | 42 | 2018-08-11T17:29:37.000Z | 2021-09-06T03:14:36.000Z | main.css | panicsteve/blogging-with-bear | e7977b13e67ed48c4965e552aa2d9e2e0af28736 | [
"MIT"
] | 4 | 2018-08-12T12:15:25.000Z | 2018-10-08T22:05:13.000Z | main.css | panicsteve/blogging-with-bear | e7977b13e67ed48c4965e552aa2d9e2e0af28736 | [
"MIT"
] | 4 | 2018-09-03T02:12:54.000Z | 2021-05-21T15:05:11.000Z | /* Part of Blogging with Bear by Steven Frank <stevenf@panic.com> */
* {
border: 0;
outline: 0;
margin: 0;
padding: 0;
font-weight: normal;
}
html {
border-top: 8px solid #f00;
font-family: Helvetica, sans-serif;
color: #000;
}
b {
font-weight: bold;
}
body {
background-color: #ddd;
}
header {
background-color: #fff;
padding: 20px 40px 30px 20px;
overflow: hidden;
}
header h1 a {
display: block;
overflow: hidden;
color: #f00;
font-weight: bold;
float: left;
font-size: 28px;
padding-top: 10px;
padding-bottom: 10px;
text-decoration: none;
}
img {
max-width: 500px;
}
nav .time {
display: block;
overflow: hidden;
font-weight: bold;
font-size: 18px;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 20px;
color: #000;
border-right: 4px solid #000;
text-align: right;
}
nav h1 {
margin-top: 40px;
text-align: right;
border-right: 4px solid #777;
padding-right: 20px;
color: #777
}
a {
color: #000;
}
article {
max-width: 600px;
overflow: hidden;
}
nav {
width: 240px;
padding: 40px;
float: left;
font-size: 28px;
color: #777
}
main {
background-color: #eee;
padding: 40px 120px 40px 40px;
}
main h1 {
font-size: 28px;
margin-bottom: 20px;
font-weight: bold;
}
main h2 {
font-size: 20px;
font-weight: bold;
margin-bottom: 20px;
}
main h4 {
font-weight: bold;
margin-bottom: 14px;
}
main h6 {
font-size: 12px;
color: #666;
margin-bottom: 20px;
}
main p {
margin-bottom: 18px;
line-height: 1.5em;
font-size: 17px;
}
footer {
background-color: #ddd;
padding: 40px;
font-size: 14px;
text-align: center;
}
footer li {
display: inline;
list-style: none;
padding-left: 20px;
padding-right: 20px;
}
pre {
margin-bottom: 20px;
}
ul {
margin-bottom: 20px;
}
ul li {
display: list-item;
margin: 0 20px 6px 40px;
}
ul li.index {
display: list-item;
margin: 0 0 16px 0;
list-style-type: none;
}
main article ol {
margin: 0 20px 20px 40px;
}
main article ol li {
margin-bottom: 6px;
line-height: 1.5em;
}
.seealso {
color: #446;
font-weight: bold;
}
| 12.391566 | 68 | 0.655323 |
696010d19e77d5e5136d7c6df9032e141d34cabf | 3,295 | kt | Kotlin | rtron-model/src/main/kotlin/io/rtron/model/opendrive/road/lanes/RoadLanesLaneSection.kt | savein/rtron | bed54522ed1f8801fc9789008d08f00bf77c74e5 | [
"Apache-2.0"
] | 5 | 2020-11-12T12:08:11.000Z | 2021-03-06T13:35:30.000Z | rtron-model/src/main/kotlin/io/rtron/model/opendrive/road/lanes/RoadLanesLaneSection.kt | savenow/rtron | bed54522ed1f8801fc9789008d08f00bf77c74e5 | [
"Apache-2.0"
] | null | null | null | rtron-model/src/main/kotlin/io/rtron/model/opendrive/road/lanes/RoadLanesLaneSection.kt | savenow/rtron | bed54522ed1f8801fc9789008d08f00bf77c74e5 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2020 Chair of Geoinformatics, Technical University of Munich
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.rtron.model.opendrive.road.lanes
import com.github.kittinunf.result.Result
import io.rtron.math.geometry.curved.oned.point.CurveRelativePoint1D
import io.rtron.model.opendrive.common.DataQuality
import io.rtron.model.opendrive.common.Include
import io.rtron.model.opendrive.common.UserData
import io.rtron.std.ContextMessage
data class RoadLanesLaneSection(
var left: RoadLanesLaneSectionLeft = RoadLanesLaneSectionLeft(),
var center: RoadLanesLaneSectionCenter = RoadLanesLaneSectionCenter(),
var right: RoadLanesLaneSectionRight = RoadLanesLaneSectionRight(),
var userData: List<UserData> = listOf(),
var include: List<Include> = listOf(),
var dataQuality: DataQuality = DataQuality(),
var s: Double = Double.NaN,
var singleSide: Boolean = false
) {
// Properties and Initializers
val laneSectionStart get() = CurveRelativePoint1D(s)
// Methods
fun getNumberOfLanes() = left.getNumberOfLanes() + center.getNumberOfLanes() + right.getNumberOfLanes()
fun getCenterLane() = center.lane.first()
fun getLeftRightLanes(): Map<Int, RoadLanesLaneSectionLRLane> = left.getLanes() + right.getLanes()
fun isProcessable(): Result<ContextMessage<Boolean>, IllegalStateException> {
if (center.getNumberOfLanes() != 1)
return Result.error(IllegalStateException("Lane section should contain exactly one center lane."))
if (left.isEmpty() && right.isEmpty())
return Result.error(IllegalStateException("Lane section must contain lanes on the left and right."))
val infos = mutableListOf<String>()
if (left.isNotEmpty()) {
val leftLaneIds = left.lane.map { it.id }
val expectedIds = (left.getNumberOfLanes() downTo 1).toList()
if (!leftLaneIds.containsAll(expectedIds))
return Result.error(IllegalStateException("Left lanes have missing IDs."))
if (leftLaneIds != leftLaneIds.sortedDescending())
infos += "Left lanes should be ordered in a descending manner."
}
if (right.isNotEmpty()) {
val rightLaneIds = right.lane.map { it.id }
val expectedIds = (-1 downTo -right.getNumberOfLanes()).toList()
if (!rightLaneIds.containsAll(expectedIds))
return Result.error(IllegalStateException("Right lanes have missing IDs."))
if (rightLaneIds != rightLaneIds.sortedDescending())
infos += "Right lanes should be ordered in a descending manner."
}
return Result.success(ContextMessage(true, infos))
}
}
| 38.764706 | 112 | 0.692261 |
8a612dfc010f65d92a7e3aae9bc87808df36bf5b | 202 | sql | SQL | server/migrations/001-user-table.sql | newcastle-living-lab/zodiac | 1e75da4e298d1b74498b01faaaf7f12583054560 | [
"MIT"
] | null | null | null | server/migrations/001-user-table.sql | newcastle-living-lab/zodiac | 1e75da4e298d1b74498b01faaaf7f12583054560 | [
"MIT"
] | null | null | null | server/migrations/001-user-table.sql | newcastle-living-lab/zodiac | 1e75da4e298d1b74498b01faaaf7f12583054560 | [
"MIT"
] | null | null | null | -- Up
CREATE TABLE IF NOT EXISTS "user" (
"user_id" INTEGER PRIMARY KEY,
"email" TEXT,
"name" TEXT,
"active" INTEGER NOT NULL DEFAULT 0,
"last_login" INTEGER
);
-- Down
DROP TABLE IF EXISTS "user" | 18.363636 | 37 | 0.688119 |
2c23549ab328a9d2b72050ee6a5cd09b16b58787 | 825 | kt | Kotlin | src/test/kotlin/nl/knaw/huc/di/rd/tag/tagml/schema/SchemaTest.kt | HuygensING/tagml-language-server | a072d7b19476b61831a0580ff30bd7537a55bdfc | [
"Apache-2.0"
] | 1 | 2021-08-03T05:05:01.000Z | 2021-08-03T05:05:01.000Z | src/test/kotlin/nl/knaw/huc/di/rd/tag/tagml/schema/SchemaTest.kt | HuygensING/tagml-language-server | a072d7b19476b61831a0580ff30bd7537a55bdfc | [
"Apache-2.0"
] | null | null | null | src/test/kotlin/nl/knaw/huc/di/rd/tag/tagml/schema/SchemaTest.kt | HuygensING/tagml-language-server | a072d7b19476b61831a0580ff30bd7537a55bdfc | [
"Apache-2.0"
] | null | null | null | package nl.knaw.huc.di.rd.tag.tagml.schema
import mu.KotlinLogging
import nl.knaw.huc.di.tag.schema.TAGMLSchemaFactory
import org.junit.Test
import kotlin.test.assertNotNull
class SchemaTest {
private val logger = KotlinLogging.logger {}
@Test
fun test() {
val schemaYAML = """
|---
|L1:
| root:
| - a
| - b
| - c
| - d:
| - d1
| - d2
|L2:
| root:
| - x
| - 'y'
| - z:
| - z1
| - z2
""".trimMargin()
val result = TAGMLSchemaFactory.parseYAML(schemaYAML)
logger.info("${result.errors}")
assertNotNull(result)
}
}
| 22.916667 | 61 | 0.41697 |
ffff74a6e7752cbbe8d5f8ce21e09cd08a1721d3 | 1,420 | html | HTML | app/words/lyric.html | cfc3434/gre-words-nice | 4891dba095cfc037baa51455a9496bbd7f23c488 | [
"MIT"
] | null | null | null | app/words/lyric.html | cfc3434/gre-words-nice | 4891dba095cfc037baa51455a9496bbd7f23c488 | [
"MIT"
] | 2 | 2021-01-28T19:34:50.000Z | 2022-03-25T18:27:10.000Z | app/words/lyric.html | iicfcii/gre-words | 4891dba095cfc037baa51455a9496bbd7f23c488 | [
"MIT"
] | null | null | null | <tr class="calibre5">
<td class="kindle-cn-table-dg5rx"><span class="kindle-cn-bold">lyric</span></td>
<td class="kindle-cn-table-dg5lx">[ˈlɪrɪk]</td>
</tr>
<tr class="calibre5">
<td class="kindle-cn-table-dg5r"><span class="kindle-cn-bold">【考法】</span></td>
<td class="kindle-cn-table-dg5l"><span class="kindle-cn-italic">adj</span>.<span class="kindle-cn-bold">如诗歌般流畅甜美的:</span>having a pleasantly flowing quality <span class="kindle-cn-bold"><span class="kindle-cn-underline">suggestive of poetry or music</span></span></td>
</tr>
<tr class="calibre5">
<td class="kindle-cn-table-dg5r"><span class="kindle-cn-bold">例</span></td>
<td class="kindle-cn-table-dg5l">The film's <span class="kindle-cn-specialtext-solid">lyric photography</span> really enhanced its romantic mood.电影中<span class="kindle-cn-underline">如诗歌般的图像效果</span>着实增强了浪漫的氛围。</td>
</tr>
<tr class="calibre5">
<td class="kindle-cn-table-dg5r"><span class="kindle-cn-bold">近</span></td>
<td class="kindle-cn-table-dg5l">euphonious, lyrical, mellifluous, mellow, melodious, musical, poetical</td>
</tr>
<tr class="calibre5">
<td class="kindle-cn-table-dg5r"><span class="kindle-cn-bold">反</span></td>
<td class="kindle-cn-table-dg5l">prosaic, prose 无聊乏味的</td>
</tr>
<tr class="calibre5">
<td class="kindle-cn-table-dg5r"><span class="kindle-cn-bold">派</span></td>
<td class="kindle-cn-table-dg5l">lyrics <span class="kindle-cn-italic">n</span>.歌词</td>
</tr>
| 56.8 | 268 | 0.711972 |
3689ddcbc6d4d5b05723b1398ec9796985ba2e83 | 1,243 | sql | SQL | models/sources/src_salesforce_crm/bigquery/stg_salesforce_crm_lead.sql | dbrtly/ra_data_warehouse | 9d365badb6472f0e4aec86981b367c58e21c34e9 | [
"Apache-2.0"
] | null | null | null | models/sources/src_salesforce_crm/bigquery/stg_salesforce_crm_lead.sql | dbrtly/ra_data_warehouse | 9d365badb6472f0e4aec86981b367c58e21c34e9 | [
"Apache-2.0"
] | null | null | null | models/sources/src_salesforce_crm/bigquery/stg_salesforce_crm_lead.sql | dbrtly/ra_data_warehouse | 9d365badb6472f0e4aec86981b367c58e21c34e9 | [
"Apache-2.0"
] | null | null | null | {{config(enabled = target.type == 'bigquery')}}
{% if var("crm_warehouse_contact_sources") %}
{% if 'salesforce_crm' in var("crm_warehouse_contact_sources") %}
with source as (
select * from lead
),
renamed as (
select
id as lead_id,
ownerid as owner_id,
convertedopportunityid as opportunity_id,
convertedaccountid as account_id,
convertedcontactid as contact_id,
leadsource as lead_source,
status,
isconverted as is_converted,
converteddate as converted_date,
firstname as first_name,
middlename as middle_name,
lastname as last_name,
name as full_name,
title,
email,
phone as work_phone,
mobilephone as mobile_phone,
donotcall as can_call,
isunreadbyowner as is_unread_by_owner,
company as company_name,
city as company_city,
website,
numberofemployees as number_of_employees,
lastactivitydate as last_activity_date,
createddate as created_at,
lastmodifieddate as updated_at
from source
)
select * from renamed
{% else %} {{config(enabled=false)}} {% endif %}
{% else %} {{config(enabled=false)}} {% endif %}
| 24.86 | 66 | 0.644409 |
c7fdaf21a006efdc8321ad0c6fd02bc9bc29f28a | 3,886 | java | Java | tests/src/test/java/io/streamnative/pulsar/handlers/kop/KafkaNonPartitionedTopicTest.java | yangdaixai/kop | 5c924c6d3b760f0471f099914f57ef905ea71566 | [
"Apache-2.0"
] | 307 | 2020-03-24T13:48:44.000Z | 2022-03-31T17:10:09.000Z | tests/src/test/java/io/streamnative/pulsar/handlers/kop/KafkaNonPartitionedTopicTest.java | yangdaixai/kop | 5c924c6d3b760f0471f099914f57ef905ea71566 | [
"Apache-2.0"
] | 685 | 2020-03-24T15:15:08.000Z | 2022-03-31T13:52:59.000Z | tests/src/test/java/io/streamnative/pulsar/handlers/kop/KafkaNonPartitionedTopicTest.java | yangdaixai/kop | 5c924c6d3b760f0471f099914f57ef905ea71566 | [
"Apache-2.0"
] | 89 | 2020-03-24T14:36:05.000Z | 2022-03-22T07:15:32.000Z | /**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.streamnative.pulsar.handlers.kop;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
import java.time.Duration;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import lombok.Cleanup;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.common.PartitionInfo;
import org.apache.pulsar.client.admin.PulsarAdminException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/**
* Test unit for non-partitioned topic.
*/
public class KafkaNonPartitionedTopicTest extends KopProtocolHandlerTestBase {
private static final String TENANT = "KafkaNonPartitionedTopicTest";
private static final String NAMESPACE = "ns1";
@BeforeClass
@Override
protected void setup() throws Exception {
super.resetConfig();
conf.setKafkaTenant(TENANT);
conf.setKafkaNamespace(NAMESPACE);
conf.setKafkaMetadataTenant("internal");
conf.setKafkaMetadataNamespace("__kafka");
conf.setEnableTransactionCoordinator(true);
conf.setClusterName(super.configClusterName);
super.internalSetup();
}
@AfterClass
@Override
protected void cleanup() throws Exception {
super.internalCleanup();
}
@Test(timeOut = 30000)
public void testNonPartitionedTopic() throws PulsarAdminException {
String topic = "persistent://" + TENANT + "/" + NAMESPACE + "/" + "testNonPartitionedTopic";
admin.topics().createNonPartitionedTopic(topic);
try {
@Cleanup
KProducer kProducer = new KProducer(topic, false, getKafkaBrokerPort());
int totalMsgs = 50;
String messageStrPrefix = topic + "_message_";
for (int i = 0; i < totalMsgs; i++) {
String messageStr = messageStrPrefix + i;
kProducer.getProducer().send(new ProducerRecord<>(topic, i, messageStr));
}
@Cleanup
KConsumer kConsumer = new KConsumer(topic, getKafkaBrokerPort(), "DemoKafkaOnPulsarConsumer");
kConsumer.getConsumer().subscribe(Collections.singleton(topic));
int i = 0;
while (i < totalMsgs) {
ConsumerRecords<Integer, String> records = kConsumer.getConsumer().poll(Duration.ofSeconds(1));
for (ConsumerRecord<Integer, String> record : records) {
Integer key = record.key();
assertEquals(messageStrPrefix + key.toString(), record.value());
i++;
}
}
assertEquals(i, totalMsgs);
// No more records
ConsumerRecords<Integer, String> records = kConsumer.getConsumer().poll(Duration.ofMillis(200));
assertTrue(records.isEmpty());
// Ensure that we can list the topic
Map<String, List<PartitionInfo>> result = kConsumer
.getConsumer().listTopics(Duration.ofSeconds(1));
assertEquals(result.size(), 1);
} finally {
admin.topics().delete(topic);
}
}
}
| 35.651376 | 111 | 0.663407 |
3327097fad25f8089f5aa779974b776188cc2bb0 | 2,599 | py | Python | skeleton_video.py | ashish1sasmal/Human-Skeleton-Estimation | 290cde92191b2b6b0c28189667851119f5ca564d | [
"MIT"
] | null | null | null | skeleton_video.py | ashish1sasmal/Human-Skeleton-Estimation | 290cde92191b2b6b0c28189667851119f5ca564d | [
"MIT"
] | null | null | null | skeleton_video.py | ashish1sasmal/Human-Skeleton-Estimation | 290cde92191b2b6b0c28189667851119f5ca564d | [
"MIT"
] | null | null | null | # @Author: ASHISH SASMAL <ashish>
# @Date: 20-10-2020
# @Last modified by: ashish
# @Last modified time: 20-10-2020
import cv2
import numpy as np
import time
proto = "Models/pose_deploy_linevec_faster_4_stages.prototxt"
weights= "Models/pose_iter_160000.caffemodel"
net = cv2.dnn.readNetFromCaffe(proto, weights)
net.setPreferableBackend(cv2.dnn.DNN_TARGET_CPU)
print("Using CPU device")
wid = 368
height=368
gt = cv2.VideoCapture("sample2.mp4")
hasFrame, frame = gt.read()
vid_writer1 = cv2.VideoWriter('output.avi',cv2.VideoWriter_fourcc('M','J','P','G'), 10, (frame.shape[1],frame.shape[0]))
vid_writer2 = cv2.VideoWriter('output2.avi',cv2.VideoWriter_fourcc('M','J','P','G'), 10, (frame.shape[1],frame.shape[0]))
while cv2.waitKey(1) < 0:
image = gt.read()[1]
image_copy = np.copy(image)
image_wid = image.shape[1]
image_height = image.shape[0]
thresh = np.zeros((frame.shape[0],frame.shape[1],1), np.uint8)
thresh = cv2.cvtColor(thresh,cv2.COLOR_GRAY2BGR)
blob = cv2.dnn.blobFromImage(image, 1.0/255, (wid,height), (0,0,0), swapRB = False, crop = False)
net.setInput(blob)
POSE_PAIRS = [[0,1], [1,2], [2,3], [3,4], [1,5], [5,6], [6,7], [1,14], [14,8], [8,9], [9,10], [14,11], [11,12], [12,13] ]
preds = net.forward()
H = preds.shape[2]
W = preds.shape[3]
# Empty list to store the detected keypoints
points = []
for i in range(15):
probMap = preds[0, i, :, :]
minVal, prob, minLoc, point = cv2.minMaxLoc(probMap)
x = (image_wid * point[0]) / W
y = (image_height * point[1]) / H
if prob >0.1 :
# cv2.circle(image_copy, (int(x), int(y)), 3, (0, 255, 255), thickness=-1, lineType=cv2.FILLED)
# cv2.putText(image_copy, "{}".format(i), (int(x), int(y)), cv2.FONT_HERSHEY_SIMPLEX, 1.4, (0, 0, 255), 3, lineType=cv2.LINE_AA)
points.append((int(x), int(y)))
else :
points.append(None)
for pair in POSE_PAIRS:
partA = pair[0]
partB = pair[1]
if points[partA] and points[partB]:
cv2.line(image, points[partA], points[partB], (199,99,0), 2)
cv2.circle(image, points[partA], 4, (17,199,0), thickness=-1, lineType=cv2.FILLED)
cv2.line(thresh, points[partA], points[partB], (199,99,0), 2)
cv2.circle(thresh, points[partA], 4, (17,199,0), thickness=-1, lineType=cv2.FILLED)
cv2.imshow('Output-Skeleton', image)
cv2.imshow('Output-Skeleton2', thresh)
vid_writer1.write(image)
vid_writer2.write(thresh)
gt.release()
cv2.destroyAllWindows()
| 33.320513 | 140 | 0.621008 |
6e4105f1934d5dd3df5d79fab31b5640d0397aa3 | 9,691 | html | HTML | javadoc/com/ichess/game/package-summary.html | i-chess/jchess | 6e7383238ded52aab3c1dd7f26803c1aaba1fce2 | [
"MIT"
] | null | null | null | javadoc/com/ichess/game/package-summary.html | i-chess/jchess | 6e7383238ded52aab3c1dd7f26803c1aaba1fce2 | [
"MIT"
] | null | null | null | javadoc/com/ichess/game/package-summary.html | i-chess/jchess | 6e7383238ded52aab3c1dd7f26803c1aaba1fce2 | [
"MIT"
] | null | null | null | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_67) on Tue Sep 22 17:21:36 IDT 2015 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>com.ichess.game</title>
<meta name="date" content="2015-09-22">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="com.ichess.game";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../com/ichess/game/package-summary.html">Package</a></li>
<li>Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Package</li>
<li>Next Package</li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/ichess/game/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package com.ichess.game</h1>
<div class="docSummary">
<div class="block">JChess Java Chess Library <br>
JChess is a java library that allows playing and editing chess games and positions.</div>
</div>
<p>See: <a href="#package_description">Description</a></p>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/AnyPiece.html" title="class in com.ichess.game">AnyPiece</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../com/ichess/game/Archbishop.html" title="class in com.ichess.game">Archbishop</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/Bishop.html" title="class in com.ichess.game">Bishop</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../com/ichess/game/Chancellor.html" title="class in com.ichess.game">Chancellor</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/Common.html" title="class in com.ichess.game">Common</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../com/ichess/game/FEN.html" title="class in com.ichess.game">FEN</a></td>
<td class="colLast">
<div class="block">Used to import and export games from the FEN notation.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/Game.html" title="class in com.ichess.game">Game</a></td>
<td class="colLast">
<div class="block">Represents a Chess game.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../com/ichess/game/Grasshoper.html" title="class in com.ichess.game">Grasshoper</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/King.html" title="class in com.ichess.game">King</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../com/ichess/game/Knight.html" title="class in com.ichess.game">Knight</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/Move.html" title="class in com.ichess.game">Move</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../com/ichess/game/MoveInfo.html" title="class in com.ichess.game">MoveInfo</a></td>
<td class="colLast">
<div class="block">This class contains additional information about the state of the game when
the move was played.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/MoveList.html" title="class in com.ichess.game">MoveList</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../com/ichess/game/Notation.html" title="class in com.ichess.game">Notation</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/Pawn.html" title="class in com.ichess.game">Pawn</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../com/ichess/game/PGN.html" title="class in com.ichess.game">PGN</a></td>
<td class="colLast">
<div class="block">PGN allow recording a game and information about the game.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/Piece.html" title="class in com.ichess.game">Piece</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../com/ichess/game/Queen.html" title="class in com.ichess.game">Queen</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/Rook.html" title="class in com.ichess.game">Rook</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../com/ichess/game/TimeUtils.html" title="class in com.ichess.game">TimeUtils</a></td>
<td class="colLast">
<div class="block">Created by Ran on 31/08/2015.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/Utils.html" title="class in com.ichess.game">Utils</a></td>
<td class="colLast">
<div class="block">Created by Ran on 31/08/2015.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Summary table, listing enums, and an explanation">
<caption><span>Enum Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Enum</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/ichess/game/Common.BOARD_COLUMN.html" title="enum in com.ichess.game">Common.BOARD_COLUMN</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
</ul>
<a name="package_description">
<!-- -->
</a>
<h2 title="Package com.ichess.game Description">Package com.ichess.game Description</h2>
<div class="block">JChess Java Chess Library <br>
JChess is a java library that allows playing and editing chess games and positions. <br>
<ul>
<li> Full support for FEN and PGN formats </li>
<li> Support various game kinds : fischer 960, mini Capablance, losing chess, crazy house, bug house and "free" chess.</li>
<li> JSChess can be used in chess website, chess android applications, stand alone applications and more.</li>
<li> JChess is already in use in several websites and applications.</li>
</ul>
See the main <a href="../../../com/ichess/game/Game.html" title="class in com.ichess.game"><code>Game Object</code></a></div>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../com/ichess/game/package-summary.html">Package</a></li>
<li>Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Package</li>
<li>Next Package</li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/ichess/game/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| 37.708171 | 141 | 0.652151 |
74bc0ee5741a67276306f6d4d7d7df431523cc69 | 492 | js | JavaScript | machines/hello.js | mikermcneil/machinepack-nodejsaustin | d0b89094d5e4da0757623c33c26dd39be7aba78e | [
"MIT"
] | 1 | 2015-05-15T00:54:30.000Z | 2015-05-15T00:54:30.000Z | machines/hello.js | mikermcneil/machinepack-nodejsaustin | d0b89094d5e4da0757623c33c26dd39be7aba78e | [
"MIT"
] | null | null | null | machines/hello.js | mikermcneil/machinepack-nodejsaustin | d0b89094d5e4da0757623c33c26dd39be7aba78e | [
"MIT"
] | null | null | null | module.exports = {
friendlyName: 'Hello',
description: 'Say hello on the console.',
cacheable: false,
sync: true,
idempotent: false,
inputs: {
msg: {
friendlyName: 'Message',
description: 'The message to be logged.',
example: 'hello world',
required: true
}
},
exits: {
success: {
description: 'Done.'
},
},
fn: function (inputs,exits) {
console.log(inputs.msg);
return exits.success();
},
};
| 10.25 | 47 | 0.550813 |
aea75db47f8f8eed47fce70fc3d21347de6166ca | 4,934 | kt | Kotlin | src/app/src/main/java/com/nishant/dev/todolist/MainActivity.kt | n1snt/Simple-ToDo-List-Android | e98ac9ffe53a8f8cceac6165dee082b0a9aa382b | [
"Apache-2.0"
] | 1 | 2021-11-30T15:06:52.000Z | 2021-11-30T15:06:52.000Z | src/app/src/main/java/com/nishant/dev/todolist/MainActivity.kt | n1snt/Simple-ToDo-List-Android | e98ac9ffe53a8f8cceac6165dee082b0a9aa382b | [
"Apache-2.0"
] | null | null | null | src/app/src/main/java/com/nishant/dev/todolist/MainActivity.kt | n1snt/Simple-ToDo-List-Android | e98ac9ffe53a8f8cceac6165dee082b0a9aa382b | [
"Apache-2.0"
] | null | null | null | package com.nishant.dev.todolist
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.core.content.pm.ShortcutInfoCompat
import androidx.core.content.pm.ShortcutManagerCompat
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import androidx.room.Room
import com.afollestad.materialdialogs.LayoutMode
import com.afollestad.materialdialogs.MaterialDialog
import com.afollestad.materialdialogs.bottomsheets.BottomSheet
import com.google.android.material.bottomnavigation.BottomNavigationView
import com.nishant.dev.todolist.bottomNavigationFragments.ArchivedFragment
import com.nishant.dev.todolist.bottomNavigationFragments.TodoFragment
import com.nishant.dev.todolist.database.ToDoDatabase
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
supportActionBar?.title = "ToDo"
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val archivedFragment = ArchivedFragment()
val todoFragment = TodoFragment()
// Set listener for bottom nav bar.
val navBar = findViewById<BottomNavigationView>(R.id.bottom_nav_view)
// Get active fragment from viewModel
val viewModel = ViewModelProvider(this).get(MainActivityViewModel::class.java)
var activeFragment = viewModel.activeFragment
// Initialize activity by setting the default launch fragment to
// TodoFragment
supportFragmentManager.beginTransaction()
.replace(R.id.bottom_nav_fragment_container, activeFragment)
.commit()
if (viewModel.activeFragment == archivedFragment) {
navBar.selectedItemId = R.id.archived_bottom_nav
}
else if (activeFragment == todoFragment) {
navBar.selectedItemId = R.id.todo_bottom_nav
}
longPressShortcutListener(archivedFragment, todoFragment, navBar)
navBar.setOnItemSelectedListener { menuItem ->
when(menuItem.itemId) {
R.id.archived_bottom_nav -> {
supportActionBar?.title = "Archived"
viewModel.activeFragmentSetter(archivedFragment)
setFragment(archivedFragment)
}
R.id.todo_bottom_nav -> {
supportActionBar?.title = "ToDo"
viewModel.activeFragmentSetter(todoFragment)
setFragment(todoFragment)
}
else -> false
}
}
setLongPressShortcuts()
}
private fun setFragment(fragment: Fragment): Boolean {
supportFragmentManager.beginTransaction()
.setCustomAnimations(R.anim.popup_enter, R.anim.popup_exit)
.replace(R.id.bottom_nav_fragment_container, fragment)
.commit()
return true
}
private fun setLongPressShortcuts() {
val inProgressShortcut = ShortcutInfoCompat.Builder(this, "inProgressShortcut")
.setShortLabel("ToDo")
.setLongLabel("Open todo.")
.setIntent(
Intent(this, MainActivity::class.java).setAction("in progress")
)
.build()
val doneShortcut = ShortcutInfoCompat.Builder(this, "doneShortcut")
.setShortLabel("Archived")
.setLongLabel("Open archived tasks.")
.setIntent(
Intent(this, MainActivity::class.java).setAction("done")
)
.build()
val listTest :MutableList<ShortcutInfoCompat> = ArrayList()
listTest.add(inProgressShortcut)
listTest.add(doneShortcut)
ShortcutManagerCompat.setDynamicShortcuts(this, listTest)
}
private fun longPressShortcutListener(
archivedFragment: ArchivedFragment,
todoFragment: TodoFragment,
navBar: BottomNavigationView
) {
val action = if (intent != null) intent.action else null
if (action != null) {
when (action) {
"todo" -> {
// Set title.
supportActionBar?.title = "ToDo"
// Set fragment.
supportFragmentManager.beginTransaction()
.replace(R.id.bottom_nav_fragment_container, todoFragment)
.commit()
navBar.selectedItemId = R.id.todo_bottom_nav
}
"done" -> {
// Set title.
supportActionBar?.title = "Done"
supportFragmentManager.beginTransaction()
.replace(R.id.bottom_nav_fragment_container, archivedFragment)
.commit()
navBar.selectedItemId = R.id.archived_bottom_nav
}
}
}
}
} | 34.746479 | 87 | 0.626672 |
3fd23652cf65347e32a233a674be597fbcdc5c37 | 52 | h | C | src/key_event.h | rcabot/codscape | 5619b40d7857066818c8409d3db4371d3c8f758c | [
"Unlicense"
] | null | null | null | src/key_event.h | rcabot/codscape | 5619b40d7857066818c8409d3db4371d3c8f758c | [
"Unlicense"
] | null | null | null | src/key_event.h | rcabot/codscape | 5619b40d7857066818c8409d3db4371d3c8f758c | [
"Unlicense"
] | null | null | null | #pragma once
struct key_event
{
int sdl_keycode;
}; | 10.4 | 17 | 0.75 |
8a00038e545cf41843d6dda38dd95539cd8a8b54 | 835,116 | swift | Swift | Client/Carthage/Checkouts/swift-protobuf/Tests/SwiftProtobufTests/generated_swift_names_messages.pb.swift | perezCamargo/SwiftProtobufSample | b167da8dd9d095abbde82e2d08441b3103885149 | [
"MIT"
] | 14 | 2016-12-27T05:00:10.000Z | 2021-06-03T01:09:52.000Z | Client/Carthage/Checkouts/swift-protobuf/Tests/SwiftProtobufTests/generated_swift_names_messages.pb.swift | perezCamargo/SwiftProtobufSample | b167da8dd9d095abbde82e2d08441b3103885149 | [
"MIT"
] | 1 | 2021-06-11T17:32:31.000Z | 2021-06-11T17:32:31.000Z | Client/Carthage/Checkouts/swift-protobuf/Tests/SwiftProtobufTests/generated_swift_names_messages.pb.swift | perezCamargo/SwiftProtobufSample | b167da8dd9d095abbde82e2d08441b3103885149 | [
"MIT"
] | 2 | 2020-05-27T11:32:10.000Z | 2021-06-03T01:12:36.000Z | /*
* DO NOT EDIT.
*
* Generated by the protocol buffer compiler.
* Source: generated_swift_names_messages.proto
*
*/
/// See Makefile for the logic that generates this
/// Protoc errors imply this file is being generated incorrectly
/// Swift compile errors are probably bugs in protoc-gen-swift
import Foundation
import SwiftProtobuf
// If the compiler emits an error on this type, it is because this file
// was generated by a version of the `protoc` Swift plug-in that is
// incompatible with the version of SwiftProtobuf to which you are linking.
// Please ensure that your are building against the same version of the API
// that was used to generate this file.
fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
struct _1: SwiftProtobuf.ProtobufAPIVersion_1 {}
typealias Version = _1
}
struct ProtobufUnittest_GeneratedSwiftReservedMessages: SwiftProtobuf.Message {
static let protoMessageName: String = _protobuf_package + ".GeneratedSwiftReservedMessages"
var unknownFields = SwiftProtobuf.UnknownStorage()
struct a: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".a"
var a: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.a)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.a != 0 {
try visitor.visitSingularInt32Field(value: self.a, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct adjusted: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".adjusted"
var adjusted: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.adjusted)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.adjusted != 0 {
try visitor.visitSingularInt32Field(value: self.adjusted, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct any: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".any"
var any: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.any)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.any != 0 {
try visitor.visitSingularInt32Field(value: self.any, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct AnyExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".AnyExtensionField"
var anyExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.anyExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.anyExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.anyExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct AnyMessageStorage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".AnyMessageStorage"
var anyMessageStorage: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.anyMessageStorage)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.anyMessageStorage != 0 {
try visitor.visitSingularInt32Field(value: self.anyMessageStorage, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Api: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Api"
var api: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.api)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.api != 0 {
try visitor.visitSingularInt32Field(value: self.api, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct appended: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".appended"
var appended: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.appended)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.appended != 0 {
try visitor.visitSingularInt32Field(value: self.appended, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct appendUIntHex: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".appendUIntHex"
var appendUintHex: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.appendUintHex)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.appendUintHex != 0 {
try visitor.visitSingularInt32Field(value: self.appendUintHex, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct appendUnknown: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".appendUnknown"
var appendUnknown: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.appendUnknown)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.appendUnknown != 0 {
try visitor.visitSingularInt32Field(value: self.appendUnknown, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct apple: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".apple"
var apple: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.apple)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.apple != 0 {
try visitor.visitSingularInt32Field(value: self.apple, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct are: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".are"
var are: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.are)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.are != 0 {
try visitor.visitSingularInt32Field(value: self.are, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct areAllInitialized: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".areAllInitialized"
var areAllInitialized: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.areAllInitialized)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.areAllInitialized != 0 {
try visitor.visitSingularInt32Field(value: self.areAllInitialized, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct arrayLiteral: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".arrayLiteral"
var arrayLiteral: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.arrayLiteral)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.arrayLiteral != 0 {
try visitor.visitSingularInt32Field(value: self.arrayLiteral, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct arraySeparator: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".arraySeparator"
var arraySeparator: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.arraySeparator)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.arraySeparator != 0 {
try visitor.visitSingularInt32Field(value: self.arraySeparator, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct asMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".as"
var as_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.as_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.as_p != 0 {
try visitor.visitSingularInt32Field(value: self.as_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct asciiOpenCurlyBracket: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".asciiOpenCurlyBracket"
var asciiOpenCurlyBracket: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.asciiOpenCurlyBracket)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.asciiOpenCurlyBracket != 0 {
try visitor.visitSingularInt32Field(value: self.asciiOpenCurlyBracket, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct asciiZero: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".asciiZero"
var asciiZero: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.asciiZero)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.asciiZero != 0 {
try visitor.visitSingularInt32Field(value: self.asciiZero, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct asJSONObject: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".asJSONObject"
var asJsonobject: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.asJsonobject)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.asJsonobject != 0 {
try visitor.visitSingularInt32Field(value: self.asJsonobject, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct available: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".available"
var available: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.available)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.available != 0 {
try visitor.visitSingularInt32Field(value: self.available, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct b: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".b"
var b: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.b)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.b != 0 {
try visitor.visitSingularInt32Field(value: self.b, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct base64String: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".base64String"
var base64String: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.base64String)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.base64String != 0 {
try visitor.visitSingularInt32Field(value: self.base64String, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct BaseType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".BaseType"
var baseType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.baseType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.baseType != 0 {
try visitor.visitSingularInt32Field(value: self.baseType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct because: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".because"
var because: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.because)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.because != 0 {
try visitor.visitSingularInt32Field(value: self.because, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct binary: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".binary"
var binary: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.binary)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.binary != 0 {
try visitor.visitSingularInt32Field(value: self.binary, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct BinaryDecoder: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".BinaryDecoder"
var binaryDecoder: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.binaryDecoder)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.binaryDecoder != 0 {
try visitor.visitSingularInt32Field(value: self.binaryDecoder, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct BinaryEncoder: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".BinaryEncoder"
var binaryEncoder: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.binaryEncoder)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.binaryEncoder != 0 {
try visitor.visitSingularInt32Field(value: self.binaryEncoder, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct BinaryEncodingSizeVisitor: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".BinaryEncodingSizeVisitor"
var binaryEncodingSizeVisitor: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.binaryEncodingSizeVisitor)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.binaryEncodingSizeVisitor != 0 {
try visitor.visitSingularInt32Field(value: self.binaryEncodingSizeVisitor, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct BinaryEncodingVisitor: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".BinaryEncodingVisitor"
var binaryEncodingVisitor: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.binaryEncodingVisitor)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.binaryEncodingVisitor != 0 {
try visitor.visitSingularInt32Field(value: self.binaryEncodingVisitor, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct bits: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".bits"
var bits: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.bits)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.bits != 0 {
try visitor.visitSingularInt32Field(value: self.bits, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct body: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".body"
var body: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.body)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.body != 0 {
try visitor.visitSingularInt32Field(value: self.body, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct bodySize: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".bodySize"
var bodySize: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.bodySize)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.bodySize != 0 {
try visitor.visitSingularInt32Field(value: self.bodySize, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct BoolMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Bool"
var bool: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.bool)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.bool != 0 {
try visitor.visitSingularInt32Field(value: self.bool, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct booleanLiteral: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".booleanLiteral"
var booleanLiteral: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.booleanLiteral)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.booleanLiteral != 0 {
try visitor.visitSingularInt32Field(value: self.booleanLiteral, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct BooleanLiteralType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".BooleanLiteralType"
var booleanLiteralType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.booleanLiteralType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.booleanLiteralType != 0 {
try visitor.visitSingularInt32Field(value: self.booleanLiteralType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct boolValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".boolValue"
var boolValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.boolValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.boolValue != 0 {
try visitor.visitSingularInt32Field(value: self.boolValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct buffer: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".buffer"
var buffer: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.buffer)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.buffer != 0 {
try visitor.visitSingularInt32Field(value: self.buffer, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct buildTypeURL: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".buildTypeURL"
var buildTypeURL: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.buildTypeURL)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.buildTypeURL != 0 {
try visitor.visitSingularInt32Field(value: self.buildTypeURL, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct by: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".by"
var by: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.by)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.by != 0 {
try visitor.visitSingularInt32Field(value: self.by, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct bytes: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".bytes"
var bytes: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.bytes)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.bytes != 0 {
try visitor.visitSingularInt32Field(value: self.bytes, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct BytesValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".BytesValue"
var bytesValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.bytesValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.bytesValue != 0 {
try visitor.visitSingularInt32Field(value: self.bytesValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct c: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".c"
var c: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.c)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.c != 0 {
try visitor.visitSingularInt32Field(value: self.c, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct capitalizeNext: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".capitalizeNext"
var capitalizeNext: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.capitalizeNext)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.capitalizeNext != 0 {
try visitor.visitSingularInt32Field(value: self.capitalizeNext, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct cardinality: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".cardinality"
var cardinality: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.cardinality)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.cardinality != 0 {
try visitor.visitSingularInt32Field(value: self.cardinality, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Character: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Character"
var character: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.character)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.character != 0 {
try visitor.visitSingularInt32Field(value: self.character, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct characters: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".characters"
var characters: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.characters)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.characters != 0 {
try visitor.visitSingularInt32Field(value: self.characters, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct chars: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".chars"
var chars: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.chars)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.chars != 0 {
try visitor.visitSingularInt32Field(value: self.chars, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct clearExtensionValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".clearExtensionValue"
var clearExtensionValue_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.clearExtensionValue_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.clearExtensionValue_p != 0 {
try visitor.visitSingularInt32Field(value: self.clearExtensionValue_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct clearSourceContext: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".clearSourceContext"
var clearSourceContext_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.clearSourceContext_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.clearSourceContext_p != 0 {
try visitor.visitSingularInt32Field(value: self.clearSourceContext_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct clearValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".clearValue"
var clearValue_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.clearValue_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.clearValue_p != 0 {
try visitor.visitSingularInt32Field(value: self.clearValue_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct com: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".com"
var com: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.com)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.com != 0 {
try visitor.visitSingularInt32Field(value: self.com, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct consume: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".consume"
var consume: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.consume)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.consume != 0 {
try visitor.visitSingularInt32Field(value: self.consume, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct contentJSON: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".contentJSON"
var contentJson: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.contentJson)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.contentJson != 0 {
try visitor.visitSingularInt32Field(value: self.contentJson, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct contentsOf: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".contentsOf"
var contentsOf: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.contentsOf)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.contentsOf != 0 {
try visitor.visitSingularInt32Field(value: self.contentsOf, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct count: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".count"
var count: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.count)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.count != 0 {
try visitor.visitSingularInt32Field(value: self.count, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct customCodable: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".customCodable"
var customCodable: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.customCodable)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.customCodable != 0 {
try visitor.visitSingularInt32Field(value: self.customCodable, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct d: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".d"
var d: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.d)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.d != 0 {
try visitor.visitSingularInt32Field(value: self.d, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct DataMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Data"
var data: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.data)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.data != 0 {
try visitor.visitSingularInt32Field(value: self.data, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct dataResult: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".dataResult"
var dataResult: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.dataResult)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.dataResult != 0 {
try visitor.visitSingularInt32Field(value: self.dataResult, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct dataSize: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".dataSize"
var dataSize: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.dataSize)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.dataSize != 0 {
try visitor.visitSingularInt32Field(value: self.dataSize, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct date: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".date"
var date: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.date)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.date != 0 {
try visitor.visitSingularInt32Field(value: self.date, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct daySec: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".daySec"
var daySec: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.daySec)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.daySec != 0 {
try visitor.visitSingularInt32Field(value: self.daySec, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct daysSinceEpoch: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".daysSinceEpoch"
var daysSinceEpoch: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.daysSinceEpoch)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.daysSinceEpoch != 0 {
try visitor.visitSingularInt32Field(value: self.daysSinceEpoch, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct DD: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".DD"
var dd: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.dd)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.dd != 0 {
try visitor.visitSingularInt32Field(value: self.dd, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct debugDescriptionMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".debugDescription"
var debugDescription_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.debugDescription_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.debugDescription_p != 0 {
try visitor.visitSingularInt32Field(value: self.debugDescription_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeBytes: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeBytes"
var decodeBytes: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeBytes)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeBytes != 0 {
try visitor.visitSingularInt32Field(value: self.decodeBytes, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decoded: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decoded"
var decoded: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decoded)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decoded != 0 {
try visitor.visitSingularInt32Field(value: self.decoded, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodedFromJSONNull: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodedFromJSONNull"
var decodedFromJsonnull: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodedFromJsonnull)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodedFromJsonnull != 0 {
try visitor.visitSingularInt32Field(value: self.decodedFromJsonnull, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeExtensionField"
var decodeExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeJSON: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeJSON"
var decodeJson: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeJson)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeJson != 0 {
try visitor.visitSingularInt32Field(value: self.decodeJson, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeMapField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeMapField"
var decodeMapField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeMapField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeMapField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeMapField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeMessageMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeMessage"
var decodeMessage: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeMessage)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeMessage != 0 {
try visitor.visitSingularInt32Field(value: self.decodeMessage, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decoder: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decoder"
var decoder: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decoder)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decoder != 0 {
try visitor.visitSingularInt32Field(value: self.decoder, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeated: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeated"
var decodeRepeated: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeated)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeated != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeated, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedBoolField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedBoolField"
var decodeRepeatedBoolField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedBoolField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedBoolField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedBoolField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedBytesField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedBytesField"
var decodeRepeatedBytesField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedBytesField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedBytesField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedBytesField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedDoubleField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedDoubleField"
var decodeRepeatedDoubleField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedDoubleField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedDoubleField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedDoubleField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedEnumField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedEnumField"
var decodeRepeatedEnumField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedEnumField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedEnumField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedEnumField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedFixed32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedFixed32Field"
var decodeRepeatedFixed32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedFixed32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedFixed32Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedFixed32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedFixed64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedFixed64Field"
var decodeRepeatedFixed64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedFixed64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedFixed64Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedFixed64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedFloatField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedFloatField"
var decodeRepeatedFloatField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedFloatField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedFloatField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedFloatField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedGroupField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedGroupField"
var decodeRepeatedGroupField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedGroupField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedGroupField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedGroupField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedInt32Field"
var decodeRepeatedInt32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedInt32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedInt32Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedInt32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedInt64Field"
var decodeRepeatedInt64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedInt64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedInt64Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedInt64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedMessageField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedMessageField"
var decodeRepeatedMessageField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedMessageField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedMessageField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedMessageField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedSFixed32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedSFixed32Field"
var decodeRepeatedSfixed32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedSfixed32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedSfixed32Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedSfixed32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedSFixed64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedSFixed64Field"
var decodeRepeatedSfixed64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedSfixed64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedSfixed64Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedSfixed64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedSInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedSInt32Field"
var decodeRepeatedSint32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedSint32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedSint32Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedSint32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedSInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedSInt64Field"
var decodeRepeatedSint64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedSint64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedSint64Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedSint64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedStringField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedStringField"
var decodeRepeatedStringField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedStringField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedStringField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedStringField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedUInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedUInt32Field"
var decodeRepeatedUint32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedUint32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedUint32Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedUint32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeRepeatedUInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeRepeatedUInt64Field"
var decodeRepeatedUint64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeRepeatedUint64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeRepeatedUint64Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeRepeatedUint64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingular: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingular"
var decodeSingular: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingular)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingular != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingular, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularBoolField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularBoolField"
var decodeSingularBoolField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularBoolField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularBoolField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularBoolField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularBytesField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularBytesField"
var decodeSingularBytesField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularBytesField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularBytesField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularBytesField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularDoubleField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularDoubleField"
var decodeSingularDoubleField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularDoubleField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularDoubleField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularDoubleField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularEnumField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularEnumField"
var decodeSingularEnumField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularEnumField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularEnumField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularEnumField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularFixed32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularFixed32Field"
var decodeSingularFixed32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularFixed32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularFixed32Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularFixed32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularFixed64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularFixed64Field"
var decodeSingularFixed64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularFixed64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularFixed64Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularFixed64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularFloatField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularFloatField"
var decodeSingularFloatField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularFloatField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularFloatField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularFloatField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularGroupField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularGroupField"
var decodeSingularGroupField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularGroupField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularGroupField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularGroupField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularInt32Field"
var decodeSingularInt32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularInt32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularInt32Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularInt32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularInt64Field"
var decodeSingularInt64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularInt64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularInt64Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularInt64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularMessageField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularMessageField"
var decodeSingularMessageField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularMessageField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularMessageField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularMessageField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularSFixed32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularSFixed32Field"
var decodeSingularSfixed32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularSfixed32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularSfixed32Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularSfixed32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularSFixed64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularSFixed64Field"
var decodeSingularSfixed64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularSfixed64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularSfixed64Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularSfixed64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularSInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularSInt32Field"
var decodeSingularSint32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularSint32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularSint32Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularSint32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularSInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularSInt64Field"
var decodeSingularSint64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularSint64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularSint64Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularSint64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularStringField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularStringField"
var decodeSingularStringField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularStringField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularStringField != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularStringField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularUInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularUInt32Field"
var decodeSingularUint32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularUint32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularUint32Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularUint32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeSingularUInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeSingularUInt64Field"
var decodeSingularUint64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeSingularUint64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeSingularUint64Field != 0 {
try visitor.visitSingularInt32Field(value: self.decodeSingularUint64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeString: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeString"
var decodeString: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeString)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeString != 0 {
try visitor.visitSingularInt32Field(value: self.decodeString, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct decodeTextFormat: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".decodeTextFormat"
var decodeTextFormat: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.decodeTextFormat)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.decodeTextFormat != 0 {
try visitor.visitSingularInt32Field(value: self.decodeTextFormat, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct defaultValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".defaultValue"
var defaultValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.defaultValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.defaultValue != 0 {
try visitor.visitSingularInt32Field(value: self.defaultValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct descriptionMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".description"
var description_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.description_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.description_p != 0 {
try visitor.visitSingularInt32Field(value: self.description_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct destination: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".destination"
var destination: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.destination)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.destination != 0 {
try visitor.visitSingularInt32Field(value: self.destination, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Dictionary: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Dictionary"
var dictionary: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.dictionary)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.dictionary != 0 {
try visitor.visitSingularInt32Field(value: self.dictionary, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct dictionaryLiteral: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".dictionaryLiteral"
var dictionaryLiteral: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.dictionaryLiteral)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.dictionaryLiteral != 0 {
try visitor.visitSingularInt32Field(value: self.dictionaryLiteral, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct digit0: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".digit0"
var digit0: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.digit0)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.digit0 != 0 {
try visitor.visitSingularInt32Field(value: self.digit0, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct digit1: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".digit1"
var digit1: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.digit1)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.digit1 != 0 {
try visitor.visitSingularInt32Field(value: self.digit1, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct digitCount: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".digitCount"
var digitCount: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.digitCount)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.digitCount != 0 {
try visitor.visitSingularInt32Field(value: self.digitCount, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct digits: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".digits"
var digits: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.digits)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.digits != 0 {
try visitor.visitSingularInt32Field(value: self.digits, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct digitValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".digitValue"
var digitValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.digitValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.digitValue != 0 {
try visitor.visitSingularInt32Field(value: self.digitValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct discardableResult: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".discardableResult"
var discardableResult: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.discardableResult)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.discardableResult != 0 {
try visitor.visitSingularInt32Field(value: self.discardableResult, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct DispatchQueue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".DispatchQueue"
var dispatchQueue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.dispatchQueue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.dispatchQueue != 0 {
try visitor.visitSingularInt32Field(value: self.dispatchQueue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct div: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".div"
var div: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.div)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.div != 0 {
try visitor.visitSingularInt32Field(value: self.div, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct double: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".double"
var double: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.double)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.double != 0 {
try visitor.visitSingularInt32Field(value: self.double, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct doubleToUtf8: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".doubleToUtf8"
var doubleToUtf8: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.doubleToUtf8)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.doubleToUtf8 != 0 {
try visitor.visitSingularInt32Field(value: self.doubleToUtf8, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct DoubleValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".DoubleValue"
var doubleValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.doubleValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.doubleValue != 0 {
try visitor.visitSingularInt32Field(value: self.doubleValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Duration: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Duration"
var duration: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.duration)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.duration != 0 {
try visitor.visitSingularInt32Field(value: self.duration, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct E: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".E"
var e: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.e)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.e != 0 {
try visitor.visitSingularInt32Field(value: self.e, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Element: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Element"
var element: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.element)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.element != 0 {
try visitor.visitSingularInt32Field(value: self.element, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct elements: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".elements"
var elements: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.elements)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.elements != 0 {
try visitor.visitSingularInt32Field(value: self.elements, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct emitExtensionFieldName: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".emitExtensionFieldName"
var emitExtensionFieldName: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.emitExtensionFieldName)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.emitExtensionFieldName != 0 {
try visitor.visitSingularInt32Field(value: self.emitExtensionFieldName, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct emitFieldName: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".emitFieldName"
var emitFieldName: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.emitFieldName)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.emitFieldName != 0 {
try visitor.visitSingularInt32Field(value: self.emitFieldName, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct emitFieldNumber: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".emitFieldNumber"
var emitFieldNumber: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.emitFieldNumber)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.emitFieldNumber != 0 {
try visitor.visitSingularInt32Field(value: self.emitFieldNumber, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct emitVerboseTextForm: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".emitVerboseTextForm"
var emitVerboseTextForm: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.emitVerboseTextForm)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.emitVerboseTextForm != 0 {
try visitor.visitSingularInt32Field(value: self.emitVerboseTextForm, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Empty: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Empty"
var empty: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.empty)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.empty != 0 {
try visitor.visitSingularInt32Field(value: self.empty, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct emptyData: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".emptyData"
var emptyData: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.emptyData)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.emptyData != 0 {
try visitor.visitSingularInt32Field(value: self.emptyData, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct encoded: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".encoded"
var encoded: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.encoded)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.encoded != 0 {
try visitor.visitSingularInt32Field(value: self.encoded, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct encodedJSONString: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".encodedJSONString"
var encodedJsonstring: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.encodedJsonstring)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.encodedJsonstring != 0 {
try visitor.visitSingularInt32Field(value: self.encodedJsonstring, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct encodedSize: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".encodedSize"
var encodedSize: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.encodedSize)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.encodedSize != 0 {
try visitor.visitSingularInt32Field(value: self.encodedSize, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct encodeField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".encodeField"
var encodeField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.encodeField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.encodeField != 0 {
try visitor.visitSingularInt32Field(value: self.encodeField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct encoder: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".encoder"
var encoder: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.encoder)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.encoder != 0 {
try visitor.visitSingularInt32Field(value: self.encoder, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct end: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".end"
var end: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.end)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.end != 0 {
try visitor.visitSingularInt32Field(value: self.end, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct endArray: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".endArray"
var endArray: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.endArray)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.endArray != 0 {
try visitor.visitSingularInt32Field(value: self.endArray, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct endMessageField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".endMessageField"
var endMessageField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.endMessageField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.endMessageField != 0 {
try visitor.visitSingularInt32Field(value: self.endMessageField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct endObject: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".endObject"
var endObject: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.endObject)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.endObject != 0 {
try visitor.visitSingularInt32Field(value: self.endObject, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct endRegularField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".endRegularField"
var endRegularField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.endRegularField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.endRegularField != 0 {
try visitor.visitSingularInt32Field(value: self.endRegularField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Enum: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Enum"
var enum_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.enum_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.enum_p != 0 {
try visitor.visitSingularInt32Field(value: self.enum_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct enumvalue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".enumvalue"
var enumvalue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.enumvalue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.enumvalue != 0 {
try visitor.visitSingularInt32Field(value: self.enumvalue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Equatable: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Equatable"
var equatable: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.equatable)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.equatable != 0 {
try visitor.visitSingularInt32Field(value: self.equatable, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ext: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ext"
var ext: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.ext)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.ext != 0 {
try visitor.visitSingularInt32Field(value: self.ext, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct extendedGraphemeClusterLiteral: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".extendedGraphemeClusterLiteral"
var extendedGraphemeClusterLiteral: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.extendedGraphemeClusterLiteral)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.extendedGraphemeClusterLiteral != 0 {
try visitor.visitSingularInt32Field(value: self.extendedGraphemeClusterLiteral, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ExtendedGraphemeClusterLiteralType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ExtendedGraphemeClusterLiteralType"
var extendedGraphemeClusterLiteralType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.extendedGraphemeClusterLiteralType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.extendedGraphemeClusterLiteralType != 0 {
try visitor.visitSingularInt32Field(value: self.extendedGraphemeClusterLiteralType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ExtensionFieldValueSet: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ExtensionFieldValueSet"
var extensionFieldValueSet: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.extensionFieldValueSet)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.extensionFieldValueSet != 0 {
try visitor.visitSingularInt32Field(value: self.extensionFieldValueSet, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ExtensionMap: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ExtensionMap"
var extensionMap: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.extensionMap)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.extensionMap != 0 {
try visitor.visitSingularInt32Field(value: self.extensionMap, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct extensions: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".extensions"
var extensions: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.extensions)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.extensions != 0 {
try visitor.visitSingularInt32Field(value: self.extensions, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct extras: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".extras"
var extras: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.extras)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.extras != 0 {
try visitor.visitSingularInt32Field(value: self.extras, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct f: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".f"
var f: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.f)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.f != 0 {
try visitor.visitSingularInt32Field(value: self.f, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct falseMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".false"
var false_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.false_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.false_p != 0 {
try visitor.visitSingularInt32Field(value: self.false_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".field"
var field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.field != 0 {
try visitor.visitSingularInt32Field(value: self.field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct FieldMask: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".FieldMask"
var fieldMask: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fieldMask)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fieldMask != 0 {
try visitor.visitSingularInt32Field(value: self.fieldMask, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fieldName: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fieldName"
var fieldName: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fieldName)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fieldName != 0 {
try visitor.visitSingularInt32Field(value: self.fieldName, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fieldNameCount: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fieldNameCount"
var fieldNameCount: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fieldNameCount)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fieldNameCount != 0 {
try visitor.visitSingularInt32Field(value: self.fieldNameCount, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fieldNumber: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fieldNumber"
var fieldNumber: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fieldNumber)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fieldNumber != 0 {
try visitor.visitSingularInt32Field(value: self.fieldNumber, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fieldNumberForProto: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fieldNumberForProto"
var fieldNumberForProto: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fieldNumberForProto)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fieldNumberForProto != 0 {
try visitor.visitSingularInt32Field(value: self.fieldNumberForProto, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fields: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fields"
var fields: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fields)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fields != 0 {
try visitor.visitSingularInt32Field(value: self.fields, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fieldSize: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fieldSize"
var fieldSize: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fieldSize)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fieldSize != 0 {
try visitor.visitSingularInt32Field(value: self.fieldSize, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct FieldTag: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".FieldTag"
var fieldTag: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fieldTag)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fieldTag != 0 {
try visitor.visitSingularInt32Field(value: self.fieldTag, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fieldType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fieldType"
var fieldType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fieldType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fieldType != 0 {
try visitor.visitSingularInt32Field(value: self.fieldType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fieldValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fieldValue"
var fieldValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fieldValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fieldValue != 0 {
try visitor.visitSingularInt32Field(value: self.fieldValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fileName: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fileName"
var fileName: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fileName)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fileName != 0 {
try visitor.visitSingularInt32Field(value: self.fileName, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fileprivateMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fileprivate"
var fileprivate_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fileprivate_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fileprivate_p != 0 {
try visitor.visitSingularInt32Field(value: self.fileprivate_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct firstItem: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".firstItem"
var firstItem: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.firstItem)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.firstItem != 0 {
try visitor.visitSingularInt32Field(value: self.firstItem, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct flatMap: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".flatMap"
var flatMap: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.flatMap)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.flatMap != 0 {
try visitor.visitSingularInt32Field(value: self.flatMap, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct float: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".float"
var float: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.float)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.float != 0 {
try visitor.visitSingularInt32Field(value: self.float, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct floatLiteral: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".floatLiteral"
var floatLiteral: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.floatLiteral)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.floatLiteral != 0 {
try visitor.visitSingularInt32Field(value: self.floatLiteral, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct FloatLiteralType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".FloatLiteralType"
var floatLiteralType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.floatLiteralType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.floatLiteralType != 0 {
try visitor.visitSingularInt32Field(value: self.floatLiteralType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct floatToUtf8: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".floatToUtf8"
var floatToUtf8: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.floatToUtf8)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.floatToUtf8 != 0 {
try visitor.visitSingularInt32Field(value: self.floatToUtf8, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct FloatValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".FloatValue"
var floatValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.floatValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.floatValue != 0 {
try visitor.visitSingularInt32Field(value: self.floatValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct forMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".for"
var for_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.for_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.for_p != 0 {
try visitor.visitSingularInt32Field(value: self.for_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct formatDuration: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".formatDuration"
var formatDuration: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.formatDuration)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.formatDuration != 0 {
try visitor.visitSingularInt32Field(value: self.formatDuration, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct formatTimestamp: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".formatTimestamp"
var formatTimestamp: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.formatTimestamp)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.formatTimestamp != 0 {
try visitor.visitSingularInt32Field(value: self.formatTimestamp, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct forMessageMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".forMessage"
var forMessage: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.forMessage)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.forMessage != 0 {
try visitor.visitSingularInt32Field(value: self.forMessage, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct forMessageName: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".forMessageName"
var forMessageName: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.forMessageName)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.forMessageName != 0 {
try visitor.visitSingularInt32Field(value: self.forMessageName, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct forReadingFrom: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".forReadingFrom"
var forReadingFrom: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.forReadingFrom)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.forReadingFrom != 0 {
try visitor.visitSingularInt32Field(value: self.forReadingFrom, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct forTypeURL: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".forTypeURL"
var forTypeURL: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.forTypeURL)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.forTypeURL != 0 {
try visitor.visitSingularInt32Field(value: self.forTypeURL, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct forWritingInto: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".forWritingInto"
var forWritingInto: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.forWritingInto)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.forWritingInto != 0 {
try visitor.visitSingularInt32Field(value: self.forWritingInto, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct from: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".from"
var from: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.from)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.from != 0 {
try visitor.visitSingularInt32Field(value: self.from, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fromAscii2: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fromAscii2"
var fromAscii2: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fromAscii2)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fromAscii2 != 0 {
try visitor.visitSingularInt32Field(value: self.fromAscii2, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fromAscii4: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fromAscii4"
var fromAscii4: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fromAscii4)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fromAscii4 != 0 {
try visitor.visitSingularInt32Field(value: self.fromAscii4, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fromHexDigit: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fromHexDigit"
var fromHexDigit: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fromHexDigit)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fromHexDigit != 0 {
try visitor.visitSingularInt32Field(value: self.fromHexDigit, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fromMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fromMessage"
var fromMessage: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fromMessage)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fromMessage != 0 {
try visitor.visitSingularInt32Field(value: self.fromMessage, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct fromURL: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".fromURL"
var fromURL: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.fromURL)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.fromURL != 0 {
try visitor.visitSingularInt32Field(value: self.fromURL, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct funcMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".func"
var func_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.func_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.func_p != 0 {
try visitor.visitSingularInt32Field(value: self.func_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Functions: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Functions"
var functions: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.functions)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.functions != 0 {
try visitor.visitSingularInt32Field(value: self.functions, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct G: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".G"
var g: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.g)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.g != 0 {
try visitor.visitSingularInt32Field(value: self.g, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct generated: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".generated"
var generated: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.generated)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.generated != 0 {
try visitor.visitSingularInt32Field(value: self.generated, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct get: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".get"
var get: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.get)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.get != 0 {
try visitor.visitSingularInt32Field(value: self.get, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct getExtensionValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".getExtensionValue"
var getExtensionValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.getExtensionValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.getExtensionValue != 0 {
try visitor.visitSingularInt32Field(value: self.getExtensionValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Any: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Any"
var googleProtobufAny: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufAny)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufAny != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufAny, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Api: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Api"
var googleProtobufApi: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufApi)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufApi != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufApi, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_BoolValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_BoolValue"
var googleProtobufBoolValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufBoolValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufBoolValue != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufBoolValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_BytesValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_BytesValue"
var googleProtobufBytesValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufBytesValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufBytesValue != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufBytesValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_DoubleValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_DoubleValue"
var googleProtobufDoubleValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufDoubleValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufDoubleValue != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufDoubleValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Duration: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Duration"
var googleProtobufDuration: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufDuration)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufDuration != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufDuration, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Empty: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Empty"
var googleProtobufEmpty: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufEmpty)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufEmpty != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufEmpty, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Enum: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Enum"
var googleProtobufEnum: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufEnum)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufEnum != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufEnum, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_EnumValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_EnumValue"
var googleProtobufEnumValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufEnumValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufEnumValue != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufEnumValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Field"
var googleProtobufField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufField != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_FieldMask: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_FieldMask"
var googleProtobufFieldMask: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufFieldMask)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufFieldMask != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufFieldMask, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_FloatValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_FloatValue"
var googleProtobufFloatValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufFloatValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufFloatValue != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufFloatValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Int32Value: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Int32Value"
var googleProtobufInt32Value: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufInt32Value)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufInt32Value != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufInt32Value, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Int64Value: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Int64Value"
var googleProtobufInt64Value: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufInt64Value)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufInt64Value != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufInt64Value, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_ListValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_ListValue"
var googleProtobufListValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufListValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufListValue != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufListValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Method: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Method"
var googleProtobufMethod: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufMethod)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufMethod != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufMethod, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Mixin: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Mixin"
var googleProtobufMixin: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufMixin)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufMixin != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufMixin, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_NullValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_NullValue"
var googleProtobufNullValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufNullValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufNullValue != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufNullValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Option: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Option"
var googleProtobufOption: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufOption)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufOption != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufOption, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_SourceContext: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_SourceContext"
var googleProtobufSourceContext: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufSourceContext)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufSourceContext != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufSourceContext, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_StringValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_StringValue"
var googleProtobufStringValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufStringValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufStringValue != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufStringValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Struct: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Struct"
var googleProtobufStruct: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufStruct)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufStruct != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufStruct, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Syntax: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Syntax"
var googleProtobufSyntax: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufSyntax)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufSyntax != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufSyntax, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Timestamp: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Timestamp"
var googleProtobufTimestamp: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufTimestamp)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufTimestamp != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufTimestamp, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Type: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Type"
var googleProtobufType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufType != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_UInt32Value: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_UInt32Value"
var googleProtobufUint32Value: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufUint32Value)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufUint32Value != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufUint32Value, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_UInt64Value: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_UInt64Value"
var googleProtobufUint64Value: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufUint64Value)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufUint64Value != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufUint64Value, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Google_Protobuf_Value: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Google_Protobuf_Value"
var googleProtobufValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.googleProtobufValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.googleProtobufValue != 0 {
try visitor.visitSingularInt32Field(value: self.googleProtobufValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct gregorianDateFromSecondsSince1970: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".gregorianDateFromSecondsSince1970"
var gregorianDateFromSecondsSince1970: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.gregorianDateFromSecondsSince1970)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.gregorianDateFromSecondsSince1970 != 0 {
try visitor.visitSingularInt32Field(value: self.gregorianDateFromSecondsSince1970, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct group: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".group"
var group: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.group)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.group != 0 {
try visitor.visitSingularInt32Field(value: self.group, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct h: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".h"
var h: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.h)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.h != 0 {
try visitor.visitSingularInt32Field(value: self.h, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct handleConflictingOneOf: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".handleConflictingOneOf"
var handleConflictingOneOf: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.handleConflictingOneOf)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.handleConflictingOneOf != 0 {
try visitor.visitSingularInt32Field(value: self.handleConflictingOneOf, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct has: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".has"
var has_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.has_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.has_p != 0 {
try visitor.visitSingularInt32Field(value: self.has_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct hasExtensionValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".hasExtensionValue"
var hasExtensionValue_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.hasExtensionValue_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.hasExtensionValue_p != 0 {
try visitor.visitSingularInt32Field(value: self.hasExtensionValue_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct hash: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".hash"
var hash_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.hash_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.hash_p != 0 {
try visitor.visitSingularInt32Field(value: self.hash_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Hashable: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Hashable"
var hashable_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.hashable_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.hashable_p != 0 {
try visitor.visitSingularInt32Field(value: self.hashable_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct hashValueMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".hashValue"
var hashValue_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.hashValue_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.hashValue_p != 0 {
try visitor.visitSingularInt32Field(value: self.hashValue_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct HashVisitor: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".HashVisitor"
var hashVisitor_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.hashVisitor_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.hashVisitor_p != 0 {
try visitor.visitSingularInt32Field(value: self.hashVisitor_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct hasSourceContext: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".hasSourceContext"
var hasSourceContext_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.hasSourceContext_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.hasSourceContext_p != 0 {
try visitor.visitSingularInt32Field(value: self.hasSourceContext_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct hasValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".hasValue"
var hasValue_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.hasValue_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.hasValue_p != 0 {
try visitor.visitSingularInt32Field(value: self.hasValue_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct hh: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".hh"
var hh: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.hh)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.hh != 0 {
try visitor.visitSingularInt32Field(value: self.hh, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct hour: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".hour"
var hour: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.hour)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.hour != 0 {
try visitor.visitSingularInt32Field(value: self.hour, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct i: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".i"
var i: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.i)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.i != 0 {
try visitor.visitSingularInt32Field(value: self.i, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct index: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".index"
var index: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.index)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.index != 0 {
try visitor.visitSingularInt32Field(value: self.index, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct initMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".init"
var init_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.init_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.init_p != 0 {
try visitor.visitSingularInt32Field(value: self.init_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct inoutMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".inout"
var inout_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.inout_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.inout_p != 0 {
try visitor.visitSingularInt32Field(value: self.inout_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct insert: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".insert"
var insert: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.insert)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.insert != 0 {
try visitor.visitSingularInt32Field(value: self.insert, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct insertIntoSet: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".insertIntoSet"
var insertIntoSet: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.insertIntoSet)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.insertIntoSet != 0 {
try visitor.visitSingularInt32Field(value: self.insertIntoSet, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct IntMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Int"
var int: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.int)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.int != 0 {
try visitor.visitSingularInt32Field(value: self.int, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Int32Message: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Int32"
var int32: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.int32)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.int32 != 0 {
try visitor.visitSingularInt32Field(value: self.int32, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Int32Value: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Int32Value"
var int32Value: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.int32Value)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.int32Value != 0 {
try visitor.visitSingularInt32Field(value: self.int32Value, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Int64Message: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Int64"
var int64: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.int64)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.int64 != 0 {
try visitor.visitSingularInt32Field(value: self.int64, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Int64Value: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Int64Value"
var int64Value: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.int64Value)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.int64Value != 0 {
try visitor.visitSingularInt32Field(value: self.int64Value, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Int8: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Int8"
var int8: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.int8)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.int8 != 0 {
try visitor.visitSingularInt32Field(value: self.int8, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct integerLiteral: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".integerLiteral"
var integerLiteral: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.integerLiteral)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.integerLiteral != 0 {
try visitor.visitSingularInt32Field(value: self.integerLiteral, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct IntegerLiteralType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".IntegerLiteralType"
var integerLiteralType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.integerLiteralType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.integerLiteralType != 0 {
try visitor.visitSingularInt32Field(value: self.integerLiteralType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct intern: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".intern"
var intern: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.intern)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.intern != 0 {
try visitor.visitSingularInt32Field(value: self.intern, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Internal: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Internal"
var internal_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.internal_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.internal_p != 0 {
try visitor.visitSingularInt32Field(value: self.internal_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct InternalState: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".InternalState"
var internalState: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.internalState)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.internalState != 0 {
try visitor.visitSingularInt32Field(value: self.internalState, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct isA: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".isA"
var isA: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.isA)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.isA != 0 {
try visitor.visitSingularInt32Field(value: self.isA, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct isEqual: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".isEqual"
var isEqual: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.isEqual)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.isEqual != 0 {
try visitor.visitSingularInt32Field(value: self.isEqual, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct isEqualTo: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".isEqualTo"
var isEqualTo: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.isEqualTo)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.isEqualTo != 0 {
try visitor.visitSingularInt32Field(value: self.isEqualTo, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct isInitializedMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".isInitialized"
var isInitialized_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.isInitialized_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.isInitialized_p != 0 {
try visitor.visitSingularInt32Field(value: self.isInitialized_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct it: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".it"
var it: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.it)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.it != 0 {
try visitor.visitSingularInt32Field(value: self.it, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct i_2166136261: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".i_2166136261"
var i2166136261: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.i2166136261)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.i2166136261 != 0 {
try visitor.visitSingularInt32Field(value: self.i2166136261, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct json: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".json"
var json: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.json)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.json != 0 {
try visitor.visitSingularInt32Field(value: self.json, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct JSONDecoder: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".JSONDecoder"
var jsondecoder: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsondecoder)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsondecoder != 0 {
try visitor.visitSingularInt32Field(value: self.jsondecoder, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct jsonEncoder: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".jsonEncoder"
var jsonEncoder: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsonEncoder)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsonEncoder != 0 {
try visitor.visitSingularInt32Field(value: self.jsonEncoder, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct JSONEncodingVisitor: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".JSONEncodingVisitor"
var jsonencodingVisitor: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsonencodingVisitor)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsonencodingVisitor != 0 {
try visitor.visitSingularInt32Field(value: self.jsonencodingVisitor, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct JSONMapEncodingVisitor: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".JSONMapEncodingVisitor"
var jsonmapEncodingVisitor: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsonmapEncodingVisitor)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsonmapEncodingVisitor != 0 {
try visitor.visitSingularInt32Field(value: self.jsonmapEncodingVisitor, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct jsonName: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".jsonName"
var jsonName: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsonName)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsonName != 0 {
try visitor.visitSingularInt32Field(value: self.jsonName, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct jsonPath: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".jsonPath"
var jsonPath: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsonPath)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsonPath != 0 {
try visitor.visitSingularInt32Field(value: self.jsonPath, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct jsonPaths: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".jsonPaths"
var jsonPaths: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsonPaths)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsonPaths != 0 {
try visitor.visitSingularInt32Field(value: self.jsonPaths, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct JSONScanner: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".JSONScanner"
var jsonscanner: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsonscanner)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsonscanner != 0 {
try visitor.visitSingularInt32Field(value: self.jsonscanner, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct jsonString: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".jsonString"
var jsonString: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsonString)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsonString != 0 {
try visitor.visitSingularInt32Field(value: self.jsonString, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct jsonText: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".jsonText"
var jsonText: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsonText)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsonText != 0 {
try visitor.visitSingularInt32Field(value: self.jsonText, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct JSONToProto: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".JSONToProto"
var jsontoProto: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsontoProto)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsontoProto != 0 {
try visitor.visitSingularInt32Field(value: self.jsontoProto, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct jsonUTF8Data: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".jsonUTF8Data"
var jsonUtf8Data: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.jsonUtf8Data)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.jsonUtf8Data != 0 {
try visitor.visitSingularInt32Field(value: self.jsonUtf8Data, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct julianDayNumberFromSecondsSince1970: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".julianDayNumberFromSecondsSince1970"
var julianDayNumberFromSecondsSince1970: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.julianDayNumberFromSecondsSince1970)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.julianDayNumberFromSecondsSince1970 != 0 {
try visitor.visitSingularInt32Field(value: self.julianDayNumberFromSecondsSince1970, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct k: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".k"
var k: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.k)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.k != 0 {
try visitor.visitSingularInt32Field(value: self.k, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Key: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Key"
var key: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.key)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.key != 0 {
try visitor.visitSingularInt32Field(value: self.key, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct keyField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".keyField"
var keyField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.keyField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.keyField != 0 {
try visitor.visitSingularInt32Field(value: self.keyField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct KeyType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".KeyType"
var keyType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.keyType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.keyType != 0 {
try visitor.visitSingularInt32Field(value: self.keyType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct kind: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".kind"
var kind: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.kind)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.kind != 0 {
try visitor.visitSingularInt32Field(value: self.kind, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct knownTypes: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".knownTypes"
var knownTypes: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.knownTypes)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.knownTypes != 0 {
try visitor.visitSingularInt32Field(value: self.knownTypes, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct l: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".l"
var l: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.l)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.l != 0 {
try visitor.visitSingularInt32Field(value: self.l, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct label: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".label"
var label: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.label)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.label != 0 {
try visitor.visitSingularInt32Field(value: self.label, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct length: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".length"
var length: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.length)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.length != 0 {
try visitor.visitSingularInt32Field(value: self.length, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct letMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".let"
var let_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.let_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.let_p != 0 {
try visitor.visitSingularInt32Field(value: self.let_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct lhs: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".lhs"
var lhs: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.lhs)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.lhs != 0 {
try visitor.visitSingularInt32Field(value: self.lhs, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct listOfMessages: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".listOfMessages"
var listOfMessages: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.listOfMessages)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.listOfMessages != 0 {
try visitor.visitSingularInt32Field(value: self.listOfMessages, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct listValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".listValue"
var listValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.listValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.listValue != 0 {
try visitor.visitSingularInt32Field(value: self.listValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct littleEndian: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".littleEndian"
var littleEndian: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.littleEndian)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.littleEndian != 0 {
try visitor.visitSingularInt32Field(value: self.littleEndian, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct littleEndianBytes: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".littleEndianBytes"
var littleEndianBytes: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.littleEndianBytes)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.littleEndianBytes != 0 {
try visitor.visitSingularInt32Field(value: self.littleEndianBytes, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct M: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".M"
var m: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.m)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.m != 0 {
try visitor.visitSingularInt32Field(value: self.m, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct major: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".major"
var major: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.major)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.major != 0 {
try visitor.visitSingularInt32Field(value: self.major, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct makeIterator: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".makeIterator"
var makeIterator: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.makeIterator)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.makeIterator != 0 {
try visitor.visitSingularInt32Field(value: self.makeIterator, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct mapHash: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".mapHash"
var mapHash: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mapHash)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mapHash != 0 {
try visitor.visitSingularInt32Field(value: self.mapHash, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct MapKeyType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".MapKeyType"
var mapKeyType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mapKeyType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mapKeyType != 0 {
try visitor.visitSingularInt32Field(value: self.mapKeyType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct mapNameResolver: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".mapNameResolver"
var mapNameResolver: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mapNameResolver)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mapNameResolver != 0 {
try visitor.visitSingularInt32Field(value: self.mapNameResolver, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct mapToMessages: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".mapToMessages"
var mapToMessages: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mapToMessages)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mapToMessages != 0 {
try visitor.visitSingularInt32Field(value: self.mapToMessages, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct MapValueType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".MapValueType"
var mapValueType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mapValueType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mapValueType != 0 {
try visitor.visitSingularInt32Field(value: self.mapValueType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct mapVisitor: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".mapVisitor"
var mapVisitor: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mapVisitor)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mapVisitor != 0 {
try visitor.visitSingularInt32Field(value: self.mapVisitor, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct mdayStart: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".mdayStart"
var mdayStart: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mdayStart)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mdayStart != 0 {
try visitor.visitSingularInt32Field(value: self.mdayStart, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct members: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".members"
var members: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.members)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.members != 0 {
try visitor.visitSingularInt32Field(value: self.members, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct merge: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".merge"
var merge: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.merge)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.merge != 0 {
try visitor.visitSingularInt32Field(value: self.merge, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct message: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".message"
var message: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.message)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.message != 0 {
try visitor.visitSingularInt32Field(value: self.message, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct MessageExtension: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".MessageExtension"
var messageExtension: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.messageExtension)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.messageExtension != 0 {
try visitor.visitSingularInt32Field(value: self.messageExtension, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct MessageExtensionBase: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".MessageExtensionBase"
var messageExtensionBase: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.messageExtensionBase)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.messageExtensionBase != 0 {
try visitor.visitSingularInt32Field(value: self.messageExtensionBase, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct messageType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".messageType"
var messageType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.messageType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.messageType != 0 {
try visitor.visitSingularInt32Field(value: self.messageType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Method: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Method"
var method: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.method)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.method != 0 {
try visitor.visitSingularInt32Field(value: self.method, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct methods: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".methods"
var methods: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.methods)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.methods != 0 {
try visitor.visitSingularInt32Field(value: self.methods, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct minor: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".minor"
var minor: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.minor)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.minor != 0 {
try visitor.visitSingularInt32Field(value: self.minor, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Mixin: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Mixin"
var mixin: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mixin)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mixin != 0 {
try visitor.visitSingularInt32Field(value: self.mixin, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct mixins: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".mixins"
var mixins: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mixins)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mixins != 0 {
try visitor.visitSingularInt32Field(value: self.mixins, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct mm: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".mm"
var mm: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mm)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mm != 0 {
try visitor.visitSingularInt32Field(value: self.mm, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct mod: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".mod"
var mod: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mod)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mod != 0 {
try visitor.visitSingularInt32Field(value: self.mod, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct month: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".month"
var month: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.month)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.month != 0 {
try visitor.visitSingularInt32Field(value: self.month, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct mutating: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".mutating"
var mutating: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.mutating)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.mutating != 0 {
try visitor.visitSingularInt32Field(value: self.mutating, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct n: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".n"
var n: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.n)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.n != 0 {
try visitor.visitSingularInt32Field(value: self.n, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct name: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".name"
var name: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.name)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.name != 0 {
try visitor.visitSingularInt32Field(value: self.name, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct NameDescription: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".NameDescription"
var nameDescription: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.nameDescription)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.nameDescription != 0 {
try visitor.visitSingularInt32Field(value: self.nameDescription, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct NameMap: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".NameMap"
var nameMap: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.nameMap)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.nameMap != 0 {
try visitor.visitSingularInt32Field(value: self.nameMap, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct nameResolver: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".nameResolver"
var nameResolver: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.nameResolver)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.nameResolver != 0 {
try visitor.visitSingularInt32Field(value: self.nameResolver, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct names: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".names"
var names: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.names)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.names != 0 {
try visitor.visitSingularInt32Field(value: self.names, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct nanos: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".nanos"
var nanos: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.nanos)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.nanos != 0 {
try visitor.visitSingularInt32Field(value: self.nanos, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct nativeBytes: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".nativeBytes"
var nativeBytes: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.nativeBytes)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.nativeBytes != 0 {
try visitor.visitSingularInt32Field(value: self.nativeBytes, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct nativeEndianBytes: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".nativeEndianBytes"
var nativeEndianBytes: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.nativeEndianBytes)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.nativeEndianBytes != 0 {
try visitor.visitSingularInt32Field(value: self.nativeEndianBytes, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct newL: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".newL"
var newL: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.newL)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.newL != 0 {
try visitor.visitSingularInt32Field(value: self.newL, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct newValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".newValue"
var newValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.newValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.newValue != 0 {
try visitor.visitSingularInt32Field(value: self.newValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct nextFieldNumber: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".nextFieldNumber"
var nextFieldNumber: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.nextFieldNumber)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.nextFieldNumber != 0 {
try visitor.visitSingularInt32Field(value: self.nextFieldNumber, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct nilMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".nil"
var nil_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.nil_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.nil_p != 0 {
try visitor.visitSingularInt32Field(value: self.nil_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct nilLiteral: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".nilLiteral"
var nilLiteral: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.nilLiteral)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.nilLiteral != 0 {
try visitor.visitSingularInt32Field(value: self.nilLiteral, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct no: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".no"
var no: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.no)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.no != 0 {
try visitor.visitSingularInt32Field(value: self.no, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct normalizeForDuration: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".normalizeForDuration"
var normalizeForDuration: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.normalizeForDuration)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.normalizeForDuration != 0 {
try visitor.visitSingularInt32Field(value: self.normalizeForDuration, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct normalizeForTimestamp: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".normalizeForTimestamp"
var normalizeForTimestamp: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.normalizeForTimestamp)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.normalizeForTimestamp != 0 {
try visitor.visitSingularInt32Field(value: self.normalizeForTimestamp, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct nullValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".nullValue"
var nullValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.nullValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.nullValue != 0 {
try visitor.visitSingularInt32Field(value: self.nullValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct number: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".number"
var number: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.number)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.number != 0 {
try visitor.visitSingularInt32Field(value: self.number, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct numberValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".numberValue"
var numberValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.numberValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.numberValue != 0 {
try visitor.visitSingularInt32Field(value: self.numberValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct of: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".of"
var of: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.of)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.of != 0 {
try visitor.visitSingularInt32Field(value: self.of, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct oneofIndex: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".oneofIndex"
var oneofIndex: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.oneofIndex)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.oneofIndex != 0 {
try visitor.visitSingularInt32Field(value: self.oneofIndex, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct oneofs: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".oneofs"
var oneofs: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.oneofs)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.oneofs != 0 {
try visitor.visitSingularInt32Field(value: self.oneofs, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct OneOf_Kind: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".OneOf_Kind"
var oneOfKind: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.oneOfKind)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.oneOfKind != 0 {
try visitor.visitSingularInt32Field(value: self.oneOfKind, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct only: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".only"
var only: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.only)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.only != 0 {
try visitor.visitSingularInt32Field(value: self.only, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Option: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Option"
var option: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.option)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.option != 0 {
try visitor.visitSingularInt32Field(value: self.option, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct OptionalEnumExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".OptionalEnumExtensionField"
var optionalEnumExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.optionalEnumExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.optionalEnumExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.optionalEnumExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct OptionalExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".OptionalExtensionField"
var optionalExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.optionalExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.optionalExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.optionalExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct OptionalGroupExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".OptionalGroupExtensionField"
var optionalGroupExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.optionalGroupExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.optionalGroupExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.optionalGroupExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct OptionalMessageExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".OptionalMessageExtensionField"
var optionalMessageExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.optionalMessageExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.optionalMessageExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.optionalMessageExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct options: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".options"
var options: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.options)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.options != 0 {
try visitor.visitSingularInt32Field(value: self.options, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct other: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".other"
var other: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.other)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.other != 0 {
try visitor.visitSingularInt32Field(value: self.other, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct out: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".out"
var out: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.out)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.out != 0 {
try visitor.visitSingularInt32Field(value: self.out, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct output: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".output"
var output: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.output)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.output != 0 {
try visitor.visitSingularInt32Field(value: self.output, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct p: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".p"
var p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.p != 0 {
try visitor.visitSingularInt32Field(value: self.p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct packed: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".packed"
var packed: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.packed)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.packed != 0 {
try visitor.visitSingularInt32Field(value: self.packed, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct PackedEnumExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".PackedEnumExtensionField"
var packedEnumExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.packedEnumExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.packedEnumExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.packedEnumExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct PackedExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".PackedExtensionField"
var packedExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.packedExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.packedExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.packedExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct packedSize: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".packedSize"
var packedSize: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.packedSize)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.packedSize != 0 {
try visitor.visitSingularInt32Field(value: self.packedSize, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct parseBareFloatString: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".parseBareFloatString"
var parseBareFloatString: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.parseBareFloatString)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.parseBareFloatString != 0 {
try visitor.visitSingularInt32Field(value: self.parseBareFloatString, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct parseBareSInt: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".parseBareSInt"
var parseBareSint: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.parseBareSint)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.parseBareSint != 0 {
try visitor.visitSingularInt32Field(value: self.parseBareSint, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct parseBareUInt: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".parseBareUInt"
var parseBareUint: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.parseBareUint)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.parseBareUint != 0 {
try visitor.visitSingularInt32Field(value: self.parseBareUint, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct parseDuration: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".parseDuration"
var parseDuration: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.parseDuration)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.parseDuration != 0 {
try visitor.visitSingularInt32Field(value: self.parseDuration, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct parseJSONFieldNames: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".parseJSONFieldNames"
var parseJsonfieldNames: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.parseJsonfieldNames)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.parseJsonfieldNames != 0 {
try visitor.visitSingularInt32Field(value: self.parseJsonfieldNames, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct parseTimestamp: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".parseTimestamp"
var parseTimestamp: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.parseTimestamp)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.parseTimestamp != 0 {
try visitor.visitSingularInt32Field(value: self.parseTimestamp, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct partial: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".partial"
var partial: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.partial)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.partial != 0 {
try visitor.visitSingularInt32Field(value: self.partial, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct path: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".path"
var path: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.path)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.path != 0 {
try visitor.visitSingularInt32Field(value: self.path, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct paths: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".paths"
var paths: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.paths)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.paths != 0 {
try visitor.visitSingularInt32Field(value: self.paths, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct pointer: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".pointer"
var pointer: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.pointer)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.pointer != 0 {
try visitor.visitSingularInt32Field(value: self.pointer, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct pos: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".pos"
var pos: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.pos)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.pos != 0 {
try visitor.visitSingularInt32Field(value: self.pos, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct prefix: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".prefix"
var prefix: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.prefix)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.prefix != 0 {
try visitor.visitSingularInt32Field(value: self.prefix, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct preTraverse: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".preTraverse"
var preTraverse: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.preTraverse)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.preTraverse != 0 {
try visitor.visitSingularInt32Field(value: self.preTraverse, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct privateMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".private"
var private_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.private_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.private_p != 0 {
try visitor.visitSingularInt32Field(value: self.private_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct proto: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".proto"
var proto: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.proto)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.proto != 0 {
try visitor.visitSingularInt32Field(value: self.proto, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct proto2: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".proto2"
var proto2: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.proto2)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.proto2 != 0 {
try visitor.visitSingularInt32Field(value: self.proto2, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct proto3DefaultValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".proto3DefaultValue"
var proto3DefaultValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.proto3DefaultValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.proto3DefaultValue != 0 {
try visitor.visitSingularInt32Field(value: self.proto3DefaultValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufBool: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufBool"
var protobufBool: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufBool)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufBool != 0 {
try visitor.visitSingularInt32Field(value: self.protobufBool, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufBytes: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufBytes"
var protobufBytes: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufBytes)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufBytes != 0 {
try visitor.visitSingularInt32Field(value: self.protobufBytes, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufDouble: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufDouble"
var protobufDouble: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufDouble)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufDouble != 0 {
try visitor.visitSingularInt32Field(value: self.protobufDouble, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufEnumMap: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufEnumMap"
var protobufEnumMap: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufEnumMap)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufEnumMap != 0 {
try visitor.visitSingularInt32Field(value: self.protobufEnumMap, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct protobufExtension: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".protobufExtension"
var protobufExtension: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufExtension)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufExtension != 0 {
try visitor.visitSingularInt32Field(value: self.protobufExtension, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufFloat: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufFloat"
var protobufFloat: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufFloat)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufFloat != 0 {
try visitor.visitSingularInt32Field(value: self.protobufFloat, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufInt32: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufInt32"
var protobufInt32: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufInt32)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufInt32 != 0 {
try visitor.visitSingularInt32Field(value: self.protobufInt32, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufInt64: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufInt64"
var protobufInt64: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufInt64)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufInt64 != 0 {
try visitor.visitSingularInt32Field(value: self.protobufInt64, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufMap: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufMap"
var protobufMap: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufMap)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufMap != 0 {
try visitor.visitSingularInt32Field(value: self.protobufMap, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufMessageMap: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufMessageMap"
var protobufMessageMap: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufMessageMap)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufMessageMap != 0 {
try visitor.visitSingularInt32Field(value: self.protobufMessageMap, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufString: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufString"
var protobufString: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufString)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufString != 0 {
try visitor.visitSingularInt32Field(value: self.protobufString, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufUInt32: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufUInt32"
var protobufUint32: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufUint32)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufUint32 != 0 {
try visitor.visitSingularInt32Field(value: self.protobufUint32, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtobufUInt64: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtobufUInt64"
var protobufUint64: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufUint64)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufUint64 != 0 {
try visitor.visitSingularInt32Field(value: self.protobufUint64, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct protobuf_extensionFieldValues: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".protobuf_extensionFieldValues"
var protobufExtensionFieldValues: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufExtensionFieldValues)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufExtensionFieldValues != 0 {
try visitor.visitSingularInt32Field(value: self.protobufExtensionFieldValues, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct protobuf_fieldNumber: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".protobuf_fieldNumber"
var protobufFieldNumber: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufFieldNumber)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufFieldNumber != 0 {
try visitor.visitSingularInt32Field(value: self.protobufFieldNumber, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct protobuf_generated_isEqualTo: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".protobuf_generated_isEqualTo"
var protobufGeneratedIsEqualTo: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufGeneratedIsEqualTo)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufGeneratedIsEqualTo != 0 {
try visitor.visitSingularInt32Field(value: self.protobufGeneratedIsEqualTo, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct protobuf_nameMap: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".protobuf_nameMap"
var protobufNameMap: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufNameMap)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufNameMap != 0 {
try visitor.visitSingularInt32Field(value: self.protobufNameMap, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct protobuf_newField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".protobuf_newField"
var protobufNewField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufNewField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufNewField != 0 {
try visitor.visitSingularInt32Field(value: self.protobufNewField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct protobuf_package: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".protobuf_package"
var protobufPackage: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufPackage)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufPackage != 0 {
try visitor.visitSingularInt32Field(value: self.protobufPackage, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct protobuf_set: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".protobuf_set"
var protobufSet: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protobufSet)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protobufSet != 0 {
try visitor.visitSingularInt32Field(value: self.protobufSet, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct protoFieldName: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".protoFieldName"
var protoFieldName: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protoFieldName)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protoFieldName != 0 {
try visitor.visitSingularInt32Field(value: self.protoFieldName, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct protoMessageNameMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".protoMessageName"
var protoMessageName: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protoMessageName)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protoMessageName != 0 {
try visitor.visitSingularInt32Field(value: self.protoMessageName, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct protoPaths: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".protoPaths"
var protoPaths: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protoPaths)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protoPaths != 0 {
try visitor.visitSingularInt32Field(value: self.protoPaths, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ProtoToJSON: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ProtoToJSON"
var protoToJson: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.protoToJson)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.protoToJson != 0 {
try visitor.visitSingularInt32Field(value: self.protoToJson, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct publicMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".public"
var public_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.public_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.public_p != 0 {
try visitor.visitSingularInt32Field(value: self.public_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putBoolValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putBoolValue"
var putBoolValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putBoolValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putBoolValue != 0 {
try visitor.visitSingularInt32Field(value: self.putBoolValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putBytesValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putBytesValue"
var putBytesValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putBytesValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putBytesValue != 0 {
try visitor.visitSingularInt32Field(value: self.putBytesValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putDoubleValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putDoubleValue"
var putDoubleValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putDoubleValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putDoubleValue != 0 {
try visitor.visitSingularInt32Field(value: self.putDoubleValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putEnumValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putEnumValue"
var putEnumValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putEnumValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putEnumValue != 0 {
try visitor.visitSingularInt32Field(value: self.putEnumValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putFixedUInt32: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putFixedUInt32"
var putFixedUint32: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putFixedUint32)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putFixedUint32 != 0 {
try visitor.visitSingularInt32Field(value: self.putFixedUint32, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putFixedUInt64: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putFixedUInt64"
var putFixedUint64: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putFixedUint64)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putFixedUint64 != 0 {
try visitor.visitSingularInt32Field(value: self.putFixedUint64, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putFloatValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putFloatValue"
var putFloatValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putFloatValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putFloatValue != 0 {
try visitor.visitSingularInt32Field(value: self.putFloatValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putInt64: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putInt64"
var putInt64: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putInt64)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putInt64 != 0 {
try visitor.visitSingularInt32Field(value: self.putInt64, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putStringValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putStringValue"
var putStringValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putStringValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putStringValue != 0 {
try visitor.visitSingularInt32Field(value: self.putStringValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putUInt64: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putUInt64"
var putUint64: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putUint64)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putUint64 != 0 {
try visitor.visitSingularInt32Field(value: self.putUint64, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putUInt64Hex: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putUInt64Hex"
var putUint64Hex: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putUint64Hex)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putUint64Hex != 0 {
try visitor.visitSingularInt32Field(value: self.putUint64Hex, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putVarInt: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putVarInt"
var putVarInt: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putVarInt)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putVarInt != 0 {
try visitor.visitSingularInt32Field(value: self.putVarInt, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct putZigZagVarInt: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".putZigZagVarInt"
var putZigZagVarInt: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.putZigZagVarInt)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.putZigZagVarInt != 0 {
try visitor.visitSingularInt32Field(value: self.putZigZagVarInt, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct RawValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".RawValue"
var rawValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.rawValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.rawValue != 0 {
try visitor.visitSingularInt32Field(value: self.rawValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct register: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".register"
var register: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.register)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.register != 0 {
try visitor.visitSingularInt32Field(value: self.register, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct RepeatedEnumExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".RepeatedEnumExtensionField"
var repeatedEnumExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.repeatedEnumExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.repeatedEnumExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.repeatedEnumExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct RepeatedExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".RepeatedExtensionField"
var repeatedExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.repeatedExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.repeatedExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.repeatedExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct RepeatedGroupExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".RepeatedGroupExtensionField"
var repeatedGroupExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.repeatedGroupExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.repeatedGroupExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.repeatedGroupExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct RepeatedMessageExtensionField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".RepeatedMessageExtensionField"
var repeatedMessageExtensionField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.repeatedMessageExtensionField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.repeatedMessageExtensionField != 0 {
try visitor.visitSingularInt32Field(value: self.repeatedMessageExtensionField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct requestStreaming: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".requestStreaming"
var requestStreaming: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.requestStreaming)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.requestStreaming != 0 {
try visitor.visitSingularInt32Field(value: self.requestStreaming, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct requestTypeURL: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".requestTypeURL"
var requestTypeURL: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.requestTypeURL)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.requestTypeURL != 0 {
try visitor.visitSingularInt32Field(value: self.requestTypeURL, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct requiredSize: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".requiredSize"
var requiredSize: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.requiredSize)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.requiredSize != 0 {
try visitor.visitSingularInt32Field(value: self.requiredSize, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct responseStreaming: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".responseStreaming"
var responseStreaming: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.responseStreaming)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.responseStreaming != 0 {
try visitor.visitSingularInt32Field(value: self.responseStreaming, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct responseTypeURL: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".responseTypeURL"
var responseTypeURL: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.responseTypeURL)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.responseTypeURL != 0 {
try visitor.visitSingularInt32Field(value: self.responseTypeURL, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct result: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".result"
var result: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.result)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.result != 0 {
try visitor.visitSingularInt32Field(value: self.result, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct returnMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".return"
var return_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.return_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.return_p != 0 {
try visitor.visitSingularInt32Field(value: self.return_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct revision: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".revision"
var revision: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.revision)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.revision != 0 {
try visitor.visitSingularInt32Field(value: self.revision, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct rhs: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".rhs"
var rhs: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.rhs)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.rhs != 0 {
try visitor.visitSingularInt32Field(value: self.rhs, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct root: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".root"
var root: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.root)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.root != 0 {
try visitor.visitSingularInt32Field(value: self.root, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct s: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".s"
var s: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.s)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.s != 0 {
try visitor.visitSingularInt32Field(value: self.s, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct savedPosition: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".savedPosition"
var savedPosition: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.savedPosition)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.savedPosition != 0 {
try visitor.visitSingularInt32Field(value: self.savedPosition, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct sawBackslash: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".sawBackslash"
var sawBackslash: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.sawBackslash)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.sawBackslash != 0 {
try visitor.visitSingularInt32Field(value: self.sawBackslash, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct scanner: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".scanner"
var scanner: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.scanner)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.scanner != 0 {
try visitor.visitSingularInt32Field(value: self.scanner, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct seconds: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".seconds"
var seconds: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.seconds)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.seconds != 0 {
try visitor.visitSingularInt32Field(value: self.seconds, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct selfMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".self"
var self_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.self_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.self_p != 0 {
try visitor.visitSingularInt32Field(value: self.self_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct separator: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".separator"
var separator: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.separator)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.separator != 0 {
try visitor.visitSingularInt32Field(value: self.separator, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct serializeAnyJSON: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".serializeAnyJSON"
var serializeAnyJson: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.serializeAnyJson)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.serializeAnyJson != 0 {
try visitor.visitSingularInt32Field(value: self.serializeAnyJson, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct serializedData: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".serializedData"
var serializedData: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.serializedData)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.serializedData != 0 {
try visitor.visitSingularInt32Field(value: self.serializedData, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct serializedSize: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".serializedSize"
var serializedSize: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.serializedSize)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.serializedSize != 0 {
try visitor.visitSingularInt32Field(value: self.serializedSize, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct serialQueue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".serialQueue"
var serialQueue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.serialQueue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.serialQueue != 0 {
try visitor.visitSingularInt32Field(value: self.serialQueue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct set: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".set"
var set: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.set)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.set != 0 {
try visitor.visitSingularInt32Field(value: self.set, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct setExtensionValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".setExtensionValue"
var setExtensionValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.setExtensionValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.setExtensionValue != 0 {
try visitor.visitSingularInt32Field(value: self.setExtensionValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct shift: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".shift"
var shift: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.shift)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.shift != 0 {
try visitor.visitSingularInt32Field(value: self.shift, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct SignedInteger: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".SignedInteger"
var signedInteger: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.signedInteger)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.signedInteger != 0 {
try visitor.visitSingularInt32Field(value: self.signedInteger, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct SimpleExtensionMap: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".SimpleExtensionMap"
var simpleExtensionMap: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.simpleExtensionMap)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.simpleExtensionMap != 0 {
try visitor.visitSingularInt32Field(value: self.simpleExtensionMap, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct sizer: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".sizer"
var sizer: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.sizer)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.sizer != 0 {
try visitor.visitSingularInt32Field(value: self.sizer, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct slowUtf8ToString: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".slowUtf8ToString"
var slowUtf8ToString: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.slowUtf8ToString)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.slowUtf8ToString != 0 {
try visitor.visitSingularInt32Field(value: self.slowUtf8ToString, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct source: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".source"
var source: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.source)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.source != 0 {
try visitor.visitSingularInt32Field(value: self.source, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct sourceContext: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".sourceContext"
var sourceContext: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.sourceContext)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.sourceContext != 0 {
try visitor.visitSingularInt32Field(value: self.sourceContext, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct split: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".split"
var split: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.split)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.split != 0 {
try visitor.visitSingularInt32Field(value: self.split, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ss: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ss"
var ss: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.ss)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.ss != 0 {
try visitor.visitSingularInt32Field(value: self.ss, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct start: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".start"
var start: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.start)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.start != 0 {
try visitor.visitSingularInt32Field(value: self.start, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct startArray: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".startArray"
var startArray: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.startArray)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.startArray != 0 {
try visitor.visitSingularInt32Field(value: self.startArray, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct startField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".startField"
var startField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.startField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.startField != 0 {
try visitor.visitSingularInt32Field(value: self.startField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct startIndex: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".startIndex"
var startIndex: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.startIndex)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.startIndex != 0 {
try visitor.visitSingularInt32Field(value: self.startIndex, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct startMessageField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".startMessageField"
var startMessageField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.startMessageField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.startMessageField != 0 {
try visitor.visitSingularInt32Field(value: self.startMessageField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct startObject: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".startObject"
var startObject: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.startObject)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.startObject != 0 {
try visitor.visitSingularInt32Field(value: self.startObject, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct startRegularField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".startRegularField"
var startRegularField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.startRegularField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.startRegularField != 0 {
try visitor.visitSingularInt32Field(value: self.startRegularField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct state: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".state"
var state: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.state)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.state != 0 {
try visitor.visitSingularInt32Field(value: self.state, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct staticMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".static"
var static_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.static_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.static_p != 0 {
try visitor.visitSingularInt32Field(value: self.static_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct StaticString: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".StaticString"
var staticString: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.staticString)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.staticString != 0 {
try visitor.visitSingularInt32Field(value: self.staticString, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct storage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".storage"
var storage: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.storage)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.storage != 0 {
try visitor.visitSingularInt32Field(value: self.storage, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct StorageClass: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".StorageClass"
var storageClass: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.storageClass)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.storageClass != 0 {
try visitor.visitSingularInt32Field(value: self.storageClass, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct StringMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".String"
var string: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.string)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.string != 0 {
try visitor.visitSingularInt32Field(value: self.string, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct stringLiteral: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".stringLiteral"
var stringLiteral: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.stringLiteral)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.stringLiteral != 0 {
try visitor.visitSingularInt32Field(value: self.stringLiteral, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct StringLiteralType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".StringLiteralType"
var stringLiteralType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.stringLiteralType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.stringLiteralType != 0 {
try visitor.visitSingularInt32Field(value: self.stringLiteralType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct stringResult: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".stringResult"
var stringResult: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.stringResult)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.stringResult != 0 {
try visitor.visitSingularInt32Field(value: self.stringResult, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct stringValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".stringValue"
var stringValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.stringValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.stringValue != 0 {
try visitor.visitSingularInt32Field(value: self.stringValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Struct: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Struct"
var struct_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.struct_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.struct_p != 0 {
try visitor.visitSingularInt32Field(value: self.struct_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct structValue: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".structValue"
var structValue: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.structValue)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.structValue != 0 {
try visitor.visitSingularInt32Field(value: self.structValue, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct subDecoder: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".subDecoder"
var subDecoder: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.subDecoder)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.subDecoder != 0 {
try visitor.visitSingularInt32Field(value: self.subDecoder, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct subscriptMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".subscript"
var subscript_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.subscript_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.subscript_p != 0 {
try visitor.visitSingularInt32Field(value: self.subscript_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct swift: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".swift"
var swift: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.swift)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.swift != 0 {
try visitor.visitSingularInt32Field(value: self.swift, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct SwiftProtobufMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".SwiftProtobuf"
var swiftProtobuf: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.swiftProtobuf)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.swiftProtobuf != 0 {
try visitor.visitSingularInt32Field(value: self.swiftProtobuf, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct syntax: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".syntax"
var syntax: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.syntax)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.syntax != 0 {
try visitor.visitSingularInt32Field(value: self.syntax, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct T: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".T"
var t: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.t)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.t != 0 {
try visitor.visitSingularInt32Field(value: self.t, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct tag: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".tag"
var tag: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.tag)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.tag != 0 {
try visitor.visitSingularInt32Field(value: self.tag, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct target: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".target"
var target: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.target)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.target != 0 {
try visitor.visitSingularInt32Field(value: self.target, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct terminator: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".terminator"
var terminator: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.terminator)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.terminator != 0 {
try visitor.visitSingularInt32Field(value: self.terminator, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct testDecoder: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".testDecoder"
var testDecoder: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.testDecoder)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.testDecoder != 0 {
try visitor.visitSingularInt32Field(value: self.testDecoder, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct text: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".text"
var text: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.text)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.text != 0 {
try visitor.visitSingularInt32Field(value: self.text, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct textDecoder: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".textDecoder"
var textDecoder: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.textDecoder)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.textDecoder != 0 {
try visitor.visitSingularInt32Field(value: self.textDecoder, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct TextFormatDecoder: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".TextFormatDecoder"
var textFormatDecoder: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.textFormatDecoder)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.textFormatDecoder != 0 {
try visitor.visitSingularInt32Field(value: self.textFormatDecoder, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct TextFormatEncoder: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".TextFormatEncoder"
var textFormatEncoder: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.textFormatEncoder)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.textFormatEncoder != 0 {
try visitor.visitSingularInt32Field(value: self.textFormatEncoder, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct TextFormatEncodingVisitor: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".TextFormatEncodingVisitor"
var textFormatEncodingVisitor: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.textFormatEncodingVisitor)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.textFormatEncodingVisitor != 0 {
try visitor.visitSingularInt32Field(value: self.textFormatEncodingVisitor, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct TextFormatScanner: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".TextFormatScanner"
var textFormatScanner: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.textFormatScanner)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.textFormatScanner != 0 {
try visitor.visitSingularInt32Field(value: self.textFormatScanner, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct textFormatString: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".textFormatString"
var textFormatString: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.textFormatString)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.textFormatString != 0 {
try visitor.visitSingularInt32Field(value: self.textFormatString, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct that: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".that"
var that: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.that)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.that != 0 {
try visitor.visitSingularInt32Field(value: self.that, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct they: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".they"
var they: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.they)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.they != 0 {
try visitor.visitSingularInt32Field(value: self.they, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct throwsMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".throws"
var throws_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.throws_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.throws_p != 0 {
try visitor.visitSingularInt32Field(value: self.throws_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct timeInterval: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".timeInterval"
var timeInterval: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.timeInterval)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.timeInterval != 0 {
try visitor.visitSingularInt32Field(value: self.timeInterval, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct timeIntervalSince1970: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".timeIntervalSince1970"
var timeIntervalSince1970: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.timeIntervalSince1970)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.timeIntervalSince1970 != 0 {
try visitor.visitSingularInt32Field(value: self.timeIntervalSince1970, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct timeIntervalSinceReferenceDate: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".timeIntervalSinceReferenceDate"
var timeIntervalSinceReferenceDate: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.timeIntervalSinceReferenceDate)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.timeIntervalSinceReferenceDate != 0 {
try visitor.visitSingularInt32Field(value: self.timeIntervalSinceReferenceDate, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct timeOfDayFromSecondsSince1970: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".timeOfDayFromSecondsSince1970"
var timeOfDayFromSecondsSince1970: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.timeOfDayFromSecondsSince1970)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.timeOfDayFromSecondsSince1970 != 0 {
try visitor.visitSingularInt32Field(value: self.timeOfDayFromSecondsSince1970, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct Timestamp: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Timestamp"
var timestamp: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.timestamp)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.timestamp != 0 {
try visitor.visitSingularInt32Field(value: self.timestamp, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct toJsonFieldName: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".toJsonFieldName"
var toJsonFieldName: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.toJsonFieldName)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.toJsonFieldName != 0 {
try visitor.visitSingularInt32Field(value: self.toJsonFieldName, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct total: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".total"
var total: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.total)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.total != 0 {
try visitor.visitSingularInt32Field(value: self.total, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct traverseMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".traverse"
var traverse: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.traverse)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.traverse != 0 {
try visitor.visitSingularInt32Field(value: self.traverse, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct trueMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".true"
var true_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.true_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.true_p != 0 {
try visitor.visitSingularInt32Field(value: self.true_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct tryMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".try"
var try_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.try_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.try_p != 0 {
try visitor.visitSingularInt32Field(value: self.try_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct TypeMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".Type"
var type: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.type)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.type != 0 {
try visitor.visitSingularInt32Field(value: self.type, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct typealiasMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".typealias"
var typealias_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.typealias_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.typealias_p != 0 {
try visitor.visitSingularInt32Field(value: self.typealias_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct typeName: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".typeName"
var typeName: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.typeName)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.typeName != 0 {
try visitor.visitSingularInt32Field(value: self.typeName, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct typePrefix: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".typePrefix"
var typePrefix: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.typePrefix)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.typePrefix != 0 {
try visitor.visitSingularInt32Field(value: self.typePrefix, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct typeRegistry: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".typeRegistry"
var typeRegistry: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.typeRegistry)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.typeRegistry != 0 {
try visitor.visitSingularInt32Field(value: self.typeRegistry, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct typeStart: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".typeStart"
var typeStart: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.typeStart)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.typeStart != 0 {
try visitor.visitSingularInt32Field(value: self.typeStart, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct typeUnknown: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".typeUnknown"
var typeUnknown: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.typeUnknown)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.typeUnknown != 0 {
try visitor.visitSingularInt32Field(value: self.typeUnknown, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct typeURL: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".typeURL"
var typeURL: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.typeURL)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.typeURL != 0 {
try visitor.visitSingularInt32Field(value: self.typeURL, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UInt32Message: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UInt32"
var uint32: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.uint32)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.uint32 != 0 {
try visitor.visitSingularInt32Field(value: self.uint32, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UInt32Value: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UInt32Value"
var uint32Value: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.uint32Value)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.uint32Value != 0 {
try visitor.visitSingularInt32Field(value: self.uint32Value, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UInt64Message: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UInt64"
var uint64: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.uint64)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.uint64 != 0 {
try visitor.visitSingularInt32Field(value: self.uint64, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UInt64Value: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UInt64Value"
var uint64Value: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.uint64Value)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.uint64Value != 0 {
try visitor.visitSingularInt32Field(value: self.uint64Value, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UInt8: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UInt8"
var uint8: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.uint8)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.uint8 != 0 {
try visitor.visitSingularInt32Field(value: self.uint8, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UnicodeScalar: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UnicodeScalar"
var unicodeScalar: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unicodeScalar)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unicodeScalar != 0 {
try visitor.visitSingularInt32Field(value: self.unicodeScalar, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct unicodeScalarLiteral: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".unicodeScalarLiteral"
var unicodeScalarLiteral: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unicodeScalarLiteral)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unicodeScalarLiteral != 0 {
try visitor.visitSingularInt32Field(value: self.unicodeScalarLiteral, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UnicodeScalarLiteralType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UnicodeScalarLiteralType"
var unicodeScalarLiteralType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unicodeScalarLiteralType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unicodeScalarLiteralType != 0 {
try visitor.visitSingularInt32Field(value: self.unicodeScalarLiteralType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct unicodeScalars: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".unicodeScalars"
var unicodeScalars: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unicodeScalars)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unicodeScalars != 0 {
try visitor.visitSingularInt32Field(value: self.unicodeScalars, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UnicodeScalarView: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UnicodeScalarView"
var unicodeScalarView: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unicodeScalarView)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unicodeScalarView != 0 {
try visitor.visitSingularInt32Field(value: self.unicodeScalarView, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct union: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".union"
var union: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.union)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.union != 0 {
try visitor.visitSingularInt32Field(value: self.union, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct uniqueStorage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".uniqueStorage"
var uniqueStorage: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.uniqueStorage)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.uniqueStorage != 0 {
try visitor.visitSingularInt32Field(value: self.uniqueStorage, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct unknown: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".unknown"
var unknown: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unknown)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unknown != 0 {
try visitor.visitSingularInt32Field(value: self.unknown, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct unknownData: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".unknownData"
var unknownData: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unknownData)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unknownData != 0 {
try visitor.visitSingularInt32Field(value: self.unknownData, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct unknownFieldsMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".unknownFields"
var unknownFields_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unknownFields_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unknownFields_p != 0 {
try visitor.visitSingularInt32Field(value: self.unknownFields_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UnknownStorage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UnknownStorage"
var unknownStorage: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unknownStorage)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unknownStorage != 0 {
try visitor.visitSingularInt32Field(value: self.unknownStorage, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct unpack: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".unpack"
var unpack: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unpack)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unpack != 0 {
try visitor.visitSingularInt32Field(value: self.unpack, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct unpackTo: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".unpackTo"
var unpackTo: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unpackTo)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unpackTo != 0 {
try visitor.visitSingularInt32Field(value: self.unpackTo, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UnsafeBufferPointer: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UnsafeBufferPointer"
var unsafeBufferPointer: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unsafeBufferPointer)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unsafeBufferPointer != 0 {
try visitor.visitSingularInt32Field(value: self.unsafeBufferPointer, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UnsafeMutablePointer: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UnsafeMutablePointer"
var unsafeMutablePointer: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unsafeMutablePointer)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unsafeMutablePointer != 0 {
try visitor.visitSingularInt32Field(value: self.unsafeMutablePointer, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UnsafeMutableRawBufferPointer: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UnsafeMutableRawBufferPointer"
var unsafeMutableRawBufferPointer: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unsafeMutableRawBufferPointer)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unsafeMutableRawBufferPointer != 0 {
try visitor.visitSingularInt32Field(value: self.unsafeMutableRawBufferPointer, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UnsafePointer: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UnsafePointer"
var unsafePointer: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.unsafePointer)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.unsafePointer != 0 {
try visitor.visitSingularInt32Field(value: self.unsafePointer, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct url: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".url"
var url: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.url)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.url != 0 {
try visitor.visitSingularInt32Field(value: self.url, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct used: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".used"
var used: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.used)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.used != 0 {
try visitor.visitSingularInt32Field(value: self.used, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct utf8: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".utf8"
var utf8: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.utf8)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.utf8 != 0 {
try visitor.visitSingularInt32Field(value: self.utf8, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct utf8Buffer: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".utf8Buffer"
var utf8Buffer: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.utf8Buffer)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.utf8Buffer != 0 {
try visitor.visitSingularInt32Field(value: self.utf8Buffer, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct utf8Codec: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".utf8Codec"
var utf8Codec: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.utf8Codec)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.utf8Codec != 0 {
try visitor.visitSingularInt32Field(value: self.utf8Codec, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct utf8ToDouble: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".utf8ToDouble"
var utf8ToDouble: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.utf8ToDouble)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.utf8ToDouble != 0 {
try visitor.visitSingularInt32Field(value: self.utf8ToDouble, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct utf8ToString: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".utf8ToString"
var utf8ToString: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.utf8ToString)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.utf8ToString != 0 {
try visitor.visitSingularInt32Field(value: self.utf8ToString, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct UTF8View: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".UTF8View"
var utf8View: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.utf8View)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.utf8View != 0 {
try visitor.visitSingularInt32Field(value: self.utf8View, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct v: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".v"
var v: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.v)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.v != 0 {
try visitor.visitSingularInt32Field(value: self.v, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct value: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".value"
var value: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.value)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.value != 0 {
try visitor.visitSingularInt32Field(value: self.value, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct valueField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".valueField"
var valueField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.valueField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.valueField != 0 {
try visitor.visitSingularInt32Field(value: self.valueField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct values: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".values"
var values: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.values)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.values != 0 {
try visitor.visitSingularInt32Field(value: self.values, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct ValueType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".ValueType"
var valueType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.valueType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.valueType != 0 {
try visitor.visitSingularInt32Field(value: self.valueType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct varMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".var"
var var_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.var_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.var_p != 0 {
try visitor.visitSingularInt32Field(value: self.var_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct version: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".version"
var version: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.version)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.version != 0 {
try visitor.visitSingularInt32Field(value: self.version, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct versionString: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".versionString"
var versionString: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.versionString)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.versionString != 0 {
try visitor.visitSingularInt32Field(value: self.versionString, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitExtensionFields: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitExtensionFields"
var visitExtensionFields: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitExtensionFields)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitExtensionFields != 0 {
try visitor.visitSingularInt32Field(value: self.visitExtensionFields, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitMapField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitMapField"
var visitMapField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitMapField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitMapField != 0 {
try visitor.visitSingularInt32Field(value: self.visitMapField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitor: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitor"
var visitor: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitor)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitor != 0 {
try visitor.visitSingularInt32Field(value: self.visitor, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPacked: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPacked"
var visitPacked: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPacked)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPacked != 0 {
try visitor.visitSingularInt32Field(value: self.visitPacked, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedBoolField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedBoolField"
var visitPackedBoolField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedBoolField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedBoolField != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedBoolField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedDoubleField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedDoubleField"
var visitPackedDoubleField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedDoubleField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedDoubleField != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedDoubleField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedEnumField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedEnumField"
var visitPackedEnumField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedEnumField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedEnumField != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedEnumField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedFixed32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedFixed32Field"
var visitPackedFixed32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedFixed32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedFixed32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedFixed32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedFixed64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedFixed64Field"
var visitPackedFixed64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedFixed64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedFixed64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedFixed64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedFloatField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedFloatField"
var visitPackedFloatField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedFloatField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedFloatField != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedFloatField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedInt32Field"
var visitPackedInt32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedInt32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedInt32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedInt32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedInt64Field"
var visitPackedInt64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedInt64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedInt64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedInt64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedSFixed32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedSFixed32Field"
var visitPackedSfixed32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedSfixed32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedSfixed32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedSfixed32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedSFixed64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedSFixed64Field"
var visitPackedSfixed64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedSfixed64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedSfixed64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedSfixed64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedSInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedSInt32Field"
var visitPackedSint32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedSint32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedSint32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedSint32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedSInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedSInt64Field"
var visitPackedSint64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedSint64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedSint64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedSint64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedUInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedUInt32Field"
var visitPackedUint32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedUint32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedUint32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedUint32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitPackedUInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitPackedUInt64Field"
var visitPackedUint64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitPackedUint64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitPackedUint64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitPackedUint64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeated: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeated"
var visitRepeated: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeated)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeated != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeated, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedBoolField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedBoolField"
var visitRepeatedBoolField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedBoolField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedBoolField != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedBoolField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedBytesField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedBytesField"
var visitRepeatedBytesField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedBytesField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedBytesField != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedBytesField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedDoubleField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedDoubleField"
var visitRepeatedDoubleField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedDoubleField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedDoubleField != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedDoubleField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedEnumField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedEnumField"
var visitRepeatedEnumField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedEnumField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedEnumField != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedEnumField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedFixed32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedFixed32Field"
var visitRepeatedFixed32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedFixed32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedFixed32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedFixed32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedFixed64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedFixed64Field"
var visitRepeatedFixed64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedFixed64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedFixed64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedFixed64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedFloatField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedFloatField"
var visitRepeatedFloatField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedFloatField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedFloatField != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedFloatField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedGroupField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedGroupField"
var visitRepeatedGroupField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedGroupField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedGroupField != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedGroupField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedInt32Field"
var visitRepeatedInt32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedInt32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedInt32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedInt32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedInt64Field"
var visitRepeatedInt64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedInt64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedInt64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedInt64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedMessageField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedMessageField"
var visitRepeatedMessageField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedMessageField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedMessageField != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedMessageField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedSFixed32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedSFixed32Field"
var visitRepeatedSfixed32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedSfixed32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedSfixed32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedSfixed32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedSFixed64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedSFixed64Field"
var visitRepeatedSfixed64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedSfixed64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedSfixed64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedSfixed64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedSInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedSInt32Field"
var visitRepeatedSint32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedSint32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedSint32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedSint32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedSInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedSInt64Field"
var visitRepeatedSint64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedSint64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedSint64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedSint64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedStringField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedStringField"
var visitRepeatedStringField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedStringField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedStringField != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedStringField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedUInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedUInt32Field"
var visitRepeatedUint32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedUint32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedUint32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedUint32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitRepeatedUInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitRepeatedUInt64Field"
var visitRepeatedUint64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitRepeatedUint64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitRepeatedUint64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitRepeatedUint64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingular: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingular"
var visitSingular: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingular)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingular != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingular, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularBoolField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularBoolField"
var visitSingularBoolField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularBoolField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularBoolField != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularBoolField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularBytesField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularBytesField"
var visitSingularBytesField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularBytesField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularBytesField != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularBytesField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularDoubleField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularDoubleField"
var visitSingularDoubleField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularDoubleField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularDoubleField != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularDoubleField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularEnumField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularEnumField"
var visitSingularEnumField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularEnumField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularEnumField != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularEnumField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularFixed32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularFixed32Field"
var visitSingularFixed32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularFixed32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularFixed32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularFixed32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularFixed64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularFixed64Field"
var visitSingularFixed64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularFixed64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularFixed64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularFixed64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularFloatField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularFloatField"
var visitSingularFloatField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularFloatField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularFloatField != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularFloatField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularGroupField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularGroupField"
var visitSingularGroupField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularGroupField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularGroupField != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularGroupField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularInt32Field"
var visitSingularInt32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularInt32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularInt32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularInt32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularInt64Field"
var visitSingularInt64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularInt64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularInt64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularInt64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularMessageField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularMessageField"
var visitSingularMessageField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularMessageField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularMessageField != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularMessageField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularSFixed32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularSFixed32Field"
var visitSingularSfixed32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularSfixed32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularSfixed32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularSfixed32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularSFixed64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularSFixed64Field"
var visitSingularSfixed64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularSfixed64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularSfixed64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularSfixed64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularSInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularSInt32Field"
var visitSingularSint32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularSint32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularSint32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularSint32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularSInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularSInt64Field"
var visitSingularSint64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularSint64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularSint64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularSint64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularStringField: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularStringField"
var visitSingularStringField: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularStringField)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularStringField != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularStringField, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularUInt32Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularUInt32Field"
var visitSingularUint32Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularUint32Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularUint32Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularUint32Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitSingularUInt64Field: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitSingularUInt64Field"
var visitSingularUint64Field: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitSingularUint64Field)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitSingularUint64Field != 0 {
try visitor.visitSingularInt32Field(value: self.visitSingularUint64Field, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct visitUnknown: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".visitUnknown"
var visitUnknown: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.visitUnknown)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.visitUnknown != 0 {
try visitor.visitSingularInt32Field(value: self.visitUnknown, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct whereMessage: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".where"
var where_p: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.where_p)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.where_p != 0 {
try visitor.visitSingularInt32Field(value: self.where_p, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct wireFormat: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".wireFormat"
var wireFormat: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.wireFormat)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.wireFormat != 0 {
try visitor.visitSingularInt32Field(value: self.wireFormat, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct with: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".with"
var with: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.with)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.with != 0 {
try visitor.visitSingularInt32Field(value: self.with, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct WrappedType: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".WrappedType"
var wrappedType: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.wrappedType)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.wrappedType != 0 {
try visitor.visitSingularInt32Field(value: self.wrappedType, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct wrapped_vsnprintf: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".wrapped_vsnprintf"
var wrappedVsnprintf: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.wrappedVsnprintf)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.wrappedVsnprintf != 0 {
try visitor.visitSingularInt32Field(value: self.wrappedVsnprintf, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct yday: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".yday"
var yday: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.yday)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.yday != 0 {
try visitor.visitSingularInt32Field(value: self.yday, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
struct YY: SwiftProtobuf.Message {
static let protoMessageName: String = ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageName + ".YY"
var yy: Int32 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.yy)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.yy != 0 {
try visitor.visitSingularInt32Field(value: self.yy, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
}
init() {}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let _ = try decoder.nextFieldNumber() {
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try unknownFields.traverse(visitor: &visitor)
}
}
// MARK: - Code below here is support for the SwiftProtobuf runtime.
fileprivate let _protobuf_package = "protobuf_unittest"
extension ProtobufUnittest_GeneratedSwiftReservedMessages: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages) -> Bool {
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.a: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "a"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.a) -> Bool {
if self.a != other.a {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.adjusted: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "adjusted"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.adjusted) -> Bool {
if self.adjusted != other.adjusted {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.any: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "any"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.any) -> Bool {
if self.any != other.any {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.AnyExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "AnyExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.AnyExtensionField) -> Bool {
if self.anyExtensionField != other.anyExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.AnyMessageStorage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "AnyMessageStorage"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.AnyMessageStorage) -> Bool {
if self.anyMessageStorage != other.anyMessageStorage {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Api: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Api"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Api) -> Bool {
if self.api != other.api {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.appended: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "appended"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.appended) -> Bool {
if self.appended != other.appended {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.appendUIntHex: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "appendUIntHex"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.appendUIntHex) -> Bool {
if self.appendUintHex != other.appendUintHex {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.appendUnknown: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "appendUnknown"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.appendUnknown) -> Bool {
if self.appendUnknown != other.appendUnknown {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.apple: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "apple"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.apple) -> Bool {
if self.apple != other.apple {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.are: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "are"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.are) -> Bool {
if self.are != other.are {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.areAllInitialized: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "areAllInitialized"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.areAllInitialized) -> Bool {
if self.areAllInitialized != other.areAllInitialized {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.arrayLiteral: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "arrayLiteral"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.arrayLiteral) -> Bool {
if self.arrayLiteral != other.arrayLiteral {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.arraySeparator: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "arraySeparator"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.arraySeparator) -> Bool {
if self.arraySeparator != other.arraySeparator {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.asMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "as"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.asMessage) -> Bool {
if self.as_p != other.as_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.asciiOpenCurlyBracket: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "asciiOpenCurlyBracket"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.asciiOpenCurlyBracket) -> Bool {
if self.asciiOpenCurlyBracket != other.asciiOpenCurlyBracket {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.asciiZero: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "asciiZero"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.asciiZero) -> Bool {
if self.asciiZero != other.asciiZero {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.asJSONObject: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "asJSONObject"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.asJSONObject) -> Bool {
if self.asJsonobject != other.asJsonobject {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.available: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "available"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.available) -> Bool {
if self.available != other.available {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.b: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "b"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.b) -> Bool {
if self.b != other.b {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.base64String: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "base64String"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.base64String) -> Bool {
if self.base64String != other.base64String {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.BaseType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "BaseType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.BaseType) -> Bool {
if self.baseType != other.baseType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.because: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "because"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.because) -> Bool {
if self.because != other.because {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.binary: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "binary"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.binary) -> Bool {
if self.binary != other.binary {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.BinaryDecoder: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "BinaryDecoder"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.BinaryDecoder) -> Bool {
if self.binaryDecoder != other.binaryDecoder {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.BinaryEncoder: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "BinaryEncoder"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.BinaryEncoder) -> Bool {
if self.binaryEncoder != other.binaryEncoder {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.BinaryEncodingSizeVisitor: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "BinaryEncodingSizeVisitor"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.BinaryEncodingSizeVisitor) -> Bool {
if self.binaryEncodingSizeVisitor != other.binaryEncodingSizeVisitor {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.BinaryEncodingVisitor: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "BinaryEncodingVisitor"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.BinaryEncodingVisitor) -> Bool {
if self.binaryEncodingVisitor != other.binaryEncodingVisitor {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.bits: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "bits"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.bits) -> Bool {
if self.bits != other.bits {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.body: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "body"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.body) -> Bool {
if self.body != other.body {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.bodySize: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "bodySize"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.bodySize) -> Bool {
if self.bodySize != other.bodySize {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.BoolMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Bool"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.BoolMessage) -> Bool {
if self.bool != other.bool {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.booleanLiteral: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "booleanLiteral"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.booleanLiteral) -> Bool {
if self.booleanLiteral != other.booleanLiteral {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.BooleanLiteralType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "BooleanLiteralType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.BooleanLiteralType) -> Bool {
if self.booleanLiteralType != other.booleanLiteralType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.boolValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "boolValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.boolValue) -> Bool {
if self.boolValue != other.boolValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.buffer: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "buffer"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.buffer) -> Bool {
if self.buffer != other.buffer {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.buildTypeURL: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "buildTypeURL"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.buildTypeURL) -> Bool {
if self.buildTypeURL != other.buildTypeURL {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.by: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "by"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.by) -> Bool {
if self.by != other.by {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.bytes: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "bytes"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.bytes) -> Bool {
if self.bytes != other.bytes {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.BytesValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "BytesValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.BytesValue) -> Bool {
if self.bytesValue != other.bytesValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.c: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "c"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.c) -> Bool {
if self.c != other.c {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.capitalizeNext: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "capitalizeNext"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.capitalizeNext) -> Bool {
if self.capitalizeNext != other.capitalizeNext {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.cardinality: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "cardinality"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.cardinality) -> Bool {
if self.cardinality != other.cardinality {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Character: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Character"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Character) -> Bool {
if self.character != other.character {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.characters: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "characters"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.characters) -> Bool {
if self.characters != other.characters {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.chars: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "chars"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.chars) -> Bool {
if self.chars != other.chars {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.clearExtensionValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "clearExtensionValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.clearExtensionValue) -> Bool {
if self.clearExtensionValue_p != other.clearExtensionValue_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.clearSourceContext: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "clearSourceContext"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.clearSourceContext) -> Bool {
if self.clearSourceContext_p != other.clearSourceContext_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.clearValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "clearValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.clearValue) -> Bool {
if self.clearValue_p != other.clearValue_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.com: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "com"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.com) -> Bool {
if self.com != other.com {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.consume: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "consume"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.consume) -> Bool {
if self.consume != other.consume {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.contentJSON: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "contentJSON"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.contentJSON) -> Bool {
if self.contentJson != other.contentJson {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.contentsOf: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "contentsOf"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.contentsOf) -> Bool {
if self.contentsOf != other.contentsOf {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.count: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "count"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.count) -> Bool {
if self.count != other.count {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.customCodable: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "customCodable"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.customCodable) -> Bool {
if self.customCodable != other.customCodable {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.d: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "d"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.d) -> Bool {
if self.d != other.d {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.DataMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Data"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.DataMessage) -> Bool {
if self.data != other.data {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.dataResult: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "dataResult"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.dataResult) -> Bool {
if self.dataResult != other.dataResult {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.dataSize: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "dataSize"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.dataSize) -> Bool {
if self.dataSize != other.dataSize {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.date: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "date"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.date) -> Bool {
if self.date != other.date {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.daySec: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "daySec"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.daySec) -> Bool {
if self.daySec != other.daySec {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.daysSinceEpoch: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "daysSinceEpoch"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.daysSinceEpoch) -> Bool {
if self.daysSinceEpoch != other.daysSinceEpoch {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.DD: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "DD"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.DD) -> Bool {
if self.dd != other.dd {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.debugDescriptionMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "debugDescription"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.debugDescriptionMessage) -> Bool {
if self.debugDescription_p != other.debugDescription_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeBytes: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeBytes"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeBytes) -> Bool {
if self.decodeBytes != other.decodeBytes {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decoded: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decoded"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decoded) -> Bool {
if self.decoded != other.decoded {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodedFromJSONNull: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodedFromJSONNull"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodedFromJSONNull) -> Bool {
if self.decodedFromJsonnull != other.decodedFromJsonnull {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeExtensionField) -> Bool {
if self.decodeExtensionField != other.decodeExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeJSON: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeJSON"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeJSON) -> Bool {
if self.decodeJson != other.decodeJson {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeMapField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeMapField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeMapField) -> Bool {
if self.decodeMapField != other.decodeMapField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeMessageMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeMessage"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeMessageMessage) -> Bool {
if self.decodeMessage != other.decodeMessage {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decoder: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decoder"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decoder) -> Bool {
if self.decoder != other.decoder {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeated: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeated"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeated) -> Bool {
if self.decodeRepeated != other.decodeRepeated {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedBoolField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedBoolField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedBoolField) -> Bool {
if self.decodeRepeatedBoolField != other.decodeRepeatedBoolField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedBytesField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedBytesField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedBytesField) -> Bool {
if self.decodeRepeatedBytesField != other.decodeRepeatedBytesField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedDoubleField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedDoubleField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedDoubleField) -> Bool {
if self.decodeRepeatedDoubleField != other.decodeRepeatedDoubleField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedEnumField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedEnumField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedEnumField) -> Bool {
if self.decodeRepeatedEnumField != other.decodeRepeatedEnumField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedFixed32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedFixed32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedFixed32Field) -> Bool {
if self.decodeRepeatedFixed32Field != other.decodeRepeatedFixed32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedFixed64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedFixed64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedFixed64Field) -> Bool {
if self.decodeRepeatedFixed64Field != other.decodeRepeatedFixed64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedFloatField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedFloatField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedFloatField) -> Bool {
if self.decodeRepeatedFloatField != other.decodeRepeatedFloatField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedGroupField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedGroupField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedGroupField) -> Bool {
if self.decodeRepeatedGroupField != other.decodeRepeatedGroupField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedInt32Field) -> Bool {
if self.decodeRepeatedInt32Field != other.decodeRepeatedInt32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedInt64Field) -> Bool {
if self.decodeRepeatedInt64Field != other.decodeRepeatedInt64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedMessageField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedMessageField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedMessageField) -> Bool {
if self.decodeRepeatedMessageField != other.decodeRepeatedMessageField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedSFixed32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedSFixed32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedSFixed32Field) -> Bool {
if self.decodeRepeatedSfixed32Field != other.decodeRepeatedSfixed32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedSFixed64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedSFixed64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedSFixed64Field) -> Bool {
if self.decodeRepeatedSfixed64Field != other.decodeRepeatedSfixed64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedSInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedSInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedSInt32Field) -> Bool {
if self.decodeRepeatedSint32Field != other.decodeRepeatedSint32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedSInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedSInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedSInt64Field) -> Bool {
if self.decodeRepeatedSint64Field != other.decodeRepeatedSint64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedStringField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedStringField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedStringField) -> Bool {
if self.decodeRepeatedStringField != other.decodeRepeatedStringField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedUInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedUInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedUInt32Field) -> Bool {
if self.decodeRepeatedUint32Field != other.decodeRepeatedUint32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedUInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeRepeatedUInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeRepeatedUInt64Field) -> Bool {
if self.decodeRepeatedUint64Field != other.decodeRepeatedUint64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingular: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingular"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingular) -> Bool {
if self.decodeSingular != other.decodeSingular {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularBoolField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularBoolField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularBoolField) -> Bool {
if self.decodeSingularBoolField != other.decodeSingularBoolField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularBytesField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularBytesField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularBytesField) -> Bool {
if self.decodeSingularBytesField != other.decodeSingularBytesField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularDoubleField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularDoubleField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularDoubleField) -> Bool {
if self.decodeSingularDoubleField != other.decodeSingularDoubleField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularEnumField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularEnumField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularEnumField) -> Bool {
if self.decodeSingularEnumField != other.decodeSingularEnumField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularFixed32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularFixed32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularFixed32Field) -> Bool {
if self.decodeSingularFixed32Field != other.decodeSingularFixed32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularFixed64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularFixed64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularFixed64Field) -> Bool {
if self.decodeSingularFixed64Field != other.decodeSingularFixed64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularFloatField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularFloatField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularFloatField) -> Bool {
if self.decodeSingularFloatField != other.decodeSingularFloatField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularGroupField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularGroupField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularGroupField) -> Bool {
if self.decodeSingularGroupField != other.decodeSingularGroupField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularInt32Field) -> Bool {
if self.decodeSingularInt32Field != other.decodeSingularInt32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularInt64Field) -> Bool {
if self.decodeSingularInt64Field != other.decodeSingularInt64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularMessageField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularMessageField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularMessageField) -> Bool {
if self.decodeSingularMessageField != other.decodeSingularMessageField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularSFixed32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularSFixed32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularSFixed32Field) -> Bool {
if self.decodeSingularSfixed32Field != other.decodeSingularSfixed32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularSFixed64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularSFixed64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularSFixed64Field) -> Bool {
if self.decodeSingularSfixed64Field != other.decodeSingularSfixed64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularSInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularSInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularSInt32Field) -> Bool {
if self.decodeSingularSint32Field != other.decodeSingularSint32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularSInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularSInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularSInt64Field) -> Bool {
if self.decodeSingularSint64Field != other.decodeSingularSint64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularStringField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularStringField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularStringField) -> Bool {
if self.decodeSingularStringField != other.decodeSingularStringField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularUInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularUInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularUInt32Field) -> Bool {
if self.decodeSingularUint32Field != other.decodeSingularUint32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularUInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeSingularUInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeSingularUInt64Field) -> Bool {
if self.decodeSingularUint64Field != other.decodeSingularUint64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeString: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeString"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeString) -> Bool {
if self.decodeString != other.decodeString {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.decodeTextFormat: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "decodeTextFormat"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.decodeTextFormat) -> Bool {
if self.decodeTextFormat != other.decodeTextFormat {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.defaultValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "defaultValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.defaultValue) -> Bool {
if self.defaultValue != other.defaultValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.descriptionMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "description"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.descriptionMessage) -> Bool {
if self.description_p != other.description_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.destination: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "destination"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.destination) -> Bool {
if self.destination != other.destination {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Dictionary: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Dictionary"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Dictionary) -> Bool {
if self.dictionary != other.dictionary {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.dictionaryLiteral: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "dictionaryLiteral"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.dictionaryLiteral) -> Bool {
if self.dictionaryLiteral != other.dictionaryLiteral {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.digit0: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "digit0"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.digit0) -> Bool {
if self.digit0 != other.digit0 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.digit1: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "digit1"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.digit1) -> Bool {
if self.digit1 != other.digit1 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.digitCount: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "digitCount"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.digitCount) -> Bool {
if self.digitCount != other.digitCount {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.digits: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "digits"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.digits) -> Bool {
if self.digits != other.digits {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.digitValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "digitValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.digitValue) -> Bool {
if self.digitValue != other.digitValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.discardableResult: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "discardableResult"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.discardableResult) -> Bool {
if self.discardableResult != other.discardableResult {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.DispatchQueue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "DispatchQueue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.DispatchQueue) -> Bool {
if self.dispatchQueue != other.dispatchQueue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.div: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "div"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.div) -> Bool {
if self.div != other.div {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.double: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "double"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.double) -> Bool {
if self.double != other.double {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.doubleToUtf8: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "doubleToUtf8"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.doubleToUtf8) -> Bool {
if self.doubleToUtf8 != other.doubleToUtf8 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.DoubleValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "DoubleValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.DoubleValue) -> Bool {
if self.doubleValue != other.doubleValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Duration: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Duration"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Duration) -> Bool {
if self.duration != other.duration {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.E: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "E"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.E) -> Bool {
if self.e != other.e {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Element: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Element"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Element) -> Bool {
if self.element != other.element {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.elements: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "elements"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.elements) -> Bool {
if self.elements != other.elements {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.emitExtensionFieldName: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "emitExtensionFieldName"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.emitExtensionFieldName) -> Bool {
if self.emitExtensionFieldName != other.emitExtensionFieldName {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.emitFieldName: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "emitFieldName"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.emitFieldName) -> Bool {
if self.emitFieldName != other.emitFieldName {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.emitFieldNumber: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "emitFieldNumber"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.emitFieldNumber) -> Bool {
if self.emitFieldNumber != other.emitFieldNumber {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.emitVerboseTextForm: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "emitVerboseTextForm"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.emitVerboseTextForm) -> Bool {
if self.emitVerboseTextForm != other.emitVerboseTextForm {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Empty: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Empty"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Empty) -> Bool {
if self.empty != other.empty {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.emptyData: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "emptyData"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.emptyData) -> Bool {
if self.emptyData != other.emptyData {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.encoded: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "encoded"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.encoded) -> Bool {
if self.encoded != other.encoded {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.encodedJSONString: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "encodedJSONString"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.encodedJSONString) -> Bool {
if self.encodedJsonstring != other.encodedJsonstring {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.encodedSize: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "encodedSize"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.encodedSize) -> Bool {
if self.encodedSize != other.encodedSize {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.encodeField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "encodeField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.encodeField) -> Bool {
if self.encodeField != other.encodeField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.encoder: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "encoder"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.encoder) -> Bool {
if self.encoder != other.encoder {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.end: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "end"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.end) -> Bool {
if self.end != other.end {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.endArray: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "endArray"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.endArray) -> Bool {
if self.endArray != other.endArray {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.endMessageField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "endMessageField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.endMessageField) -> Bool {
if self.endMessageField != other.endMessageField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.endObject: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "endObject"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.endObject) -> Bool {
if self.endObject != other.endObject {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.endRegularField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "endRegularField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.endRegularField) -> Bool {
if self.endRegularField != other.endRegularField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Enum: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Enum"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Enum) -> Bool {
if self.enum_p != other.enum_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.enumvalue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "enumvalue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.enumvalue) -> Bool {
if self.enumvalue != other.enumvalue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Equatable: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Equatable"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Equatable) -> Bool {
if self.equatable != other.equatable {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ext: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ext"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ext) -> Bool {
if self.ext != other.ext {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.extendedGraphemeClusterLiteral: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "extendedGraphemeClusterLiteral"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.extendedGraphemeClusterLiteral) -> Bool {
if self.extendedGraphemeClusterLiteral != other.extendedGraphemeClusterLiteral {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ExtendedGraphemeClusterLiteralType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ExtendedGraphemeClusterLiteralType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ExtendedGraphemeClusterLiteralType) -> Bool {
if self.extendedGraphemeClusterLiteralType != other.extendedGraphemeClusterLiteralType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ExtensionFieldValueSet: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ExtensionFieldValueSet"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ExtensionFieldValueSet) -> Bool {
if self.extensionFieldValueSet != other.extensionFieldValueSet {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ExtensionMap: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ExtensionMap"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ExtensionMap) -> Bool {
if self.extensionMap != other.extensionMap {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.extensions: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "extensions"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.extensions) -> Bool {
if self.extensions != other.extensions {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.extras: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "extras"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.extras) -> Bool {
if self.extras != other.extras {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.f: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "f"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.f) -> Bool {
if self.f != other.f {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.falseMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "false"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.falseMessage) -> Bool {
if self.false_p != other.false_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.field) -> Bool {
if self.field != other.field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.FieldMask: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "FieldMask"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.FieldMask) -> Bool {
if self.fieldMask != other.fieldMask {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fieldName: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fieldName"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fieldName) -> Bool {
if self.fieldName != other.fieldName {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fieldNameCount: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fieldNameCount"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fieldNameCount) -> Bool {
if self.fieldNameCount != other.fieldNameCount {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fieldNumber: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fieldNumber"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fieldNumber) -> Bool {
if self.fieldNumber != other.fieldNumber {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fieldNumberForProto: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fieldNumberForProto"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fieldNumberForProto) -> Bool {
if self.fieldNumberForProto != other.fieldNumberForProto {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fields: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fields"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fields) -> Bool {
if self.fields != other.fields {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fieldSize: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fieldSize"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fieldSize) -> Bool {
if self.fieldSize != other.fieldSize {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.FieldTag: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "FieldTag"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.FieldTag) -> Bool {
if self.fieldTag != other.fieldTag {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fieldType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fieldType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fieldType) -> Bool {
if self.fieldType != other.fieldType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fieldValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fieldValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fieldValue) -> Bool {
if self.fieldValue != other.fieldValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fileName: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fileName"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fileName) -> Bool {
if self.fileName != other.fileName {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fileprivateMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fileprivate"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fileprivateMessage) -> Bool {
if self.fileprivate_p != other.fileprivate_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.firstItem: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "firstItem"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.firstItem) -> Bool {
if self.firstItem != other.firstItem {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.flatMap: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "flatMap"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.flatMap) -> Bool {
if self.flatMap != other.flatMap {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.float: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "float"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.float) -> Bool {
if self.float != other.float {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.floatLiteral: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "floatLiteral"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.floatLiteral) -> Bool {
if self.floatLiteral != other.floatLiteral {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.FloatLiteralType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "FloatLiteralType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.FloatLiteralType) -> Bool {
if self.floatLiteralType != other.floatLiteralType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.floatToUtf8: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "floatToUtf8"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.floatToUtf8) -> Bool {
if self.floatToUtf8 != other.floatToUtf8 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.FloatValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "FloatValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.FloatValue) -> Bool {
if self.floatValue != other.floatValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.forMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "for"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.forMessage) -> Bool {
if self.for_p != other.for_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.formatDuration: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "formatDuration"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.formatDuration) -> Bool {
if self.formatDuration != other.formatDuration {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.formatTimestamp: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "formatTimestamp"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.formatTimestamp) -> Bool {
if self.formatTimestamp != other.formatTimestamp {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.forMessageMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "forMessage"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.forMessageMessage) -> Bool {
if self.forMessage != other.forMessage {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.forMessageName: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "forMessageName"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.forMessageName) -> Bool {
if self.forMessageName != other.forMessageName {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.forReadingFrom: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "forReadingFrom"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.forReadingFrom) -> Bool {
if self.forReadingFrom != other.forReadingFrom {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.forTypeURL: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "forTypeURL"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.forTypeURL) -> Bool {
if self.forTypeURL != other.forTypeURL {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.forWritingInto: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "forWritingInto"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.forWritingInto) -> Bool {
if self.forWritingInto != other.forWritingInto {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.from: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "from"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.from) -> Bool {
if self.from != other.from {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fromAscii2: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fromAscii2"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fromAscii2) -> Bool {
if self.fromAscii2 != other.fromAscii2 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fromAscii4: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fromAscii4"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fromAscii4) -> Bool {
if self.fromAscii4 != other.fromAscii4 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fromHexDigit: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fromHexDigit"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fromHexDigit) -> Bool {
if self.fromHexDigit != other.fromHexDigit {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fromMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fromMessage"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fromMessage) -> Bool {
if self.fromMessage != other.fromMessage {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.fromURL: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "fromURL"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.fromURL) -> Bool {
if self.fromURL != other.fromURL {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.funcMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "func"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.funcMessage) -> Bool {
if self.func_p != other.func_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Functions: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Functions"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Functions) -> Bool {
if self.functions != other.functions {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.G: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "G"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.G) -> Bool {
if self.g != other.g {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.generated: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "generated"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.generated) -> Bool {
if self.generated != other.generated {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.get: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "get"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.get) -> Bool {
if self.get != other.get {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.getExtensionValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "getExtensionValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.getExtensionValue) -> Bool {
if self.getExtensionValue != other.getExtensionValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Any: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Any"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Any) -> Bool {
if self.googleProtobufAny != other.googleProtobufAny {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Api: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Api"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Api) -> Bool {
if self.googleProtobufApi != other.googleProtobufApi {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_BoolValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_BoolValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_BoolValue) -> Bool {
if self.googleProtobufBoolValue != other.googleProtobufBoolValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_BytesValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_BytesValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_BytesValue) -> Bool {
if self.googleProtobufBytesValue != other.googleProtobufBytesValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_DoubleValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_DoubleValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_DoubleValue) -> Bool {
if self.googleProtobufDoubleValue != other.googleProtobufDoubleValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Duration: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Duration"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Duration) -> Bool {
if self.googleProtobufDuration != other.googleProtobufDuration {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Empty: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Empty"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Empty) -> Bool {
if self.googleProtobufEmpty != other.googleProtobufEmpty {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Enum: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Enum"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Enum) -> Bool {
if self.googleProtobufEnum != other.googleProtobufEnum {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_EnumValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_EnumValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_EnumValue) -> Bool {
if self.googleProtobufEnumValue != other.googleProtobufEnumValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Field) -> Bool {
if self.googleProtobufField != other.googleProtobufField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_FieldMask: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_FieldMask"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_FieldMask) -> Bool {
if self.googleProtobufFieldMask != other.googleProtobufFieldMask {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_FloatValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_FloatValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_FloatValue) -> Bool {
if self.googleProtobufFloatValue != other.googleProtobufFloatValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Int32Value: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Int32Value"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Int32Value) -> Bool {
if self.googleProtobufInt32Value != other.googleProtobufInt32Value {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Int64Value: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Int64Value"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Int64Value) -> Bool {
if self.googleProtobufInt64Value != other.googleProtobufInt64Value {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_ListValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_ListValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_ListValue) -> Bool {
if self.googleProtobufListValue != other.googleProtobufListValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Method: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Method"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Method) -> Bool {
if self.googleProtobufMethod != other.googleProtobufMethod {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Mixin: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Mixin"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Mixin) -> Bool {
if self.googleProtobufMixin != other.googleProtobufMixin {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_NullValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_NullValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_NullValue) -> Bool {
if self.googleProtobufNullValue != other.googleProtobufNullValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Option: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Option"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Option) -> Bool {
if self.googleProtobufOption != other.googleProtobufOption {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_SourceContext: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_SourceContext"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_SourceContext) -> Bool {
if self.googleProtobufSourceContext != other.googleProtobufSourceContext {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_StringValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_StringValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_StringValue) -> Bool {
if self.googleProtobufStringValue != other.googleProtobufStringValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Struct: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Struct"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Struct) -> Bool {
if self.googleProtobufStruct != other.googleProtobufStruct {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Syntax: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Syntax"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Syntax) -> Bool {
if self.googleProtobufSyntax != other.googleProtobufSyntax {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Timestamp: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Timestamp"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Timestamp) -> Bool {
if self.googleProtobufTimestamp != other.googleProtobufTimestamp {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Type: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Type"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Type) -> Bool {
if self.googleProtobufType != other.googleProtobufType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_UInt32Value: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_UInt32Value"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_UInt32Value) -> Bool {
if self.googleProtobufUint32Value != other.googleProtobufUint32Value {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_UInt64Value: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_UInt64Value"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_UInt64Value) -> Bool {
if self.googleProtobufUint64Value != other.googleProtobufUint64Value {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Value: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "Google_Protobuf_Value"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Google_Protobuf_Value) -> Bool {
if self.googleProtobufValue != other.googleProtobufValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.gregorianDateFromSecondsSince1970: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "gregorianDateFromSecondsSince1970"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.gregorianDateFromSecondsSince1970) -> Bool {
if self.gregorianDateFromSecondsSince1970 != other.gregorianDateFromSecondsSince1970 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.group: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "group"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.group) -> Bool {
if self.group != other.group {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.h: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "h"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.h) -> Bool {
if self.h != other.h {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.handleConflictingOneOf: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "handleConflictingOneOf"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.handleConflictingOneOf) -> Bool {
if self.handleConflictingOneOf != other.handleConflictingOneOf {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.has: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "has"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.has) -> Bool {
if self.has_p != other.has_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.hasExtensionValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "hasExtensionValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.hasExtensionValue) -> Bool {
if self.hasExtensionValue_p != other.hasExtensionValue_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.hash: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "hash"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.hash) -> Bool {
if self.hash_p != other.hash_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Hashable: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Hashable"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Hashable) -> Bool {
if self.hashable_p != other.hashable_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.hashValueMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "hashValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.hashValueMessage) -> Bool {
if self.hashValue_p != other.hashValue_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.HashVisitor: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "HashVisitor"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.HashVisitor) -> Bool {
if self.hashVisitor_p != other.hashVisitor_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.hasSourceContext: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "hasSourceContext"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.hasSourceContext) -> Bool {
if self.hasSourceContext_p != other.hasSourceContext_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.hasValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "hasValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.hasValue) -> Bool {
if self.hasValue_p != other.hasValue_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.hh: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "hh"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.hh) -> Bool {
if self.hh != other.hh {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.hour: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "hour"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.hour) -> Bool {
if self.hour != other.hour {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.i: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "i"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.i) -> Bool {
if self.i != other.i {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.index: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "index"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.index) -> Bool {
if self.index != other.index {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.initMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "init"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.initMessage) -> Bool {
if self.init_p != other.init_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.inoutMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "inout"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.inoutMessage) -> Bool {
if self.inout_p != other.inout_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.insert: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "insert"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.insert) -> Bool {
if self.insert != other.insert {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.insertIntoSet: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "insertIntoSet"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.insertIntoSet) -> Bool {
if self.insertIntoSet != other.insertIntoSet {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.IntMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Int"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.IntMessage) -> Bool {
if self.int != other.int {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Int32Message: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Int32"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Int32Message) -> Bool {
if self.int32 != other.int32 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Int32Value: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Int32Value"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Int32Value) -> Bool {
if self.int32Value != other.int32Value {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Int64Message: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Int64"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Int64Message) -> Bool {
if self.int64 != other.int64 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Int64Value: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Int64Value"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Int64Value) -> Bool {
if self.int64Value != other.int64Value {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Int8: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Int8"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Int8) -> Bool {
if self.int8 != other.int8 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.integerLiteral: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "integerLiteral"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.integerLiteral) -> Bool {
if self.integerLiteral != other.integerLiteral {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.IntegerLiteralType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "IntegerLiteralType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.IntegerLiteralType) -> Bool {
if self.integerLiteralType != other.integerLiteralType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.intern: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "intern"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.intern) -> Bool {
if self.intern != other.intern {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Internal: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Internal"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Internal) -> Bool {
if self.internal_p != other.internal_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.InternalState: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "InternalState"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.InternalState) -> Bool {
if self.internalState != other.internalState {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.isA: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "isA"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.isA) -> Bool {
if self.isA != other.isA {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.isEqual: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "isEqual"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.isEqual) -> Bool {
if self.isEqual != other.isEqual {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.isEqualTo: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "isEqualTo"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.isEqualTo) -> Bool {
if self.isEqualTo != other.isEqualTo {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.isInitializedMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "isInitialized"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.isInitializedMessage) -> Bool {
if self.isInitialized_p != other.isInitialized_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.it: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "it"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.it) -> Bool {
if self.it != other.it {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.i_2166136261: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "i_2166136261"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.i_2166136261) -> Bool {
if self.i2166136261 != other.i2166136261 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.json: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "json"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.json) -> Bool {
if self.json != other.json {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.JSONDecoder: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "JSONDecoder"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.JSONDecoder) -> Bool {
if self.jsondecoder != other.jsondecoder {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.jsonEncoder: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "jsonEncoder"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.jsonEncoder) -> Bool {
if self.jsonEncoder != other.jsonEncoder {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.JSONEncodingVisitor: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "JSONEncodingVisitor"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.JSONEncodingVisitor) -> Bool {
if self.jsonencodingVisitor != other.jsonencodingVisitor {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.JSONMapEncodingVisitor: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "JSONMapEncodingVisitor"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.JSONMapEncodingVisitor) -> Bool {
if self.jsonmapEncodingVisitor != other.jsonmapEncodingVisitor {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.jsonName: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "jsonName"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.jsonName) -> Bool {
if self.jsonName != other.jsonName {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.jsonPath: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "jsonPath"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.jsonPath) -> Bool {
if self.jsonPath != other.jsonPath {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.jsonPaths: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "jsonPaths"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.jsonPaths) -> Bool {
if self.jsonPaths != other.jsonPaths {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.JSONScanner: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "JSONScanner"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.JSONScanner) -> Bool {
if self.jsonscanner != other.jsonscanner {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.jsonString: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "jsonString"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.jsonString) -> Bool {
if self.jsonString != other.jsonString {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.jsonText: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "jsonText"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.jsonText) -> Bool {
if self.jsonText != other.jsonText {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.JSONToProto: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "JSONToProto"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.JSONToProto) -> Bool {
if self.jsontoProto != other.jsontoProto {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.jsonUTF8Data: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "jsonUTF8Data"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.jsonUTF8Data) -> Bool {
if self.jsonUtf8Data != other.jsonUtf8Data {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.julianDayNumberFromSecondsSince1970: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "julianDayNumberFromSecondsSince1970"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.julianDayNumberFromSecondsSince1970) -> Bool {
if self.julianDayNumberFromSecondsSince1970 != other.julianDayNumberFromSecondsSince1970 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.k: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "k"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.k) -> Bool {
if self.k != other.k {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Key: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Key"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Key) -> Bool {
if self.key != other.key {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.keyField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "keyField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.keyField) -> Bool {
if self.keyField != other.keyField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.KeyType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "KeyType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.KeyType) -> Bool {
if self.keyType != other.keyType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.kind: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "kind"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.kind) -> Bool {
if self.kind != other.kind {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.knownTypes: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "knownTypes"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.knownTypes) -> Bool {
if self.knownTypes != other.knownTypes {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.l: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "l"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.l) -> Bool {
if self.l != other.l {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.label: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "label"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.label) -> Bool {
if self.label != other.label {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.length: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "length"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.length) -> Bool {
if self.length != other.length {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.letMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "let"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.letMessage) -> Bool {
if self.let_p != other.let_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.lhs: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "lhs"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.lhs) -> Bool {
if self.lhs != other.lhs {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.listOfMessages: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "listOfMessages"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.listOfMessages) -> Bool {
if self.listOfMessages != other.listOfMessages {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.listValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "listValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.listValue) -> Bool {
if self.listValue != other.listValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.littleEndian: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "littleEndian"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.littleEndian) -> Bool {
if self.littleEndian != other.littleEndian {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.littleEndianBytes: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "littleEndianBytes"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.littleEndianBytes) -> Bool {
if self.littleEndianBytes != other.littleEndianBytes {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.M: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "M"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.M) -> Bool {
if self.m != other.m {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.major: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "major"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.major) -> Bool {
if self.major != other.major {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.makeIterator: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "makeIterator"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.makeIterator) -> Bool {
if self.makeIterator != other.makeIterator {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.mapHash: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "mapHash"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.mapHash) -> Bool {
if self.mapHash != other.mapHash {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.MapKeyType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "MapKeyType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.MapKeyType) -> Bool {
if self.mapKeyType != other.mapKeyType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.mapNameResolver: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "mapNameResolver"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.mapNameResolver) -> Bool {
if self.mapNameResolver != other.mapNameResolver {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.mapToMessages: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "mapToMessages"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.mapToMessages) -> Bool {
if self.mapToMessages != other.mapToMessages {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.MapValueType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "MapValueType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.MapValueType) -> Bool {
if self.mapValueType != other.mapValueType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.mapVisitor: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "mapVisitor"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.mapVisitor) -> Bool {
if self.mapVisitor != other.mapVisitor {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.mdayStart: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "mdayStart"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.mdayStart) -> Bool {
if self.mdayStart != other.mdayStart {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.members: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "members"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.members) -> Bool {
if self.members != other.members {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.merge: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "merge"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.merge) -> Bool {
if self.merge != other.merge {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.message: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "message"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.message) -> Bool {
if self.message != other.message {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.MessageExtension: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "MessageExtension"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.MessageExtension) -> Bool {
if self.messageExtension != other.messageExtension {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.MessageExtensionBase: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "MessageExtensionBase"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.MessageExtensionBase) -> Bool {
if self.messageExtensionBase != other.messageExtensionBase {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.messageType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "messageType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.messageType) -> Bool {
if self.messageType != other.messageType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Method: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Method"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Method) -> Bool {
if self.method != other.method {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.methods: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "methods"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.methods) -> Bool {
if self.methods != other.methods {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.minor: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "minor"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.minor) -> Bool {
if self.minor != other.minor {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Mixin: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Mixin"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Mixin) -> Bool {
if self.mixin != other.mixin {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.mixins: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "mixins"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.mixins) -> Bool {
if self.mixins != other.mixins {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.mm: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "mm"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.mm) -> Bool {
if self.mm != other.mm {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.mod: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "mod"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.mod) -> Bool {
if self.mod != other.mod {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.month: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "month"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.month) -> Bool {
if self.month != other.month {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.mutating: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "mutating"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.mutating) -> Bool {
if self.mutating != other.mutating {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.n: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "n"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.n) -> Bool {
if self.n != other.n {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.name: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "name"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.name) -> Bool {
if self.name != other.name {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.NameDescription: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "NameDescription"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.NameDescription) -> Bool {
if self.nameDescription != other.nameDescription {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.NameMap: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "NameMap"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.NameMap) -> Bool {
if self.nameMap != other.nameMap {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.nameResolver: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "nameResolver"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.nameResolver) -> Bool {
if self.nameResolver != other.nameResolver {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.names: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "names"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.names) -> Bool {
if self.names != other.names {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.nanos: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "nanos"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.nanos) -> Bool {
if self.nanos != other.nanos {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.nativeBytes: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "nativeBytes"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.nativeBytes) -> Bool {
if self.nativeBytes != other.nativeBytes {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.nativeEndianBytes: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "nativeEndianBytes"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.nativeEndianBytes) -> Bool {
if self.nativeEndianBytes != other.nativeEndianBytes {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.newL: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "newL"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.newL) -> Bool {
if self.newL != other.newL {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.newValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "newValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.newValue) -> Bool {
if self.newValue != other.newValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.nextFieldNumber: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "nextFieldNumber"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.nextFieldNumber) -> Bool {
if self.nextFieldNumber != other.nextFieldNumber {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.nilMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "nil"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.nilMessage) -> Bool {
if self.nil_p != other.nil_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.nilLiteral: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "nilLiteral"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.nilLiteral) -> Bool {
if self.nilLiteral != other.nilLiteral {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.no: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "no"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.no) -> Bool {
if self.no != other.no {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.normalizeForDuration: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "normalizeForDuration"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.normalizeForDuration) -> Bool {
if self.normalizeForDuration != other.normalizeForDuration {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.normalizeForTimestamp: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "normalizeForTimestamp"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.normalizeForTimestamp) -> Bool {
if self.normalizeForTimestamp != other.normalizeForTimestamp {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.nullValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "nullValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.nullValue) -> Bool {
if self.nullValue != other.nullValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.number: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "number"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.number) -> Bool {
if self.number != other.number {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.numberValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "numberValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.numberValue) -> Bool {
if self.numberValue != other.numberValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.of: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "of"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.of) -> Bool {
if self.of != other.of {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.oneofIndex: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "oneofIndex"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.oneofIndex) -> Bool {
if self.oneofIndex != other.oneofIndex {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.oneofs: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "oneofs"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.oneofs) -> Bool {
if self.oneofs != other.oneofs {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.OneOf_Kind: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "OneOf_Kind"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.OneOf_Kind) -> Bool {
if self.oneOfKind != other.oneOfKind {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.only: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "only"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.only) -> Bool {
if self.only != other.only {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Option: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Option"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Option) -> Bool {
if self.option != other.option {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.OptionalEnumExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "OptionalEnumExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.OptionalEnumExtensionField) -> Bool {
if self.optionalEnumExtensionField != other.optionalEnumExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.OptionalExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "OptionalExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.OptionalExtensionField) -> Bool {
if self.optionalExtensionField != other.optionalExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.OptionalGroupExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "OptionalGroupExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.OptionalGroupExtensionField) -> Bool {
if self.optionalGroupExtensionField != other.optionalGroupExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.OptionalMessageExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "OptionalMessageExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.OptionalMessageExtensionField) -> Bool {
if self.optionalMessageExtensionField != other.optionalMessageExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.options: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "options"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.options) -> Bool {
if self.options != other.options {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.other: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "other"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.other) -> Bool {
if self.other != other.other {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.out: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "out"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.out) -> Bool {
if self.out != other.out {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.output: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "output"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.output) -> Bool {
if self.output != other.output {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.p: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "p"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.p) -> Bool {
if self.p != other.p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.packed: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "packed"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.packed) -> Bool {
if self.packed != other.packed {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.PackedEnumExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "PackedEnumExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.PackedEnumExtensionField) -> Bool {
if self.packedEnumExtensionField != other.packedEnumExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.PackedExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "PackedExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.PackedExtensionField) -> Bool {
if self.packedExtensionField != other.packedExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.packedSize: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "packedSize"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.packedSize) -> Bool {
if self.packedSize != other.packedSize {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.parseBareFloatString: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "parseBareFloatString"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.parseBareFloatString) -> Bool {
if self.parseBareFloatString != other.parseBareFloatString {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.parseBareSInt: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "parseBareSInt"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.parseBareSInt) -> Bool {
if self.parseBareSint != other.parseBareSint {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.parseBareUInt: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "parseBareUInt"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.parseBareUInt) -> Bool {
if self.parseBareUint != other.parseBareUint {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.parseDuration: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "parseDuration"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.parseDuration) -> Bool {
if self.parseDuration != other.parseDuration {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.parseJSONFieldNames: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "parseJSONFieldNames"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.parseJSONFieldNames) -> Bool {
if self.parseJsonfieldNames != other.parseJsonfieldNames {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.parseTimestamp: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "parseTimestamp"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.parseTimestamp) -> Bool {
if self.parseTimestamp != other.parseTimestamp {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.partial: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "partial"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.partial) -> Bool {
if self.partial != other.partial {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.path: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "path"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.path) -> Bool {
if self.path != other.path {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.paths: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "paths"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.paths) -> Bool {
if self.paths != other.paths {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.pointer: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "pointer"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.pointer) -> Bool {
if self.pointer != other.pointer {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.pos: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "pos"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.pos) -> Bool {
if self.pos != other.pos {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.prefix: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "prefix"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.prefix) -> Bool {
if self.prefix != other.prefix {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.preTraverse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "preTraverse"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.preTraverse) -> Bool {
if self.preTraverse != other.preTraverse {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.privateMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "private"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.privateMessage) -> Bool {
if self.private_p != other.private_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.proto: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "proto"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.proto) -> Bool {
if self.proto != other.proto {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.proto2: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "proto2"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.proto2) -> Bool {
if self.proto2 != other.proto2 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.proto3DefaultValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "proto3DefaultValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.proto3DefaultValue) -> Bool {
if self.proto3DefaultValue != other.proto3DefaultValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufBool: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufBool"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufBool) -> Bool {
if self.protobufBool != other.protobufBool {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufBytes: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufBytes"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufBytes) -> Bool {
if self.protobufBytes != other.protobufBytes {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufDouble: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufDouble"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufDouble) -> Bool {
if self.protobufDouble != other.protobufDouble {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufEnumMap: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufEnumMap"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufEnumMap) -> Bool {
if self.protobufEnumMap != other.protobufEnumMap {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.protobufExtension: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "protobufExtension"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.protobufExtension) -> Bool {
if self.protobufExtension != other.protobufExtension {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufFloat: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufFloat"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufFloat) -> Bool {
if self.protobufFloat != other.protobufFloat {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufInt32: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufInt32"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufInt32) -> Bool {
if self.protobufInt32 != other.protobufInt32 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufInt64: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufInt64"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufInt64) -> Bool {
if self.protobufInt64 != other.protobufInt64 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufMap: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufMap"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufMap) -> Bool {
if self.protobufMap != other.protobufMap {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufMessageMap: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufMessageMap"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufMessageMap) -> Bool {
if self.protobufMessageMap != other.protobufMessageMap {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufString: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufString"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufString) -> Bool {
if self.protobufString != other.protobufString {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufUInt32: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufUInt32"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufUInt32) -> Bool {
if self.protobufUint32 != other.protobufUint32 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufUInt64: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtobufUInt64"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtobufUInt64) -> Bool {
if self.protobufUint64 != other.protobufUint64 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_extensionFieldValues: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "protobuf_extensionFieldValues"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_extensionFieldValues) -> Bool {
if self.protobufExtensionFieldValues != other.protobufExtensionFieldValues {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_fieldNumber: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "protobuf_fieldNumber"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_fieldNumber) -> Bool {
if self.protobufFieldNumber != other.protobufFieldNumber {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_generated_isEqualTo: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "protobuf_generated_isEqualTo"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_generated_isEqualTo) -> Bool {
if self.protobufGeneratedIsEqualTo != other.protobufGeneratedIsEqualTo {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_nameMap: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "protobuf_nameMap"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_nameMap) -> Bool {
if self.protobufNameMap != other.protobufNameMap {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_newField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "protobuf_newField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_newField) -> Bool {
if self.protobufNewField != other.protobufNewField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_package: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "protobuf_package"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_package) -> Bool {
if self.protobufPackage != other.protobufPackage {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_set: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "protobuf_set"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.protobuf_set) -> Bool {
if self.protobufSet != other.protobufSet {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.protoFieldName: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "protoFieldName"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.protoFieldName) -> Bool {
if self.protoFieldName != other.protoFieldName {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageNameMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "protoMessageName"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.protoMessageNameMessage) -> Bool {
if self.protoMessageName != other.protoMessageName {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.protoPaths: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "protoPaths"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.protoPaths) -> Bool {
if self.protoPaths != other.protoPaths {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ProtoToJSON: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ProtoToJSON"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ProtoToJSON) -> Bool {
if self.protoToJson != other.protoToJson {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.publicMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "public"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.publicMessage) -> Bool {
if self.public_p != other.public_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putBoolValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putBoolValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putBoolValue) -> Bool {
if self.putBoolValue != other.putBoolValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putBytesValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putBytesValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putBytesValue) -> Bool {
if self.putBytesValue != other.putBytesValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putDoubleValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putDoubleValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putDoubleValue) -> Bool {
if self.putDoubleValue != other.putDoubleValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putEnumValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putEnumValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putEnumValue) -> Bool {
if self.putEnumValue != other.putEnumValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putFixedUInt32: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putFixedUInt32"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putFixedUInt32) -> Bool {
if self.putFixedUint32 != other.putFixedUint32 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putFixedUInt64: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putFixedUInt64"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putFixedUInt64) -> Bool {
if self.putFixedUint64 != other.putFixedUint64 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putFloatValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putFloatValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putFloatValue) -> Bool {
if self.putFloatValue != other.putFloatValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putInt64: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putInt64"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putInt64) -> Bool {
if self.putInt64 != other.putInt64 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putStringValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putStringValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putStringValue) -> Bool {
if self.putStringValue != other.putStringValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putUInt64: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putUInt64"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putUInt64) -> Bool {
if self.putUint64 != other.putUint64 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putUInt64Hex: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putUInt64Hex"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putUInt64Hex) -> Bool {
if self.putUint64Hex != other.putUint64Hex {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putVarInt: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putVarInt"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putVarInt) -> Bool {
if self.putVarInt != other.putVarInt {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.putZigZagVarInt: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "putZigZagVarInt"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.putZigZagVarInt) -> Bool {
if self.putZigZagVarInt != other.putZigZagVarInt {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.RawValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "RawValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.RawValue) -> Bool {
if self.rawValue != other.rawValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.register: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "register"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.register) -> Bool {
if self.register != other.register {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.RepeatedEnumExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "RepeatedEnumExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.RepeatedEnumExtensionField) -> Bool {
if self.repeatedEnumExtensionField != other.repeatedEnumExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.RepeatedExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "RepeatedExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.RepeatedExtensionField) -> Bool {
if self.repeatedExtensionField != other.repeatedExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.RepeatedGroupExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "RepeatedGroupExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.RepeatedGroupExtensionField) -> Bool {
if self.repeatedGroupExtensionField != other.repeatedGroupExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.RepeatedMessageExtensionField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "RepeatedMessageExtensionField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.RepeatedMessageExtensionField) -> Bool {
if self.repeatedMessageExtensionField != other.repeatedMessageExtensionField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.requestStreaming: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "requestStreaming"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.requestStreaming) -> Bool {
if self.requestStreaming != other.requestStreaming {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.requestTypeURL: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "requestTypeURL"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.requestTypeURL) -> Bool {
if self.requestTypeURL != other.requestTypeURL {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.requiredSize: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "requiredSize"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.requiredSize) -> Bool {
if self.requiredSize != other.requiredSize {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.responseStreaming: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "responseStreaming"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.responseStreaming) -> Bool {
if self.responseStreaming != other.responseStreaming {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.responseTypeURL: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "responseTypeURL"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.responseTypeURL) -> Bool {
if self.responseTypeURL != other.responseTypeURL {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.result: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "result"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.result) -> Bool {
if self.result != other.result {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.returnMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "return"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.returnMessage) -> Bool {
if self.return_p != other.return_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.revision: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "revision"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.revision) -> Bool {
if self.revision != other.revision {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.rhs: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "rhs"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.rhs) -> Bool {
if self.rhs != other.rhs {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.root: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "root"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.root) -> Bool {
if self.root != other.root {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.s: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "s"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.s) -> Bool {
if self.s != other.s {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.savedPosition: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "savedPosition"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.savedPosition) -> Bool {
if self.savedPosition != other.savedPosition {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.sawBackslash: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "sawBackslash"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.sawBackslash) -> Bool {
if self.sawBackslash != other.sawBackslash {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.scanner: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "scanner"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.scanner) -> Bool {
if self.scanner != other.scanner {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.seconds: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "seconds"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.seconds) -> Bool {
if self.seconds != other.seconds {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.selfMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "self"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.selfMessage) -> Bool {
if self.self_p != other.self_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.separator: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "separator"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.separator) -> Bool {
if self.separator != other.separator {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.serializeAnyJSON: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "serializeAnyJSON"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.serializeAnyJSON) -> Bool {
if self.serializeAnyJson != other.serializeAnyJson {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.serializedData: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "serializedData"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.serializedData) -> Bool {
if self.serializedData != other.serializedData {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.serializedSize: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "serializedSize"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.serializedSize) -> Bool {
if self.serializedSize != other.serializedSize {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.serialQueue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "serialQueue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.serialQueue) -> Bool {
if self.serialQueue != other.serialQueue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.set: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "set"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.set) -> Bool {
if self.set != other.set {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.setExtensionValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "setExtensionValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.setExtensionValue) -> Bool {
if self.setExtensionValue != other.setExtensionValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.shift: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "shift"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.shift) -> Bool {
if self.shift != other.shift {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.SignedInteger: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "SignedInteger"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.SignedInteger) -> Bool {
if self.signedInteger != other.signedInteger {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.SimpleExtensionMap: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "SimpleExtensionMap"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.SimpleExtensionMap) -> Bool {
if self.simpleExtensionMap != other.simpleExtensionMap {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.sizer: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "sizer"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.sizer) -> Bool {
if self.sizer != other.sizer {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.slowUtf8ToString: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "slowUtf8ToString"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.slowUtf8ToString) -> Bool {
if self.slowUtf8ToString != other.slowUtf8ToString {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.source: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "source"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.source) -> Bool {
if self.source != other.source {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.sourceContext: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "sourceContext"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.sourceContext) -> Bool {
if self.sourceContext != other.sourceContext {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.split: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "split"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.split) -> Bool {
if self.split != other.split {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ss: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ss"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ss) -> Bool {
if self.ss != other.ss {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.start: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "start"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.start) -> Bool {
if self.start != other.start {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.startArray: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "startArray"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.startArray) -> Bool {
if self.startArray != other.startArray {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.startField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "startField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.startField) -> Bool {
if self.startField != other.startField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.startIndex: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "startIndex"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.startIndex) -> Bool {
if self.startIndex != other.startIndex {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.startMessageField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "startMessageField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.startMessageField) -> Bool {
if self.startMessageField != other.startMessageField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.startObject: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "startObject"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.startObject) -> Bool {
if self.startObject != other.startObject {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.startRegularField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "startRegularField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.startRegularField) -> Bool {
if self.startRegularField != other.startRegularField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.state: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "state"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.state) -> Bool {
if self.state != other.state {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.staticMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "static"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.staticMessage) -> Bool {
if self.static_p != other.static_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.StaticString: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "StaticString"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.StaticString) -> Bool {
if self.staticString != other.staticString {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.storage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "storage"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.storage) -> Bool {
if self.storage != other.storage {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.StorageClass: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "StorageClass"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.StorageClass) -> Bool {
if self.storageClass != other.storageClass {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.StringMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "String"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.StringMessage) -> Bool {
if self.string != other.string {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.stringLiteral: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "stringLiteral"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.stringLiteral) -> Bool {
if self.stringLiteral != other.stringLiteral {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.StringLiteralType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "StringLiteralType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.StringLiteralType) -> Bool {
if self.stringLiteralType != other.stringLiteralType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.stringResult: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "stringResult"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.stringResult) -> Bool {
if self.stringResult != other.stringResult {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.stringValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "stringValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.stringValue) -> Bool {
if self.stringValue != other.stringValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Struct: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Struct"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Struct) -> Bool {
if self.struct_p != other.struct_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.structValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "structValue"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.structValue) -> Bool {
if self.structValue != other.structValue {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.subDecoder: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "subDecoder"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.subDecoder) -> Bool {
if self.subDecoder != other.subDecoder {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.subscriptMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "subscript"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.subscriptMessage) -> Bool {
if self.subscript_p != other.subscript_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.swift: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "swift"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.swift) -> Bool {
if self.swift != other.swift {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.SwiftProtobufMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "SwiftProtobuf"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.SwiftProtobufMessage) -> Bool {
if self.swiftProtobuf != other.swiftProtobuf {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.syntax: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "syntax"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.syntax) -> Bool {
if self.syntax != other.syntax {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.T: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "T"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.T) -> Bool {
if self.t != other.t {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.tag: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "tag"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.tag) -> Bool {
if self.tag != other.tag {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.target: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "target"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.target) -> Bool {
if self.target != other.target {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.terminator: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "terminator"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.terminator) -> Bool {
if self.terminator != other.terminator {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.testDecoder: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "testDecoder"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.testDecoder) -> Bool {
if self.testDecoder != other.testDecoder {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.text: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "text"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.text) -> Bool {
if self.text != other.text {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.textDecoder: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "textDecoder"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.textDecoder) -> Bool {
if self.textDecoder != other.textDecoder {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.TextFormatDecoder: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "TextFormatDecoder"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.TextFormatDecoder) -> Bool {
if self.textFormatDecoder != other.textFormatDecoder {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.TextFormatEncoder: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "TextFormatEncoder"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.TextFormatEncoder) -> Bool {
if self.textFormatEncoder != other.textFormatEncoder {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.TextFormatEncodingVisitor: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "TextFormatEncodingVisitor"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.TextFormatEncodingVisitor) -> Bool {
if self.textFormatEncodingVisitor != other.textFormatEncodingVisitor {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.TextFormatScanner: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "TextFormatScanner"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.TextFormatScanner) -> Bool {
if self.textFormatScanner != other.textFormatScanner {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.textFormatString: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "textFormatString"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.textFormatString) -> Bool {
if self.textFormatString != other.textFormatString {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.that: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "that"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.that) -> Bool {
if self.that != other.that {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.they: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "they"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.they) -> Bool {
if self.they != other.they {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.throwsMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "throws"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.throwsMessage) -> Bool {
if self.throws_p != other.throws_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.timeInterval: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "timeInterval"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.timeInterval) -> Bool {
if self.timeInterval != other.timeInterval {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.timeIntervalSince1970: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "timeIntervalSince1970"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.timeIntervalSince1970) -> Bool {
if self.timeIntervalSince1970 != other.timeIntervalSince1970 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.timeIntervalSinceReferenceDate: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "timeIntervalSinceReferenceDate"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.timeIntervalSinceReferenceDate) -> Bool {
if self.timeIntervalSinceReferenceDate != other.timeIntervalSinceReferenceDate {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.timeOfDayFromSecondsSince1970: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "timeOfDayFromSecondsSince1970"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.timeOfDayFromSecondsSince1970) -> Bool {
if self.timeOfDayFromSecondsSince1970 != other.timeOfDayFromSecondsSince1970 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.Timestamp: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Timestamp"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.Timestamp) -> Bool {
if self.timestamp != other.timestamp {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.toJsonFieldName: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "toJsonFieldName"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.toJsonFieldName) -> Bool {
if self.toJsonFieldName != other.toJsonFieldName {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.total: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "total"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.total) -> Bool {
if self.total != other.total {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.traverseMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "traverse"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.traverseMessage) -> Bool {
if self.traverse != other.traverse {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.trueMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "true"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.trueMessage) -> Bool {
if self.true_p != other.true_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.tryMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "try"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.tryMessage) -> Bool {
if self.try_p != other.try_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.TypeMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Type"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.TypeMessage) -> Bool {
if self.type != other.type {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.typealiasMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "typealias"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.typealiasMessage) -> Bool {
if self.typealias_p != other.typealias_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.typeName: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "typeName"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.typeName) -> Bool {
if self.typeName != other.typeName {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.typePrefix: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "typePrefix"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.typePrefix) -> Bool {
if self.typePrefix != other.typePrefix {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.typeRegistry: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "typeRegistry"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.typeRegistry) -> Bool {
if self.typeRegistry != other.typeRegistry {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.typeStart: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "typeStart"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.typeStart) -> Bool {
if self.typeStart != other.typeStart {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.typeUnknown: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "typeUnknown"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.typeUnknown) -> Bool {
if self.typeUnknown != other.typeUnknown {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.typeURL: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "typeURL"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.typeURL) -> Bool {
if self.typeURL != other.typeURL {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UInt32Message: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UInt32"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UInt32Message) -> Bool {
if self.uint32 != other.uint32 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UInt32Value: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UInt32Value"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UInt32Value) -> Bool {
if self.uint32Value != other.uint32Value {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UInt64Message: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UInt64"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UInt64Message) -> Bool {
if self.uint64 != other.uint64 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UInt64Value: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UInt64Value"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UInt64Value) -> Bool {
if self.uint64Value != other.uint64Value {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UInt8: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UInt8"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UInt8) -> Bool {
if self.uint8 != other.uint8 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UnicodeScalar: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UnicodeScalar"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UnicodeScalar) -> Bool {
if self.unicodeScalar != other.unicodeScalar {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.unicodeScalarLiteral: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "unicodeScalarLiteral"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.unicodeScalarLiteral) -> Bool {
if self.unicodeScalarLiteral != other.unicodeScalarLiteral {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UnicodeScalarLiteralType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UnicodeScalarLiteralType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UnicodeScalarLiteralType) -> Bool {
if self.unicodeScalarLiteralType != other.unicodeScalarLiteralType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.unicodeScalars: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "unicodeScalars"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.unicodeScalars) -> Bool {
if self.unicodeScalars != other.unicodeScalars {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UnicodeScalarView: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UnicodeScalarView"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UnicodeScalarView) -> Bool {
if self.unicodeScalarView != other.unicodeScalarView {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.union: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "union"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.union) -> Bool {
if self.union != other.union {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.uniqueStorage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "uniqueStorage"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.uniqueStorage) -> Bool {
if self.uniqueStorage != other.uniqueStorage {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.unknown: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "unknown"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.unknown) -> Bool {
if self.unknown != other.unknown {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.unknownData: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "unknownData"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.unknownData) -> Bool {
if self.unknownData != other.unknownData {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.unknownFieldsMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "unknownFields"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.unknownFieldsMessage) -> Bool {
if self.unknownFields_p != other.unknownFields_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UnknownStorage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UnknownStorage"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UnknownStorage) -> Bool {
if self.unknownStorage != other.unknownStorage {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.unpack: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "unpack"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.unpack) -> Bool {
if self.unpack != other.unpack {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.unpackTo: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "unpackTo"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.unpackTo) -> Bool {
if self.unpackTo != other.unpackTo {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UnsafeBufferPointer: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UnsafeBufferPointer"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UnsafeBufferPointer) -> Bool {
if self.unsafeBufferPointer != other.unsafeBufferPointer {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UnsafeMutablePointer: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UnsafeMutablePointer"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UnsafeMutablePointer) -> Bool {
if self.unsafeMutablePointer != other.unsafeMutablePointer {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UnsafeMutableRawBufferPointer: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UnsafeMutableRawBufferPointer"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UnsafeMutableRawBufferPointer) -> Bool {
if self.unsafeMutableRawBufferPointer != other.unsafeMutableRawBufferPointer {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UnsafePointer: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UnsafePointer"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UnsafePointer) -> Bool {
if self.unsafePointer != other.unsafePointer {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.url: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "url"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.url) -> Bool {
if self.url != other.url {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.used: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "used"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.used) -> Bool {
if self.used != other.used {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.utf8: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "utf8"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.utf8) -> Bool {
if self.utf8 != other.utf8 {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.utf8Buffer: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "utf8Buffer"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.utf8Buffer) -> Bool {
if self.utf8Buffer != other.utf8Buffer {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.utf8Codec: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "utf8Codec"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.utf8Codec) -> Bool {
if self.utf8Codec != other.utf8Codec {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.utf8ToDouble: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "utf8ToDouble"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.utf8ToDouble) -> Bool {
if self.utf8ToDouble != other.utf8ToDouble {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.utf8ToString: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "utf8ToString"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.utf8ToString) -> Bool {
if self.utf8ToString != other.utf8ToString {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.UTF8View: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "UTF8View"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.UTF8View) -> Bool {
if self.utf8View != other.utf8View {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.v: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "v"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.v) -> Bool {
if self.v != other.v {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.value: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "value"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.value) -> Bool {
if self.value != other.value {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.valueField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "valueField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.valueField) -> Bool {
if self.valueField != other.valueField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.values: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "values"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.values) -> Bool {
if self.values != other.values {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.ValueType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ValueType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.ValueType) -> Bool {
if self.valueType != other.valueType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.varMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "var"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.varMessage) -> Bool {
if self.var_p != other.var_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.version: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "version"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.version) -> Bool {
if self.version != other.version {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.versionString: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "versionString"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.versionString) -> Bool {
if self.versionString != other.versionString {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitExtensionFields: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitExtensionFields"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitExtensionFields) -> Bool {
if self.visitExtensionFields != other.visitExtensionFields {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitMapField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitMapField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitMapField) -> Bool {
if self.visitMapField != other.visitMapField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitor: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitor"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitor) -> Bool {
if self.visitor != other.visitor {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPacked: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPacked"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPacked) -> Bool {
if self.visitPacked != other.visitPacked {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedBoolField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedBoolField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedBoolField) -> Bool {
if self.visitPackedBoolField != other.visitPackedBoolField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedDoubleField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedDoubleField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedDoubleField) -> Bool {
if self.visitPackedDoubleField != other.visitPackedDoubleField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedEnumField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedEnumField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedEnumField) -> Bool {
if self.visitPackedEnumField != other.visitPackedEnumField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedFixed32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedFixed32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedFixed32Field) -> Bool {
if self.visitPackedFixed32Field != other.visitPackedFixed32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedFixed64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedFixed64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedFixed64Field) -> Bool {
if self.visitPackedFixed64Field != other.visitPackedFixed64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedFloatField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedFloatField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedFloatField) -> Bool {
if self.visitPackedFloatField != other.visitPackedFloatField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedInt32Field) -> Bool {
if self.visitPackedInt32Field != other.visitPackedInt32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedInt64Field) -> Bool {
if self.visitPackedInt64Field != other.visitPackedInt64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedSFixed32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedSFixed32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedSFixed32Field) -> Bool {
if self.visitPackedSfixed32Field != other.visitPackedSfixed32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedSFixed64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedSFixed64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedSFixed64Field) -> Bool {
if self.visitPackedSfixed64Field != other.visitPackedSfixed64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedSInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedSInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedSInt32Field) -> Bool {
if self.visitPackedSint32Field != other.visitPackedSint32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedSInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedSInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedSInt64Field) -> Bool {
if self.visitPackedSint64Field != other.visitPackedSint64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedUInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedUInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedUInt32Field) -> Bool {
if self.visitPackedUint32Field != other.visitPackedUint32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedUInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitPackedUInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitPackedUInt64Field) -> Bool {
if self.visitPackedUint64Field != other.visitPackedUint64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeated: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeated"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeated) -> Bool {
if self.visitRepeated != other.visitRepeated {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedBoolField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedBoolField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedBoolField) -> Bool {
if self.visitRepeatedBoolField != other.visitRepeatedBoolField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedBytesField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedBytesField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedBytesField) -> Bool {
if self.visitRepeatedBytesField != other.visitRepeatedBytesField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedDoubleField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedDoubleField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedDoubleField) -> Bool {
if self.visitRepeatedDoubleField != other.visitRepeatedDoubleField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedEnumField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedEnumField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedEnumField) -> Bool {
if self.visitRepeatedEnumField != other.visitRepeatedEnumField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedFixed32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedFixed32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedFixed32Field) -> Bool {
if self.visitRepeatedFixed32Field != other.visitRepeatedFixed32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedFixed64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedFixed64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedFixed64Field) -> Bool {
if self.visitRepeatedFixed64Field != other.visitRepeatedFixed64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedFloatField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedFloatField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedFloatField) -> Bool {
if self.visitRepeatedFloatField != other.visitRepeatedFloatField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedGroupField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedGroupField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedGroupField) -> Bool {
if self.visitRepeatedGroupField != other.visitRepeatedGroupField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedInt32Field) -> Bool {
if self.visitRepeatedInt32Field != other.visitRepeatedInt32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedInt64Field) -> Bool {
if self.visitRepeatedInt64Field != other.visitRepeatedInt64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedMessageField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedMessageField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedMessageField) -> Bool {
if self.visitRepeatedMessageField != other.visitRepeatedMessageField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedSFixed32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedSFixed32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedSFixed32Field) -> Bool {
if self.visitRepeatedSfixed32Field != other.visitRepeatedSfixed32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedSFixed64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedSFixed64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedSFixed64Field) -> Bool {
if self.visitRepeatedSfixed64Field != other.visitRepeatedSfixed64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedSInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedSInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedSInt32Field) -> Bool {
if self.visitRepeatedSint32Field != other.visitRepeatedSint32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedSInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedSInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedSInt64Field) -> Bool {
if self.visitRepeatedSint64Field != other.visitRepeatedSint64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedStringField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedStringField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedStringField) -> Bool {
if self.visitRepeatedStringField != other.visitRepeatedStringField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedUInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedUInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedUInt32Field) -> Bool {
if self.visitRepeatedUint32Field != other.visitRepeatedUint32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedUInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitRepeatedUInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitRepeatedUInt64Field) -> Bool {
if self.visitRepeatedUint64Field != other.visitRepeatedUint64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingular: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingular"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingular) -> Bool {
if self.visitSingular != other.visitSingular {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularBoolField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularBoolField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularBoolField) -> Bool {
if self.visitSingularBoolField != other.visitSingularBoolField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularBytesField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularBytesField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularBytesField) -> Bool {
if self.visitSingularBytesField != other.visitSingularBytesField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularDoubleField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularDoubleField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularDoubleField) -> Bool {
if self.visitSingularDoubleField != other.visitSingularDoubleField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularEnumField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularEnumField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularEnumField) -> Bool {
if self.visitSingularEnumField != other.visitSingularEnumField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularFixed32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularFixed32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularFixed32Field) -> Bool {
if self.visitSingularFixed32Field != other.visitSingularFixed32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularFixed64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularFixed64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularFixed64Field) -> Bool {
if self.visitSingularFixed64Field != other.visitSingularFixed64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularFloatField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularFloatField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularFloatField) -> Bool {
if self.visitSingularFloatField != other.visitSingularFloatField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularGroupField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularGroupField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularGroupField) -> Bool {
if self.visitSingularGroupField != other.visitSingularGroupField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularInt32Field) -> Bool {
if self.visitSingularInt32Field != other.visitSingularInt32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularInt64Field) -> Bool {
if self.visitSingularInt64Field != other.visitSingularInt64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularMessageField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularMessageField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularMessageField) -> Bool {
if self.visitSingularMessageField != other.visitSingularMessageField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularSFixed32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularSFixed32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularSFixed32Field) -> Bool {
if self.visitSingularSfixed32Field != other.visitSingularSfixed32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularSFixed64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularSFixed64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularSFixed64Field) -> Bool {
if self.visitSingularSfixed64Field != other.visitSingularSfixed64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularSInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularSInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularSInt32Field) -> Bool {
if self.visitSingularSint32Field != other.visitSingularSint32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularSInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularSInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularSInt64Field) -> Bool {
if self.visitSingularSint64Field != other.visitSingularSint64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularStringField: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularStringField"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularStringField) -> Bool {
if self.visitSingularStringField != other.visitSingularStringField {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularUInt32Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularUInt32Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularUInt32Field) -> Bool {
if self.visitSingularUint32Field != other.visitSingularUint32Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularUInt64Field: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitSingularUInt64Field"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitSingularUInt64Field) -> Bool {
if self.visitSingularUint64Field != other.visitSingularUint64Field {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.visitUnknown: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "visitUnknown"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.visitUnknown) -> Bool {
if self.visitUnknown != other.visitUnknown {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.whereMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "where"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.whereMessage) -> Bool {
if self.where_p != other.where_p {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.wireFormat: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "wireFormat"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.wireFormat) -> Bool {
if self.wireFormat != other.wireFormat {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.with: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "with"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.with) -> Bool {
if self.with != other.with {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.WrappedType: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "WrappedType"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.WrappedType) -> Bool {
if self.wrappedType != other.wrappedType {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.wrapped_vsnprintf: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "wrapped_vsnprintf"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.wrapped_vsnprintf) -> Bool {
if self.wrappedVsnprintf != other.wrappedVsnprintf {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.yday: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "yday"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.yday) -> Bool {
if self.yday != other.yday {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
extension ProtobufUnittest_GeneratedSwiftReservedMessages.YY: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "YY"),
]
func _protobuf_generated_isEqualTo(other: ProtobufUnittest_GeneratedSwiftReservedMessages.YY) -> Bool {
if self.yy != other.yy {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}
| 35.942156 | 172 | 0.736559 |
3be4fc9e77daf8f7dc60b0d5d203782565f8bb61 | 5,119 | c | C | src/corpus/tests/check_search.c | cran/corpus | 59d4da68aa5275821b48ecfcc21636f398459df5 | [
"Apache-2.0"
] | null | null | null | src/corpus/tests/check_search.c | cran/corpus | 59d4da68aa5275821b48ecfcc21636f398459df5 | [
"Apache-2.0"
] | null | null | null | src/corpus/tests/check_search.c | cran/corpus | 59d4da68aa5275821b48ecfcc21636f398459df5 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017 Patrick O. Perry.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <check.h>
#include "../lib/utf8lite/src/utf8lite.h"
#include "../src/table.h"
#include "../src/tree.h"
#include "../src/termset.h"
#include "../src/textset.h"
#include "../src/stem.h"
#include "../src/symtab.h"
#include "../src/wordscan.h"
#include "../src/filter.h"
#include "../src/search.h"
#include "testutil.h"
struct corpus_filter filter;
struct corpus_search search;
struct utf8lite_text search_text;
int offset;
int size;
static void setup_search(void)
{
setup();
ck_assert(!corpus_filter_init(&filter, CORPUS_FILTER_KEEP_ALL,
UTF8LITE_TEXTMAP_CASE,
CORPUS_FILTER_CONNECTOR, NULL, NULL));
ck_assert(!corpus_search_init(&search));
}
static void teardown_search(void)
{
corpus_search_destroy(&search);
corpus_filter_destroy(&filter);
teardown();
}
static int add(const struct utf8lite_text *term)
{
int type_ids[256];
int length, term_id;
ck_assert(!corpus_filter_start(&filter, term));
length = 0;
while (corpus_filter_advance(&filter)) {
if (filter.type_id < 0) {
continue;
}
ck_assert(length < 256);
type_ids[length] = filter.type_id;
length++;
}
ck_assert(!corpus_search_add(&search, type_ids, length, &term_id));
return term_id;
}
static void start(const struct utf8lite_text *text)
{
ck_assert(!corpus_search_start(&search, text, &filter));
search_text = *text;
}
static int next(void)
{
int id;
if (corpus_search_advance(&search)) {
id = search.term_id;
offset = (int)(search.current.ptr - search_text.ptr);
size = (int)UTF8LITE_TEXT_SIZE(&search.current);
} else {
ck_assert(!search.error);
id = -1;
offset = 0;
size = 0;
}
return id;
}
START_TEST(test_unigram)
{
int a;
a = add(T("a"));
start(T("a b c a a"));
ck_assert_int_eq(next(), a);
ck_assert_int_eq(offset, 0);
ck_assert_int_eq(size, 1);
ck_assert_int_eq(next(), a);
ck_assert_int_eq(offset, strlen("a b c "));
ck_assert_int_eq(size, 1);
ck_assert_int_eq(next(), a);
ck_assert_int_eq(offset, strlen("a b c a "));
ck_assert_int_eq(size, 1);
ck_assert_int_eq(next(), -1);
}
END_TEST
START_TEST(test_bigram)
{
int ab = add(T("a b"));
start(T("b a b c a b a"));
ck_assert_int_eq(next(), ab);
ck_assert_int_eq(offset, strlen("b "));
ck_assert_int_eq(size, 3);
ck_assert_int_eq(next(), ab);
ck_assert_int_eq(offset, strlen("b a b c "));
ck_assert_int_eq(size, 3);
ck_assert_int_eq(next(), -1);
}
END_TEST
START_TEST(test_subterm)
{
int ab = add(T("a b"));
int a = add(T("a"));
int b = add(T("b"));
start(T("c b a b a b b b c"));
ck_assert_int_eq(next(), b);
ck_assert_int_eq(offset, strlen("c "));
ck_assert_int_eq(size, 1);
ck_assert_int_eq(next(), a);
ck_assert_int_eq(offset, strlen("c b "));
ck_assert_int_eq(size, 1);
ck_assert_int_eq(next(), ab);
ck_assert_int_eq(offset, strlen("c b "));
ck_assert_int_eq(size, 3);
ck_assert_int_eq(next(), b);
ck_assert_int_eq(offset, strlen("c b a "));
ck_assert_int_eq(size, 1);
ck_assert_int_eq(next(), a);
ck_assert_int_eq(offset, strlen("c b a b "));
ck_assert_int_eq(size, 1);
ck_assert_int_eq(next(), ab);
ck_assert_int_eq(offset, strlen("c b a b "));
ck_assert_int_eq(size, 3);
ck_assert_int_eq(next(), b);
ck_assert_int_eq(offset, strlen("c b a b a "));
ck_assert_int_eq(size, 1);
ck_assert_int_eq(next(), b);
ck_assert_int_eq(offset, strlen("c b a b a b "));
ck_assert_int_eq(size, 1);
ck_assert_int_eq(next(), b);
ck_assert_int_eq(offset, strlen("c b a b a b b "));
ck_assert_int_eq(size, 1);
ck_assert_int_eq(next(), -1);
}
END_TEST
START_TEST(test_overlap)
{
int ab = add(T("a b"));
int bc = add(T("b c"));
start(T("a b c"));
ck_assert_int_eq(next(), ab);
ck_assert_int_eq(offset, 0);
ck_assert_int_eq(size, 3);
ck_assert_int_eq(next(), bc);
ck_assert_int_eq(offset, strlen("a "));
ck_assert_int_eq(size, 3);
}
END_TEST
Suite *search_suite(void)
{
Suite *s;
TCase *tc;
s = suite_create("search");
tc = tcase_create("basic");
tcase_add_checked_fixture(tc, setup_search, teardown_search);
tcase_add_test(tc, test_unigram);
tcase_add_test(tc, test_bigram);
tcase_add_test(tc, test_subterm);
tcase_add_test(tc, test_overlap);
suite_add_tcase(s, tc);
return s;
}
int main(void)
{
int nfail;
Suite *s;
SRunner *sr;
s = search_suite();
sr = srunner_create(s);
srunner_run_all(sr, CK_NORMAL);
nfail = srunner_ntests_failed(sr);
srunner_free(sr);
return (nfail == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
| 20.394422 | 75 | 0.689197 |
85bf725f287d18b0ee1b3c415b4313e406fa1d0c | 10,969 | h | C | allocator/soa_executor.h | prg-titech/dynasoar | a4f956cd13160eb566e8a0caef6aad1e59c26da9 | [
"MIT"
] | 19 | 2019-03-01T10:12:20.000Z | 2021-07-22T10:00:10.000Z | allocator/soa_executor.h | prg-titech/dynasoar | a4f956cd13160eb566e8a0caef6aad1e59c26da9 | [
"MIT"
] | null | null | null | allocator/soa_executor.h | prg-titech/dynasoar | a4f956cd13160eb566e8a0caef6aad1e59c26da9 | [
"MIT"
] | 4 | 2019-09-22T00:34:06.000Z | 2021-06-20T13:45:03.000Z | #ifndef ALLOCATOR_SOA_EXECUTOR_H
#define ALLOCATOR_SOA_EXECUTOR_H
#include <chrono>
#include <limits>
#include "util/util.h"
/**
* For benchmarks: Measures time spent in parallel_do, but outside of CUDA
* kernels. Measures time in microseconds because numbers are small.
*/
long unsigned int bench_prefix_sum_time = 0;
/**
* For benchmarks: Measures the time spent in parallel_new.
*/
long unsigned int bench_parallel_new_time = 0;
/**
* Maximum representable 32-bit integer.
*/
static const int kMaxInt32 = std::numeric_limits<int>::max();
static const int kCudaBlockSize = 256;
/**
* A CUDA kernel that runs a method in parallel for all objects of a type.
* Method and type are specified as part of \p WrapperT.
* @tparam WrapperT Must be a template instantiation of
* ParallelExecutor::FunctionArgTypesWrapper::FunctionWrapper.
* @tparam AllocatorT Allocator type
* @tparam Args Type of arguments passed to method
* @param allocator Device allocator handle
* @param args Arguments passed to method
*/
template<typename WrapperT, typename AllocatorT, typename... Args>
__global__ static void kernel_parallel_do(AllocatorT* allocator, Args... args) {
// TODO: Check overhead of allocator pointer dereference.
// There is definitely a 2% overhead or so.....
WrapperT::parallel_do_cuda(allocator, args...);
}
// Run member function on allocator, then perform do-all operation.
/**
* Same as kernel_parallel_do(), but runs a member function of the allocator
* before running the actual parallel do-all.
* @tparam WrapperT Must be a template instantiation of
* ParallelExecutor::FunctionArgTypesWrapper::FunctionWrapper.
* @tparam AllocatorT Allocator type
* @tparam Args Type of arguments passed to method
* @tparam PreT A class that invoke the allocator member function
* @param allocator Device allocator handle
* @param args Arguments passed to method
*/
template<typename WrapperT, typename PreT,
typename AllocatorT, typename... Args>
__global__ static void kernel_parallel_do_with_pre(AllocatorT* allocator,
Args... args) {
// TODO: Check overhead of allocator pointer dereference.
// There is definitely a 2% overhead or so.....
PreT::run_pre(allocator, args...);
WrapperT::parallel_do_cuda(allocator, args...);
}
// Construct objects in parallel.
template<typename AllocatorT, typename T, typename... Args>
__global__ static void kernel_parallel_new(
AllocatorT* allocator, int num_objects, Args... args) {
// TODO: Implement an optimized make_new that allocates multiple objects
// at once.
for (int i = blockIdx.x * blockDim.x + threadIdx.x;
i < num_objects; i += blockDim.x * gridDim.x) {
allocator->template make_new<T>(i, args...);
}
}
template<typename AllocatorT, typename T, typename... Args>
void executor_parallel_new(AllocatorT* allocator, int num_objects,
Args... args) {
if (num_objects > 0) {
auto time_start = std::chrono::system_clock::now();
auto time_end = time_start;
kernel_parallel_new<AllocatorT, T, Args...>
<<<(num_objects + kCudaBlockSize - 1)/kCudaBlockSize,
kCudaBlockSize>>>(allocator, num_objects, args...);
gpuErrchk(cudaDeviceSynchronize());
time_end = std::chrono::system_clock::now();
auto elapsed = time_end - time_start;
auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(elapsed)
.count();
bench_parallel_new_time += millis;
}
}
/**
* A helper class for running a parallel do-all operation on all subtypes of a
* given base class. Internally, this helper class spawns a CUDA kernel for
* each subtype. The nested class ParallelDoTypeHelperL3 is a functor to be
* used with TupleHelper.
* @tparam Args Member function parameter types
*/
template<typename... Args>
struct ParallelDoTypeHelperL1 {
/**
* @tparam AllocatorT Allocator type
* @tparam BaseClass Base class
* @tparam func Member function to be run
* @tparam Scan Indicates if a scan operation should be run
*/
template<typename AllocatorT, class BaseClass,
void(BaseClass::*func)(Args...), bool Scan>
struct ParallelDoTypeHelperL2 {
// Iterating over all types T in the allocator.
template<typename IterT>
struct ParallelDoTypeHelperL3{
// IterT is a subclass of BaseClass. Check if same type.
template<bool Check, int Dummy>
struct ClassSelector {
static bool call(AllocatorT* allocator, Args...args) {
allocator->template parallel_do_single_type<
IterT, BaseClass, Args..., func, Scan>(
std::forward<Args>(args)...);
return true; // true means "continue processing".
}
};
// IterT is not a subclass of BaseClass. Skip.
template<int Dummy>
struct ClassSelector<false, Dummy> {
static bool call(AllocatorT* /*allocator*/, Args... /*args*/) {
return true;
}
};
bool operator()(AllocatorT* allocator, Args... args) {
return ClassSelector<std::is_base_of<BaseClass, IterT>::value, 0>
::call(allocator, std::forward<Args>(args)...);
}
};
};
};
template<bool Scan, typename AllocatorT, typename IterT, typename T>
struct ParallelExecutor {
using BlockHelperIterT = typename AllocatorT::template BlockHelper<IterT>;
static const int kTypeIndex = BlockHelperIterT::kIndex;
static const int kSize = BlockHelperIterT::kSize;
template<typename R, typename Base, typename... Args>
struct FunctionArgTypesWrapper {
template<R (Base::*func)(Args...)>
struct FunctionWrapper {
using ThisClass = FunctionWrapper<func>;
static void parallel_do(AllocatorT* allocator, int shared_mem_size,
Args... args) {
auto time_start = std::chrono::system_clock::now();
auto time_end = time_start;
if (Scan) {
// Initialize iteration: Perform scan operation on bitmap.
allocator->allocated_[kTypeIndex].scan();
}
// Determine number of CUDA threads.
auto* d_num_soa_blocks_ptr =
&allocator->allocated_[AllocatorT::template BlockHelper<IterT>::kIndex]
.data_.scan_data.enumeration_result_size;
auto num_soa_blocks = copy_from_device(d_num_soa_blocks_ptr);
if (num_soa_blocks > 0) {
member_func_kernel<AllocatorT,
&AllocatorT::template initialize_iteration<IterT>>
<<<(num_soa_blocks + kCudaBlockSize - 1)/kCudaBlockSize,
kCudaBlockSize>>>(allocator);
gpuErrchk(cudaDeviceSynchronize());
time_end = std::chrono::system_clock::now();
auto total_threads = num_soa_blocks * kSize;
kernel_parallel_do<ThisClass>
<<<(total_threads + kCudaBlockSize - 1)/kCudaBlockSize,
kCudaBlockSize,
shared_mem_size>>>(allocator, std::forward<Args>(args)...);
gpuErrchk(cudaDeviceSynchronize());
} else {
time_end = std::chrono::system_clock::now();
}
auto elapsed = time_end - time_start;
auto micros = std::chrono::duration_cast<std::chrono::microseconds>(elapsed)
.count();
bench_prefix_sum_time += micros;
}
template<void(AllocatorT::*pre_func)(Args...)>
struct WithPre {
using PreClass = WithPre<pre_func>;
static void parallel_do(AllocatorT* allocator, int shared_mem_size,
Args... args) {
auto time_start = std::chrono::system_clock::now();
auto time_end = time_start;
if (Scan) {
allocator->allocated_[kTypeIndex].scan();
}
// Determine number of CUDA threads.
auto* d_num_soa_blocks_ptr =
&allocator->allocated_[AllocatorT::template BlockHelper<IterT>::kIndex]
.data_.scan_data.enumeration_result_size;
auto num_soa_blocks = copy_from_device(d_num_soa_blocks_ptr);
if (num_soa_blocks > 0) {
member_func_kernel<AllocatorT,
&AllocatorT::template initialize_iteration<IterT>>
<<<(num_soa_blocks + kCudaBlockSize - 1)/kCudaBlockSize,
kCudaBlockSize>>>(allocator);
gpuErrchk(cudaDeviceSynchronize());
time_end = std::chrono::system_clock::now();
auto total_threads = num_soa_blocks * kSize;
kernel_parallel_do_with_pre<ThisClass, PreClass>
<<<(total_threads + kCudaBlockSize - 1)/kCudaBlockSize,
kCudaBlockSize,
shared_mem_size>>>(allocator, std::forward<Args>(args)...);
gpuErrchk(cudaDeviceSynchronize());
} else {
time_end = std::chrono::system_clock::now();
}
auto elapsed = time_end - time_start;
auto micros = std::chrono::duration_cast<std::chrono::microseconds>(elapsed)
.count();
bench_prefix_sum_time += micros;
}
__device__ static void run_pre(AllocatorT* allocator, Args... args) {
(allocator->*pre_func)(std::forward<Args>(args)...);
}
};
static __device__ void parallel_do_cuda(AllocatorT* allocator,
Args... args) {
const auto N_alloc =
allocator->allocated_[kTypeIndex].scan_num_bits();
// Round to multiple of kSize.
int num_threads = ((blockDim.x * gridDim.x)/kSize)*kSize;
int tid = blockIdx.x * blockDim.x + threadIdx.x;
if (tid < num_threads) {
for (int j = tid/kSize; j < N_alloc; j += num_threads/kSize) {
// i is the index of in the scan array.
auto block_idx = allocator->allocated_[kTypeIndex].scan_get_index(j);
assert(block_idx <= kMaxInt32/64);
// TODO: Consider doing a scan over "allocated" bitmap.
auto* block = allocator->template get_block<IterT>(block_idx);
const auto& iteration_bitmap = block->iteration_bitmap;
int thread_offset = tid % kSize;
if ((iteration_bitmap & (1ULL << thread_offset)) != 0ULL) {
IterT* obj = allocator->template get_object<IterT>(
block, thread_offset);
// call the function.
(obj->*func)(std::forward<Args>(args)...);
}
}
}
}
};
};
};
template<typename T, typename F, typename AllocatorT, typename... Args>
struct SequentialExecutor {
// Defined in soa_allocator.h.
__host__ __device__ static void device_do(BlockIndexT block_idx, F func,
AllocatorT* allocator,
Args... args);
};
#endif // ALLOCATOR_SOA_EXECUTOR_H
| 37.694158 | 86 | 0.636703 |
0ba3e8943b4e0f5d5f77e019a4f842900a7745b8 | 1,758 | js | JavaScript | zip.js | yamad/js | 3e7b0dbb7f538636fb40f805a27d75d0a2493fed | [
"MIT"
] | null | null | null | zip.js | yamad/js | 3e7b0dbb7f538636fb40f805a27d75d0a2493fed | [
"MIT"
] | null | null | null | zip.js | yamad/js | 3e7b0dbb7f538636fb40f805a27d75d0a2493fed | [
"MIT"
] | null | null | null | const { min } = require('./utils')
// basic zip as generator
// assumes all inputs are arrays
function* zip_gen(...arrs) {
if (arrs.length === 0) return;
const minlen = Math.min(...arrs.map(a => a.length));
for (let i = 0; i < minlen; i++)
yield arrs.map(a => a[i]);
}
// zip generator, takes any iterable
function* zip_iterables(...iterables) {
if (iterables.length === 0) return;
const iters = iterables.map(a => a[Symbol.iterator]());
while (true) {
const nexts = iters.map(a => a.next());
const dones = nexts.map(a => a.done);
if (dones.some(d => d === true))
return;
yield nexts.map(a => a.value)
}
}
// zip 2 iterables
// loop by recursive tail call
function zip_tc(a, b, acc = []) {
if (a.length === 0 || b.length === 0)
return acc;
const [x, ...xs] = a;
const [y, ...ys] = b;
return zip_tc(xs, ys, acc.concat([[x, y]]));
}
// zip n iterables
// looping by recursive tail call
function zip_ntc(...args) {
function zip_iter(iters, acc) {
if (iters.some(x => x.length === 0))
return acc;
const heads = iters.map(x => x[0]);
const rests = iters.map(x => x.slice(1));
return zip_iter(rests, [...acc, heads]);
}
if (args.length === 0) return [];
return zip_iter(args, []);
}
function zip_delegatemin(...arrs) {
const shortest = min(arrs, x => x.length, []);
const vals_at = i => arrs.map(x => x[i]);
return shortest.map((_, i) => vals_at(i));
}
// zip array of keys and array of values into an object
function zip_object(keys, values) {
const obj = {};
for (const [key, val] of zip_iterables(keys, values))
obj[key] = val;
return obj;
}
const zip = zip_iterables;
module.exports = {
zip,
zip_delegatemin,
zip_iterables,
zip_gen,
zip_tc,
zip_ntc,
zip_object
}
| 21.439024 | 57 | 0.608646 |
4b5332dfe3f74d129439477883839a2ab84c6647 | 449 | sql | SQL | modules/module-data-passenger/src/main/resources/sql/migration/passenger/V32__update_audit_columns.sql | UKHomeOffice/passenger | a304c6c601dd67999c4cc9e9bf4d9c760bc5110c | [
"MIT"
] | null | null | null | modules/module-data-passenger/src/main/resources/sql/migration/passenger/V32__update_audit_columns.sql | UKHomeOffice/passenger | a304c6c601dd67999c4cc9e9bf4d9c760bc5110c | [
"MIT"
] | null | null | null | modules/module-data-passenger/src/main/resources/sql/migration/passenger/V32__update_audit_columns.sql | UKHomeOffice/passenger | a304c6c601dd67999c4cc9e9bf4d9c760bc5110c | [
"MIT"
] | 1 | 2021-04-11T09:23:42.000Z | 2021-04-11T09:23:42.000Z | ALTER TABLE audit DROP COLUMN team;
ALTER TABLE audit DROP COLUMN uri;
ALTER TABLE audit ADD COLUMN passenger_email VARCHAR (254) NULL;
ALTER TABLE audit ADD COLUMN passenger_passport_no VARCHAR (20) NULL;
ALTER TABLE audit ADD COLUMN passenger_name VARCHAR (254) NULL;
CREATE INDEX idx_pass_email ON audit (passenger_email);
CREATE INDEX idx_pass_passport_no ON audit (passenger_passport_no);
CREATE INDEX idx_pass_name ON audit (passenger_name); | 44.9 | 69 | 0.826281 |
e520f846c27b2b91cdeb827012095e80f21e32f2 | 6,900 | lua | Lua | PiroGame/Scene.lua | pirogronian/Catapult | 0cf6fb830a969448cdc8b4f8cf5b00f5a91d8690 | [
"Unlicense"
] | null | null | null | PiroGame/Scene.lua | pirogronian/Catapult | 0cf6fb830a969448cdc8b4f8cf5b00f5a91d8690 | [
"Unlicense"
] | null | null | null | PiroGame/Scene.lua | pirogronian/Catapult | 0cf6fb830a969448cdc8b4f8cf5b00f5a91d8690 | [
"Unlicense"
] | null | null | null |
local args = ...;
local scene = args.PiroGame.class('Scene');
function scene:initialize(eventManager, world, gravity)
self.transform = {};
self.objects = {};
self.drawn = {};
self.updated = {};
self.transform.scale = 1;
self.transform.x = 0;
self.transform.y = 0;
self.move = { x = 0; y = 0; }
if world ~= nil and world == true then
if gravity == nil then
gravity = { x = 0, y = 0 };
end
self.world = love.physics.newWorld(gravity.x, gravity.y, true);
self.world:setCallbacks(self.beginContact, nil, nil, self.postSolve);
love.physics.setMeter(48);
end
if eventManager ~= nil then
self.eventManager = eventManager;
else
self.eventManager = args.PiroGame.EventManager:new();
end
end
function scene:getWidth()
if self.leftLimit ~= nil and self.rightLimit ~= nil then
return self.rightLimit - self.leftLimit;
else
return nil;
end
end
function scene:getHeight()
if self.topLimit ~= nil and self.bottomLimit ~= nil then
return self.bottomLimit - self.topLimit;
else
return nil;
end
end
function scene:adjustShift()
local x = self.transform.x;
local y = self.transform.y;
local wx, wy = love.window.getMode();
local sw = self:getWidth();
if sw ~= nil and sw / self.transform.scale < wx then
x = (wx - self.transform.scale * (self.leftLimit + self.rightLimit)) / 2;
else
if self.rightLimit ~= nil and wx - self.rightLimit / self.transform.scale > x then
x = wx - self.rightLimit * self.transform.scale;
end
if self.leftLimit ~= nil and -self.leftLimit / self.transform.scale < x then
x = - self.leftLimit / self.transform.scale;
end
end
self.transform.x = x;
local sh = self:getHeight();
if sh ~= nil and sh / self.transform.scale < wy then
y = (wy - self.transform.scale * (self.topLimit + self.bottomLimit)) / 2;
else
if self.bottomtLimit ~= nil and wy - self.bottomLimit / self.transform.scale > y then
y = wy - self.bottomtLimit / self.transform.scale;
end
if self.topLimit ~= nil and - self.topLimit / self.transform.scale < y then
y = - self.topLimit / self.transform.scale;
end
end
self.transform.y = y;
end
function scene:shift(dx, dy)
self:setShift(self.transform.x + dx / self.transform.scale, self.transform.y + dy / self.transform.scale);
end
function scene:setShift(x, y)
self.transform.x = x;
self.transform.y = y;
-- self:adjustShift();
end
function scene:scale(s, x, y)
local s2 = self.transform.scale + s;
local ps = self.transform.scale;
if s2 <= 0 then
return;
end
if x == nil then
x = 0;
end
if y == nil then
y = 0;
end
local rx = (x * ps + self.transform.x) / ps;
local mx = - rx * s + self.transform.x;
local ry = (y * ps + self.transform.y) / ps;
local my = - ry * s + self.transform.y;
self.transform.scale = s2;
self.transform.x = mx;
self.transform.y = my;
end
function scene:scalePhysics(s)
love.physics.setMeter(s);
if (self.gravity ~= nil) then
xg, yg = self.world:getGravity();
self.world:setGravity(xg * s, yg * s);
end
end
function scene:addEntity(item)
-- print('Scene:addEntity', item, item.id);
item.scene = self;
self.objects[item] = item;
if type(item.draw) == 'function' then
self.drawn[item.id] = item;
end
if type(item.update) == 'function' then
self.updated[item.id] = item;
end
-- print('Scene: entity added:', item, item.scene);
if type(item.activate) == 'function' then
item:activate();
end
end
function scene:removeEntity(item)
-- print('remove entity:', item, item.id);
if type(item.draw) == 'function' then
self.drawn[item.id] = nil;
end
if type(item.update) == 'function' then
self.updated[item.id] = nil;
end
if type(item.deactivate) == 'function' then
item:deactivate();
end
self.objects[item] = nil;
item.scene = nil;
-- print('Entity removed:', item, item.id, item.x, item.y);
end
function scene:hasEntity(entity)
if self.drawn[entity.id] ~= nil or self.updated[entity.id] then return true; end
return false;
end
function scene:getEntity(id)
if self.drawn[id] ~= nil then
return self.drawn[id];
end
if self.updated[id] ~= nil then
return self.updated[id];
end
end
function scene.beginContact(fix1, fix2, cont)
entity1 = fix1:getBody():getUserData();
entity2 = fix2:getBody():getUserData();
-- print('Collision between', entity1, 'and', entity2);
if type(entity1.beginContact) == 'function' then
entity1:beginContact(entity2, cont);
end
if type(entity2.beginContact) == 'function' then
entity2:beginContact(entity1, cont);
end
end
function scene.postSolve(fix1, fix2, cont, ni1, ti1, ni2, ti2)
e1 = fix1:getBody():getUserData();
e2 = fix2:getBody():getUserData();
-- print('postSolve:', e1, e1.id, e2, e2.id);
if ni1 == nil then ni1 = 0; end
if ni2 == nil then ni2 = 0; end
if ti1 == nil then ti1 = 0; end
if ti2 == nil then ti2 = 0; end
if ni1 < 0 then ni1 = -ni1; end
if ni2 < 0 then ni2 = -ni2; end
if ti1 < 0 then ti1 = -ti1; end
if ti2 < 0 then ti2 = -ti2; end
ni = ni1 + ni2;
ti = ti1 + ti2;
if e1.scene ~= nil and type(e1.impulses) == 'function' then
e1:impulses(ni, ti);
end
if e2.scene ~= nil and type(e2.impulses) == 'function' then
e2:impulses(ni, ti);
end
-- print('postSolve: done');
end
function scene:load(def)
if type(def.Bodies) == 'table' then
for _, b in pairs(def.Bodies) do
self:addEntity(b);
end
end
end
function scene:update(dt)
if self.world ~= nil then
self.world:update(dt);
end
for _, i in pairs(self.updated) do
--print('Update entity', i);
if (self.rightLimit ~= nil and i.x > self.rightLimit) or
(self.leftLimit ~=nil and i.x < self.leftLimit) or
(self.topLimit ~=nil and i.y < self.topLimit) or
(self.bottomLimit ~=nil and i.y > self.bottomLimit) then
self:removeEntity(i)
else
i:update(dt);
end
end
end
function scene:draw()
love.graphics.push();
love.graphics.scale(self.transform.scale);
love.graphics.translate(self.transform.x, self.transform.y);
for _,i in pairs(self.drawn) do
i:draw();
end
love.graphics.pop();
end
function scene:clear()
local objs = {};
for k, o in pairs(self.objects) do
objs[k] = o;
end
for _, o in pairs(objs) do
self:removeEntity(o);
end
end
return scene;
| 26.744186 | 110 | 0.598551 |
d939ca10acaa187c4288d4c72072f7a59f96d012 | 914 | kt | Kotlin | backend/src/main/kotlin/com/utopia/backend/posts/web/assembler/PostToEntityModelAssembler.kt | PlebPool/wesweb-term-exam | 3f7541db7d16697565b5489c8c1bfe4052793ed1 | [
"MIT"
] | null | null | null | backend/src/main/kotlin/com/utopia/backend/posts/web/assembler/PostToEntityModelAssembler.kt | PlebPool/wesweb-term-exam | 3f7541db7d16697565b5489c8c1bfe4052793ed1 | [
"MIT"
] | null | null | null | backend/src/main/kotlin/com/utopia/backend/posts/web/assembler/PostToEntityModelAssembler.kt | PlebPool/wesweb-term-exam | 3f7541db7d16697565b5489c8c1bfe4052793ed1 | [
"MIT"
] | null | null | null | //package com.utopia.backend.posts.web.assembler
//
//import com.utopia.backend.posts.model.post.Post
//import com.utopia.backend.posts.web.PostController
//import org.slf4j.LoggerFactory
//import org.springframework.hateoas.EntityModel
//import org.springframework.hateoas.server.mvc.WebMvcLinkBuilder
//import org.springframework.stereotype.Service
//
//@Deprecated("Use EntityModelAssembler instead")
//@Service
//class PostToEntityModelAssembler {
// init {
// LoggerFactory.getLogger(this::class.java.name).info(this::class.java.name)
// }
// fun assemble(post: Post): EntityModel<Post> {
// return EntityModel.of(post,
// WebMvcLinkBuilder.linkTo(WebMvcLinkBuilder.methodOn(PostController::class.java).getOne(post.id)).withSelfRel(),
// WebMvcLinkBuilder.linkTo(WebMvcLinkBuilder.methodOn(PostController::class.java).getAll()).withRel("post"))
// }
//} | 43.52381 | 129 | 0.73523 |
5d0332d8ba27d946dfbf95221eeaf3c8d17e93e9 | 419 | sql | SQL | literature/earthDB/band_metadata.sql | mshahriarinia/neonDSR | 1fbb1938637cd3b2b510874b2062c66063e57ad2 | [
"Apache-2.0"
] | 2 | 2016-12-17T17:00:16.000Z | 2021-03-28T14:28:35.000Z | literature/earthDB/band_metadata.sql | mshahriarinia/neonDSR | 1fbb1938637cd3b2b510874b2062c66063e57ad2 | [
"Apache-2.0"
] | null | null | null | literature/earthDB/band_metadata.sql | mshahriarinia/neonDSR | 1fbb1938637cd3b2b510874b2062c66063e57ad2 | [
"Apache-2.0"
] | 5 | 2017-12-13T13:57:49.000Z | 2021-01-28T01:36:28.000Z | CREATE IMMUTABLE EMPTY ARRAY band_metadata
<
radiance_scale : double,
radiance_offset : float,
reflectance_scale : double,
reflectance_offset : float,
corrected_counts_scale : double,
corrected_counts_offset : float,
specified_uncertainty : float,
uncertainty_scaling_factor : float
>
[
start_time = 199900000000 : 201400000000, 1, 0,
platform_id = 0 : 1, 1, 0,
resolution_id = 0 : 2, 1, 0,
band_id = 0 : 37, 38, 0
];
| 22.052632 | 47 | 0.75895 |
3946d8e46e7a53198cb1ae76973abc0808fb3d42 | 7,787 | xhtml | HTML | Codigo/Sie/WebContent/area.xhtml | mcur1097/ProyectoSIE | e856d4a20ad2fa104ea9d7ef4db012d19e544d8b | [
"Apache-2.0"
] | null | null | null | Codigo/Sie/WebContent/area.xhtml | mcur1097/ProyectoSIE | e856d4a20ad2fa104ea9d7ef4db012d19e544d8b | [
"Apache-2.0"
] | null | null | null | Codigo/Sie/WebContent/area.xhtml | mcur1097/ProyectoSIE | e856d4a20ad2fa104ea9d7ef4db012d19e544d8b | [
"Apache-2.0"
] | null | null | null | <!DOCTYPE html>
<html lang="es" xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:jsf="http://xmlns.jcp.org/jsf"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<head jsf:id="head">
<meta charset="utf-8" />
<title>Area</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet" />
<link type="text/css" rel="stylesheet"
href="resources/css/materialize.min.css" media="screen,projection" />
<link type="text/css" rel="stylesheet" href="resources/css/estilos.css" />
<link rel="stylesheet" type="text/css" href="resources/css/font-awesome.css"></link>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, user-scalable=no"/>
<meta http-equiv="X-UA-Conpatible" content="IE=edge" />
</head>
<body>
<div id="modal1" class="modal">
<h:form class="container">
<div class="modal-content">
<div class="container center-align "><H4>Registrar area</H4></div>
<div class="row">
<div class="row">
<div class="input-field">
<label for="nombre">Nombre o numero</label>
<p></p>
<input placeholder="" id="nombre" type="text" class="validate" jsf:value="#{tablaArea.miArea.nombreArea}"/>
</div>
</div>
<div class="row">
<div class="input-field">
<label for="descripcion">Descripcion</label>
<p></p>
<input placeholder="" id="descripcion" type="text" class="validate" jsf:value="#{tablaArea.miArea.descripcion}"/>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a jsf:action="#{tablaArea.agregarArea()}" class="modal-action modal-close waves-effect waves-green btn-flat teal lighten-1 white-text">Registrar</a>
</div>
</h:form>
</div>
<div class="row">
<div class="menu col s2">
<div id="scale-demo" class="card-panel white lighten-1 z-depth-5" >
<div class="container ">
<div class="valign-wrapper"><a href="menuPrincipal.html" class=" accent-4 black-text"><img src="resources/css/S.I.E.jpg" /></a></div>
</div>
<a href="" class=" accent-4 black-text"><div class="valign-wrapper"><i class="medium material-icons push-s4 black-text">home</i>
<H6 class="right-align black-text">Inicio</H6> </div> </a>
<a href="" class=" accent-4 black-text"><div class="valign-wrapper"><i class="medium material-icons push-s4 black-text">account_box</i>
<H6 class="right-align black-text">Usuarios</H6></div></a>
<a href="area.jsf" class=" accent-4 black-text"><div class="valign-wrapper"><i class="medium material-icons push-s4 black-text">account_balance</i>
<H6 class="right-align black-text">Areas</H6> </div> </a>
<a href="" class=" accent-4 black-text"><div class="valign-wrapper"><i class="logobien medium material-icons push-s4 black-text">weekend</i>
<H6 class="right-align black-text">Bienes</H6></div></a>
<a href="consultas.jsf" class=" accent-4 black-text"><div class="valign-wrapper"><i class="medium material-icons push-s4 black-text">search</i>
<H6 class="right-align black-text">Consultas</H6> </div> </a>
<a href="" class=" accent-4 black-text"><div class="valign-wrapper"><i class="medium material-icons push-s4 black-text">content_paste</i>
<H6 class="right-align black-text">Toma fisica</H6></div></a>
<a href="" class=" accent-4 black-text"><div class="valign-wrapper"><i class="medium material-icons push-s4 black-text">assignment</i>
<H6 class="right-align black-text">Generar Novedades</H6></div></a>
<a href="" class=" accent-4 black-text"><div class="valign-wrapper"><i class="medium material-icons push-s4 black-text">assignment_turned_in</i>
<H6 class="right-align black-text">Informes</H6> </div> </a>
</div>
</div>
<div class="container col l12 s12">
<div class="barra" style=""><img class="barra" src="resources/css/barra.png "/>
<div class=" darken-1 lightghten-1 right-align">
<div class="logousuario">
<a href="login.html"><i class="medium material-icons white-text">reply_all</i>
<div class="salida white-text"><p>Salir</p></div>
</a>
</div>
<div class="nombreusuario white-text">
<p><H5>Liliana Orrego</H5></p>
</div>
</div>
</div>
</div>
<div class="tabla card panel col s10 offset-s2 z-depth-5"><H3>Areas<hr/></H3>
<h:form>
<div class="">
<a class="rigistrar waves-effect waves-light btn modal-trigger col s3 push-s9" href="#modal1">Registrar Area<i class="material-icons right">add</i></a>
</div>
</h:form>
<h:form>
<h:outputLabel value="#{tablaArea.msjDB}" />
<div class="container col s12">
<div class="tabla" style="height: 480px; overflow: auto;">
<h:dataTable class="striped centered responsive-table z-depth-5" value="#{tablaArea.listaArea}" var="datos" >
<h:column>
<f:facet name="header" >
<h:outputLabel class="fijo" value="Codigo" />
</f:facet>
<h:outputLabel value="#{datos.idArea}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputLabel class="fijo" value="Nombre o numero"/>
</f:facet>
<h:inputText value="#{datos.nombreArea}" rendered="#{datos.editar}" />
<h:outputLabel value="#{datos.nombreArea}" rendered="#{not datos.editar}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputLabel class="fijo" value="Descripcion"/>
</f:facet>
<h:inputText value="#{datos.descripcion}" rendered="#{datos.editar}" />
<h:outputLabel value="#{datos.descripcion}" rendered="#{not datos.editar}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputLabel class="fijo" value="Acciones"/>
</f:facet>
<h:commandLink action="#{tablaArea.editarArea(datos)}" aria-hidden="true" rendered="#{not datos.editar}"><i class="material-icons s12">create</i></h:commandLink>
<h:commandLink action="#{tablaArea.guardarArea(datos)}" aria-hidden="true" rendered="#{datos.editar}"><i class="material-icons s12">save</i></h:commandLink>
<h:commandLink action="#{tablaArea.eliminarArea(datos)}" aria-hidden="true"><i class="material-icons s12">delete</i></h:commandLink>
</h:column>
</h:dataTable>
</div>
</div>
</h:form>
</div>
</div>
<script type="text/javascript" src="resources/js/jquery.js"></script>
<script type="text/javascript" src="resources/js/materialize.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('select').material_select();
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$('.modal').modal();
});
</script>
<script type="text/javascript" id="mensage">var $toastContent = $('<span>I am toast content</span>'));
Materialize.toast($toastContent, 10000);</script>
<script type="text/javascript" src="resources/js/gridviewscroll.js"></script>
<script type="text/javascript">
var gridViewScroll = null;
window.onload = function () {
gridViewScroll = new GridViewScroll({
elementID: "gvMain",
width: 850,
height: 350,
freezeColumn: true,
freezeFooter: true,
freezeColumnCssClass: "GridViewScrollItemFreeze",
freezeFooterCssClass: "GridViewScrollFooterFreeze",
freezeHeaderRowCount: 2,
freezeColumnCount: 3
});
gridViewScroll.enhance();
}
</script>
</body>
</html> | 41.641711 | 161 | 0.61821 |
0b4afb977af41e7750f169c98501350be4fa6ae6 | 247 | py | Python | app/db/connection.py | melhin/streamchat | 8a3e7ffdcf4bc84045df71259556f4267a755351 | [
"MIT"
] | null | null | null | app/db/connection.py | melhin/streamchat | 8a3e7ffdcf4bc84045df71259556f4267a755351 | [
"MIT"
] | 3 | 2020-09-16T13:30:17.000Z | 2020-09-19T09:56:50.000Z | app/db/connection.py | melhin/streamchat | 8a3e7ffdcf4bc84045df71259556f4267a755351 | [
"MIT"
] | null | null | null | import logging
import aioredis
from app.core.config import REDIS_DSN, REDIS_PASSWORD
logger = logging.getLogger(__name__)
async def get_redis_pool():
return await aioredis.create_redis(REDIS_DSN, encoding='utf-8', password=REDIS_PASSWORD)
| 22.454545 | 92 | 0.805668 |
cb35f4c6f508f04896933c13e6c5b6cd3e42eca5 | 3,186 | go | Go | internal/nhctl/app/const.go | mouuii/nocalhost | 2151c49a23df94c76403dca216198c86402324bb | [
"Apache-2.0"
] | null | null | null | internal/nhctl/app/const.go | mouuii/nocalhost | 2151c49a23df94c76403dca216198c86402324bb | [
"Apache-2.0"
] | null | null | null | internal/nhctl/app/const.go | mouuii/nocalhost | 2151c49a23df94c76403dca216198c86402324bb | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
* This source code is licensed under the Apache License Version 2.0.
*/
package app
import "time"
const (
DefaultSecretGenSign = "secreted"
DefaultApplicationConfigPath = ".config.yaml"
DefaultApplicationConfigV2Path = ".config_v2.yaml"
DefaultGitNocalhostDir = ".nocalhost" // DefaultApplicationConfigDirName
DefaultConfigNameInGitNocalhostDir = "config.yaml"
DefaultNewFilePermission = 0700
DefaultConfigFilePermission = 0644
DefaultClientGoTimeOut = time.Minute * 5
// nhctl init
// TODO when release
DefaultInitHelmGitRepo = "https://github.com/nocalhost/nocalhost.git"
DefaultInitHelmCODINGGitRepo = "https://e.coding.net/codingcorp/nocalhost/nocalhost.git"
DefaultInitHelmType = "helmGit"
DefaultInitWatchDeployment = "nocalhost-api"
DefaultInitWatchWebDeployment = "nocalhost-web"
DefaultInitNocalhostService = "nocalhost-web"
DefaultInitInstallApplicationName = "nocalhost"
DefaultInitUserEmail = "foo@nocalhost.dev"
DefaultInitMiniKubePortForwardPort = 31219
DefaultInitPassword = "123456"
DefaultInitAdminUserName = "admin@admin.com"
DefaultInitAdminPassWord = "123456"
DefaultInitName = "Nocalhost"
DefaultInitWaitNameSpace = "nocalhost-reserved"
DefaultInitCreateNameSpaceLabels = "nocalhost-init"
DefaultInitWaitDeployment = "nocalhost-dep"
// TODO when release
DefaultInitHelmResourcePath = "deployments/chart"
DefaultInitPortForwardTimeOut = time.Minute * 1
DefaultInitApplicationGithub = "{\"source\":\"git\",\"install_type\":\"rawManifest\"," +
"\"resource_dir\":[\"manifest/templates\"],\"application_name\":\"bookinfo\"," +
"\"application_url\":\"https://github.com/nocalhost/bookinfo.git\"}"
DefaultInitApplicationHelm = "{\"source\":\"git\",\"install_type\":\"helm_chart\"," +
"\"application_url\":\"git@github.com:nocalhost/bookinfo.git\"," +
"\"application_config_path\":\"config.helm.yaml\",\"application_name\":" +
"\"bookinfo-helm\",\"resource_dir\":[]}"
DefaultInitApplicationKustomize = "{\"source\":\"git\",\"install_type\":\"kustomize\"," +
"\"application_name\":\"bookinfo-kustomize\",\"application_url\":" +
"\"git@github.com:nocalhost/bookinfo.git\",\"application_config_path\"" +
":\"config.kustomize.yaml\",\"resource_dir\":[]}"
DefaultInitApplicationCODING = "{\"source\":\"git\",\"install_type\":" +
"\"rawManifest\",\"resource_dir\":[\"manifest/templates\"],\"application_name\"" +
":\"bookinfo\",\"application_url\":" +
"\"https://e.coding.net/codingcorp/nocalhost/bookinfo.git\"}"
// Init Component Version Control, HEAD means build from tag
DefaultNocalhostMainBranch = "HEAD"
DefaultNocalhostDepDockerRegistry = "codingcorp-docker.pkg.coding.net/nocalhost/public/nocalhost-dep"
DefaultDevContainerShell = "(zsh || bash || sh)"
DependenceConfigMapPrefix = "nocalhost-depends-do-not-overwrite"
// Port-forward
PortForwardManual = "manual"
PortForwardDevPorts = "devPorts"
)
| 46.852941 | 102 | 0.69774 |
b89ae26366ca488ad8b1f3f2623189ac4c2ce3d4 | 1,032 | html | HTML | manuscript/page-1143/body.html | marvindanig/the-mysteries-of-udolpho | 5a143f37e9daf1f112c0c9df7190998a5683b4b6 | [
"BlueOak-1.0.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | manuscript/page-1143/body.html | marvindanig/the-mysteries-of-udolpho | 5a143f37e9daf1f112c0c9df7190998a5683b4b6 | [
"BlueOak-1.0.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | manuscript/page-1143/body.html | marvindanig/the-mysteries-of-udolpho | 5a143f37e9daf1f112c0c9df7190998a5683b4b6 | [
"BlueOak-1.0.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | <div class="leaf flex"><div class="inner justify"><p>Emily looked displeased, and made no reply. As she mused upon the recollected appearance, which had lately so much alarmed her, and considered the circumstances of the figure having stationed itself opposite to her casement, she was for a moment inclined to believe it was Valancourt, whom she had seen. Yet, if it was he, why did he not speak to her, when he had the opportunity of doing so—and, if he was a prisoner in the castle, and he could be here in no other character, how could he obtain the means of walking abroad on the rampart? Thus she was utterly unable to decide, whether the musician and the form she had observed, were the same, or, if they were, whether this was Valancourt. She, however, desired that Annette would endeavour to learn whether any prisoners were in the castle, and also their names.</p><p class=" stretch-last-line ">“O dear, ma’amselle!” said Annette, “I forget to tell you what you bade me ask about, the ladies, as they call</p></div> </div> | 1,032 | 1,032 | 0.76938 |
90c80961e450a59e274fbb3d48c6ccffdaf5f988 | 2,498 | py | Python | ClassesDao.py | Fiona-600/Data-Representation-Project | bbafcf1123a371a541f9bcfc7a10548f3d0745d7 | [
"MIT"
] | null | null | null | ClassesDao.py | Fiona-600/Data-Representation-Project | bbafcf1123a371a541f9bcfc7a10548f3d0745d7 | [
"MIT"
] | null | null | null | ClassesDao.py | Fiona-600/Data-Representation-Project | bbafcf1123a371a541f9bcfc7a10548f3d0745d7 | [
"MIT"
] | null | null | null | import mysql.connector
from mysql.connector import cursor
class ClassesDao:
db = ""
def __init__(self):
self.db = mysql.connector.connect(
host = 'localhost',
user= 'root',
password = 'root',
database ='classtimetable'
)
def create(self, Classes):
cursor = self.db.cursor()
sql = "insert into Classes (Class_ID, Class_Name, Day, Time, Max_Participants,Trainer) values (%s,%s,%s,%s,%s,%s)"
values = [
Classes["Class_ID"],
Classes["Class_Name"],
Classes["Day"],
Classes["Time"],
Classes["Max_Participants"],
Classes["Trainer"]
]
cursor.execute(sql, values)
self.db.commit()
def getAll(self):
cursor = self.db.cursor()
sql = 'select * from Classes order by Day,Time'
cursor.execute(sql)
results = cursor.fetchall()
returnArray = []
for result in results:
resultAsDict = self.convertToDict(result)
returnArray.append(resultAsDict)
return returnArray
def findById(self, Class_ID):
cursor = self.db.cursor()
sql = 'select * from Classes where Class_ID = %s'
values = [Class_ID]
cursor.execute(sql, values)
result = cursor.fetchone()
return self.convertToDict(result)
def update(self, Classes):
cursor = self.db.cursor()
sql = "UPDATE Classes SET Class_Name = %s, Day=%s, Time=%s, Max_Participants=%s, Trainer=%s where Class_ID = %s"
values = [
Classes["Class_Name"],
Classes["Day"],
Classes["Time"],
Classes["Max_Participants"],
Classes["Trainer"],
Classes["Class_ID"],
]
cursor.execute(sql, values)
self.db.commit()
return Classes
def delete(self, Class_ID):
cursor = self.db.cursor()
sql = "DELETE FROM Classes WHERE Class_ID = %s"
values = [Class_ID]
cursor.execute(sql, values)
self.db.commit()
return {}
def convertToDict(self, result):
colnames = ["Class_ID", "Class_Name", "Day", "Time", "Max_Participants", "Trainer"]
Classes = {}
if result:
for i , colName in enumerate(colnames):
value = result[i]
Classes[colName] = value
return Classes
classesDao = ClassesDao()
| 28.386364 | 122 | 0.544836 |
dd7ac072f40084985a0253641feb2dad5e466589 | 1,061 | php | PHP | Http/Controllers/Api/V2/WalletController.php | opeshamz/miraweb | 3c0e83f4f221feca31d365de9b745878fe6f323b | [
"MIT"
] | null | null | null | Http/Controllers/Api/V2/WalletController.php | opeshamz/miraweb | 3c0e83f4f221feca31d365de9b745878fe6f323b | [
"MIT"
] | null | null | null | Http/Controllers/Api/V2/WalletController.php | opeshamz/miraweb | 3c0e83f4f221feca31d365de9b745878fe6f323b | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers\Api\V2;
use App\Http\Resources\V2\WalletCollection;
use App\User;
use App\Wallet;
use Illuminate\Http\Request;
class WalletController extends Controller
{
public function balance($id)
{
$user = User::find($id);
return response()->json([
'balance' => $user->balance
]);
}
public function walletRechargeHistory($id)
{
return new WalletCollection(Wallet::where('user_id', $id)->latest()->get());
}
public function processPayment(Request $request)
{
$order = new OrderController;
$user = User::find($request->user_id);
if ($user->balance >= $request->grand_total) {
$user->balance -= $request->grand_total;
$user->save();
return $order->processOrder($request);
}
else {
return response()->json([
'success' => false,
'message' => 'The order was not completed becuase the paymeent is invalid'
]);
}
}
}
| 24.113636 | 90 | 0.565504 |
438ab126052e767943db1099672c05335f9b5969 | 2,308 | go | Go | vendor/github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/loganalytics/parse/log_analytics_linked_service.go | santos1709/installer | 6855d4b04cf15265d16cd52e7ac625d29929edb2 | [
"Apache-2.0"
] | 1,369 | 2018-06-08T15:15:34.000Z | 2022-03-31T11:58:28.000Z | vendor/github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/loganalytics/parse/log_analytics_linked_service.go | santos1709/installer | 6855d4b04cf15265d16cd52e7ac625d29929edb2 | [
"Apache-2.0"
] | 5,738 | 2018-06-08T19:17:30.000Z | 2022-03-31T23:54:17.000Z | vendor/github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/loganalytics/parse/log_analytics_linked_service.go | santos1709/installer | 6855d4b04cf15265d16cd52e7ac625d29929edb2 | [
"Apache-2.0"
] | 1,247 | 2018-06-08T17:05:33.000Z | 2022-03-31T19:34:43.000Z | package parse
// NOTE: this file is generated via 'go:generate' - manual changes will be overwritten
import (
"fmt"
"strings"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure"
)
type LogAnalyticsLinkedServiceId struct {
SubscriptionId string
ResourceGroup string
WorkspaceName string
LinkedServiceName string
}
func NewLogAnalyticsLinkedServiceID(subscriptionId, resourceGroup, workspaceName, linkedServiceName string) LogAnalyticsLinkedServiceId {
return LogAnalyticsLinkedServiceId{
SubscriptionId: subscriptionId,
ResourceGroup: resourceGroup,
WorkspaceName: workspaceName,
LinkedServiceName: linkedServiceName,
}
}
func (id LogAnalyticsLinkedServiceId) String() string {
segments := []string{
fmt.Sprintf("Linked Service Name %q", id.LinkedServiceName),
fmt.Sprintf("Workspace Name %q", id.WorkspaceName),
fmt.Sprintf("Resource Group %q", id.ResourceGroup),
}
segmentsStr := strings.Join(segments, " / ")
return fmt.Sprintf("%s: (%s)", "Log Analytics Linked Service", segmentsStr)
}
func (id LogAnalyticsLinkedServiceId) ID() string {
fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.OperationalInsights/workspaces/%s/linkedServices/%s"
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.WorkspaceName, id.LinkedServiceName)
}
// LogAnalyticsLinkedServiceID parses a LogAnalyticsLinkedService ID into an LogAnalyticsLinkedServiceId struct
func LogAnalyticsLinkedServiceID(input string) (*LogAnalyticsLinkedServiceId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
return nil, err
}
resourceId := LogAnalyticsLinkedServiceId{
SubscriptionId: id.SubscriptionID,
ResourceGroup: id.ResourceGroup,
}
if resourceId.SubscriptionId == "" {
return nil, fmt.Errorf("ID was missing the 'subscriptions' element")
}
if resourceId.ResourceGroup == "" {
return nil, fmt.Errorf("ID was missing the 'resourceGroups' element")
}
if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil {
return nil, err
}
if resourceId.LinkedServiceName, err = id.PopSegment("linkedServices"); err != nil {
return nil, err
}
if err := id.ValidateNoEmptySegments(input); err != nil {
return nil, err
}
return &resourceId, nil
}
| 30.368421 | 137 | 0.758666 |
7b987e9f832a6f631732182f6e020927b94d9ca0 | 405,365 | rb | Ruby | src/cesium_ion/thirdparty/aws-sdk-kms.rb | CesiumGS/cesium-ion-sketchup-extension | 0bfe89f40b38cf5cc3ab1702a0330583f33ebcf7 | [
"Apache-2.0"
] | 2 | 2020-11-15T08:51:00.000Z | 2021-03-25T02:04:01.000Z | src/cesium_ion/thirdparty/aws-sdk-kms.rb | AnalyticalGraphicsInc/ion-sketchup-exporter | 0bfe89f40b38cf5cc3ab1702a0330583f33ebcf7 | [
"Apache-2.0"
] | 11 | 2019-05-08T14:17:52.000Z | 2019-06-11T16:19:32.000Z | src/cesium_ion/thirdparty/aws-sdk-kms.rb | AnalyticalGraphicsInc/ion-sketchup-exporter | 0bfe89f40b38cf5cc3ab1702a0330583f33ebcf7 | [
"Apache-2.0"
] | 2 | 2021-06-07T07:27:10.000Z | 2021-11-03T12:43:57.000Z | # WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE
require_relative 'aws-sdk-core'
require_relative 'aws-sigv4'
module Cesium::IonExporter
module Aws::KMS
module Types
# Contains information about an alias.
#
# @!attribute [rw] alias_name
# String that contains the alias. This value begins with `alias/`.
# @return [String]
#
# @!attribute [rw] alias_arn
# String that contains the key ARN.
# @return [String]
#
# @!attribute [rw] target_key_id
# String that contains the key identifier referred to by the alias.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/AliasListEntry AWS API Documentation
#
class AliasListEntry < Struct.new(
:alias_name,
:alias_arn,
:target_key_id)
include Aws::Structure
end
# The request was rejected because it attempted to create a resource
# that already exists.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/AlreadyExistsException AWS API Documentation
#
class AlreadyExistsException < Struct.new(
:message)
include Aws::Structure
end
# @note When making an API call, you may pass CancelKeyDeletionRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# }
#
# @!attribute [rw] key_id
# The unique identifier for the customer master key (CMK) for which to
# cancel deletion.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletionRequest AWS API Documentation
#
class CancelKeyDeletionRequest < Struct.new(
:key_id)
include Aws::Structure
end
# @!attribute [rw] key_id
# The unique identifier of the master key for which deletion is
# canceled.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletionResponse AWS API Documentation
#
class CancelKeyDeletionResponse < Struct.new(
:key_id)
include Aws::Structure
end
# The request was rejected because the specified AWS CloudHSM cluster is
# already associated with a custom key store or it shares a backup
# history with a cluster that is associated with a custom key store.
# Each custom key store must be associated with a different AWS CloudHSM
# cluster.
#
# Clusters that share a backup history have the same cluster
# certificate. To view the cluster certificate of a cluster, use the
# [DescribeClusters][1] operation.
#
#
#
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CloudHsmClusterInUseException AWS API Documentation
#
class CloudHsmClusterInUseException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the associated AWS CloudHSM cluster
# did not meet the configuration requirements for a custom key store.
#
# * The cluster must be configured with private subnets in at least two
# different Availability Zones in the Region.
#
# * The [security group for the cluster][1]
# (cloudhsm-cluster-*<cluster-id>*-sg) must include inbound
# rules and outbound rules that allow TCP traffic on ports 2223-2225.
# The **Source** in the inbound rules and the **Destination** in the
# outbound rules must match the security group ID. These rules are set
# by default when you create the cluster. Do not delete or change
# them. To get information about a particular security group, use the
# [DescribeSecurityGroups][2] operation.
#
# * The cluster must contain at least as many HSMs as the operation
# requires. To add HSMs, use the AWS CloudHSM [CreateHsm][3]
# operation.
#
# For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey
# operations, the AWS CloudHSM cluster must have at least two active
# HSMs, each in a different Availability Zone. For the
# ConnectCustomKeyStore operation, the AWS CloudHSM must contain at
# least one active HSM.
#
# For information about the requirements for an AWS CloudHSM cluster
# that is associated with a custom key store, see [Assemble the
# Prerequisites][4] in the *AWS Key Management Service Developer Guide*.
# For information about creating a private subnet for an AWS CloudHSM
# cluster, see [Create a Private Subnet][5] in the *AWS CloudHSM User
# Guide*. For information about cluster security groups, see [Configure
# a Default Security Group][1] in the <i> <i>AWS CloudHSM User Guide</i>
# </i>.
#
#
#
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html
# [3]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html
# [4]: https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore
# [5]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CloudHsmClusterInvalidConfigurationException AWS API Documentation
#
class CloudHsmClusterInvalidConfigurationException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the AWS CloudHSM cluster that is
# associated with the custom key store is not active. Initialize and
# activate the cluster and try the command again. For detailed
# instructions, see [Getting Started][1] in the *AWS CloudHSM User
# Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CloudHsmClusterNotActiveException AWS API Documentation
#
class CloudHsmClusterNotActiveException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because AWS KMS cannot find the AWS CloudHSM
# cluster with the specified cluster ID. Retry the request with a
# different cluster ID.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CloudHsmClusterNotFoundException AWS API Documentation
#
class CloudHsmClusterNotFoundException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the specified AWS CloudHSM cluster
# has a different cluster certificate than the original cluster. You
# cannot use the operation to specify an unrelated cluster.
#
# Specify a cluster that shares a backup history with the original
# cluster. This includes clusters that were created from a backup of the
# current cluster, and clusters that were created from the same backup
# that produced the current cluster.
#
# Clusters that share a backup history have the same cluster
# certificate. To view the cluster certificate of a cluster, use the
# [DescribeClusters][1] operation.
#
#
#
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CloudHsmClusterNotRelatedException AWS API Documentation
#
class CloudHsmClusterNotRelatedException < Struct.new(
:message)
include Aws::Structure
end
# @note When making an API call, you may pass ConnectCustomKeyStoreRequest
# data as a hash:
#
# {
# custom_key_store_id: "CustomKeyStoreIdType", # required
# }
#
# @!attribute [rw] custom_key_store_id
# Enter the key store ID of the custom key store that you want to
# connect. To find the ID of a custom key store, use the
# DescribeCustomKeyStores operation.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ConnectCustomKeyStoreRequest AWS API Documentation
#
class ConnectCustomKeyStoreRequest < Struct.new(
:custom_key_store_id)
include Aws::Structure
end
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ConnectCustomKeyStoreResponse AWS API Documentation
#
class ConnectCustomKeyStoreResponse < Aws::EmptyStructure; end
# @note When making an API call, you may pass CreateAliasRequest
# data as a hash:
#
# {
# alias_name: "AliasNameType", # required
# target_key_id: "KeyIdType", # required
# }
#
# @!attribute [rw] alias_name
# Specifies the alias name. This value must begin with `alias/`
# followed by a name, such as `alias/ExampleAlias`. The alias name
# cannot begin with `alias/aws/`. The `alias/aws/` prefix is reserved
# for AWS managed CMKs.
# @return [String]
#
# @!attribute [rw] target_key_id
# Identifies the CMK to which the alias refers. Specify the key ID or
# the Amazon Resource Name (ARN) of the CMK. You cannot specify
# another alias. For help finding the key ID and ARN, see [Finding the
# Key ID and ARN][1] in the *AWS Key Management Service Developer
# Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html#find-cmk-id-arn
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAliasRequest AWS API Documentation
#
class CreateAliasRequest < Struct.new(
:alias_name,
:target_key_id)
include Aws::Structure
end
# @note When making an API call, you may pass CreateCustomKeyStoreRequest
# data as a hash:
#
# {
# custom_key_store_name: "CustomKeyStoreNameType", # required
# cloud_hsm_cluster_id: "CloudHsmClusterIdType", # required
# trust_anchor_certificate: "TrustAnchorCertificateType", # required
# key_store_password: "KeyStorePasswordType", # required
# }
#
# @!attribute [rw] custom_key_store_name
# Specifies a friendly name for the custom key store. The name must be
# unique in your AWS account.
# @return [String]
#
# @!attribute [rw] cloud_hsm_cluster_id
# Identifies the AWS CloudHSM cluster for the custom key store. Enter
# the cluster ID of any active AWS CloudHSM cluster that is not
# already associated with a custom key store. To find the cluster ID,
# use the [DescribeClusters][1] operation.
#
#
#
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html
# @return [String]
#
# @!attribute [rw] trust_anchor_certificate
# Enter the content of the trust anchor certificate for the cluster.
# This is the content of the `customerCA.crt` file that you created
# when you [initialized the cluster][1].
#
#
#
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html
# @return [String]
#
# @!attribute [rw] key_store_password
# Enter the password of the [ `kmsuser` crypto user (CU) account][1]
# in the specified AWS CloudHSM cluster. AWS KMS logs into the cluster
# as this user to manage key material on your behalf.
#
# This parameter tells AWS KMS the `kmsuser` account password; it does
# not change the password in the AWS CloudHSM cluster.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateCustomKeyStoreRequest AWS API Documentation
#
class CreateCustomKeyStoreRequest < Struct.new(
:custom_key_store_name,
:cloud_hsm_cluster_id,
:trust_anchor_certificate,
:key_store_password)
include Aws::Structure
end
# @!attribute [rw] custom_key_store_id
# A unique identifier for the new custom key store.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateCustomKeyStoreResponse AWS API Documentation
#
class CreateCustomKeyStoreResponse < Struct.new(
:custom_key_store_id)
include Aws::Structure
end
# @note When making an API call, you may pass CreateGrantRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# grantee_principal: "PrincipalIdType", # required
# retiring_principal: "PrincipalIdType",
# operations: ["Decrypt"], # required, accepts Decrypt, Encrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintext, ReEncryptFrom, ReEncryptTo, CreateGrant, RetireGrant, DescribeKey
# constraints: {
# encryption_context_subset: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# encryption_context_equals: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# },
# grant_tokens: ["GrantTokenType"],
# name: "GrantNameType",
# }
#
# @!attribute [rw] key_id
# The unique identifier for the customer master key (CMK) that the
# grant applies to.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To
# specify a CMK in a different AWS account, you must use the key ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] grantee_principal
# The principal that is given permission to perform the operations
# that the grant permits.
#
# To specify the principal, use the [Amazon Resource Name (ARN)][1] of
# an AWS principal. Valid AWS principals include AWS accounts (root),
# IAM users, IAM roles, federated users, and assumed role users. For
# examples of the ARN syntax to use for specifying a principal, see
# [AWS Identity and Access Management (IAM)][2] in the Example ARNs
# section of the *AWS General Reference*.
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
# [2]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam
# @return [String]
#
# @!attribute [rw] retiring_principal
# The principal that is given permission to retire the grant by using
# RetireGrant operation.
#
# To specify the principal, use the [Amazon Resource Name (ARN)][1] of
# an AWS principal. Valid AWS principals include AWS accounts (root),
# IAM users, federated users, and assumed role users. For examples of
# the ARN syntax to use for specifying a principal, see [AWS Identity
# and Access Management (IAM)][2] in the Example ARNs section of the
# *AWS General Reference*.
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
# [2]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam
# @return [String]
#
# @!attribute [rw] operations
# A list of operations that the grant permits.
# @return [Array<String>]
#
# @!attribute [rw] constraints
# Allows a cryptographic operation only when the encryption context
# matches or includes the encryption context specified in this
# structure. For more information about encryption context, see
# [Encryption Context][1] in the <i> <i>AWS Key Management Service
# Developer Guide</i> </i>.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
# @return [Types::GrantConstraints]
#
# @!attribute [rw] grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
# @return [Array<String>]
#
# @!attribute [rw] name
# A friendly name for identifying the grant. Use this value to prevent
# the unintended creation of duplicate grants when retrying this
# request.
#
# When this value is absent, all `CreateGrant` requests result in a
# new grant with a unique `GrantId` even if all the supplied
# parameters are identical. This can result in unintended duplicates
# when you retry the `CreateGrant` request.
#
# When this value is present, you can retry a `CreateGrant` request
# with identical parameters; if the grant already exists, the original
# `GrantId` is returned without creating a new grant. Note that the
# returned grant token is unique with every `CreateGrant` request,
# even when a duplicate `GrantId` is returned. All grant tokens
# obtained in this way can be used interchangeably.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrantRequest AWS API Documentation
#
class CreateGrantRequest < Struct.new(
:key_id,
:grantee_principal,
:retiring_principal,
:operations,
:constraints,
:grant_tokens,
:name)
include Aws::Structure
end
# @!attribute [rw] grant_token
# The grant token.
#
# For more information, see [Grant Tokens][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
# @return [String]
#
# @!attribute [rw] grant_id
# The unique identifier for the grant.
#
# You can use the `GrantId` in a subsequent RetireGrant or RevokeGrant
# operation.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrantResponse AWS API Documentation
#
class CreateGrantResponse < Struct.new(
:grant_token,
:grant_id)
include Aws::Structure
end
# @note When making an API call, you may pass CreateKeyRequest
# data as a hash:
#
# {
# policy: "PolicyType",
# description: "DescriptionType",
# key_usage: "ENCRYPT_DECRYPT", # accepts ENCRYPT_DECRYPT
# origin: "AWS_KMS", # accepts AWS_KMS, EXTERNAL, AWS_CLOUDHSM
# custom_key_store_id: "CustomKeyStoreIdType",
# bypass_policy_lockout_safety_check: false,
# tags: [
# {
# tag_key: "TagKeyType", # required
# tag_value: "TagValueType", # required
# },
# ],
# }
#
# @!attribute [rw] policy
# The key policy to attach to the CMK.
#
# If you provide a key policy, it must meet the following criteria:
#
# * If you don't set `BypassPolicyLockoutSafetyCheck` to true, the
# key policy must allow the principal that is making the `CreateKey`
# request to make a subsequent PutKeyPolicy request on the CMK. This
# reduces the risk that the CMK becomes unmanageable. For more
# information, refer to the scenario in the [Default Key Policy][1]
# section of the <i> <i>AWS Key Management Service Developer
# Guide</i> </i>.
#
# * Each statement in the key policy must contain one or more
# principals. The principals in the key policy must exist and be
# visible to AWS KMS. When you create a new AWS principal (for
# example, an IAM user or role), you might need to enforce a delay
# before including the new principal in a key policy because the new
# principal might not be immediately visible to AWS KMS. For more
# information, see [Changes that I make are not always immediately
# visible][2] in the *AWS Identity and Access Management User
# Guide*.
#
# If you do not provide a key policy, AWS KMS attaches a default key
# policy to the CMK. For more information, see [Default Key Policy][3]
# in the *AWS Key Management Service Developer Guide*.
#
# The key policy size limit is 32 kilobytes (32768 bytes).
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency
# [3]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default
# @return [String]
#
# @!attribute [rw] description
# A description of the CMK.
#
# Use a description that helps you decide whether the CMK is
# appropriate for a task.
# @return [String]
#
# @!attribute [rw] key_usage
# The cryptographic operations for which you can use the CMK. The only
# valid value is `ENCRYPT_DECRYPT`, which means you can use the CMK to
# encrypt and decrypt data.
# @return [String]
#
# @!attribute [rw] origin
# The source of the key material for the CMK. You cannot change the
# origin after you create the CMK.
#
# The default is `AWS_KMS`, which means AWS KMS creates the key
# material in its own key store.
#
# When the parameter value is `EXTERNAL`, AWS KMS creates a CMK
# without key material so that you can import key material from your
# existing key management infrastructure. For more information about
# importing key material into AWS KMS, see [Importing Key Material][1]
# in the *AWS Key Management Service Developer Guide*.
#
# When the parameter value is `AWS_CLOUDHSM`, AWS KMS creates the CMK
# in an AWS KMS [custom key store][2] and creates its key material in
# the associated AWS CloudHSM cluster. You must also use the
# `CustomKeyStoreId` parameter to identify the custom key store.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# @return [String]
#
# @!attribute [rw] custom_key_store_id
# Creates the CMK in the specified [custom key store][1] and the key
# material in its associated AWS CloudHSM cluster. To create a CMK in
# a custom key store, you must also specify the `Origin` parameter
# with a value of `AWS_CLOUDHSM`. The AWS CloudHSM cluster that is
# associated with the custom key store must have at least two active
# HSMs, each in a different Availability Zone in the Region.
#
# To find the ID of a custom key store, use the
# DescribeCustomKeyStores operation.
#
# The response includes the custom key store ID and the ID of the AWS
# CloudHSM cluster.
#
# This operation is part of the [Custom Key Store feature][1] feature
# in AWS KMS, which combines the convenience and extensive integration
# of AWS KMS with the isolation and control of a single-tenant key
# store.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# @return [String]
#
# @!attribute [rw] bypass_policy_lockout_safety_check
# A flag to indicate whether to bypass the key policy lockout safety
# check.
#
# Setting this value to true increases the risk that the CMK becomes
# unmanageable. Do not set this value to true indiscriminately.
#
# For more information, refer to the scenario in the [Default Key
# Policy][1] section in the <i> <i>AWS Key Management Service
# Developer Guide</i> </i>.
#
# Use this parameter only when you include a policy in the request and
# you intend to prevent the principal that is making the request from
# making a subsequent PutKeyPolicy request on the CMK.
#
# The default value is false.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam
# @return [Boolean]
#
# @!attribute [rw] tags
# One or more tags. Each tag consists of a tag key and a tag value.
# Tag keys and tag values are both required, but tag values can be
# empty (null) strings.
#
# Use this parameter to tag the CMK when it is created. Alternately,
# you can omit this parameter and instead tag the CMK after it is
# created using TagResource.
# @return [Array<Types::Tag>]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKeyRequest AWS API Documentation
#
class CreateKeyRequest < Struct.new(
:policy,
:description,
:key_usage,
:origin,
:custom_key_store_id,
:bypass_policy_lockout_safety_check,
:tags)
include Aws::Structure
end
# @!attribute [rw] key_metadata
# Metadata associated with the CMK.
# @return [Types::KeyMetadata]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKeyResponse AWS API Documentation
#
class CreateKeyResponse < Struct.new(
:key_metadata)
include Aws::Structure
end
# The request was rejected because the custom key store contains AWS KMS
# customer master keys (CMKs). After verifying that you do not need to
# use the CMKs, use the ScheduleKeyDeletion operation to delete the
# CMKs. After they are deleted, you can delete the custom key store.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CustomKeyStoreHasCMKsException AWS API Documentation
#
class CustomKeyStoreHasCMKsException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because of the `ConnectionState` of the
# custom key store. To get the `ConnectionState` of a custom key store,
# use the DescribeCustomKeyStores operation.
#
# This exception is thrown under the following conditions:
#
# * You requested the CreateKey or GenerateRandom operation in a custom
# key store that is not connected. These operations are valid only
# when the custom key store `ConnectionState` is `CONNECTED`.
#
# * You requested the UpdateCustomKeyStore or DeleteCustomKeyStore
# operation on a custom key store that is not disconnected. This
# operation is valid only when the custom key store `ConnectionState`
# is `DISCONNECTED`.
#
# * You requested the ConnectCustomKeyStore operation on a custom key
# store with a `ConnectionState` of `DISCONNECTING` or `FAILED`. This
# operation is valid for all other `ConnectionState` values.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CustomKeyStoreInvalidStateException AWS API Documentation
#
class CustomKeyStoreInvalidStateException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the specified custom key store name
# is already assigned to another custom key store in the account. Try
# again with a custom key store name that is unique in the account.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CustomKeyStoreNameInUseException AWS API Documentation
#
class CustomKeyStoreNameInUseException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because AWS KMS cannot find a custom key
# store with the specified key store name or ID.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CustomKeyStoreNotFoundException AWS API Documentation
#
class CustomKeyStoreNotFoundException < Struct.new(
:message)
include Aws::Structure
end
# Contains information about each custom key store in the custom key
# store list.
#
# @!attribute [rw] custom_key_store_id
# A unique identifier for the custom key store.
# @return [String]
#
# @!attribute [rw] custom_key_store_name
# The user-specified friendly name for the custom key store.
# @return [String]
#
# @!attribute [rw] cloud_hsm_cluster_id
# A unique identifier for the AWS CloudHSM cluster that is associated
# with the custom key store.
# @return [String]
#
# @!attribute [rw] trust_anchor_certificate
# The trust anchor certificate of the associated AWS CloudHSM cluster.
# When you [initialize the cluster][1], you create this certificate
# and save it in the `customerCA.crt` file.
#
#
#
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr
# @return [String]
#
# @!attribute [rw] connection_state
# Indicates whether the custom key store is connected to its AWS
# CloudHSM cluster.
#
# You can create and use CMKs in your custom key stores only when its
# connection state is `CONNECTED`.
#
# The value is `DISCONNECTED` if the key store has never been
# connected or you use the DisconnectCustomKeyStore operation to
# disconnect it. If the value is `CONNECTED` but you are having
# trouble using the custom key store, make sure that its associated
# AWS CloudHSM cluster is active and contains at least one active HSM.
#
# A value of `FAILED` indicates that an attempt to connect was
# unsuccessful. For help resolving a connection failure, see
# [Troubleshooting a Custom Key Store][1] in the *AWS Key Management
# Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html
# @return [String]
#
# @!attribute [rw] connection_error_code
# Describes the connection error. Valid values are:
#
# * `CLUSTER_NOT_FOUND` - AWS KMS cannot find the AWS CloudHSM cluster
# with the specified cluster ID.
#
# * `INSUFFICIENT_CLOUDHSM_HSMS` - The associated AWS CloudHSM cluster
# does not contain any active HSMs. To connect a custom key store to
# its AWS CloudHSM cluster, the cluster must contain at least one
# active HSM.
#
# * `INTERNAL_ERROR` - AWS KMS could not complete the request due to
# an internal error. Retry the request. For `ConnectCustomKeyStore`
# requests, disconnect the custom key store before trying to connect
# again.
#
# * `INVALID_CREDENTIALS` - AWS KMS does not have the correct password
# for the `kmsuser` crypto user in the AWS CloudHSM cluster.
#
# * `NETWORK_ERRORS` - Network errors are preventing AWS KMS from
# connecting to the custom key store.
#
# * `USER_LOCKED_OUT` - The `kmsuser` CU account is locked out of the
# associated AWS CloudHSM cluster due to too many failed password
# attempts. Before you can connect your custom key store to its AWS
# CloudHSM cluster, you must change the `kmsuser` account password
# and update the password value for the custom key store.
#
# For help with connection failures, see [Troubleshooting Custom Key
# Stores][1] in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html
# @return [String]
#
# @!attribute [rw] creation_date
# The date and time when the custom key store was created.
# @return [Time]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CustomKeyStoresListEntry AWS API Documentation
#
class CustomKeyStoresListEntry < Struct.new(
:custom_key_store_id,
:custom_key_store_name,
:cloud_hsm_cluster_id,
:trust_anchor_certificate,
:connection_state,
:connection_error_code,
:creation_date)
include Aws::Structure
end
# @note When making an API call, you may pass DecryptRequest
# data as a hash:
#
# {
# ciphertext_blob: "data", # required
# encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# grant_tokens: ["GrantTokenType"],
# }
#
# @!attribute [rw] ciphertext_blob
# Ciphertext to be decrypted. The blob includes metadata.
# @return [String]
#
# @!attribute [rw] encryption_context
# The encryption context. If this was specified in the Encrypt
# function, it must be specified here or the decryption operation will
# fail. For more information, see [Encryption Context][1].
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
# @return [Hash<String,String>]
#
# @!attribute [rw] grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
# @return [Array<String>]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DecryptRequest AWS API Documentation
#
class DecryptRequest < Struct.new(
:ciphertext_blob,
:encryption_context,
:grant_tokens)
include Aws::Structure
end
# @!attribute [rw] key_id
# ARN of the key used to perform the decryption. This value is
# returned if no errors are encountered during the operation.
# @return [String]
#
# @!attribute [rw] plaintext
# Decrypted plaintext data. When you use the HTTP API or the AWS CLI,
# the value is Base64-encoded. Otherwise, it is not encoded.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DecryptResponse AWS API Documentation
#
class DecryptResponse < Struct.new(
:key_id,
:plaintext)
include Aws::Structure
end
# @note When making an API call, you may pass DeleteAliasRequest
# data as a hash:
#
# {
# alias_name: "AliasNameType", # required
# }
#
# @!attribute [rw] alias_name
# The alias to be deleted. The alias name must begin with `alias/`
# followed by the alias name, such as `alias/ExampleAlias`.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAliasRequest AWS API Documentation
#
class DeleteAliasRequest < Struct.new(
:alias_name)
include Aws::Structure
end
# @note When making an API call, you may pass DeleteCustomKeyStoreRequest
# data as a hash:
#
# {
# custom_key_store_id: "CustomKeyStoreIdType", # required
# }
#
# @!attribute [rw] custom_key_store_id
# Enter the ID of the custom key store you want to delete. To find the
# ID of a custom key store, use the DescribeCustomKeyStores operation.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteCustomKeyStoreRequest AWS API Documentation
#
class DeleteCustomKeyStoreRequest < Struct.new(
:custom_key_store_id)
include Aws::Structure
end
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteCustomKeyStoreResponse AWS API Documentation
#
class DeleteCustomKeyStoreResponse < Aws::EmptyStructure; end
# @note When making an API call, you may pass DeleteImportedKeyMaterialRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# }
#
# @!attribute [rw] key_id
# Identifies the CMK from which you are deleting imported key
# material. The `Origin` of the CMK must be `EXTERNAL`.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterialRequest AWS API Documentation
#
class DeleteImportedKeyMaterialRequest < Struct.new(
:key_id)
include Aws::Structure
end
# The system timed out while trying to fulfill the request. The request
# can be retried.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DependencyTimeoutException AWS API Documentation
#
class DependencyTimeoutException < Struct.new(
:message)
include Aws::Structure
end
# @note When making an API call, you may pass DescribeCustomKeyStoresRequest
# data as a hash:
#
# {
# custom_key_store_id: "CustomKeyStoreIdType",
# custom_key_store_name: "CustomKeyStoreNameType",
# limit: 1,
# marker: "MarkerType",
# }
#
# @!attribute [rw] custom_key_store_id
# Gets only information about the specified custom key store. Enter
# the key store ID.
#
# By default, this operation gets information about all custom key
# stores in the account and region. To limit the output to a
# particular custom key store, you can use either the
# `CustomKeyStoreId` or `CustomKeyStoreName` parameter, but not both.
# @return [String]
#
# @!attribute [rw] custom_key_store_name
# Gets only information about the specified custom key store. Enter
# the friendly name of the custom key store.
#
# By default, this operation gets information about all custom key
# stores in the account and region. To limit the output to a
# particular custom key store, you can use either the
# `CustomKeyStoreId` or `CustomKeyStoreName` parameter, but not both.
# @return [String]
#
# @!attribute [rw] limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
# @return [Integer]
#
# @!attribute [rw] marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStoresRequest AWS API Documentation
#
class DescribeCustomKeyStoresRequest < Struct.new(
:custom_key_store_id,
:custom_key_store_name,
:limit,
:marker)
include Aws::Structure
end
# @!attribute [rw] custom_key_stores
# Contains metadata about each custom key store.
# @return [Array<Types::CustomKeyStoresListEntry>]
#
# @!attribute [rw] next_marker
# When `Truncated` is true, this element is present and contains the
# value to use for the `Marker` parameter in a subsequent request.
# @return [String]
#
# @!attribute [rw] truncated
# A flag that indicates whether there are more items in the list. When
# this value is true, the list in this response is truncated. To get
# more items, pass the value of the `NextMarker` element in
# thisresponse to the `Marker` parameter in a subsequent request.
# @return [Boolean]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStoresResponse AWS API Documentation
#
class DescribeCustomKeyStoresResponse < Struct.new(
:custom_key_stores,
:next_marker,
:truncated)
include Aws::Structure
end
# @note When making an API call, you may pass DescribeKeyRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# grant_tokens: ["GrantTokenType"],
# }
#
# @!attribute [rw] key_id
# Describes the specified customer master key (CMK).
#
# If you specify a predefined AWS alias (an AWS alias with no key ID),
# KMS associates the alias with an [AWS managed CMK][1] and returns
# its `KeyId` and `Arn` in the response.
#
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
# name, or alias ARN. When using an alias name, prefix it with
# `"alias/"`. To specify a CMK in a different AWS account, you must
# use the key ARN or alias ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Alias name: `alias/ExampleAlias`
#
# * Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey. To get the alias name and alias ARN, use ListAliases.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys
# @return [String]
#
# @!attribute [rw] grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
# @return [Array<String>]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKeyRequest AWS API Documentation
#
class DescribeKeyRequest < Struct.new(
:key_id,
:grant_tokens)
include Aws::Structure
end
# @!attribute [rw] key_metadata
# Metadata associated with the key.
# @return [Types::KeyMetadata]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKeyResponse AWS API Documentation
#
class DescribeKeyResponse < Struct.new(
:key_metadata)
include Aws::Structure
end
# @note When making an API call, you may pass DisableKeyRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRequest AWS API Documentation
#
class DisableKeyRequest < Struct.new(
:key_id)
include Aws::Structure
end
# @note When making an API call, you may pass DisableKeyRotationRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotationRequest AWS API Documentation
#
class DisableKeyRotationRequest < Struct.new(
:key_id)
include Aws::Structure
end
# The request was rejected because the specified CMK is not enabled.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisabledException AWS API Documentation
#
class DisabledException < Struct.new(
:message)
include Aws::Structure
end
# @note When making an API call, you may pass DisconnectCustomKeyStoreRequest
# data as a hash:
#
# {
# custom_key_store_id: "CustomKeyStoreIdType", # required
# }
#
# @!attribute [rw] custom_key_store_id
# Enter the ID of the custom key store you want to disconnect. To find
# the ID of a custom key store, use the DescribeCustomKeyStores
# operation.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisconnectCustomKeyStoreRequest AWS API Documentation
#
class DisconnectCustomKeyStoreRequest < Struct.new(
:custom_key_store_id)
include Aws::Structure
end
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisconnectCustomKeyStoreResponse AWS API Documentation
#
class DisconnectCustomKeyStoreResponse < Aws::EmptyStructure; end
# @note When making an API call, you may pass EnableKeyRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRequest AWS API Documentation
#
class EnableKeyRequest < Struct.new(
:key_id)
include Aws::Structure
end
# @note When making an API call, you may pass EnableKeyRotationRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotationRequest AWS API Documentation
#
class EnableKeyRotationRequest < Struct.new(
:key_id)
include Aws::Structure
end
# @note When making an API call, you may pass EncryptRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# plaintext: "data", # required
# encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# grant_tokens: ["GrantTokenType"],
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
# name, or alias ARN. When using an alias name, prefix it with
# `"alias/"`. To specify a CMK in a different AWS account, you must
# use the key ARN or alias ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Alias name: `alias/ExampleAlias`
#
# * Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey. To get the alias name and alias ARN, use ListAliases.
# @return [String]
#
# @!attribute [rw] plaintext
# Data to be encrypted.
# @return [String]
#
# @!attribute [rw] encryption_context
# Name-value pair that specifies the encryption context to be used for
# authenticated encryption. If used here, the same value must be
# supplied to the `Decrypt` API or decryption will fail. For more
# information, see [Encryption Context][1].
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
# @return [Hash<String,String>]
#
# @!attribute [rw] grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
# @return [Array<String>]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EncryptRequest AWS API Documentation
#
class EncryptRequest < Struct.new(
:key_id,
:plaintext,
:encryption_context,
:grant_tokens)
include Aws::Structure
end
# @!attribute [rw] ciphertext_blob
# The encrypted plaintext. When you use the HTTP API or the AWS CLI,
# the value is Base64-encoded. Otherwise, it is not encoded.
# @return [String]
#
# @!attribute [rw] key_id
# The ID of the key used during encryption.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EncryptResponse AWS API Documentation
#
class EncryptResponse < Struct.new(
:ciphertext_blob,
:key_id)
include Aws::Structure
end
# The request was rejected because the provided import token is expired.
# Use GetParametersForImport to get a new import token and public key,
# use the new public key to encrypt the key material, and then try the
# request again.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ExpiredImportTokenException AWS API Documentation
#
class ExpiredImportTokenException < Struct.new(
:message)
include Aws::Structure
end
# @note When making an API call, you may pass GenerateDataKeyRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# number_of_bytes: 1,
# key_spec: "AES_256", # accepts AES_256, AES_128
# grant_tokens: ["GrantTokenType"],
# }
#
# @!attribute [rw] key_id
# An identifier for the CMK that encrypts the data key.
#
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
# name, or alias ARN. When using an alias name, prefix it with
# `"alias/"`. To specify a CMK in a different AWS account, you must
# use the key ARN or alias ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Alias name: `alias/ExampleAlias`
#
# * Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey. To get the alias name and alias ARN, use ListAliases.
# @return [String]
#
# @!attribute [rw] encryption_context
# A set of key-value pairs that represents additional authenticated
# data.
#
# For more information, see [Encryption Context][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
# @return [Hash<String,String>]
#
# @!attribute [rw] number_of_bytes
# The length of the data key in bytes. For example, use the value 64
# to generate a 512-bit data key (64 bytes is 512 bits). For common
# key lengths (128-bit and 256-bit symmetric keys), we recommend that
# you use the `KeySpec` field instead of this one.
# @return [Integer]
#
# @!attribute [rw] key_spec
# The length of the data key. Use `AES_128` to generate a 128-bit
# symmetric key, or `AES_256` to generate a 256-bit symmetric key.
# @return [String]
#
# @!attribute [rw] grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
# @return [Array<String>]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyRequest AWS API Documentation
#
class GenerateDataKeyRequest < Struct.new(
:key_id,
:encryption_context,
:number_of_bytes,
:key_spec,
:grant_tokens)
include Aws::Structure
end
# @!attribute [rw] ciphertext_blob
# The encrypted copy of the data key. When you use the HTTP API or the
# AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded.
# @return [String]
#
# @!attribute [rw] plaintext
# The plaintext data key. When you use the HTTP API or the AWS CLI,
# the value is Base64-encoded. Otherwise, it is not encoded. Use this
# data key to encrypt your data outside of KMS. Then, remove it from
# memory as soon as possible.
# @return [String]
#
# @!attribute [rw] key_id
# The identifier of the CMK that encrypted the data key.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyResponse AWS API Documentation
#
class GenerateDataKeyResponse < Struct.new(
:ciphertext_blob,
:plaintext,
:key_id)
include Aws::Structure
end
# @note When making an API call, you may pass GenerateDataKeyWithoutPlaintextRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# key_spec: "AES_256", # accepts AES_256, AES_128
# number_of_bytes: 1,
# grant_tokens: ["GrantTokenType"],
# }
#
# @!attribute [rw] key_id
# The identifier of the customer master key (CMK) that encrypts the
# data key.
#
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
# name, or alias ARN. When using an alias name, prefix it with
# `"alias/"`. To specify a CMK in a different AWS account, you must
# use the key ARN or alias ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Alias name: `alias/ExampleAlias`
#
# * Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey. To get the alias name and alias ARN, use ListAliases.
# @return [String]
#
# @!attribute [rw] encryption_context
# A set of key-value pairs that represents additional authenticated
# data.
#
# For more information, see [Encryption Context][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
# @return [Hash<String,String>]
#
# @!attribute [rw] key_spec
# The length of the data key. Use `AES_128` to generate a 128-bit
# symmetric key, or `AES_256` to generate a 256-bit symmetric key.
# @return [String]
#
# @!attribute [rw] number_of_bytes
# The length of the data key in bytes. For example, use the value 64
# to generate a 512-bit data key (64 bytes is 512 bits). For common
# key lengths (128-bit and 256-bit symmetric keys), we recommend that
# you use the `KeySpec` field instead of this one.
# @return [Integer]
#
# @!attribute [rw] grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
# @return [Array<String>]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintextRequest AWS API Documentation
#
class GenerateDataKeyWithoutPlaintextRequest < Struct.new(
:key_id,
:encryption_context,
:key_spec,
:number_of_bytes,
:grant_tokens)
include Aws::Structure
end
# @!attribute [rw] ciphertext_blob
# The encrypted data key. When you use the HTTP API or the AWS CLI,
# the value is Base64-encoded. Otherwise, it is not encoded.
# @return [String]
#
# @!attribute [rw] key_id
# The identifier of the CMK that encrypted the data key.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintextResponse AWS API Documentation
#
class GenerateDataKeyWithoutPlaintextResponse < Struct.new(
:ciphertext_blob,
:key_id)
include Aws::Structure
end
# @note When making an API call, you may pass GenerateRandomRequest
# data as a hash:
#
# {
# number_of_bytes: 1,
# custom_key_store_id: "CustomKeyStoreIdType",
# }
#
# @!attribute [rw] number_of_bytes
# The length of the byte string.
# @return [Integer]
#
# @!attribute [rw] custom_key_store_id
# Generates the random byte string in the AWS CloudHSM cluster that is
# associated with the specified [custom key store][1]. To find the ID
# of a custom key store, use the DescribeCustomKeyStores operation.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandomRequest AWS API Documentation
#
class GenerateRandomRequest < Struct.new(
:number_of_bytes,
:custom_key_store_id)
include Aws::Structure
end
# @!attribute [rw] plaintext
# The random byte string. When you use the HTTP API or the AWS CLI,
# the value is Base64-encoded. Otherwise, it is not encoded.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandomResponse AWS API Documentation
#
class GenerateRandomResponse < Struct.new(
:plaintext)
include Aws::Structure
end
# @note When making an API call, you may pass GetKeyPolicyRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# policy_name: "PolicyNameType", # required
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] policy_name
# Specifies the name of the key policy. The only valid name is
# `default`. To get the names of key policies, use ListKeyPolicies.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicyRequest AWS API Documentation
#
class GetKeyPolicyRequest < Struct.new(
:key_id,
:policy_name)
include Aws::Structure
end
# @!attribute [rw] policy
# A key policy document in JSON format.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicyResponse AWS API Documentation
#
class GetKeyPolicyResponse < Struct.new(
:policy)
include Aws::Structure
end
# @note When making an API call, you may pass GetKeyRotationStatusRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To
# specify a CMK in a different AWS account, you must use the key ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatusRequest AWS API Documentation
#
class GetKeyRotationStatusRequest < Struct.new(
:key_id)
include Aws::Structure
end
# @!attribute [rw] key_rotation_enabled
# A Boolean value that specifies whether key rotation is enabled.
# @return [Boolean]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatusResponse AWS API Documentation
#
class GetKeyRotationStatusResponse < Struct.new(
:key_rotation_enabled)
include Aws::Structure
end
# @note When making an API call, you may pass GetParametersForImportRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# wrapping_algorithm: "RSAES_PKCS1_V1_5", # required, accepts RSAES_PKCS1_V1_5, RSAES_OAEP_SHA_1, RSAES_OAEP_SHA_256
# wrapping_key_spec: "RSA_2048", # required, accepts RSA_2048
# }
#
# @!attribute [rw] key_id
# The identifier of the CMK into which you will import key material.
# The CMK's `Origin` must be `EXTERNAL`.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] wrapping_algorithm
# The algorithm you will use to encrypt the key material before
# importing it with ImportKeyMaterial. For more information, see
# [Encrypt the Key Material][1] in the *AWS Key Management Service
# Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html
# @return [String]
#
# @!attribute [rw] wrapping_key_spec
# The type of wrapping key (public key) to return in the response.
# Only 2048-bit RSA public keys are supported.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImportRequest AWS API Documentation
#
class GetParametersForImportRequest < Struct.new(
:key_id,
:wrapping_algorithm,
:wrapping_key_spec)
include Aws::Structure
end
# @!attribute [rw] key_id
# The identifier of the CMK to use in a subsequent ImportKeyMaterial
# request. This is the same CMK specified in the
# `GetParametersForImport` request.
# @return [String]
#
# @!attribute [rw] import_token
# The import token to send in a subsequent ImportKeyMaterial request.
# @return [String]
#
# @!attribute [rw] public_key
# The public key to use to encrypt the key material before importing
# it with ImportKeyMaterial.
# @return [String]
#
# @!attribute [rw] parameters_valid_to
# The time at which the import token and public key are no longer
# valid. After this time, you cannot use them to make an
# ImportKeyMaterial request and you must send another
# `GetParametersForImport` request to get new ones.
# @return [Time]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImportResponse AWS API Documentation
#
class GetParametersForImportResponse < Struct.new(
:key_id,
:import_token,
:public_key,
:parameters_valid_to)
include Aws::Structure
end
# Use this structure to allow cryptographic operations in the grant only
# when the operation request includes the specified [encryption
# context][1].
#
# AWS KMS applies the grant constraints only when the grant allows a
# cryptographic operation that accepts an encryption context as input,
# such as the following.
#
# * Encrypt
#
# * Decrypt
#
# * GenerateDataKey
#
# * GenerateDataKeyWithoutPlaintext
#
# * ReEncrypt
#
# AWS KMS does not apply the grant constraints to other operations, such
# as DescribeKey or ScheduleKeyDeletion.
#
# In a cryptographic operation, the encryption context in the decryption
# operation must be an exact, case-sensitive match for the keys and
# values in the encryption context of the encryption operation. Only the
# order of the pairs can vary.
#
# However, in a grant constraint, the key in each key-value pair is not
# case sensitive, but the value is case sensitive.
#
# To avoid confusion, do not use multiple encryption context pairs that
# differ only by case. To require a fully case-sensitive encryption
# context, use the `kms:EncryptionContext:` and
# `kms:EncryptionContextKeys` conditions in an IAM or key policy. For
# details, see [kms:EncryptionContext:][2] in the <i> <i>AWS Key
# Management Service Developer Guide</i> </i>.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-context
#
# @note When making an API call, you may pass GrantConstraints
# data as a hash:
#
# {
# encryption_context_subset: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# encryption_context_equals: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# }
#
# @!attribute [rw] encryption_context_subset
# A list of key-value pairs that must be included in the encryption
# context of the cryptographic operation request. The grant allows the
# cryptographic operation only when the encryption context in the
# request includes the key-value pairs specified in this constraint,
# although it can include additional key-value pairs.
# @return [Hash<String,String>]
#
# @!attribute [rw] encryption_context_equals
# A list of key-value pairs that must match the encryption context in
# the cryptographic operation request. The grant allows the operation
# only when the encryption context in the request is the same as the
# encryption context specified in this constraint.
# @return [Hash<String,String>]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GrantConstraints AWS API Documentation
#
class GrantConstraints < Struct.new(
:encryption_context_subset,
:encryption_context_equals)
include Aws::Structure
end
# Contains information about an entry in a list of grants.
#
# @!attribute [rw] key_id
# The unique identifier for the customer master key (CMK) to which the
# grant applies.
# @return [String]
#
# @!attribute [rw] grant_id
# The unique identifier for the grant.
# @return [String]
#
# @!attribute [rw] name
# The friendly name that identifies the grant. If a name was provided
# in the CreateGrant request, that name is returned. Otherwise this
# value is null.
# @return [String]
#
# @!attribute [rw] creation_date
# The date and time when the grant was created.
# @return [Time]
#
# @!attribute [rw] grantee_principal
# The principal that receives the grant's permissions.
# @return [String]
#
# @!attribute [rw] retiring_principal
# The principal that can retire the grant.
# @return [String]
#
# @!attribute [rw] issuing_account
# The AWS account under which the grant was issued.
# @return [String]
#
# @!attribute [rw] operations
# The list of operations permitted by the grant.
# @return [Array<String>]
#
# @!attribute [rw] constraints
# A list of key-value pairs that must be present in the encryption
# context of certain subsequent operations that the grant allows.
# @return [Types::GrantConstraints]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GrantListEntry AWS API Documentation
#
class GrantListEntry < Struct.new(
:key_id,
:grant_id,
:name,
:creation_date,
:grantee_principal,
:retiring_principal,
:issuing_account,
:operations,
:constraints)
include Aws::Structure
end
# @note When making an API call, you may pass ImportKeyMaterialRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# import_token: "data", # required
# encrypted_key_material: "data", # required
# valid_to: Time.now,
# expiration_model: "KEY_MATERIAL_EXPIRES", # accepts KEY_MATERIAL_EXPIRES, KEY_MATERIAL_DOES_NOT_EXPIRE
# }
#
# @!attribute [rw] key_id
# The identifier of the CMK to import the key material into. The
# CMK's `Origin` must be `EXTERNAL`.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] import_token
# The import token that you received in the response to a previous
# GetParametersForImport request. It must be from the same response
# that contained the public key that you used to encrypt the key
# material.
# @return [String]
#
# @!attribute [rw] encrypted_key_material
# The encrypted key material to import. It must be encrypted with the
# public key that you received in the response to a previous
# GetParametersForImport request, using the wrapping algorithm that
# you specified in that request.
# @return [String]
#
# @!attribute [rw] valid_to
# The time at which the imported key material expires. When the key
# material expires, AWS KMS deletes the key material and the CMK
# becomes unusable. You must omit this parameter when the
# `ExpirationModel` parameter is set to
# `KEY_MATERIAL_DOES_NOT_EXPIRE`. Otherwise it is required.
# @return [Time]
#
# @!attribute [rw] expiration_model
# Specifies whether the key material expires. The default is
# `KEY_MATERIAL_EXPIRES`, in which case you must include the `ValidTo`
# parameter. When this parameter is set to
# `KEY_MATERIAL_DOES_NOT_EXPIRE`, you must omit the `ValidTo`
# parameter.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterialRequest AWS API Documentation
#
class ImportKeyMaterialRequest < Struct.new(
:key_id,
:import_token,
:encrypted_key_material,
:valid_to,
:expiration_model)
include Aws::Structure
end
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterialResponse AWS API Documentation
#
class ImportKeyMaterialResponse < Aws::EmptyStructure; end
# The request was rejected because the provided key material is invalid
# or is not the same key material that was previously imported into this
# customer master key (CMK).
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/IncorrectKeyMaterialException AWS API Documentation
#
class IncorrectKeyMaterialException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the trust anchor certificate in the
# request is not the trust anchor certificate for the specified AWS
# CloudHSM cluster.
#
# When you [initialize the cluster][1], you create the trust anchor
# certificate and save it in the `customerCA.crt` file.
#
#
#
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/IncorrectTrustAnchorException AWS API Documentation
#
class IncorrectTrustAnchorException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the specified alias name is not
# valid.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidAliasNameException AWS API Documentation
#
class InvalidAliasNameException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because a specified ARN, or an ARN in a key
# policy, is not valid.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidArnException AWS API Documentation
#
class InvalidArnException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the specified ciphertext, or
# additional authenticated data incorporated into the ciphertext, such
# as the encryption context, is corrupted, missing, or otherwise
# invalid.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidCiphertextException AWS API Documentation
#
class InvalidCiphertextException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the specified `GrantId` is not valid.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidGrantIdException AWS API Documentation
#
class InvalidGrantIdException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the specified grant token is not
# valid.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidGrantTokenException AWS API Documentation
#
class InvalidGrantTokenException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the provided import token is invalid
# or is associated with a different customer master key (CMK).
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidImportTokenException AWS API Documentation
#
class InvalidImportTokenException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the specified `KeySpec` value is not
# valid.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidKeyUsageException AWS API Documentation
#
class InvalidKeyUsageException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the marker that specifies where
# pagination should next begin is not valid.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/InvalidMarkerException AWS API Documentation
#
class InvalidMarkerException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because an internal exception occurred. The
# request can be retried.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KMSInternalException AWS API Documentation
#
class KMSInternalException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the state of the specified resource
# is not valid for this request.
#
# For more information about how key state affects the use of a CMK, see
# [How Key State Affects Use of a Customer Master Key][1] in the *AWS
# Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KMSInvalidStateException AWS API Documentation
#
class KMSInvalidStateException < Struct.new(
:message)
include Aws::Structure
end
# Contains information about each entry in the key list.
#
# @!attribute [rw] key_id
# Unique identifier of the key.
# @return [String]
#
# @!attribute [rw] key_arn
# ARN of the key.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KeyListEntry AWS API Documentation
#
class KeyListEntry < Struct.new(
:key_id,
:key_arn)
include Aws::Structure
end
# Contains metadata about a customer master key (CMK).
#
# This data type is used as a response element for the CreateKey and
# DescribeKey operations.
#
# @!attribute [rw] aws_account_id
# The twelve-digit account ID of the AWS account that owns the CMK.
# @return [String]
#
# @!attribute [rw] key_id
# The globally unique identifier for the CMK.
# @return [String]
#
# @!attribute [rw] arn
# The Amazon Resource Name (ARN) of the CMK. For examples, see [AWS
# Key Management Service (AWS KMS)][1] in the Example ARNs section of
# the *AWS General Reference*.
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms
# @return [String]
#
# @!attribute [rw] creation_date
# The date and time when the CMK was created.
# @return [Time]
#
# @!attribute [rw] enabled
# Specifies whether the CMK is enabled. When `KeyState` is `Enabled`
# this value is true, otherwise it is false.
# @return [Boolean]
#
# @!attribute [rw] description
# The description of the CMK.
# @return [String]
#
# @!attribute [rw] key_usage
# The cryptographic operations for which you can use the CMK. The only
# valid value is `ENCRYPT_DECRYPT`, which means you can use the CMK to
# encrypt and decrypt data.
# @return [String]
#
# @!attribute [rw] key_state
# The state of the CMK.
#
# For more information about how key state affects the use of a CMK,
# see [How Key State Affects the Use of a Customer Master Key][1] in
# the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
# @return [String]
#
# @!attribute [rw] deletion_date
# The date and time after which AWS KMS deletes the CMK. This value is
# present only when `KeyState` is `PendingDeletion`.
# @return [Time]
#
# @!attribute [rw] valid_to
# The time at which the imported key material expires. When the key
# material expires, AWS KMS deletes the key material and the CMK
# becomes unusable. This value is present only for CMKs whose `Origin`
# is `EXTERNAL` and whose `ExpirationModel` is `KEY_MATERIAL_EXPIRES`,
# otherwise this value is omitted.
# @return [Time]
#
# @!attribute [rw] origin
# The source of the CMK's key material. When this value is `AWS_KMS`,
# AWS KMS created the key material. When this value is `EXTERNAL`, the
# key material was imported from your existing key management
# infrastructure or the CMK lacks key material. When this value is
# `AWS_CLOUDHSM`, the key material was created in the AWS CloudHSM
# cluster associated with a custom key store.
# @return [String]
#
# @!attribute [rw] custom_key_store_id
# A unique identifier for the [custom key store][1] that contains the
# CMK. This value is present only when the CMK is created in a custom
# key store.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# @return [String]
#
# @!attribute [rw] cloud_hsm_cluster_id
# The cluster ID of the AWS CloudHSM cluster that contains the key
# material for the CMK. When you create a CMK in a [custom key
# store][1], AWS KMS creates the key material for the CMK in the
# associated AWS CloudHSM cluster. This value is present only when the
# CMK is created in a custom key store.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# @return [String]
#
# @!attribute [rw] expiration_model
# Specifies whether the CMK's key material expires. This value is
# present only when `Origin` is `EXTERNAL`, otherwise this value is
# omitted.
# @return [String]
#
# @!attribute [rw] key_manager
# The manager of the CMK. CMKs in your AWS account are either customer
# managed or AWS managed. For more information about the difference,
# see [Customer Master Keys][1] in the *AWS Key Management Service
# Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KeyMetadata AWS API Documentation
#
class KeyMetadata < Struct.new(
:aws_account_id,
:key_id,
:arn,
:creation_date,
:enabled,
:description,
:key_usage,
:key_state,
:deletion_date,
:valid_to,
:origin,
:custom_key_store_id,
:cloud_hsm_cluster_id,
:expiration_model,
:key_manager)
include Aws::Structure
end
# The request was rejected because the specified CMK was not available.
# The request can be retried.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KeyUnavailableException AWS API Documentation
#
class KeyUnavailableException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because a limit was exceeded. For more
# information, see [Limits][1] in the *AWS Key Management Service
# Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/limits.html
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/LimitExceededException AWS API Documentation
#
class LimitExceededException < Struct.new(
:message)
include Aws::Structure
end
# @note When making an API call, you may pass ListAliasesRequest
# data as a hash:
#
# {
# key_id: "KeyIdType",
# limit: 1,
# marker: "MarkerType",
# }
#
# @!attribute [rw] key_id
# Lists only aliases that refer to the specified CMK. The value of
# this parameter can be the ID or Amazon Resource Name (ARN) of a CMK
# in the caller's account and region. You cannot use an alias name or
# alias ARN in this value.
#
# This parameter is optional. If you omit it, `ListAliases` returns
# all aliases in the account and region.
# @return [String]
#
# @!attribute [rw] limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 100, inclusive. If you do not include a value, it defaults to
# 50.
# @return [Integer]
#
# @!attribute [rw] marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliasesRequest AWS API Documentation
#
class ListAliasesRequest < Struct.new(
:key_id,
:limit,
:marker)
include Aws::Structure
end
# @!attribute [rw] aliases
# A list of aliases.
# @return [Array<Types::AliasListEntry>]
#
# @!attribute [rw] next_marker
# When `Truncated` is true, this element is present and contains the
# value to use for the `Marker` parameter in a subsequent request.
# @return [String]
#
# @!attribute [rw] truncated
# A flag that indicates whether there are more items in the list. When
# this value is true, the list in this response is truncated. To get
# more items, pass the value of the `NextMarker` element in
# thisresponse to the `Marker` parameter in a subsequent request.
# @return [Boolean]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliasesResponse AWS API Documentation
#
class ListAliasesResponse < Struct.new(
:aliases,
:next_marker,
:truncated)
include Aws::Structure
end
# @note When making an API call, you may pass ListGrantsRequest
# data as a hash:
#
# {
# limit: 1,
# marker: "MarkerType",
# key_id: "KeyIdType", # required
# }
#
# @!attribute [rw] limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 100, inclusive. If you do not include a value, it defaults to
# 50.
# @return [Integer]
#
# @!attribute [rw] marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
# @return [String]
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To
# specify a CMK in a different AWS account, you must use the key ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrantsRequest AWS API Documentation
#
class ListGrantsRequest < Struct.new(
:limit,
:marker,
:key_id)
include Aws::Structure
end
# @!attribute [rw] grants
# A list of grants.
# @return [Array<Types::GrantListEntry>]
#
# @!attribute [rw] next_marker
# When `Truncated` is true, this element is present and contains the
# value to use for the `Marker` parameter in a subsequent request.
# @return [String]
#
# @!attribute [rw] truncated
# A flag that indicates whether there are more items in the list. When
# this value is true, the list in this response is truncated. To get
# more items, pass the value of the `NextMarker` element in
# thisresponse to the `Marker` parameter in a subsequent request.
# @return [Boolean]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrantsResponse AWS API Documentation
#
class ListGrantsResponse < Struct.new(
:grants,
:next_marker,
:truncated)
include Aws::Structure
end
# @note When making an API call, you may pass ListKeyPoliciesRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# limit: 1,
# marker: "MarkerType",
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 1000, inclusive. If you do not include a value, it defaults to
# 100.
#
# Only one policy can be attached to a key.
# @return [Integer]
#
# @!attribute [rw] marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPoliciesRequest AWS API Documentation
#
class ListKeyPoliciesRequest < Struct.new(
:key_id,
:limit,
:marker)
include Aws::Structure
end
# @!attribute [rw] policy_names
# A list of key policy names. The only valid value is `default`.
# @return [Array<String>]
#
# @!attribute [rw] next_marker
# When `Truncated` is true, this element is present and contains the
# value to use for the `Marker` parameter in a subsequent request.
# @return [String]
#
# @!attribute [rw] truncated
# A flag that indicates whether there are more items in the list. When
# this value is true, the list in this response is truncated. To get
# more items, pass the value of the `NextMarker` element in
# thisresponse to the `Marker` parameter in a subsequent request.
# @return [Boolean]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPoliciesResponse AWS API Documentation
#
class ListKeyPoliciesResponse < Struct.new(
:policy_names,
:next_marker,
:truncated)
include Aws::Structure
end
# @note When making an API call, you may pass ListKeysRequest
# data as a hash:
#
# {
# limit: 1,
# marker: "MarkerType",
# }
#
# @!attribute [rw] limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 1000, inclusive. If you do not include a value, it defaults to
# 100.
# @return [Integer]
#
# @!attribute [rw] marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeysRequest AWS API Documentation
#
class ListKeysRequest < Struct.new(
:limit,
:marker)
include Aws::Structure
end
# @!attribute [rw] keys
# A list of customer master keys (CMKs).
# @return [Array<Types::KeyListEntry>]
#
# @!attribute [rw] next_marker
# When `Truncated` is true, this element is present and contains the
# value to use for the `Marker` parameter in a subsequent request.
# @return [String]
#
# @!attribute [rw] truncated
# A flag that indicates whether there are more items in the list. When
# this value is true, the list in this response is truncated. To get
# more items, pass the value of the `NextMarker` element in
# thisresponse to the `Marker` parameter in a subsequent request.
# @return [Boolean]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeysResponse AWS API Documentation
#
class ListKeysResponse < Struct.new(
:keys,
:next_marker,
:truncated)
include Aws::Structure
end
# @note When making an API call, you may pass ListResourceTagsRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# limit: 1,
# marker: "MarkerType",
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 50, inclusive. If you do not include a value, it defaults to 50.
# @return [Integer]
#
# @!attribute [rw] marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
#
# Do not attempt to construct this value. Use only the value of
# `NextMarker` from the truncated response you just received.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTagsRequest AWS API Documentation
#
class ListResourceTagsRequest < Struct.new(
:key_id,
:limit,
:marker)
include Aws::Structure
end
# @!attribute [rw] tags
# A list of tags. Each tag consists of a tag key and a tag value.
# @return [Array<Types::Tag>]
#
# @!attribute [rw] next_marker
# When `Truncated` is true, this element is present and contains the
# value to use for the `Marker` parameter in a subsequent request.
#
# Do not assume or infer any information from this value.
# @return [String]
#
# @!attribute [rw] truncated
# A flag that indicates whether there are more items in the list. When
# this value is true, the list in this response is truncated. To get
# more items, pass the value of the `NextMarker` element in
# thisresponse to the `Marker` parameter in a subsequent request.
# @return [Boolean]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTagsResponse AWS API Documentation
#
class ListResourceTagsResponse < Struct.new(
:tags,
:next_marker,
:truncated)
include Aws::Structure
end
# @note When making an API call, you may pass ListRetirableGrantsRequest
# data as a hash:
#
# {
# limit: 1,
# marker: "MarkerType",
# retiring_principal: "PrincipalIdType", # required
# }
#
# @!attribute [rw] limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 100, inclusive. If you do not include a value, it defaults to
# 50.
# @return [Integer]
#
# @!attribute [rw] marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
# @return [String]
#
# @!attribute [rw] retiring_principal
# The retiring principal for which to list grants.
#
# To specify the retiring principal, use the [Amazon Resource Name
# (ARN)][1] of an AWS principal. Valid AWS principals include AWS
# accounts (root), IAM users, federated users, and assumed role users.
# For examples of the ARN syntax for specifying a principal, see [AWS
# Identity and Access Management (IAM)][2] in the Example ARNs section
# of the *Amazon Web Services General Reference*.
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
# [2]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrantsRequest AWS API Documentation
#
class ListRetirableGrantsRequest < Struct.new(
:limit,
:marker,
:retiring_principal)
include Aws::Structure
end
# The request was rejected because the specified policy is not
# syntactically or semantically correct.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/MalformedPolicyDocumentException AWS API Documentation
#
class MalformedPolicyDocumentException < Struct.new(
:message)
include Aws::Structure
end
# The request was rejected because the specified entity or resource
# could not be found.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/NotFoundException AWS API Documentation
#
class NotFoundException < Struct.new(
:message)
include Aws::Structure
end
# @note When making an API call, you may pass PutKeyPolicyRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# policy_name: "PolicyNameType", # required
# policy: "PolicyType", # required
# bypass_policy_lockout_safety_check: false,
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] policy_name
# The name of the key policy. The only valid value is `default`.
# @return [String]
#
# @!attribute [rw] policy
# The key policy to attach to the CMK.
#
# The key policy must meet the following criteria:
#
# * If you don't set `BypassPolicyLockoutSafetyCheck` to true, the
# key policy must allow the principal that is making the
# `PutKeyPolicy` request to make a subsequent `PutKeyPolicy` request
# on the CMK. This reduces the risk that the CMK becomes
# unmanageable. For more information, refer to the scenario in the
# [Default Key Policy][1] section of the *AWS Key Management Service
# Developer Guide*.
#
# * Each statement in the key policy must contain one or more
# principals. The principals in the key policy must exist and be
# visible to AWS KMS. When you create a new AWS principal (for
# example, an IAM user or role), you might need to enforce a delay
# before including the new principal in a key policy because the new
# principal might not be immediately visible to AWS KMS. For more
# information, see [Changes that I make are not always immediately
# visible][2] in the *AWS Identity and Access Management User
# Guide*.
#
# The key policy size limit is 32 kilobytes (32768 bytes).
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency
# @return [String]
#
# @!attribute [rw] bypass_policy_lockout_safety_check
# A flag to indicate whether to bypass the key policy lockout safety
# check.
#
# Setting this value to true increases the risk that the CMK becomes
# unmanageable. Do not set this value to true indiscriminately.
#
# For more information, refer to the scenario in the [Default Key
# Policy][1] section in the *AWS Key Management Service Developer
# Guide*.
#
# Use this parameter only when you intend to prevent the principal
# that is making the request from making a subsequent `PutKeyPolicy`
# request on the CMK.
#
# The default value is false.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam
# @return [Boolean]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicyRequest AWS API Documentation
#
class PutKeyPolicyRequest < Struct.new(
:key_id,
:policy_name,
:policy,
:bypass_policy_lockout_safety_check)
include Aws::Structure
end
# @note When making an API call, you may pass ReEncryptRequest
# data as a hash:
#
# {
# ciphertext_blob: "data", # required
# source_encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# destination_key_id: "KeyIdType", # required
# destination_encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# grant_tokens: ["GrantTokenType"],
# }
#
# @!attribute [rw] ciphertext_blob
# Ciphertext of the data to reencrypt.
# @return [String]
#
# @!attribute [rw] source_encryption_context
# Encryption context used to encrypt and decrypt the data specified in
# the `CiphertextBlob` parameter.
# @return [Hash<String,String>]
#
# @!attribute [rw] destination_key_id
# A unique identifier for the CMK that is used to reencrypt the data.
#
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
# name, or alias ARN. When using an alias name, prefix it with
# `"alias/"`. To specify a CMK in a different AWS account, you must
# use the key ARN or alias ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Alias name: `alias/ExampleAlias`
#
# * Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey. To get the alias name and alias ARN, use ListAliases.
# @return [String]
#
# @!attribute [rw] destination_encryption_context
# Encryption context to use when the data is reencrypted.
# @return [Hash<String,String>]
#
# @!attribute [rw] grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
# @return [Array<String>]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncryptRequest AWS API Documentation
#
class ReEncryptRequest < Struct.new(
:ciphertext_blob,
:source_encryption_context,
:destination_key_id,
:destination_encryption_context,
:grant_tokens)
include Aws::Structure
end
# @!attribute [rw] ciphertext_blob
# The reencrypted data. When you use the HTTP API or the AWS CLI, the
# value is Base64-encoded. Otherwise, it is not encoded.
# @return [String]
#
# @!attribute [rw] source_key_id
# Unique identifier of the CMK used to originally encrypt the data.
# @return [String]
#
# @!attribute [rw] key_id
# Unique identifier of the CMK used to reencrypt the data.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncryptResponse AWS API Documentation
#
class ReEncryptResponse < Struct.new(
:ciphertext_blob,
:source_key_id,
:key_id)
include Aws::Structure
end
# @note When making an API call, you may pass RetireGrantRequest
# data as a hash:
#
# {
# grant_token: "GrantTokenType",
# key_id: "KeyIdType",
# grant_id: "GrantIdType",
# }
#
# @!attribute [rw] grant_token
# Token that identifies the grant to be retired.
# @return [String]
#
# @!attribute [rw] key_id
# The Amazon Resource Name (ARN) of the CMK associated with the grant.
#
# For example:
# `arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab`
# @return [String]
#
# @!attribute [rw] grant_id
# Unique identifier of the grant to retire. The grant ID is returned
# in the response to a `CreateGrant` operation.
#
# * Grant ID Example -
# 0123456789012345678901234567890123456789012345678901234567890123
#
# ^
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrantRequest AWS API Documentation
#
class RetireGrantRequest < Struct.new(
:grant_token,
:key_id,
:grant_id)
include Aws::Structure
end
# @note When making an API call, you may pass RevokeGrantRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# grant_id: "GrantIdType", # required
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key associated with the
# grant.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To
# specify a CMK in a different AWS account, you must use the key ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] grant_id
# Identifier of the grant to be revoked.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrantRequest AWS API Documentation
#
class RevokeGrantRequest < Struct.new(
:key_id,
:grant_id)
include Aws::Structure
end
# @note When making an API call, you may pass ScheduleKeyDeletionRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# pending_window_in_days: 1,
# }
#
# @!attribute [rw] key_id
# The unique identifier of the customer master key (CMK) to delete.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] pending_window_in_days
# The waiting period, specified in number of days. After the waiting
# period ends, AWS KMS deletes the customer master key (CMK).
#
# This value is optional. If you include a value, it must be between 7
# and 30, inclusive. If you do not include a value, it defaults to 30.
# @return [Integer]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletionRequest AWS API Documentation
#
class ScheduleKeyDeletionRequest < Struct.new(
:key_id,
:pending_window_in_days)
include Aws::Structure
end
# @!attribute [rw] key_id
# The unique identifier of the customer master key (CMK) for which
# deletion is scheduled.
# @return [String]
#
# @!attribute [rw] deletion_date
# The date and time after which AWS KMS deletes the customer master
# key (CMK).
# @return [Time]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletionResponse AWS API Documentation
#
class ScheduleKeyDeletionResponse < Struct.new(
:key_id,
:deletion_date)
include Aws::Structure
end
# A key-value pair. A tag consists of a tag key and a tag value. Tag
# keys and tag values are both required, but tag values can be empty
# (null) strings.
#
# For information about the rules that apply to tag keys and tag values,
# see [User-Defined Tag Restrictions][1] in the *AWS Billing and Cost
# Management User Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html
#
# @note When making an API call, you may pass Tag
# data as a hash:
#
# {
# tag_key: "TagKeyType", # required
# tag_value: "TagValueType", # required
# }
#
# @!attribute [rw] tag_key
# The key of the tag.
# @return [String]
#
# @!attribute [rw] tag_value
# The value of the tag.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Tag AWS API Documentation
#
class Tag < Struct.new(
:tag_key,
:tag_value)
include Aws::Structure
end
# The request was rejected because one or more tags are not valid.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagException AWS API Documentation
#
class TagException < Struct.new(
:message)
include Aws::Structure
end
# @note When making an API call, you may pass TagResourceRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# tags: [ # required
# {
# tag_key: "TagKeyType", # required
# tag_value: "TagValueType", # required
# },
# ],
# }
#
# @!attribute [rw] key_id
# A unique identifier for the CMK you are tagging.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] tags
# One or more tags. Each tag consists of a tag key and a tag value.
# @return [Array<Types::Tag>]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResourceRequest AWS API Documentation
#
class TagResourceRequest < Struct.new(
:key_id,
:tags)
include Aws::Structure
end
# The request was rejected because a specified parameter is not
# supported or a specified resource is not valid for this operation.
#
# @!attribute [rw] message
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UnsupportedOperationException AWS API Documentation
#
class UnsupportedOperationException < Struct.new(
:message)
include Aws::Structure
end
# @note When making an API call, you may pass UntagResourceRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# tag_keys: ["TagKeyType"], # required
# }
#
# @!attribute [rw] key_id
# A unique identifier for the CMK from which you are removing tags.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] tag_keys
# One or more tag keys. Specify only the tag keys, not the tag values.
# @return [Array<String>]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResourceRequest AWS API Documentation
#
class UntagResourceRequest < Struct.new(
:key_id,
:tag_keys)
include Aws::Structure
end
# @note When making an API call, you may pass UpdateAliasRequest
# data as a hash:
#
# {
# alias_name: "AliasNameType", # required
# target_key_id: "KeyIdType", # required
# }
#
# @!attribute [rw] alias_name
# Specifies the name of the alias to change. This value must begin
# with `alias/` followed by the alias name, such as
# `alias/ExampleAlias`.
# @return [String]
#
# @!attribute [rw] target_key_id
# Unique identifier of the customer master key (CMK) to be mapped to
# the alias. When the update operation completes, the alias will point
# to this CMK.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
#
# To verify that the alias is mapped to the correct CMK, use
# ListAliases.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAliasRequest AWS API Documentation
#
class UpdateAliasRequest < Struct.new(
:alias_name,
:target_key_id)
include Aws::Structure
end
# @note When making an API call, you may pass UpdateCustomKeyStoreRequest
# data as a hash:
#
# {
# custom_key_store_id: "CustomKeyStoreIdType", # required
# new_custom_key_store_name: "CustomKeyStoreNameType",
# key_store_password: "KeyStorePasswordType",
# cloud_hsm_cluster_id: "CloudHsmClusterIdType",
# }
#
# @!attribute [rw] custom_key_store_id
# Identifies the custom key store that you want to update. Enter the
# ID of the custom key store. To find the ID of a custom key store,
# use the DescribeCustomKeyStores operation.
# @return [String]
#
# @!attribute [rw] new_custom_key_store_name
# Changes the friendly name of the custom key store to the value that
# you specify. The custom key store name must be unique in the AWS
# account.
# @return [String]
#
# @!attribute [rw] key_store_password
# Enter the current password of the `kmsuser` crypto user (CU) in the
# AWS CloudHSM cluster that is associated with the custom key store.
#
# This parameter tells AWS KMS the current password of the `kmsuser`
# crypto user (CU). It does not set or change the password of any
# users in the AWS CloudHSM cluster.
# @return [String]
#
# @!attribute [rw] cloud_hsm_cluster_id
# Associates the custom key store with a related AWS CloudHSM cluster.
#
# Enter the cluster ID of the cluster that you used to create the
# custom key store or a cluster that shares a backup history and has
# the same cluster certificate as the original cluster. You cannot use
# this parameter to associate a custom key store with an unrelated
# cluster. In addition, the replacement cluster must [fulfill the
# requirements][1] for a cluster associated with a custom key store.
# To view the cluster certificate of a cluster, use the
# [DescribeClusters][2] operation.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore
# [2]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateCustomKeyStoreRequest AWS API Documentation
#
class UpdateCustomKeyStoreRequest < Struct.new(
:custom_key_store_id,
:new_custom_key_store_name,
:key_store_password,
:cloud_hsm_cluster_id)
include Aws::Structure
end
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateCustomKeyStoreResponse AWS API Documentation
#
class UpdateCustomKeyStoreResponse < Aws::EmptyStructure; end
# @note When making an API call, you may pass UpdateKeyDescriptionRequest
# data as a hash:
#
# {
# key_id: "KeyIdType", # required
# description: "DescriptionType", # required
# }
#
# @!attribute [rw] key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or
# DescribeKey.
# @return [String]
#
# @!attribute [rw] description
# New description for the CMK.
# @return [String]
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescriptionRequest AWS API Documentation
#
class UpdateKeyDescriptionRequest < Struct.new(
:key_id,
:description)
include Aws::Structure
end
end
end
# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE
module Aws::KMS
# @api private
module ClientApi
include Seahorse::Model
AWSAccountIdType = Shapes::StringShape.new(name: 'AWSAccountIdType')
AlgorithmSpec = Shapes::StringShape.new(name: 'AlgorithmSpec')
AliasList = Shapes::ListShape.new(name: 'AliasList')
AliasListEntry = Shapes::StructureShape.new(name: 'AliasListEntry')
AliasNameType = Shapes::StringShape.new(name: 'AliasNameType')
AlreadyExistsException = Shapes::StructureShape.new(name: 'AlreadyExistsException')
ArnType = Shapes::StringShape.new(name: 'ArnType')
BooleanType = Shapes::BooleanShape.new(name: 'BooleanType')
CancelKeyDeletionRequest = Shapes::StructureShape.new(name: 'CancelKeyDeletionRequest')
CancelKeyDeletionResponse = Shapes::StructureShape.new(name: 'CancelKeyDeletionResponse')
CiphertextType = Shapes::BlobShape.new(name: 'CiphertextType')
CloudHsmClusterIdType = Shapes::StringShape.new(name: 'CloudHsmClusterIdType')
CloudHsmClusterInUseException = Shapes::StructureShape.new(name: 'CloudHsmClusterInUseException')
CloudHsmClusterInvalidConfigurationException = Shapes::StructureShape.new(name: 'CloudHsmClusterInvalidConfigurationException')
CloudHsmClusterNotActiveException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotActiveException')
CloudHsmClusterNotFoundException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotFoundException')
CloudHsmClusterNotRelatedException = Shapes::StructureShape.new(name: 'CloudHsmClusterNotRelatedException')
ConnectCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'ConnectCustomKeyStoreRequest')
ConnectCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'ConnectCustomKeyStoreResponse')
ConnectionErrorCodeType = Shapes::StringShape.new(name: 'ConnectionErrorCodeType')
ConnectionStateType = Shapes::StringShape.new(name: 'ConnectionStateType')
CreateAliasRequest = Shapes::StructureShape.new(name: 'CreateAliasRequest')
CreateCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'CreateCustomKeyStoreRequest')
CreateCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'CreateCustomKeyStoreResponse')
CreateGrantRequest = Shapes::StructureShape.new(name: 'CreateGrantRequest')
CreateGrantResponse = Shapes::StructureShape.new(name: 'CreateGrantResponse')
CreateKeyRequest = Shapes::StructureShape.new(name: 'CreateKeyRequest')
CreateKeyResponse = Shapes::StructureShape.new(name: 'CreateKeyResponse')
CustomKeyStoreHasCMKsException = Shapes::StructureShape.new(name: 'CustomKeyStoreHasCMKsException')
CustomKeyStoreIdType = Shapes::StringShape.new(name: 'CustomKeyStoreIdType')
CustomKeyStoreInvalidStateException = Shapes::StructureShape.new(name: 'CustomKeyStoreInvalidStateException')
CustomKeyStoreNameInUseException = Shapes::StructureShape.new(name: 'CustomKeyStoreNameInUseException')
CustomKeyStoreNameType = Shapes::StringShape.new(name: 'CustomKeyStoreNameType')
CustomKeyStoreNotFoundException = Shapes::StructureShape.new(name: 'CustomKeyStoreNotFoundException')
CustomKeyStoresList = Shapes::ListShape.new(name: 'CustomKeyStoresList')
CustomKeyStoresListEntry = Shapes::StructureShape.new(name: 'CustomKeyStoresListEntry')
DataKeySpec = Shapes::StringShape.new(name: 'DataKeySpec')
DateType = Shapes::TimestampShape.new(name: 'DateType')
DecryptRequest = Shapes::StructureShape.new(name: 'DecryptRequest')
DecryptResponse = Shapes::StructureShape.new(name: 'DecryptResponse')
DeleteAliasRequest = Shapes::StructureShape.new(name: 'DeleteAliasRequest')
DeleteCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'DeleteCustomKeyStoreRequest')
DeleteCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'DeleteCustomKeyStoreResponse')
DeleteImportedKeyMaterialRequest = Shapes::StructureShape.new(name: 'DeleteImportedKeyMaterialRequest')
DependencyTimeoutException = Shapes::StructureShape.new(name: 'DependencyTimeoutException')
DescribeCustomKeyStoresRequest = Shapes::StructureShape.new(name: 'DescribeCustomKeyStoresRequest')
DescribeCustomKeyStoresResponse = Shapes::StructureShape.new(name: 'DescribeCustomKeyStoresResponse')
DescribeKeyRequest = Shapes::StructureShape.new(name: 'DescribeKeyRequest')
DescribeKeyResponse = Shapes::StructureShape.new(name: 'DescribeKeyResponse')
DescriptionType = Shapes::StringShape.new(name: 'DescriptionType')
DisableKeyRequest = Shapes::StructureShape.new(name: 'DisableKeyRequest')
DisableKeyRotationRequest = Shapes::StructureShape.new(name: 'DisableKeyRotationRequest')
DisabledException = Shapes::StructureShape.new(name: 'DisabledException')
DisconnectCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'DisconnectCustomKeyStoreRequest')
DisconnectCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'DisconnectCustomKeyStoreResponse')
EnableKeyRequest = Shapes::StructureShape.new(name: 'EnableKeyRequest')
EnableKeyRotationRequest = Shapes::StructureShape.new(name: 'EnableKeyRotationRequest')
EncryptRequest = Shapes::StructureShape.new(name: 'EncryptRequest')
EncryptResponse = Shapes::StructureShape.new(name: 'EncryptResponse')
EncryptionContextKey = Shapes::StringShape.new(name: 'EncryptionContextKey')
EncryptionContextType = Shapes::MapShape.new(name: 'EncryptionContextType')
EncryptionContextValue = Shapes::StringShape.new(name: 'EncryptionContextValue')
ErrorMessageType = Shapes::StringShape.new(name: 'ErrorMessageType')
ExpirationModelType = Shapes::StringShape.new(name: 'ExpirationModelType')
ExpiredImportTokenException = Shapes::StructureShape.new(name: 'ExpiredImportTokenException')
GenerateDataKeyRequest = Shapes::StructureShape.new(name: 'GenerateDataKeyRequest')
GenerateDataKeyResponse = Shapes::StructureShape.new(name: 'GenerateDataKeyResponse')
GenerateDataKeyWithoutPlaintextRequest = Shapes::StructureShape.new(name: 'GenerateDataKeyWithoutPlaintextRequest')
GenerateDataKeyWithoutPlaintextResponse = Shapes::StructureShape.new(name: 'GenerateDataKeyWithoutPlaintextResponse')
GenerateRandomRequest = Shapes::StructureShape.new(name: 'GenerateRandomRequest')
GenerateRandomResponse = Shapes::StructureShape.new(name: 'GenerateRandomResponse')
GetKeyPolicyRequest = Shapes::StructureShape.new(name: 'GetKeyPolicyRequest')
GetKeyPolicyResponse = Shapes::StructureShape.new(name: 'GetKeyPolicyResponse')
GetKeyRotationStatusRequest = Shapes::StructureShape.new(name: 'GetKeyRotationStatusRequest')
GetKeyRotationStatusResponse = Shapes::StructureShape.new(name: 'GetKeyRotationStatusResponse')
GetParametersForImportRequest = Shapes::StructureShape.new(name: 'GetParametersForImportRequest')
GetParametersForImportResponse = Shapes::StructureShape.new(name: 'GetParametersForImportResponse')
GrantConstraints = Shapes::StructureShape.new(name: 'GrantConstraints')
GrantIdType = Shapes::StringShape.new(name: 'GrantIdType')
GrantList = Shapes::ListShape.new(name: 'GrantList')
GrantListEntry = Shapes::StructureShape.new(name: 'GrantListEntry')
GrantNameType = Shapes::StringShape.new(name: 'GrantNameType')
GrantOperation = Shapes::StringShape.new(name: 'GrantOperation')
GrantOperationList = Shapes::ListShape.new(name: 'GrantOperationList')
GrantTokenList = Shapes::ListShape.new(name: 'GrantTokenList')
GrantTokenType = Shapes::StringShape.new(name: 'GrantTokenType')
ImportKeyMaterialRequest = Shapes::StructureShape.new(name: 'ImportKeyMaterialRequest')
ImportKeyMaterialResponse = Shapes::StructureShape.new(name: 'ImportKeyMaterialResponse')
IncorrectKeyMaterialException = Shapes::StructureShape.new(name: 'IncorrectKeyMaterialException')
IncorrectTrustAnchorException = Shapes::StructureShape.new(name: 'IncorrectTrustAnchorException')
InvalidAliasNameException = Shapes::StructureShape.new(name: 'InvalidAliasNameException')
InvalidArnException = Shapes::StructureShape.new(name: 'InvalidArnException')
InvalidCiphertextException = Shapes::StructureShape.new(name: 'InvalidCiphertextException')
InvalidGrantIdException = Shapes::StructureShape.new(name: 'InvalidGrantIdException')
InvalidGrantTokenException = Shapes::StructureShape.new(name: 'InvalidGrantTokenException')
InvalidImportTokenException = Shapes::StructureShape.new(name: 'InvalidImportTokenException')
InvalidKeyUsageException = Shapes::StructureShape.new(name: 'InvalidKeyUsageException')
InvalidMarkerException = Shapes::StructureShape.new(name: 'InvalidMarkerException')
KMSInternalException = Shapes::StructureShape.new(name: 'KMSInternalException')
KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
KeyIdType = Shapes::StringShape.new(name: 'KeyIdType')
KeyList = Shapes::ListShape.new(name: 'KeyList')
KeyListEntry = Shapes::StructureShape.new(name: 'KeyListEntry')
KeyManagerType = Shapes::StringShape.new(name: 'KeyManagerType')
KeyMetadata = Shapes::StructureShape.new(name: 'KeyMetadata')
KeyState = Shapes::StringShape.new(name: 'KeyState')
KeyStorePasswordType = Shapes::StringShape.new(name: 'KeyStorePasswordType')
KeyUnavailableException = Shapes::StructureShape.new(name: 'KeyUnavailableException')
KeyUsageType = Shapes::StringShape.new(name: 'KeyUsageType')
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
LimitType = Shapes::IntegerShape.new(name: 'LimitType')
ListAliasesRequest = Shapes::StructureShape.new(name: 'ListAliasesRequest')
ListAliasesResponse = Shapes::StructureShape.new(name: 'ListAliasesResponse')
ListGrantsRequest = Shapes::StructureShape.new(name: 'ListGrantsRequest')
ListGrantsResponse = Shapes::StructureShape.new(name: 'ListGrantsResponse')
ListKeyPoliciesRequest = Shapes::StructureShape.new(name: 'ListKeyPoliciesRequest')
ListKeyPoliciesResponse = Shapes::StructureShape.new(name: 'ListKeyPoliciesResponse')
ListKeysRequest = Shapes::StructureShape.new(name: 'ListKeysRequest')
ListKeysResponse = Shapes::StructureShape.new(name: 'ListKeysResponse')
ListResourceTagsRequest = Shapes::StructureShape.new(name: 'ListResourceTagsRequest')
ListResourceTagsResponse = Shapes::StructureShape.new(name: 'ListResourceTagsResponse')
ListRetirableGrantsRequest = Shapes::StructureShape.new(name: 'ListRetirableGrantsRequest')
MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException')
MarkerType = Shapes::StringShape.new(name: 'MarkerType')
NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
NumberOfBytesType = Shapes::IntegerShape.new(name: 'NumberOfBytesType')
OriginType = Shapes::StringShape.new(name: 'OriginType')
PendingWindowInDaysType = Shapes::IntegerShape.new(name: 'PendingWindowInDaysType')
PlaintextType = Shapes::BlobShape.new(name: 'PlaintextType')
PolicyNameList = Shapes::ListShape.new(name: 'PolicyNameList')
PolicyNameType = Shapes::StringShape.new(name: 'PolicyNameType')
PolicyType = Shapes::StringShape.new(name: 'PolicyType')
PrincipalIdType = Shapes::StringShape.new(name: 'PrincipalIdType')
PutKeyPolicyRequest = Shapes::StructureShape.new(name: 'PutKeyPolicyRequest')
ReEncryptRequest = Shapes::StructureShape.new(name: 'ReEncryptRequest')
ReEncryptResponse = Shapes::StructureShape.new(name: 'ReEncryptResponse')
RetireGrantRequest = Shapes::StructureShape.new(name: 'RetireGrantRequest')
RevokeGrantRequest = Shapes::StructureShape.new(name: 'RevokeGrantRequest')
ScheduleKeyDeletionRequest = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionRequest')
ScheduleKeyDeletionResponse = Shapes::StructureShape.new(name: 'ScheduleKeyDeletionResponse')
Tag = Shapes::StructureShape.new(name: 'Tag')
TagException = Shapes::StructureShape.new(name: 'TagException')
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
TagKeyType = Shapes::StringShape.new(name: 'TagKeyType')
TagList = Shapes::ListShape.new(name: 'TagList')
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
TagValueType = Shapes::StringShape.new(name: 'TagValueType')
TrustAnchorCertificateType = Shapes::StringShape.new(name: 'TrustAnchorCertificateType')
UnsupportedOperationException = Shapes::StructureShape.new(name: 'UnsupportedOperationException')
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
UpdateAliasRequest = Shapes::StructureShape.new(name: 'UpdateAliasRequest')
UpdateCustomKeyStoreRequest = Shapes::StructureShape.new(name: 'UpdateCustomKeyStoreRequest')
UpdateCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'UpdateCustomKeyStoreResponse')
UpdateKeyDescriptionRequest = Shapes::StructureShape.new(name: 'UpdateKeyDescriptionRequest')
WrappingKeySpec = Shapes::StringShape.new(name: 'WrappingKeySpec')
AliasList.member = Shapes::ShapeRef.new(shape: AliasListEntry)
AliasListEntry.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, location_name: "AliasName"))
AliasListEntry.add_member(:alias_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "AliasArn"))
AliasListEntry.add_member(:target_key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "TargetKeyId"))
AliasListEntry.struct_class = Types::AliasListEntry
AlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
AlreadyExistsException.struct_class = Types::AlreadyExistsException
CancelKeyDeletionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
CancelKeyDeletionRequest.struct_class = Types::CancelKeyDeletionRequest
CancelKeyDeletionResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
CancelKeyDeletionResponse.struct_class = Types::CancelKeyDeletionResponse
CloudHsmClusterInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
CloudHsmClusterInUseException.struct_class = Types::CloudHsmClusterInUseException
CloudHsmClusterInvalidConfigurationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
CloudHsmClusterInvalidConfigurationException.struct_class = Types::CloudHsmClusterInvalidConfigurationException
CloudHsmClusterNotActiveException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
CloudHsmClusterNotActiveException.struct_class = Types::CloudHsmClusterNotActiveException
CloudHsmClusterNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
CloudHsmClusterNotFoundException.struct_class = Types::CloudHsmClusterNotFoundException
CloudHsmClusterNotRelatedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
CloudHsmClusterNotRelatedException.struct_class = Types::CloudHsmClusterNotRelatedException
ConnectCustomKeyStoreRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, required: true, location_name: "CustomKeyStoreId"))
ConnectCustomKeyStoreRequest.struct_class = Types::ConnectCustomKeyStoreRequest
ConnectCustomKeyStoreResponse.struct_class = Types::ConnectCustomKeyStoreResponse
CreateAliasRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, required: true, location_name: "AliasName"))
CreateAliasRequest.add_member(:target_key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "TargetKeyId"))
CreateAliasRequest.struct_class = Types::CreateAliasRequest
CreateCustomKeyStoreRequest.add_member(:custom_key_store_name, Shapes::ShapeRef.new(shape: CustomKeyStoreNameType, required: true, location_name: "CustomKeyStoreName"))
CreateCustomKeyStoreRequest.add_member(:cloud_hsm_cluster_id, Shapes::ShapeRef.new(shape: CloudHsmClusterIdType, required: true, location_name: "CloudHsmClusterId"))
CreateCustomKeyStoreRequest.add_member(:trust_anchor_certificate, Shapes::ShapeRef.new(shape: TrustAnchorCertificateType, required: true, location_name: "TrustAnchorCertificate"))
CreateCustomKeyStoreRequest.add_member(:key_store_password, Shapes::ShapeRef.new(shape: KeyStorePasswordType, required: true, location_name: "KeyStorePassword"))
CreateCustomKeyStoreRequest.struct_class = Types::CreateCustomKeyStoreRequest
CreateCustomKeyStoreResponse.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
CreateCustomKeyStoreResponse.struct_class = Types::CreateCustomKeyStoreResponse
CreateGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
CreateGrantRequest.add_member(:grantee_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, required: true, location_name: "GranteePrincipal"))
CreateGrantRequest.add_member(:retiring_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "RetiringPrincipal"))
CreateGrantRequest.add_member(:operations, Shapes::ShapeRef.new(shape: GrantOperationList, required: true, location_name: "Operations"))
CreateGrantRequest.add_member(:constraints, Shapes::ShapeRef.new(shape: GrantConstraints, location_name: "Constraints"))
CreateGrantRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
CreateGrantRequest.add_member(:name, Shapes::ShapeRef.new(shape: GrantNameType, location_name: "Name"))
CreateGrantRequest.struct_class = Types::CreateGrantRequest
CreateGrantResponse.add_member(:grant_token, Shapes::ShapeRef.new(shape: GrantTokenType, location_name: "GrantToken"))
CreateGrantResponse.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, location_name: "GrantId"))
CreateGrantResponse.struct_class = Types::CreateGrantResponse
CreateKeyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
CreateKeyRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
CreateKeyRequest.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
CreateKeyRequest.add_member(:origin, Shapes::ShapeRef.new(shape: OriginType, location_name: "Origin"))
CreateKeyRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
CreateKeyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BypassPolicyLockoutSafetyCheck"))
CreateKeyRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
CreateKeyRequest.struct_class = Types::CreateKeyRequest
CreateKeyResponse.add_member(:key_metadata, Shapes::ShapeRef.new(shape: KeyMetadata, location_name: "KeyMetadata"))
CreateKeyResponse.struct_class = Types::CreateKeyResponse
CustomKeyStoreHasCMKsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
CustomKeyStoreHasCMKsException.struct_class = Types::CustomKeyStoreHasCMKsException
CustomKeyStoreInvalidStateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
CustomKeyStoreInvalidStateException.struct_class = Types::CustomKeyStoreInvalidStateException
CustomKeyStoreNameInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
CustomKeyStoreNameInUseException.struct_class = Types::CustomKeyStoreNameInUseException
CustomKeyStoreNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
CustomKeyStoreNotFoundException.struct_class = Types::CustomKeyStoreNotFoundException
CustomKeyStoresList.member = Shapes::ShapeRef.new(shape: CustomKeyStoresListEntry)
CustomKeyStoresListEntry.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
CustomKeyStoresListEntry.add_member(:custom_key_store_name, Shapes::ShapeRef.new(shape: CustomKeyStoreNameType, location_name: "CustomKeyStoreName"))
CustomKeyStoresListEntry.add_member(:cloud_hsm_cluster_id, Shapes::ShapeRef.new(shape: CloudHsmClusterIdType, location_name: "CloudHsmClusterId"))
CustomKeyStoresListEntry.add_member(:trust_anchor_certificate, Shapes::ShapeRef.new(shape: TrustAnchorCertificateType, location_name: "TrustAnchorCertificate"))
CustomKeyStoresListEntry.add_member(:connection_state, Shapes::ShapeRef.new(shape: ConnectionStateType, location_name: "ConnectionState"))
CustomKeyStoresListEntry.add_member(:connection_error_code, Shapes::ShapeRef.new(shape: ConnectionErrorCodeType, location_name: "ConnectionErrorCode"))
CustomKeyStoresListEntry.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "CreationDate"))
CustomKeyStoresListEntry.struct_class = Types::CustomKeyStoresListEntry
DecryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "CiphertextBlob"))
DecryptRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
DecryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
DecryptRequest.struct_class = Types::DecryptRequest
DecryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
DecryptResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
DecryptResponse.struct_class = Types::DecryptResponse
DeleteAliasRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, required: true, location_name: "AliasName"))
DeleteAliasRequest.struct_class = Types::DeleteAliasRequest
DeleteCustomKeyStoreRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, required: true, location_name: "CustomKeyStoreId"))
DeleteCustomKeyStoreRequest.struct_class = Types::DeleteCustomKeyStoreRequest
DeleteCustomKeyStoreResponse.struct_class = Types::DeleteCustomKeyStoreResponse
DeleteImportedKeyMaterialRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
DeleteImportedKeyMaterialRequest.struct_class = Types::DeleteImportedKeyMaterialRequest
DependencyTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
DependencyTimeoutException.struct_class = Types::DependencyTimeoutException
DescribeCustomKeyStoresRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
DescribeCustomKeyStoresRequest.add_member(:custom_key_store_name, Shapes::ShapeRef.new(shape: CustomKeyStoreNameType, location_name: "CustomKeyStoreName"))
DescribeCustomKeyStoresRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
DescribeCustomKeyStoresRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
DescribeCustomKeyStoresRequest.struct_class = Types::DescribeCustomKeyStoresRequest
DescribeCustomKeyStoresResponse.add_member(:custom_key_stores, Shapes::ShapeRef.new(shape: CustomKeyStoresList, location_name: "CustomKeyStores"))
DescribeCustomKeyStoresResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
DescribeCustomKeyStoresResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
DescribeCustomKeyStoresResponse.struct_class = Types::DescribeCustomKeyStoresResponse
DescribeKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
DescribeKeyRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
DescribeKeyRequest.struct_class = Types::DescribeKeyRequest
DescribeKeyResponse.add_member(:key_metadata, Shapes::ShapeRef.new(shape: KeyMetadata, location_name: "KeyMetadata"))
DescribeKeyResponse.struct_class = Types::DescribeKeyResponse
DisableKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
DisableKeyRequest.struct_class = Types::DisableKeyRequest
DisableKeyRotationRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
DisableKeyRotationRequest.struct_class = Types::DisableKeyRotationRequest
DisabledException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
DisabledException.struct_class = Types::DisabledException
DisconnectCustomKeyStoreRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, required: true, location_name: "CustomKeyStoreId"))
DisconnectCustomKeyStoreRequest.struct_class = Types::DisconnectCustomKeyStoreRequest
DisconnectCustomKeyStoreResponse.struct_class = Types::DisconnectCustomKeyStoreResponse
EnableKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
EnableKeyRequest.struct_class = Types::EnableKeyRequest
EnableKeyRotationRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
EnableKeyRotationRequest.struct_class = Types::EnableKeyRotationRequest
EncryptRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
EncryptRequest.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Plaintext"))
EncryptRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
EncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
EncryptRequest.struct_class = Types::EncryptRequest
EncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
EncryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
EncryptResponse.struct_class = Types::EncryptResponse
EncryptionContextType.key = Shapes::ShapeRef.new(shape: EncryptionContextKey)
EncryptionContextType.value = Shapes::ShapeRef.new(shape: EncryptionContextValue)
ExpiredImportTokenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
ExpiredImportTokenException.struct_class = Types::ExpiredImportTokenException
GenerateDataKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
GenerateDataKeyRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
GenerateDataKeyRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
GenerateDataKeyRequest.add_member(:key_spec, Shapes::ShapeRef.new(shape: DataKeySpec, location_name: "KeySpec"))
GenerateDataKeyRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
GenerateDataKeyRequest.struct_class = Types::GenerateDataKeyRequest
GenerateDataKeyResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
GenerateDataKeyResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
GenerateDataKeyResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
GenerateDataKeyResponse.struct_class = Types::GenerateDataKeyResponse
GenerateDataKeyWithoutPlaintextRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
GenerateDataKeyWithoutPlaintextRequest.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContext"))
GenerateDataKeyWithoutPlaintextRequest.add_member(:key_spec, Shapes::ShapeRef.new(shape: DataKeySpec, location_name: "KeySpec"))
GenerateDataKeyWithoutPlaintextRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
GenerateDataKeyWithoutPlaintextRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
GenerateDataKeyWithoutPlaintextRequest.struct_class = Types::GenerateDataKeyWithoutPlaintextRequest
GenerateDataKeyWithoutPlaintextResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
GenerateDataKeyWithoutPlaintextResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
GenerateDataKeyWithoutPlaintextResponse.struct_class = Types::GenerateDataKeyWithoutPlaintextResponse
GenerateRandomRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes"))
GenerateRandomRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
GenerateRandomRequest.struct_class = Types::GenerateRandomRequest
GenerateRandomResponse.add_member(:plaintext, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "Plaintext"))
GenerateRandomResponse.struct_class = Types::GenerateRandomResponse
GetKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
GetKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, required: true, location_name: "PolicyName"))
GetKeyPolicyRequest.struct_class = Types::GetKeyPolicyRequest
GetKeyPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Policy"))
GetKeyPolicyResponse.struct_class = Types::GetKeyPolicyResponse
GetKeyRotationStatusRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
GetKeyRotationStatusRequest.struct_class = Types::GetKeyRotationStatusRequest
GetKeyRotationStatusResponse.add_member(:key_rotation_enabled, Shapes::ShapeRef.new(shape: BooleanType, location_name: "KeyRotationEnabled"))
GetKeyRotationStatusResponse.struct_class = Types::GetKeyRotationStatusResponse
GetParametersForImportRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
GetParametersForImportRequest.add_member(:wrapping_algorithm, Shapes::ShapeRef.new(shape: AlgorithmSpec, required: true, location_name: "WrappingAlgorithm"))
GetParametersForImportRequest.add_member(:wrapping_key_spec, Shapes::ShapeRef.new(shape: WrappingKeySpec, required: true, location_name: "WrappingKeySpec"))
GetParametersForImportRequest.struct_class = Types::GetParametersForImportRequest
GetParametersForImportResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
GetParametersForImportResponse.add_member(:import_token, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "ImportToken"))
GetParametersForImportResponse.add_member(:public_key, Shapes::ShapeRef.new(shape: PlaintextType, location_name: "PublicKey"))
GetParametersForImportResponse.add_member(:parameters_valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ParametersValidTo"))
GetParametersForImportResponse.struct_class = Types::GetParametersForImportResponse
GrantConstraints.add_member(:encryption_context_subset, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContextSubset"))
GrantConstraints.add_member(:encryption_context_equals, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "EncryptionContextEquals"))
GrantConstraints.struct_class = Types::GrantConstraints
GrantList.member = Shapes::ShapeRef.new(shape: GrantListEntry)
GrantListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
GrantListEntry.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, location_name: "GrantId"))
GrantListEntry.add_member(:name, Shapes::ShapeRef.new(shape: GrantNameType, location_name: "Name"))
GrantListEntry.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "CreationDate"))
GrantListEntry.add_member(:grantee_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "GranteePrincipal"))
GrantListEntry.add_member(:retiring_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "RetiringPrincipal"))
GrantListEntry.add_member(:issuing_account, Shapes::ShapeRef.new(shape: PrincipalIdType, location_name: "IssuingAccount"))
GrantListEntry.add_member(:operations, Shapes::ShapeRef.new(shape: GrantOperationList, location_name: "Operations"))
GrantListEntry.add_member(:constraints, Shapes::ShapeRef.new(shape: GrantConstraints, location_name: "Constraints"))
GrantListEntry.struct_class = Types::GrantListEntry
GrantOperationList.member = Shapes::ShapeRef.new(shape: GrantOperation)
GrantTokenList.member = Shapes::ShapeRef.new(shape: GrantTokenType)
ImportKeyMaterialRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
ImportKeyMaterialRequest.add_member(:import_token, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "ImportToken"))
ImportKeyMaterialRequest.add_member(:encrypted_key_material, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "EncryptedKeyMaterial"))
ImportKeyMaterialRequest.add_member(:valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ValidTo"))
ImportKeyMaterialRequest.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
ImportKeyMaterialRequest.struct_class = Types::ImportKeyMaterialRequest
ImportKeyMaterialResponse.struct_class = Types::ImportKeyMaterialResponse
IncorrectKeyMaterialException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
IncorrectKeyMaterialException.struct_class = Types::IncorrectKeyMaterialException
IncorrectTrustAnchorException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
IncorrectTrustAnchorException.struct_class = Types::IncorrectTrustAnchorException
InvalidAliasNameException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
InvalidAliasNameException.struct_class = Types::InvalidAliasNameException
InvalidArnException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
InvalidArnException.struct_class = Types::InvalidArnException
InvalidCiphertextException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
InvalidCiphertextException.struct_class = Types::InvalidCiphertextException
InvalidGrantIdException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
InvalidGrantIdException.struct_class = Types::InvalidGrantIdException
InvalidGrantTokenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
InvalidGrantTokenException.struct_class = Types::InvalidGrantTokenException
InvalidImportTokenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
InvalidImportTokenException.struct_class = Types::InvalidImportTokenException
InvalidKeyUsageException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
InvalidKeyUsageException.struct_class = Types::InvalidKeyUsageException
InvalidMarkerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
InvalidMarkerException.struct_class = Types::InvalidMarkerException
KMSInternalException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
KMSInternalException.struct_class = Types::KMSInternalException
KMSInvalidStateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
KMSInvalidStateException.struct_class = Types::KMSInvalidStateException
KeyList.member = Shapes::ShapeRef.new(shape: KeyListEntry)
KeyListEntry.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
KeyListEntry.add_member(:key_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "KeyArn"))
KeyListEntry.struct_class = Types::KeyListEntry
KeyMetadata.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: AWSAccountIdType, location_name: "AWSAccountId"))
KeyMetadata.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
KeyMetadata.add_member(:arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "Arn"))
KeyMetadata.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "CreationDate"))
KeyMetadata.add_member(:enabled, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Enabled"))
KeyMetadata.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, location_name: "Description"))
KeyMetadata.add_member(:key_usage, Shapes::ShapeRef.new(shape: KeyUsageType, location_name: "KeyUsage"))
KeyMetadata.add_member(:key_state, Shapes::ShapeRef.new(shape: KeyState, location_name: "KeyState"))
KeyMetadata.add_member(:deletion_date, Shapes::ShapeRef.new(shape: DateType, location_name: "DeletionDate"))
KeyMetadata.add_member(:valid_to, Shapes::ShapeRef.new(shape: DateType, location_name: "ValidTo"))
KeyMetadata.add_member(:origin, Shapes::ShapeRef.new(shape: OriginType, location_name: "Origin"))
KeyMetadata.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
KeyMetadata.add_member(:cloud_hsm_cluster_id, Shapes::ShapeRef.new(shape: CloudHsmClusterIdType, location_name: "CloudHsmClusterId"))
KeyMetadata.add_member(:expiration_model, Shapes::ShapeRef.new(shape: ExpirationModelType, location_name: "ExpirationModel"))
KeyMetadata.add_member(:key_manager, Shapes::ShapeRef.new(shape: KeyManagerType, location_name: "KeyManager"))
KeyMetadata.struct_class = Types::KeyMetadata
KeyUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
KeyUnavailableException.struct_class = Types::KeyUnavailableException
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
LimitExceededException.struct_class = Types::LimitExceededException
ListAliasesRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
ListAliasesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
ListAliasesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
ListAliasesRequest.struct_class = Types::ListAliasesRequest
ListAliasesResponse.add_member(:aliases, Shapes::ShapeRef.new(shape: AliasList, location_name: "Aliases"))
ListAliasesResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
ListAliasesResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
ListAliasesResponse.struct_class = Types::ListAliasesResponse
ListGrantsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
ListGrantsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
ListGrantsRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
ListGrantsRequest.struct_class = Types::ListGrantsRequest
ListGrantsResponse.add_member(:grants, Shapes::ShapeRef.new(shape: GrantList, location_name: "Grants"))
ListGrantsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
ListGrantsResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
ListGrantsResponse.struct_class = Types::ListGrantsResponse
ListKeyPoliciesRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
ListKeyPoliciesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
ListKeyPoliciesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
ListKeyPoliciesRequest.struct_class = Types::ListKeyPoliciesRequest
ListKeyPoliciesResponse.add_member(:policy_names, Shapes::ShapeRef.new(shape: PolicyNameList, location_name: "PolicyNames"))
ListKeyPoliciesResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
ListKeyPoliciesResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
ListKeyPoliciesResponse.struct_class = Types::ListKeyPoliciesResponse
ListKeysRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
ListKeysRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
ListKeysRequest.struct_class = Types::ListKeysRequest
ListKeysResponse.add_member(:keys, Shapes::ShapeRef.new(shape: KeyList, location_name: "Keys"))
ListKeysResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
ListKeysResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
ListKeysResponse.struct_class = Types::ListKeysResponse
ListResourceTagsRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
ListResourceTagsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
ListResourceTagsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
ListResourceTagsRequest.struct_class = Types::ListResourceTagsRequest
ListResourceTagsResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
ListResourceTagsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "NextMarker"))
ListResourceTagsResponse.add_member(:truncated, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Truncated"))
ListResourceTagsResponse.struct_class = Types::ListResourceTagsResponse
ListRetirableGrantsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location_name: "Limit"))
ListRetirableGrantsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location_name: "Marker"))
ListRetirableGrantsRequest.add_member(:retiring_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, required: true, location_name: "RetiringPrincipal"))
ListRetirableGrantsRequest.struct_class = Types::ListRetirableGrantsRequest
MalformedPolicyDocumentException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
MalformedPolicyDocumentException.struct_class = Types::MalformedPolicyDocumentException
NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
NotFoundException.struct_class = Types::NotFoundException
PolicyNameList.member = Shapes::ShapeRef.new(shape: PolicyNameType)
PutKeyPolicyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
PutKeyPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyNameType, required: true, location_name: "PolicyName"))
PutKeyPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyType, required: true, location_name: "Policy"))
PutKeyPolicyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BypassPolicyLockoutSafetyCheck"))
PutKeyPolicyRequest.struct_class = Types::PutKeyPolicyRequest
ReEncryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "CiphertextBlob"))
ReEncryptRequest.add_member(:source_encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "SourceEncryptionContext"))
ReEncryptRequest.add_member(:destination_key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "DestinationKeyId"))
ReEncryptRequest.add_member(:destination_encryption_context, Shapes::ShapeRef.new(shape: EncryptionContextType, location_name: "DestinationEncryptionContext"))
ReEncryptRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens"))
ReEncryptRequest.struct_class = Types::ReEncryptRequest
ReEncryptResponse.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "CiphertextBlob"))
ReEncryptResponse.add_member(:source_key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "SourceKeyId"))
ReEncryptResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
ReEncryptResponse.struct_class = Types::ReEncryptResponse
RetireGrantRequest.add_member(:grant_token, Shapes::ShapeRef.new(shape: GrantTokenType, location_name: "GrantToken"))
RetireGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
RetireGrantRequest.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, location_name: "GrantId"))
RetireGrantRequest.struct_class = Types::RetireGrantRequest
RevokeGrantRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
RevokeGrantRequest.add_member(:grant_id, Shapes::ShapeRef.new(shape: GrantIdType, required: true, location_name: "GrantId"))
RevokeGrantRequest.struct_class = Types::RevokeGrantRequest
ScheduleKeyDeletionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
ScheduleKeyDeletionRequest.add_member(:pending_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingWindowInDays"))
ScheduleKeyDeletionRequest.struct_class = Types::ScheduleKeyDeletionRequest
ScheduleKeyDeletionResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId"))
ScheduleKeyDeletionResponse.add_member(:deletion_date, Shapes::ShapeRef.new(shape: DateType, location_name: "DeletionDate"))
ScheduleKeyDeletionResponse.struct_class = Types::ScheduleKeyDeletionResponse
Tag.add_member(:tag_key, Shapes::ShapeRef.new(shape: TagKeyType, required: true, location_name: "TagKey"))
Tag.add_member(:tag_value, Shapes::ShapeRef.new(shape: TagValueType, required: true, location_name: "TagValue"))
Tag.struct_class = Types::Tag
TagException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
TagException.struct_class = Types::TagException
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKeyType)
TagList.member = Shapes::ShapeRef.new(shape: Tag)
TagResourceRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
TagResourceRequest.struct_class = Types::TagResourceRequest
UnsupportedOperationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
UnsupportedOperationException.struct_class = Types::UnsupportedOperationException
UntagResourceRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
UntagResourceRequest.struct_class = Types::UntagResourceRequest
UpdateAliasRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasNameType, required: true, location_name: "AliasName"))
UpdateAliasRequest.add_member(:target_key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "TargetKeyId"))
UpdateAliasRequest.struct_class = Types::UpdateAliasRequest
UpdateCustomKeyStoreRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, required: true, location_name: "CustomKeyStoreId"))
UpdateCustomKeyStoreRequest.add_member(:new_custom_key_store_name, Shapes::ShapeRef.new(shape: CustomKeyStoreNameType, location_name: "NewCustomKeyStoreName"))
UpdateCustomKeyStoreRequest.add_member(:key_store_password, Shapes::ShapeRef.new(shape: KeyStorePasswordType, location_name: "KeyStorePassword"))
UpdateCustomKeyStoreRequest.add_member(:cloud_hsm_cluster_id, Shapes::ShapeRef.new(shape: CloudHsmClusterIdType, location_name: "CloudHsmClusterId"))
UpdateCustomKeyStoreRequest.struct_class = Types::UpdateCustomKeyStoreRequest
UpdateCustomKeyStoreResponse.struct_class = Types::UpdateCustomKeyStoreResponse
UpdateKeyDescriptionRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId"))
UpdateKeyDescriptionRequest.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionType, required: true, location_name: "Description"))
UpdateKeyDescriptionRequest.struct_class = Types::UpdateKeyDescriptionRequest
# @api private
API = Seahorse::Model::Api.new.tap do |api|
api.version = "2014-11-01"
api.metadata = {
"apiVersion" => "2014-11-01",
"endpointPrefix" => "kms",
"jsonVersion" => "1.1",
"protocol" => "json",
"serviceAbbreviation" => "KMS",
"serviceFullName" => "AWS Key Management Service",
"serviceId" => "KMS",
"signatureVersion" => "v4",
"targetPrefix" => "TrentService",
"uid" => "kms-2014-11-01",
}
api.add_operation(:cancel_key_deletion, Seahorse::Model::Operation.new.tap do |o|
o.name = "CancelKeyDeletion"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: CancelKeyDeletionRequest)
o.output = Shapes::ShapeRef.new(shape: CancelKeyDeletionResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:connect_custom_key_store, Seahorse::Model::Operation.new.tap do |o|
o.name = "ConnectCustomKeyStore"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: ConnectCustomKeyStoreRequest)
o.output = Shapes::ShapeRef.new(shape: ConnectCustomKeyStoreResponse)
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterNotActiveException)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreInvalidStateException)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNotFoundException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterInvalidConfigurationException)
end)
api.add_operation(:create_alias, Seahorse::Model::Operation.new.tap do |o|
o.name = "CreateAlias"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: CreateAliasRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidAliasNameException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:create_custom_key_store, Seahorse::Model::Operation.new.tap do |o|
o.name = "CreateCustomKeyStore"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: CreateCustomKeyStoreRequest)
o.output = Shapes::ShapeRef.new(shape: CreateCustomKeyStoreResponse)
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterInUseException)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNameInUseException)
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterNotFoundException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterNotActiveException)
o.errors << Shapes::ShapeRef.new(shape: IncorrectTrustAnchorException)
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterInvalidConfigurationException)
end)
api.add_operation(:create_grant, Seahorse::Model::Operation.new.tap do |o|
o.name = "CreateGrant"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: CreateGrantRequest)
o.output = Shapes::ShapeRef.new(shape: CreateGrantResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:create_key, Seahorse::Model::Operation.new.tap do |o|
o.name = "CreateKey"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: CreateKeyRequest)
o.output = Shapes::ShapeRef.new(shape: CreateKeyResponse)
o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
o.errors << Shapes::ShapeRef.new(shape: TagException)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNotFoundException)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreInvalidStateException)
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterInvalidConfigurationException)
end)
api.add_operation(:decrypt, Seahorse::Model::Operation.new.tap do |o|
o.name = "Decrypt"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: DecryptRequest)
o.output = Shapes::ShapeRef.new(shape: DecryptResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
o.errors << Shapes::ShapeRef.new(shape: InvalidCiphertextException)
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:delete_alias, Seahorse::Model::Operation.new.tap do |o|
o.name = "DeleteAlias"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: DeleteAliasRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:delete_custom_key_store, Seahorse::Model::Operation.new.tap do |o|
o.name = "DeleteCustomKeyStore"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: DeleteCustomKeyStoreRequest)
o.output = Shapes::ShapeRef.new(shape: DeleteCustomKeyStoreResponse)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreHasCMKsException)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreInvalidStateException)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNotFoundException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
end)
api.add_operation(:delete_imported_key_material, Seahorse::Model::Operation.new.tap do |o|
o.name = "DeleteImportedKeyMaterial"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: DeleteImportedKeyMaterialRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:describe_custom_key_stores, Seahorse::Model::Operation.new.tap do |o|
o.name = "DescribeCustomKeyStores"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: DescribeCustomKeyStoresRequest)
o.output = Shapes::ShapeRef.new(shape: DescribeCustomKeyStoresResponse)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNotFoundException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
end)
api.add_operation(:describe_key, Seahorse::Model::Operation.new.tap do |o|
o.name = "DescribeKey"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: DescribeKeyRequest)
o.output = Shapes::ShapeRef.new(shape: DescribeKeyResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
end)
api.add_operation(:disable_key, Seahorse::Model::Operation.new.tap do |o|
o.name = "DisableKey"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: DisableKeyRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:disable_key_rotation, Seahorse::Model::Operation.new.tap do |o|
o.name = "DisableKeyRotation"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: DisableKeyRotationRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
end)
api.add_operation(:disconnect_custom_key_store, Seahorse::Model::Operation.new.tap do |o|
o.name = "DisconnectCustomKeyStore"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: DisconnectCustomKeyStoreRequest)
o.output = Shapes::ShapeRef.new(shape: DisconnectCustomKeyStoreResponse)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreInvalidStateException)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNotFoundException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
end)
api.add_operation(:enable_key, Seahorse::Model::Operation.new.tap do |o|
o.name = "EnableKey"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: EnableKeyRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:enable_key_rotation, Seahorse::Model::Operation.new.tap do |o|
o.name = "EnableKeyRotation"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: EnableKeyRotationRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
end)
api.add_operation(:encrypt, Seahorse::Model::Operation.new.tap do |o|
o.name = "Encrypt"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: EncryptRequest)
o.output = Shapes::ShapeRef.new(shape: EncryptResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:generate_data_key, Seahorse::Model::Operation.new.tap do |o|
o.name = "GenerateDataKey"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: GenerateDataKeyRequest)
o.output = Shapes::ShapeRef.new(shape: GenerateDataKeyResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:generate_data_key_without_plaintext, Seahorse::Model::Operation.new.tap do |o|
o.name = "GenerateDataKeyWithoutPlaintext"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: GenerateDataKeyWithoutPlaintextRequest)
o.output = Shapes::ShapeRef.new(shape: GenerateDataKeyWithoutPlaintextResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:generate_random, Seahorse::Model::Operation.new.tap do |o|
o.name = "GenerateRandom"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: GenerateRandomRequest)
o.output = Shapes::ShapeRef.new(shape: GenerateRandomResponse)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNotFoundException)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreInvalidStateException)
end)
api.add_operation(:get_key_policy, Seahorse::Model::Operation.new.tap do |o|
o.name = "GetKeyPolicy"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: GetKeyPolicyRequest)
o.output = Shapes::ShapeRef.new(shape: GetKeyPolicyResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:get_key_rotation_status, Seahorse::Model::Operation.new.tap do |o|
o.name = "GetKeyRotationStatus"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: GetKeyRotationStatusRequest)
o.output = Shapes::ShapeRef.new(shape: GetKeyRotationStatusResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
end)
api.add_operation(:get_parameters_for_import, Seahorse::Model::Operation.new.tap do |o|
o.name = "GetParametersForImport"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: GetParametersForImportRequest)
o.output = Shapes::ShapeRef.new(shape: GetParametersForImportResponse)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:import_key_material, Seahorse::Model::Operation.new.tap do |o|
o.name = "ImportKeyMaterial"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: ImportKeyMaterialRequest)
o.output = Shapes::ShapeRef.new(shape: ImportKeyMaterialResponse)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
o.errors << Shapes::ShapeRef.new(shape: InvalidCiphertextException)
o.errors << Shapes::ShapeRef.new(shape: IncorrectKeyMaterialException)
o.errors << Shapes::ShapeRef.new(shape: ExpiredImportTokenException)
o.errors << Shapes::ShapeRef.new(shape: InvalidImportTokenException)
end)
api.add_operation(:list_aliases, Seahorse::Model::Operation.new.tap do |o|
o.name = "ListAliases"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: ListAliasesRequest)
o.output = Shapes::ShapeRef.new(shape: ListAliasesResponse)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o[:pager] = Aws::Pager.new(
more_results: "truncated",
limit_key: "limit",
tokens: {
"next_marker" => "marker"
}
)
end)
api.add_operation(:list_grants, Seahorse::Model::Operation.new.tap do |o|
o.name = "ListGrants"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: ListGrantsRequest)
o.output = Shapes::ShapeRef.new(shape: ListGrantsResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
o[:pager] = Aws::Pager.new(
more_results: "truncated",
limit_key: "limit",
tokens: {
"next_marker" => "marker"
}
)
end)
api.add_operation(:list_key_policies, Seahorse::Model::Operation.new.tap do |o|
o.name = "ListKeyPolicies"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: ListKeyPoliciesRequest)
o.output = Shapes::ShapeRef.new(shape: ListKeyPoliciesResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
o[:pager] = Aws::Pager.new(
more_results: "truncated",
limit_key: "limit",
tokens: {
"next_marker" => "marker"
}
)
end)
api.add_operation(:list_keys, Seahorse::Model::Operation.new.tap do |o|
o.name = "ListKeys"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: ListKeysRequest)
o.output = Shapes::ShapeRef.new(shape: ListKeysResponse)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
o[:pager] = Aws::Pager.new(
more_results: "truncated",
limit_key: "limit",
tokens: {
"next_marker" => "marker"
}
)
end)
api.add_operation(:list_resource_tags, Seahorse::Model::Operation.new.tap do |o|
o.name = "ListResourceTags"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: ListResourceTagsRequest)
o.output = Shapes::ShapeRef.new(shape: ListResourceTagsResponse)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
end)
api.add_operation(:list_retirable_grants, Seahorse::Model::Operation.new.tap do |o|
o.name = "ListRetirableGrants"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: ListRetirableGrantsRequest)
o.output = Shapes::ShapeRef.new(shape: ListGrantsResponse)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
end)
api.add_operation(:put_key_policy, Seahorse::Model::Operation.new.tap do |o|
o.name = "PutKeyPolicy"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: PutKeyPolicyRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:re_encrypt, Seahorse::Model::Operation.new.tap do |o|
o.name = "ReEncrypt"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: ReEncryptRequest)
o.output = Shapes::ShapeRef.new(shape: ReEncryptResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: DisabledException)
o.errors << Shapes::ShapeRef.new(shape: InvalidCiphertextException)
o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException)
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:retire_grant, Seahorse::Model::Operation.new.tap do |o|
o.name = "RetireGrant"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: RetireGrantRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException)
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantIdException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:revoke_grant, Seahorse::Model::Operation.new.tap do |o|
o.name = "RevokeGrant"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: RevokeGrantRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: InvalidGrantIdException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:schedule_key_deletion, Seahorse::Model::Operation.new.tap do |o|
o.name = "ScheduleKeyDeletion"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: ScheduleKeyDeletionRequest)
o.output = Shapes::ShapeRef.new(shape: ScheduleKeyDeletionResponse)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
o.name = "TagResource"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
o.errors << Shapes::ShapeRef.new(shape: TagException)
end)
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
o.name = "UntagResource"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
o.errors << Shapes::ShapeRef.new(shape: TagException)
end)
api.add_operation(:update_alias, Seahorse::Model::Operation.new.tap do |o|
o.name = "UpdateAlias"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: UpdateAliasRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
api.add_operation(:update_custom_key_store, Seahorse::Model::Operation.new.tap do |o|
o.name = "UpdateCustomKeyStore"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: UpdateCustomKeyStoreRequest)
o.output = Shapes::ShapeRef.new(shape: UpdateCustomKeyStoreResponse)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNotFoundException)
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterNotFoundException)
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterNotRelatedException)
o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreInvalidStateException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterNotActiveException)
o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterInvalidConfigurationException)
end)
api.add_operation(:update_key_description, Seahorse::Model::Operation.new.tap do |o|
o.name = "UpdateKeyDescription"
o.http_method = "POST"
o.http_request_uri = "/"
o.input = Shapes::ShapeRef.new(shape: UpdateKeyDescriptionRequest)
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
end)
end
end
end
# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE
# require 'seahorse/client/plugins/content_length.rb'
# require 'aws-sdk-core/plugins/credentials_configuration.rb'
# require 'aws-sdk-core/plugins/logging.rb'
# require 'aws-sdk-core/plugins/param_converter.rb'
# require 'aws-sdk-core/plugins/param_validator.rb'
# require 'aws-sdk-core/plugins/user_agent.rb'
# require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
# require 'aws-sdk-core/plugins/retry_errors.rb'
# require 'aws-sdk-core/plugins/global_configuration.rb'
# require 'aws-sdk-core/plugins/regional_endpoint.rb'
# require 'aws-sdk-core/plugins/endpoint_discovery.rb'
# require 'aws-sdk-core/plugins/endpoint_pattern.rb'
# require 'aws-sdk-core/plugins/response_paging.rb'
# require 'aws-sdk-core/plugins/stub_responses.rb'
# require 'aws-sdk-core/plugins/idempotency_token.rb'
# require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
# require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
# require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
# require 'aws-sdk-core/plugins/transfer_encoding.rb'
# require 'aws-sdk-core/plugins/signature_v4.rb'
# require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
Aws::Plugins::GlobalConfiguration.add_identifier(:kms)
module Aws::KMS
class Client < Seahorse::Client::Base
include Aws::ClientStubs
@identifier = :kms
set_api(ClientApi::API)
add_plugin(Seahorse::Client::Plugins::ContentLength)
add_plugin(Aws::Plugins::CredentialsConfiguration)
add_plugin(Aws::Plugins::Logging)
add_plugin(Aws::Plugins::ParamConverter)
add_plugin(Aws::Plugins::ParamValidator)
add_plugin(Aws::Plugins::UserAgent)
add_plugin(Aws::Plugins::HelpfulSocketErrors)
add_plugin(Aws::Plugins::RetryErrors)
add_plugin(Aws::Plugins::GlobalConfiguration)
add_plugin(Aws::Plugins::RegionalEndpoint)
add_plugin(Aws::Plugins::EndpointDiscovery)
add_plugin(Aws::Plugins::EndpointPattern)
add_plugin(Aws::Plugins::ResponsePaging)
add_plugin(Aws::Plugins::StubResponses)
add_plugin(Aws::Plugins::IdempotencyToken)
add_plugin(Aws::Plugins::JsonvalueConverter)
add_plugin(Aws::Plugins::ClientMetricsPlugin)
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
add_plugin(Aws::Plugins::TransferEncoding)
add_plugin(Aws::Plugins::SignatureV4)
add_plugin(Aws::Plugins::Protocols::JsonRpc)
# @overload initialize(options)
# @param [Hash] options
# @option options [required, Aws::CredentialProvider] :credentials
# Your AWS credentials. This can be an instance of any one of the
# following classes:
#
# * `Aws::Credentials` - Used for configuring static, non-refreshing
# credentials.
#
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
# from an EC2 IMDS on an EC2 instance.
#
# * `Aws::SharedCredentials` - Used for loading credentials from a
# shared file, such as `~/.aws/config`.
#
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
#
# When `:credentials` are not configured directly, the following
# locations will be searched for credentials:
#
# * `Aws.config[:credentials]`
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
# * `~/.aws/credentials`
# * `~/.aws/config`
# * EC2 IMDS instance profile - When used by default, the timeouts are
# very aggressive. Construct and pass an instance of
# `Aws::InstanceProfileCredentails` to enable retries and extended
# timeouts.
#
# @option options [required, String] :region
# The AWS region to connect to. The configured `:region` is
# used to determine the service `:endpoint`. When not passed,
# a default `:region` is search for in the following locations:
#
# * `Aws.config[:region]`
# * `ENV['AWS_REGION']`
# * `ENV['AMAZON_REGION']`
# * `ENV['AWS_DEFAULT_REGION']`
# * `~/.aws/credentials`
# * `~/.aws/config`
#
# @option options [String] :access_key_id
#
# @option options [Boolean] :active_endpoint_cache (false)
# When set to `true`, a thread polling for endpoints will be running in
# the background every 60 secs (default). Defaults to `false`.
#
# @option options [Boolean] :client_side_monitoring (false)
# When `true`, client-side metrics will be collected for all API requests from
# this client.
#
# @option options [String] :client_side_monitoring_client_id ("")
# Allows you to provide an identifier for this client which will be attached to
# all generated client side metrics. Defaults to an empty string.
#
# @option options [Integer] :client_side_monitoring_port (31000)
# Required for publishing client metrics. The port that the client side monitoring
# agent is running on, where client metrics will be published via UDP.
#
# @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
# Allows you to provide a custom client-side monitoring publisher class. By default,
# will use the Client Side Monitoring Agent Publisher.
#
# @option options [Boolean] :convert_params (true)
# When `true`, an attempt is made to coerce request parameters into
# the required types.
#
# @option options [Boolean] :disable_host_prefix_injection (false)
# Set to true to disable SDK automatically adding host prefix
# to default service endpoint when available.
#
# @option options [String] :endpoint
# The client endpoint is normally constructed from the `:region`
# option. You should only configure an `:endpoint` when connecting
# to test endpoints. This should be avalid HTTP(S) URI.
#
# @option options [Integer] :endpoint_cache_max_entries (1000)
# Used for the maximum size limit of the LRU cache storing endpoints data
# for endpoint discovery enabled operations. Defaults to 1000.
#
# @option options [Integer] :endpoint_cache_max_threads (10)
# Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
#
# @option options [Integer] :endpoint_cache_poll_interval (60)
# When :endpoint_discovery and :active_endpoint_cache is enabled,
# Use this option to config the time interval in seconds for making
# requests fetching endpoints information. Defaults to 60 sec.
#
# @option options [Boolean] :endpoint_discovery (false)
# When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
#
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
# The log formatter.
#
# @option options [Symbol] :log_level (:info)
# The log level to send messages to the `:logger` at.
#
# @option options [Logger] :logger
# The Logger instance to send log messages to. If this option
# is not set, logging will be disabled.
#
# @option options [String] :profile ("default")
# Used when loading credentials from the shared credentials file
# at HOME/.aws/credentials. When not specified, 'default' is used.
#
# @option options [Float] :retry_base_delay (0.3)
# The base delay in seconds used by the default backoff function.
#
# @option options [Symbol] :retry_jitter (:none)
# A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
#
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
#
# @option options [Integer] :retry_limit (3)
# The maximum number of times to retry failed requests. Only
# ~ 500 level server errors and certain ~ 400 level client errors
# are retried. Generally, these are throttling errors, data
# checksum errors, networking errors, timeout errors and auth
# errors from expired credentials.
#
# @option options [Integer] :retry_max_delay (0)
# The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
#
# @option options [String] :secret_access_key
#
# @option options [String] :session_token
#
# @option options [Boolean] :simple_json (false)
# Disables request parameter conversion, validation, and formatting.
# Also disable response data type conversions. This option is useful
# when you want to ensure the highest level of performance by
# avoiding overhead of walking request parameters and response data
# structures.
#
# When `:simple_json` is enabled, the request parameters hash must
# be formatted exactly as the DynamoDB API expects.
#
# @option options [Boolean] :stub_responses (false)
# Causes the client to return stubbed responses. By default
# fake responses are generated and returned. You can specify
# the response data to return or errors to raise by calling
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
#
# ** Please note ** When response stubbing is enabled, no HTTP
# requests are made, and retries are disabled.
#
# @option options [Boolean] :validate_params (true)
# When `true`, request parameters are validated before
# sending the request.
#
# @option options [URI::HTTP,String] :http_proxy A proxy to send
# requests through. Formatted like 'http://proxy.com:123'.
#
# @option options [Float] :http_open_timeout (15) The number of
# seconds to wait when opening a HTTP session before rasing a
# `Timeout::Error`.
#
# @option options [Integer] :http_read_timeout (60) The default
# number of seconds to wait for response data. This value can
# safely be set
# per-request on the session yeidled by {#session_for}.
#
# @option options [Float] :http_idle_timeout (5) The number of
# seconds a connection is allowed to sit idble before it is
# considered stale. Stale connections are closed and removed
# from the pool before making a request.
#
# @option options [Float] :http_continue_timeout (1) The number of
# seconds to wait for a 100-continue response before sending the
# request body. This option has no effect unless the request has
# "Expect" header set to "100-continue". Defaults to `nil` which
# disables this behaviour. This value can safely be set per
# request on the session yeidled by {#session_for}.
#
# @option options [Boolean] :http_wire_trace (false) When `true`,
# HTTP debug output will be sent to the `:logger`.
#
# @option options [Boolean] :ssl_verify_peer (true) When `true`,
# SSL peer certificates are verified when establishing a
# connection.
#
# @option options [String] :ssl_ca_bundle Full path to the SSL
# certificate authority bundle file that should be used when
# verifying peer certificates. If you do not pass
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
# will be used if available.
#
# @option options [String] :ssl_ca_directory Full path of the
# directory that contains the unbundled SSL certificate
# authority files for verifying peer certificates. If you do
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
# system default will be used if available.
#
def initialize(*args)
super
end
# @!group API Operations
# Cancels the deletion of a customer master key (CMK). When this
# operation is successful, the CMK is set to the `Disabled` state. To
# enable a CMK, use EnableKey. You cannot perform this operation on a
# CMK in a different AWS account.
#
# For more information about scheduling and canceling deletion of a CMK,
# see [Deleting Customer Master Keys][1] in the *AWS Key Management
# Service Developer Guide*.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# The unique identifier for the customer master key (CMK) for which to
# cancel deletion.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @return [Types::CancelKeyDeletionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CancelKeyDeletionResponse#key_id #key_id} => String
#
#
# @example Example: To cancel deletion of a customer master key (CMK)
#
# # The following example cancels deletion of the specified CMK.
#
# resp = client.cancel_key_deletion({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose deletion you are canceling. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# resp.to_h outputs the following:
# {
# key_id: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The ARN of the CMK whose deletion you canceled.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.cancel_key_deletion({
# key_id: "KeyIdType", # required
# })
#
# @example Response structure
#
# resp.key_id #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletion AWS API Documentation
#
# @overload cancel_key_deletion(params = {})
# @param [Hash] params ({})
def cancel_key_deletion(params = {}, options = {})
req = build_request(:cancel_key_deletion, params)
req.send_request(options)
end
# Connects or reconnects a [custom key store][1] to its associated AWS
# CloudHSM cluster.
#
# The custom key store must be connected before you can create customer
# master keys (CMKs) in the key store or use the CMKs it contains. You
# can disconnect and reconnect a custom key store at any time.
#
# To connect a custom key store, its associated AWS CloudHSM cluster
# must have at least one active HSM. To get the number of active HSMs in
# a cluster, use the [DescribeClusters][2] operation. To add HSMs to the
# cluster, use the [CreateHsm][3] operation.
#
# The connection process can take an extended amount of time to
# complete; up to 20 minutes. This operation starts the connection
# process, but it does not wait for it to complete. When it succeeds,
# this operation quickly returns an HTTP 200 response and a JSON object
# with no properties. However, this response does not indicate that the
# custom key store is connected. To get the connection state of the
# custom key store, use the DescribeCustomKeyStores operation.
#
# During the connection process, AWS KMS finds the AWS CloudHSM cluster
# that is associated with the custom key store, creates the connection
# infrastructure, connects to the cluster, logs into the AWS CloudHSM
# client as the [ `kmsuser` crypto user][4] (CU), and rotates its
# password.
#
# The `ConnectCustomKeyStore` operation might fail for various reasons.
# To find the reason, use the DescribeCustomKeyStores operation and see
# the `ConnectionErrorCode` in the response. For help interpreting the
# `ConnectionErrorCode`, see CustomKeyStoresListEntry.
#
# To fix the failure, use the DisconnectCustomKeyStore operation to
# disconnect the custom key store, correct the error, use the
# UpdateCustomKeyStore operation if necessary, and then use
# `ConnectCustomKeyStore` again.
#
# If you are having trouble connecting or disconnecting a custom key
# store, see [Troubleshooting a Custom Key Store][5] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# [2]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html
# [3]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html
# [4]: https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser
# [5]: https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html
#
# @option params [required, String] :custom_key_store_id
# Enter the key store ID of the custom key store that you want to
# connect. To find the ID of a custom key store, use the
# DescribeCustomKeyStores operation.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
# @example Request syntax with placeholder values
#
# resp = client.connect_custom_key_store({
# custom_key_store_id: "CustomKeyStoreIdType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ConnectCustomKeyStore AWS API Documentation
#
# @overload connect_custom_key_store(params = {})
# @param [Hash] params ({})
def connect_custom_key_store(params = {}, options = {})
req = build_request(:connect_custom_key_store, params)
req.send_request(options)
end
# Creates a display name for a customer managed customer master key
# (CMK). You can use an alias to identify a CMK in selected operations,
# such as Encrypt and GenerateDataKey.
#
# Each CMK can have multiple aliases, but each alias points to only one
# CMK. The alias name must be unique in the AWS account and region. To
# simplify code that runs in multiple regions, use the same alias name,
# but point it to a different CMK in each region.
#
# Because an alias is not a property of a CMK, you can delete and change
# the aliases of a CMK without affecting the CMK. Also, aliases do not
# appear in the response from the DescribeKey operation. To get the
# aliases of all CMKs, use the ListAliases operation.
#
# The alias name must begin with `alias/` followed by a name, such as
# `alias/ExampleAlias`. It can contain only alphanumeric characters,
# forward slashes (/), underscores (\_), and dashes (-). The alias name
# cannot begin with `alias/aws/`. The `alias/aws/` prefix is reserved
# for [AWS managed CMKs][1].
#
# The alias and the CMK it is mapped to must be in the same AWS account
# and the same region. You cannot perform this operation on an alias in
# a different AWS account.
#
# To map an existing alias to a different CMK, call UpdateAlias.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :alias_name
# Specifies the alias name. This value must begin with `alias/` followed
# by a name, such as `alias/ExampleAlias`. The alias name cannot begin
# with `alias/aws/`. The `alias/aws/` prefix is reserved for AWS managed
# CMKs.
#
# @option params [required, String] :target_key_id
# Identifies the CMK to which the alias refers. Specify the key ID or
# the Amazon Resource Name (ARN) of the CMK. You cannot specify another
# alias. For help finding the key ID and ARN, see [Finding the Key ID
# and ARN][1] in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html#find-cmk-id-arn
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To create an alias
#
# # The following example creates an alias for the specified customer master key (CMK).
#
# resp = client.create_alias({
# alias_name: "alias/ExampleAlias", # The alias to create. Aliases must begin with 'alias/'. Do not use aliases that begin with 'alias/aws' because they are reserved for use by AWS.
# target_key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose alias you are creating. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.create_alias({
# alias_name: "AliasNameType", # required
# target_key_id: "KeyIdType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAlias AWS API Documentation
#
# @overload create_alias(params = {})
# @param [Hash] params ({})
def create_alias(params = {}, options = {})
req = build_request(:create_alias, params)
req.send_request(options)
end
# Creates a [custom key store][1] that is associated with an [AWS
# CloudHSM cluster][2] that you own and manage.
#
# This operation is part of the [Custom Key Store feature][1] feature in
# AWS KMS, which combines the convenience and extensive integration of
# AWS KMS with the isolation and control of a single-tenant key store.
#
# Before you create the custom key store, you must assemble the required
# elements, including an AWS CloudHSM cluster that fulfills the
# requirements for a custom key store. For details about the required
# elements, see [Assemble the Prerequisites][3] in the *AWS Key
# Management Service Developer Guide*.
#
# When the operation completes successfully, it returns the ID of the
# new custom key store. Before you can use your new custom key store,
# you need to use the ConnectCustomKeyStore operation to connect the new
# key store to its AWS CloudHSM cluster. Even if you are not going to
# use your custom key store immediately, you might want to connect it to
# verify that all settings are correct and then disconnect it until you
# are ready to use it.
#
# For help with failures, see [Troubleshooting a Custom Key Store][4] in
# the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# [2]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/clusters.html
# [3]: https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore
# [4]: https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html
#
# @option params [required, String] :custom_key_store_name
# Specifies a friendly name for the custom key store. The name must be
# unique in your AWS account.
#
# @option params [required, String] :cloud_hsm_cluster_id
# Identifies the AWS CloudHSM cluster for the custom key store. Enter
# the cluster ID of any active AWS CloudHSM cluster that is not already
# associated with a custom key store. To find the cluster ID, use the
# [DescribeClusters][1] operation.
#
#
#
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html
#
# @option params [required, String] :trust_anchor_certificate
# Enter the content of the trust anchor certificate for the cluster.
# This is the content of the `customerCA.crt` file that you created when
# you [initialized the cluster][1].
#
#
#
# [1]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html
#
# @option params [required, String] :key_store_password
# Enter the password of the [ `kmsuser` crypto user (CU) account][1] in
# the specified AWS CloudHSM cluster. AWS KMS logs into the cluster as
# this user to manage key material on your behalf.
#
# This parameter tells AWS KMS the `kmsuser` account password; it does
# not change the password in the AWS CloudHSM cluster.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser
#
# @return [Types::CreateCustomKeyStoreResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreateCustomKeyStoreResponse#custom_key_store_id #custom_key_store_id} => String
#
# @example Request syntax with placeholder values
#
# resp = client.create_custom_key_store({
# custom_key_store_name: "CustomKeyStoreNameType", # required
# cloud_hsm_cluster_id: "CloudHsmClusterIdType", # required
# trust_anchor_certificate: "TrustAnchorCertificateType", # required
# key_store_password: "KeyStorePasswordType", # required
# })
#
# @example Response structure
#
# resp.custom_key_store_id #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateCustomKeyStore AWS API Documentation
#
# @overload create_custom_key_store(params = {})
# @param [Hash] params ({})
def create_custom_key_store(params = {}, options = {})
req = build_request(:create_custom_key_store, params)
req.send_request(options)
end
# Adds a grant to a customer master key (CMK). The grant allows the
# grantee principal to use the CMK when the conditions specified in the
# grant are met. When setting permissions, grants are an alternative to
# key policies.
#
# To create a grant that allows a cryptographic operation only when the
# encryption context in the operation request matches or includes a
# specified encryption context, use the `Constraints` parameter. For
# details, see GrantConstraints.
#
# To perform this operation on a CMK in a different AWS account, specify
# the key ARN in the value of the `KeyId` parameter. For more
# information about grants, see [Grants][1] in the <i> <i>AWS Key
# Management Service Developer Guide</i> </i>.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/grants.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# The unique identifier for the customer master key (CMK) that the grant
# applies to.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To
# specify a CMK in a different AWS account, you must use the key ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [required, String] :grantee_principal
# The principal that is given permission to perform the operations that
# the grant permits.
#
# To specify the principal, use the [Amazon Resource Name (ARN)][1] of
# an AWS principal. Valid AWS principals include AWS accounts (root),
# IAM users, IAM roles, federated users, and assumed role users. For
# examples of the ARN syntax to use for specifying a principal, see [AWS
# Identity and Access Management (IAM)][2] in the Example ARNs section
# of the *AWS General Reference*.
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
# [2]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam
#
# @option params [String] :retiring_principal
# The principal that is given permission to retire the grant by using
# RetireGrant operation.
#
# To specify the principal, use the [Amazon Resource Name (ARN)][1] of
# an AWS principal. Valid AWS principals include AWS accounts (root),
# IAM users, federated users, and assumed role users. For examples of
# the ARN syntax to use for specifying a principal, see [AWS Identity
# and Access Management (IAM)][2] in the Example ARNs section of the
# *AWS General Reference*.
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
# [2]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam
#
# @option params [required, Array<String>] :operations
# A list of operations that the grant permits.
#
# @option params [Types::GrantConstraints] :constraints
# Allows a cryptographic operation only when the encryption context
# matches or includes the encryption context specified in this
# structure. For more information about encryption context, see
# [Encryption Context][1] in the <i> <i>AWS Key Management Service
# Developer Guide</i> </i>.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
#
# @option params [Array<String>] :grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key Management
# Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
#
# @option params [String] :name
# A friendly name for identifying the grant. Use this value to prevent
# the unintended creation of duplicate grants when retrying this
# request.
#
# When this value is absent, all `CreateGrant` requests result in a new
# grant with a unique `GrantId` even if all the supplied parameters are
# identical. This can result in unintended duplicates when you retry the
# `CreateGrant` request.
#
# When this value is present, you can retry a `CreateGrant` request with
# identical parameters; if the grant already exists, the original
# `GrantId` is returned without creating a new grant. Note that the
# returned grant token is unique with every `CreateGrant` request, even
# when a duplicate `GrantId` is returned. All grant tokens obtained in
# this way can be used interchangeably.
#
# @return [Types::CreateGrantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreateGrantResponse#grant_token #grant_token} => String
# * {Types::CreateGrantResponse#grant_id #grant_id} => String
#
#
# @example Example: To create a grant
#
# # The following example creates a grant that allows the specified IAM role to encrypt data with the specified customer
# # master key (CMK).
#
# resp = client.create_grant({
# grantee_principal: "arn:aws:iam::111122223333:role/ExampleRole", # The identity that is given permission to perform the operations specified in the grant.
# key_id: "arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK to which the grant applies. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# operations: [
# "Encrypt",
# "Decrypt",
# ], # A list of operations that the grant allows.
# })
#
# resp.to_h outputs the following:
# {
# grant_id: "0c237476b39f8bc44e45212e08498fbe3151305030726c0590dd8d3e9f3d6a60", # The unique identifier of the grant.
# grant_token: "AQpAM2RhZTk1MGMyNTk2ZmZmMzEyYWVhOWViN2I1MWM4Mzc0MWFiYjc0ZDE1ODkyNGFlNTIzODZhMzgyZjBlNGY3NiKIAgEBAgB4Pa6VDCWW__MSrqnre1HIN0Grt00ViSSuUjhqOC8OT3YAAADfMIHcBgkqhkiG9w0BBwaggc4wgcsCAQAwgcUGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMmqLyBTAegIn9XlK5AgEQgIGXZQjkBcl1dykDdqZBUQ6L1OfUivQy7JVYO2-ZJP7m6f1g8GzV47HX5phdtONAP7K_HQIflcgpkoCqd_fUnE114mSmiagWkbQ5sqAVV3ov-VeqgrvMe5ZFEWLMSluvBAqdjHEdMIkHMlhlj4ENZbzBfo9Wxk8b8SnwP4kc4gGivedzFXo-dwN8fxjjq_ZZ9JFOj2ijIbj5FyogDCN0drOfi8RORSEuCEmPvjFRMFAwcmwFkN2NPp89amA", # The grant token.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.create_grant({
# key_id: "KeyIdType", # required
# grantee_principal: "PrincipalIdType", # required
# retiring_principal: "PrincipalIdType",
# operations: ["Decrypt"], # required, accepts Decrypt, Encrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintext, ReEncryptFrom, ReEncryptTo, CreateGrant, RetireGrant, DescribeKey
# constraints: {
# encryption_context_subset: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# encryption_context_equals: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# },
# grant_tokens: ["GrantTokenType"],
# name: "GrantNameType",
# })
#
# @example Response structure
#
# resp.grant_token #=> String
# resp.grant_id #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrant AWS API Documentation
#
# @overload create_grant(params = {})
# @param [Hash] params ({})
def create_grant(params = {}, options = {})
req = build_request(:create_grant, params)
req.send_request(options)
end
# Creates a customer managed [customer master key][1] (CMK) in your AWS
# account.
#
# You can use a CMK to encrypt small amounts of data (up to 4096 bytes)
# directly. But CMKs are more commonly used to encrypt the [data
# keys][2] that are used to encrypt data.
#
# To create a CMK for imported key material, use the `Origin` parameter
# with a value of `EXTERNAL`.
#
# To create a CMK in a [custom key store][3], use the `CustomKeyStoreId`
# parameter to specify the custom key store. You must also use the
# `Origin` parameter with a value of `AWS_CLOUDHSM`. The AWS CloudHSM
# cluster that is associated with the custom key store must have at
# least two active HSMs in different Availability Zones in the AWS
# Region.
#
# You cannot use this operation to create a CMK in a different AWS
# account.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys
# [3]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
#
# @option params [String] :policy
# The key policy to attach to the CMK.
#
# If you provide a key policy, it must meet the following criteria:
#
# * If you don't set `BypassPolicyLockoutSafetyCheck` to true, the key
# policy must allow the principal that is making the `CreateKey`
# request to make a subsequent PutKeyPolicy request on the CMK. This
# reduces the risk that the CMK becomes unmanageable. For more
# information, refer to the scenario in the [Default Key Policy][1]
# section of the <i> <i>AWS Key Management Service Developer Guide</i>
# </i>.
#
# * Each statement in the key policy must contain one or more
# principals. The principals in the key policy must exist and be
# visible to AWS KMS. When you create a new AWS principal (for
# example, an IAM user or role), you might need to enforce a delay
# before including the new principal in a key policy because the new
# principal might not be immediately visible to AWS KMS. For more
# information, see [Changes that I make are not always immediately
# visible][2] in the *AWS Identity and Access Management User Guide*.
#
# If you do not provide a key policy, AWS KMS attaches a default key
# policy to the CMK. For more information, see [Default Key Policy][3]
# in the *AWS Key Management Service Developer Guide*.
#
# The key policy size limit is 32 kilobytes (32768 bytes).
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency
# [3]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default
#
# @option params [String] :description
# A description of the CMK.
#
# Use a description that helps you decide whether the CMK is appropriate
# for a task.
#
# @option params [String] :key_usage
# The cryptographic operations for which you can use the CMK. The only
# valid value is `ENCRYPT_DECRYPT`, which means you can use the CMK to
# encrypt and decrypt data.
#
# @option params [String] :origin
# The source of the key material for the CMK. You cannot change the
# origin after you create the CMK.
#
# The default is `AWS_KMS`, which means AWS KMS creates the key material
# in its own key store.
#
# When the parameter value is `EXTERNAL`, AWS KMS creates a CMK without
# key material so that you can import key material from your existing
# key management infrastructure. For more information about importing
# key material into AWS KMS, see [Importing Key Material][1] in the *AWS
# Key Management Service Developer Guide*.
#
# When the parameter value is `AWS_CLOUDHSM`, AWS KMS creates the CMK in
# an AWS KMS [custom key store][2] and creates its key material in the
# associated AWS CloudHSM cluster. You must also use the
# `CustomKeyStoreId` parameter to identify the custom key store.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
#
# @option params [String] :custom_key_store_id
# Creates the CMK in the specified [custom key store][1] and the key
# material in its associated AWS CloudHSM cluster. To create a CMK in a
# custom key store, you must also specify the `Origin` parameter with a
# value of `AWS_CLOUDHSM`. The AWS CloudHSM cluster that is associated
# with the custom key store must have at least two active HSMs, each in
# a different Availability Zone in the Region.
#
# To find the ID of a custom key store, use the DescribeCustomKeyStores
# operation.
#
# The response includes the custom key store ID and the ID of the AWS
# CloudHSM cluster.
#
# This operation is part of the [Custom Key Store feature][1] feature in
# AWS KMS, which combines the convenience and extensive integration of
# AWS KMS with the isolation and control of a single-tenant key store.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
#
# @option params [Boolean] :bypass_policy_lockout_safety_check
# A flag to indicate whether to bypass the key policy lockout safety
# check.
#
# Setting this value to true increases the risk that the CMK becomes
# unmanageable. Do not set this value to true indiscriminately.
#
# For more information, refer to the scenario in the [Default Key
# Policy][1] section in the <i> <i>AWS Key Management Service Developer
# Guide</i> </i>.
#
# Use this parameter only when you include a policy in the request and
# you intend to prevent the principal that is making the request from
# making a subsequent PutKeyPolicy request on the CMK.
#
# The default value is false.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam
#
# @option params [Array<Types::Tag>] :tags
# One or more tags. Each tag consists of a tag key and a tag value. Tag
# keys and tag values are both required, but tag values can be empty
# (null) strings.
#
# Use this parameter to tag the CMK when it is created. Alternately, you
# can omit this parameter and instead tag the CMK after it is created
# using TagResource.
#
# @return [Types::CreateKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreateKeyResponse#key_metadata #key_metadata} => Types::KeyMetadata
#
#
# @example Example: To create a customer master key (CMK)
#
# # The following example creates a CMK.
#
# resp = client.create_key({
# tags: [
# {
# tag_key: "CreatedBy",
# tag_value: "ExampleUser",
# },
# ], # One or more tags. Each tag consists of a tag key and a tag value.
# })
#
# resp.to_h outputs the following:
# {
# key_metadata: {
# aws_account_id: "111122223333",
# arn: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
# creation_date: Time.parse("2017-07-05T14:04:55-07:00"),
# description: "",
# enabled: true,
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab",
# key_manager: "CUSTOMER",
# key_state: "Enabled",
# key_usage: "ENCRYPT_DECRYPT",
# origin: "AWS_KMS",
# }, # An object that contains information about the CMK created by this operation.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.create_key({
# policy: "PolicyType",
# description: "DescriptionType",
# key_usage: "ENCRYPT_DECRYPT", # accepts ENCRYPT_DECRYPT
# origin: "AWS_KMS", # accepts AWS_KMS, EXTERNAL, AWS_CLOUDHSM
# custom_key_store_id: "CustomKeyStoreIdType",
# bypass_policy_lockout_safety_check: false,
# tags: [
# {
# tag_key: "TagKeyType", # required
# tag_value: "TagValueType", # required
# },
# ],
# })
#
# @example Response structure
#
# resp.key_metadata.aws_account_id #=> String
# resp.key_metadata.key_id #=> String
# resp.key_metadata.arn #=> String
# resp.key_metadata.creation_date #=> Time
# resp.key_metadata.enabled #=> Boolean
# resp.key_metadata.description #=> String
# resp.key_metadata.key_usage #=> String, one of "ENCRYPT_DECRYPT"
# resp.key_metadata.key_state #=> String, one of "Enabled", "Disabled", "PendingDeletion", "PendingImport", "Unavailable"
# resp.key_metadata.deletion_date #=> Time
# resp.key_metadata.valid_to #=> Time
# resp.key_metadata.origin #=> String, one of "AWS_KMS", "EXTERNAL", "AWS_CLOUDHSM"
# resp.key_metadata.custom_key_store_id #=> String
# resp.key_metadata.cloud_hsm_cluster_id #=> String
# resp.key_metadata.expiration_model #=> String, one of "KEY_MATERIAL_EXPIRES", "KEY_MATERIAL_DOES_NOT_EXPIRE"
# resp.key_metadata.key_manager #=> String, one of "AWS", "CUSTOMER"
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey AWS API Documentation
#
# @overload create_key(params = {})
# @param [Hash] params ({})
def create_key(params = {}, options = {})
req = build_request(:create_key, params)
req.send_request(options)
end
# Decrypts ciphertext. Ciphertext is plaintext that has been previously
# encrypted by using any of the following operations:
#
# * GenerateDataKey
#
# * GenerateDataKeyWithoutPlaintext
#
# * Encrypt
#
# Whenever possible, use key policies to give users permission to call
# the Decrypt operation on the CMK, instead of IAM policies. Otherwise,
# you might create an IAM user policy that gives the user Decrypt
# permission on all CMKs. This user could decrypt ciphertext that was
# encrypted by CMKs in other accounts if the key policy for the
# cross-account CMK permits it. If you must use an IAM policy for
# `Decrypt` permissions, limit the user to particular CMKs or particular
# trusted accounts.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][1]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String, IO] :ciphertext_blob
# Ciphertext to be decrypted. The blob includes metadata.
#
# @option params [Hash<String,String>] :encryption_context
# The encryption context. If this was specified in the Encrypt function,
# it must be specified here or the decryption operation will fail. For
# more information, see [Encryption Context][1].
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
#
# @option params [Array<String>] :grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key Management
# Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
#
# @return [Types::DecryptResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::DecryptResponse#key_id #key_id} => String
# * {Types::DecryptResponse#plaintext #plaintext} => String
#
#
# @example Example: To decrypt data
#
# # The following example decrypts data that was encrypted with a customer master key (CMK) in AWS KMS.
#
# resp = client.decrypt({
# ciphertext_blob: "<binary data>", # The encrypted data (ciphertext).
# })
#
# resp.to_h outputs the following:
# {
# key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The Amazon Resource Name (ARN) of the CMK that was used to decrypt the data.
# plaintext: "<binary data>", # The decrypted (plaintext) data.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.decrypt({
# ciphertext_blob: "data", # required
# encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# grant_tokens: ["GrantTokenType"],
# })
#
# @example Response structure
#
# resp.key_id #=> String
# resp.plaintext #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Decrypt AWS API Documentation
#
# @overload decrypt(params = {})
# @param [Hash] params ({})
def decrypt(params = {}, options = {})
req = build_request(:decrypt, params)
req.send_request(options)
end
# Deletes the specified alias. You cannot perform this operation on an
# alias in a different AWS account.
#
# Because an alias is not a property of a CMK, you can delete and change
# the aliases of a CMK without affecting the CMK. Also, aliases do not
# appear in the response from the DescribeKey operation. To get the
# aliases of all CMKs, use the ListAliases operation.
#
# Each CMK can have multiple aliases. To change the alias of a CMK, use
# DeleteAlias to delete the current alias and CreateAlias to create a
# new alias. To associate an existing alias with a different customer
# master key (CMK), call UpdateAlias.
#
# @option params [required, String] :alias_name
# The alias to be deleted. The alias name must begin with `alias/`
# followed by the alias name, such as `alias/ExampleAlias`.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To delete an alias
#
# # The following example deletes the specified alias.
#
# resp = client.delete_alias({
# alias_name: "alias/ExampleAlias", # The alias to delete.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.delete_alias({
# alias_name: "AliasNameType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAlias AWS API Documentation
#
# @overload delete_alias(params = {})
# @param [Hash] params ({})
def delete_alias(params = {}, options = {})
req = build_request(:delete_alias, params)
req.send_request(options)
end
# Deletes a [custom key store][1]. This operation does not delete the
# AWS CloudHSM cluster that is associated with the custom key store, or
# affect any users or keys in the cluster.
#
# The custom key store that you delete cannot contain any AWS KMS
# [customer master keys (CMKs)][2]. Before deleting the key store,
# verify that you will never need to use any of the CMKs in the key
# store for any cryptographic operations. Then, use ScheduleKeyDeletion
# to delete the AWS KMS customer master keys (CMKs) from the key store.
# When the scheduled waiting period expires, the `ScheduleKeyDeletion`
# operation deletes the CMKs. Then it makes a best effort to delete the
# key material from the associated cluster. However, you might need to
# manually [delete the orphaned key material][3] from the cluster and
# its backups.
#
# After all CMKs are deleted from AWS KMS, use DisconnectCustomKeyStore
# to disconnect the key store from AWS KMS. Then, you can delete the
# custom key store.
#
# Instead of deleting the custom key store, consider using
# DisconnectCustomKeyStore to disconnect it from AWS KMS. While the key
# store is disconnected, you cannot create or use the CMKs in the key
# store. But, you do not need to delete CMKs and you can reconnect a
# disconnected custom key store at any time.
#
# If the operation succeeds, it returns a JSON object with no
# properties.
#
# This operation is part of the [Custom Key Store feature][1] feature in
# AWS KMS, which combines the convenience and extensive integration of
# AWS KMS with the isolation and control of a single-tenant key store.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys
# [3]: https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key
#
# @option params [required, String] :custom_key_store_id
# Enter the ID of the custom key store you want to delete. To find the
# ID of a custom key store, use the DescribeCustomKeyStores operation.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
# @example Request syntax with placeholder values
#
# resp = client.delete_custom_key_store({
# custom_key_store_id: "CustomKeyStoreIdType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteCustomKeyStore AWS API Documentation
#
# @overload delete_custom_key_store(params = {})
# @param [Hash] params ({})
def delete_custom_key_store(params = {}, options = {})
req = build_request(:delete_custom_key_store, params)
req.send_request(options)
end
# Deletes key material that you previously imported. This operation
# makes the specified customer master key (CMK) unusable. For more
# information about importing key material into AWS KMS, see [Importing
# Key Material][1] in the *AWS Key Management Service Developer Guide*.
# You cannot perform this operation on a CMK in a different AWS account.
#
# When the specified CMK is in the `PendingDeletion` state, this
# operation does not change the CMK's state. Otherwise, it changes the
# CMK's state to `PendingImport`.
#
# After you delete key material, you can use ImportKeyMaterial to
# reimport the same key material into the CMK.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# Identifies the CMK from which you are deleting imported key material.
# The `Origin` of the CMK must be `EXTERNAL`.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To delete imported key material
#
# # The following example deletes the imported key material from the specified customer master key (CMK).
#
# resp = client.delete_imported_key_material({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose imported key material you are deleting. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.delete_imported_key_material({
# key_id: "KeyIdType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterial AWS API Documentation
#
# @overload delete_imported_key_material(params = {})
# @param [Hash] params ({})
def delete_imported_key_material(params = {}, options = {})
req = build_request(:delete_imported_key_material, params)
req.send_request(options)
end
# Gets information about [custom key stores][1] in the account and
# region.
#
# This operation is part of the [Custom Key Store feature][1] feature in
# AWS KMS, which combines the convenience and extensive integration of
# AWS KMS with the isolation and control of a single-tenant key store.
#
# By default, this operation returns information about all custom key
# stores in the account and region. To get only information about a
# particular custom key store, use either the `CustomKeyStoreName` or
# `CustomKeyStoreId` parameter (but not both).
#
# To determine whether the custom key store is connected to its AWS
# CloudHSM cluster, use the `ConnectionState` element in the response.
# If an attempt to connect the custom key store failed, the
# `ConnectionState` value is `FAILED` and the `ConnectionErrorCode`
# element in the response indicates the cause of the failure. For help
# interpreting the `ConnectionErrorCode`, see CustomKeyStoresListEntry.
#
# Custom key stores have a `DISCONNECTED` connection state if the key
# store has never been connected or you use the DisconnectCustomKeyStore
# operation to disconnect it. If your custom key store state is
# `CONNECTED` but you are having trouble using it, make sure that its
# associated AWS CloudHSM cluster is active and contains the minimum
# number of HSMs required for the operation, if any.
#
# For help repairing your custom key store, see the [Troubleshooting
# Custom Key Stores][2] topic in the *AWS Key Management Service
# Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html
#
# @option params [String] :custom_key_store_id
# Gets only information about the specified custom key store. Enter the
# key store ID.
#
# By default, this operation gets information about all custom key
# stores in the account and region. To limit the output to a particular
# custom key store, you can use either the `CustomKeyStoreId` or
# `CustomKeyStoreName` parameter, but not both.
#
# @option params [String] :custom_key_store_name
# Gets only information about the specified custom key store. Enter the
# friendly name of the custom key store.
#
# By default, this operation gets information about all custom key
# stores in the account and region. To limit the output to a particular
# custom key store, you can use either the `CustomKeyStoreId` or
# `CustomKeyStoreName` parameter, but not both.
#
# @option params [Integer] :limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# @option params [String] :marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
#
# @return [Types::DescribeCustomKeyStoresResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::DescribeCustomKeyStoresResponse#custom_key_stores #custom_key_stores} => Array<Types::CustomKeyStoresListEntry>
# * {Types::DescribeCustomKeyStoresResponse#next_marker #next_marker} => String
# * {Types::DescribeCustomKeyStoresResponse#truncated #truncated} => Boolean
#
# @example Request syntax with placeholder values
#
# resp = client.describe_custom_key_stores({
# custom_key_store_id: "CustomKeyStoreIdType",
# custom_key_store_name: "CustomKeyStoreNameType",
# limit: 1,
# marker: "MarkerType",
# })
#
# @example Response structure
#
# resp.custom_key_stores #=> Array
# resp.custom_key_stores[0].custom_key_store_id #=> String
# resp.custom_key_stores[0].custom_key_store_name #=> String
# resp.custom_key_stores[0].cloud_hsm_cluster_id #=> String
# resp.custom_key_stores[0].trust_anchor_certificate #=> String
# resp.custom_key_stores[0].connection_state #=> String, one of "CONNECTED", "CONNECTING", "FAILED", "DISCONNECTED", "DISCONNECTING"
# resp.custom_key_stores[0].connection_error_code #=> String, one of "INVALID_CREDENTIALS", "CLUSTER_NOT_FOUND", "NETWORK_ERRORS", "INTERNAL_ERROR", "INSUFFICIENT_CLOUDHSM_HSMS", "USER_LOCKED_OUT"
# resp.custom_key_stores[0].creation_date #=> Time
# resp.next_marker #=> String
# resp.truncated #=> Boolean
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores AWS API Documentation
#
# @overload describe_custom_key_stores(params = {})
# @param [Hash] params ({})
def describe_custom_key_stores(params = {}, options = {})
req = build_request(:describe_custom_key_stores, params)
req.send_request(options)
end
# Provides detailed information about the specified customer master key
# (CMK).
#
# You can use `DescribeKey` on a predefined AWS alias, that is, an AWS
# alias with no key ID. When you do, AWS KMS associates the alias with
# an [AWS managed CMK][1] and returns its `KeyId` and `Arn` in the
# response.
#
# To perform this operation on a CMK in a different AWS account, specify
# the key ARN or alias ARN in the value of the KeyId parameter.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys
#
# @option params [required, String] :key_id
# Describes the specified customer master key (CMK).
#
# If you specify a predefined AWS alias (an AWS alias with no key ID),
# KMS associates the alias with an [AWS managed CMK][1] and returns its
# `KeyId` and `Arn` in the response.
#
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
# name, or alias ARN. When using an alias name, prefix it with
# `"alias/"`. To specify a CMK in a different AWS account, you must use
# the key ARN or alias ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Alias name: `alias/ExampleAlias`
#
# * Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
# To get the alias name and alias ARN, use ListAliases.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys
#
# @option params [Array<String>] :grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key Management
# Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
#
# @return [Types::DescribeKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::DescribeKeyResponse#key_metadata #key_metadata} => Types::KeyMetadata
#
#
# @example Example: To obtain information about a customer master key (CMK)
#
# # The following example returns information (metadata) about the specified CMK.
#
# resp = client.describe_key({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK that you want information about. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# resp.to_h outputs the following:
# {
# key_metadata: {
# aws_account_id: "111122223333",
# arn: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
# creation_date: Time.parse("2017-07-05T14:04:55-07:00"),
# description: "",
# enabled: true,
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab",
# key_manager: "CUSTOMER",
# key_state: "Enabled",
# key_usage: "ENCRYPT_DECRYPT",
# origin: "AWS_KMS",
# }, # An object that contains information about the specified CMK.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.describe_key({
# key_id: "KeyIdType", # required
# grant_tokens: ["GrantTokenType"],
# })
#
# @example Response structure
#
# resp.key_metadata.aws_account_id #=> String
# resp.key_metadata.key_id #=> String
# resp.key_metadata.arn #=> String
# resp.key_metadata.creation_date #=> Time
# resp.key_metadata.enabled #=> Boolean
# resp.key_metadata.description #=> String
# resp.key_metadata.key_usage #=> String, one of "ENCRYPT_DECRYPT"
# resp.key_metadata.key_state #=> String, one of "Enabled", "Disabled", "PendingDeletion", "PendingImport", "Unavailable"
# resp.key_metadata.deletion_date #=> Time
# resp.key_metadata.valid_to #=> Time
# resp.key_metadata.origin #=> String, one of "AWS_KMS", "EXTERNAL", "AWS_CLOUDHSM"
# resp.key_metadata.custom_key_store_id #=> String
# resp.key_metadata.cloud_hsm_cluster_id #=> String
# resp.key_metadata.expiration_model #=> String, one of "KEY_MATERIAL_EXPIRES", "KEY_MATERIAL_DOES_NOT_EXPIRE"
# resp.key_metadata.key_manager #=> String, one of "AWS", "CUSTOMER"
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKey AWS API Documentation
#
# @overload describe_key(params = {})
# @param [Hash] params ({})
def describe_key(params = {}, options = {})
req = build_request(:describe_key, params)
req.send_request(options)
end
# Sets the state of a customer master key (CMK) to disabled, thereby
# preventing its use for cryptographic operations. You cannot perform
# this operation on a CMK in a different AWS account.
#
# For more information about how key state affects the use of a CMK, see
# [How Key State Affects the Use of a Customer Master Key][1] in the <i>
# <i>AWS Key Management Service Developer Guide</i> </i>.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][1]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To disable a customer master key (CMK)
#
# # The following example disables the specified CMK.
#
# resp = client.disable_key({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK to disable. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.disable_key({
# key_id: "KeyIdType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKey AWS API Documentation
#
# @overload disable_key(params = {})
# @param [Hash] params ({})
def disable_key(params = {}, options = {})
req = build_request(:disable_key, params)
req.send_request(options)
end
# Disables [automatic rotation of the key material][1] for the specified
# customer master key (CMK). You cannot perform this operation on a CMK
# in a different AWS account.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To disable automatic rotation of key material
#
# # The following example disables automatic annual rotation of the key material for the specified CMK.
#
# resp = client.disable_key_rotation({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose key material will no longer be rotated. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.disable_key_rotation({
# key_id: "KeyIdType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotation AWS API Documentation
#
# @overload disable_key_rotation(params = {})
# @param [Hash] params ({})
def disable_key_rotation(params = {}, options = {})
req = build_request(:disable_key_rotation, params)
req.send_request(options)
end
# Disconnects the [custom key store][1] from its associated AWS CloudHSM
# cluster. While a custom key store is disconnected, you can manage the
# custom key store and its customer master keys (CMKs), but you cannot
# create or use CMKs in the custom key store. You can reconnect the
# custom key store at any time.
#
# <note markdown="1"> While a custom key store is disconnected, all attempts to create
# customer master keys (CMKs) in the custom key store or to use existing
# CMKs in cryptographic operations will fail. This action can prevent
# users from storing and accessing sensitive data.
#
# </note>
#
#
#
# To find the connection state of a custom key store, use the
# DescribeCustomKeyStores operation. To reconnect a custom key store,
# use the ConnectCustomKeyStore operation.
#
# If the operation succeeds, it returns a JSON object with no
# properties.
#
# This operation is part of the [Custom Key Store feature][1] feature in
# AWS KMS, which combines the convenience and extensive integration of
# AWS KMS with the isolation and control of a single-tenant key store.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
#
# @option params [required, String] :custom_key_store_id
# Enter the ID of the custom key store you want to disconnect. To find
# the ID of a custom key store, use the DescribeCustomKeyStores
# operation.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
# @example Request syntax with placeholder values
#
# resp = client.disconnect_custom_key_store({
# custom_key_store_id: "CustomKeyStoreIdType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisconnectCustomKeyStore AWS API Documentation
#
# @overload disconnect_custom_key_store(params = {})
# @param [Hash] params ({})
def disconnect_custom_key_store(params = {}, options = {})
req = build_request(:disconnect_custom_key_store, params)
req.send_request(options)
end
# Sets the key state of a customer master key (CMK) to enabled. This
# allows you to use the CMK for cryptographic operations. You cannot
# perform this operation on a CMK in a different AWS account.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][1]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To enable a customer master key (CMK)
#
# # The following example enables the specified CMK.
#
# resp = client.enable_key({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK to enable. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.enable_key({
# key_id: "KeyIdType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKey AWS API Documentation
#
# @overload enable_key(params = {})
# @param [Hash] params ({})
def enable_key(params = {}, options = {})
req = build_request(:enable_key, params)
req.send_request(options)
end
# Enables [automatic rotation of the key material][1] for the specified
# customer master key (CMK). You cannot perform this operation on a CMK
# in a different AWS account.
#
# You cannot enable automatic rotation of CMKs with imported key
# material or CMKs in a [custom key store][2].
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][3]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# [3]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To enable automatic rotation of key material
#
# # The following example enables automatic annual rotation of the key material for the specified CMK.
#
# resp = client.enable_key_rotation({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose key material will be rotated annually. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.enable_key_rotation({
# key_id: "KeyIdType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotation AWS API Documentation
#
# @overload enable_key_rotation(params = {})
# @param [Hash] params ({})
def enable_key_rotation(params = {}, options = {})
req = build_request(:enable_key_rotation, params)
req.send_request(options)
end
# Encrypts plaintext into ciphertext by using a customer master key
# (CMK). The `Encrypt` operation has two primary use cases:
#
# * You can encrypt up to 4 kilobytes (4096 bytes) of arbitrary data
# such as an RSA key, a database password, or other sensitive
# information.
#
# * You can use the `Encrypt` operation to move encrypted data from one
# AWS region to another. In the first region, generate a data key and
# use the plaintext key to encrypt the data. Then, in the new region,
# call the `Encrypt` method on same plaintext data key. Now, you can
# safely move the encrypted data and encrypted data key to the new
# region, and decrypt in the new region when necessary.
#
# You don't need use this operation to encrypt a data key within a
# region. The GenerateDataKey and GenerateDataKeyWithoutPlaintext
# operations return an encrypted data key.
#
# Also, you don't need to use this operation to encrypt data in your
# application. You can use the plaintext and encrypted data keys that
# the `GenerateDataKey` operation returns.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][1]
# in the *AWS Key Management Service Developer Guide*.
#
# To perform this operation on a CMK in a different AWS account, specify
# the key ARN or alias ARN in the value of the KeyId parameter.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
# name, or alias ARN. When using an alias name, prefix it with
# `"alias/"`. To specify a CMK in a different AWS account, you must use
# the key ARN or alias ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Alias name: `alias/ExampleAlias`
#
# * Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
# To get the alias name and alias ARN, use ListAliases.
#
# @option params [required, String, IO] :plaintext
# Data to be encrypted.
#
# @option params [Hash<String,String>] :encryption_context
# Name-value pair that specifies the encryption context to be used for
# authenticated encryption. If used here, the same value must be
# supplied to the `Decrypt` API or decryption will fail. For more
# information, see [Encryption Context][1].
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
#
# @option params [Array<String>] :grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key Management
# Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
#
# @return [Types::EncryptResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::EncryptResponse#ciphertext_blob #ciphertext_blob} => String
# * {Types::EncryptResponse#key_id #key_id} => String
#
#
# @example Example: To encrypt data
#
# # The following example encrypts data with the specified customer master key (CMK).
#
# resp = client.encrypt({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK to use for encryption. You can use the key ID or Amazon Resource Name (ARN) of the CMK, or the name or ARN of an alias that refers to the CMK.
# plaintext: "<binary data>", # The data to encrypt.
# })
#
# resp.to_h outputs the following:
# {
# ciphertext_blob: "<binary data>", # The encrypted data (ciphertext).
# key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The ARN of the CMK that was used to encrypt the data.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.encrypt({
# key_id: "KeyIdType", # required
# plaintext: "data", # required
# encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# grant_tokens: ["GrantTokenType"],
# })
#
# @example Response structure
#
# resp.ciphertext_blob #=> String
# resp.key_id #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Encrypt AWS API Documentation
#
# @overload encrypt(params = {})
# @param [Hash] params ({})
def encrypt(params = {}, options = {})
req = build_request(:encrypt, params)
req.send_request(options)
end
# Generates a unique data key. This operation returns a plaintext copy
# of the data key and a copy that is encrypted under a customer master
# key (CMK) that you specify. You can use the plaintext key to encrypt
# your data outside of KMS and store the encrypted data key with the
# encrypted data.
#
# `GenerateDataKey` returns a unique data key for each request. The
# bytes in the key are not related to the caller or CMK that is used to
# encrypt the data key.
#
# To generate a data key, you need to specify the customer master key
# (CMK) that will be used to encrypt the data key. You must also specify
# the length of the data key using either the `KeySpec` or
# `NumberOfBytes` field (but not both). For common key lengths (128-bit
# and 256-bit symmetric keys), we recommend that you use `KeySpec`. To
# perform this operation on a CMK in a different AWS account, specify
# the key ARN or alias ARN in the value of the KeyId parameter.
#
# You will find the plaintext copy of the data key in the `Plaintext`
# field of the response, and the encrypted copy of the data key in the
# `CiphertextBlob` field.
#
# We recommend that you use the following pattern to encrypt data
# locally in your application:
#
# 1. Use the `GenerateDataKey` operation to get a data encryption key.
#
# 2. Use the plaintext data key (returned in the `Plaintext` field of
# the response) to encrypt data locally, then erase the plaintext
# data key from memory.
#
# 3. Store the encrypted data key (returned in the `CiphertextBlob`
# field of the response) alongside the locally encrypted data.
#
# To decrypt data locally:
#
# 1. Use the Decrypt operation to decrypt the encrypted data key. The
# operation returns a plaintext copy of the data key.
#
# 2. Use the plaintext data key to decrypt data locally, then erase the
# plaintext data key from memory.
#
# To get only an encrypted copy of the data key, use
# GenerateDataKeyWithoutPlaintext. To get a cryptographically secure
# random byte string, use GenerateRandom.
#
# You can use the optional encryption context to add additional security
# to your encryption operation. When you specify an `EncryptionContext`
# in the `GenerateDataKey` operation, you must specify the same
# encryption context (a case-sensitive exact match) in your request to
# Decrypt the data key. Otherwise, the request to decrypt fails with an
# `InvalidCiphertextException`. For more information, see [Encryption
# Context][1] in the <i> <i>AWS Key Management Service Developer
# Guide</i> </i>.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# An identifier for the CMK that encrypts the data key.
#
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
# name, or alias ARN. When using an alias name, prefix it with
# `"alias/"`. To specify a CMK in a different AWS account, you must use
# the key ARN or alias ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Alias name: `alias/ExampleAlias`
#
# * Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
# To get the alias name and alias ARN, use ListAliases.
#
# @option params [Hash<String,String>] :encryption_context
# A set of key-value pairs that represents additional authenticated
# data.
#
# For more information, see [Encryption Context][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
#
# @option params [Integer] :number_of_bytes
# The length of the data key in bytes. For example, use the value 64 to
# generate a 512-bit data key (64 bytes is 512 bits). For common key
# lengths (128-bit and 256-bit symmetric keys), we recommend that you
# use the `KeySpec` field instead of this one.
#
# @option params [String] :key_spec
# The length of the data key. Use `AES_128` to generate a 128-bit
# symmetric key, or `AES_256` to generate a 256-bit symmetric key.
#
# @option params [Array<String>] :grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key Management
# Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
#
# @return [Types::GenerateDataKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::GenerateDataKeyResponse#ciphertext_blob #ciphertext_blob} => String
# * {Types::GenerateDataKeyResponse#plaintext #plaintext} => String
# * {Types::GenerateDataKeyResponse#key_id #key_id} => String
#
#
# @example Example: To generate a data key
#
# # The following example generates a 256-bit symmetric data encryption key (data key) in two formats. One is the
# # unencrypted (plainext) data key, and the other is the data key encrypted with the specified customer master key (CMK).
#
# resp = client.generate_data_key({
# key_id: "alias/ExampleAlias", # The identifier of the CMK to use to encrypt the data key. You can use the key ID or Amazon Resource Name (ARN) of the CMK, or the name or ARN of an alias that refers to the CMK.
# key_spec: "AES_256", # Specifies the type of data key to return.
# })
#
# resp.to_h outputs the following:
# {
# ciphertext_blob: "<binary data>", # The encrypted data key.
# key_id: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The ARN of the CMK that was used to encrypt the data key.
# plaintext: "<binary data>", # The unencrypted (plaintext) data key.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.generate_data_key({
# key_id: "KeyIdType", # required
# encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# number_of_bytes: 1,
# key_spec: "AES_256", # accepts AES_256, AES_128
# grant_tokens: ["GrantTokenType"],
# })
#
# @example Response structure
#
# resp.ciphertext_blob #=> String
# resp.plaintext #=> String
# resp.key_id #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKey AWS API Documentation
#
# @overload generate_data_key(params = {})
# @param [Hash] params ({})
def generate_data_key(params = {}, options = {})
req = build_request(:generate_data_key, params)
req.send_request(options)
end
# Generates a unique data key. This operation returns a data key that is
# encrypted under a customer master key (CMK) that you specify.
# `GenerateDataKeyWithoutPlaintext` is identical to GenerateDataKey
# except that returns only the encrypted copy of the data key.
#
# Like `GenerateDataKey`, `GenerateDataKeyWithoutPlaintext` returns a
# unique data key for each request. The bytes in the key are not related
# to the caller or CMK that is used to encrypt the data key.
#
# This operation is useful for systems that need to encrypt data at some
# point, but not immediately. When you need to encrypt the data, you
# call the Decrypt operation on the encrypted copy of the key.
#
# It's also useful in distributed systems with different levels of
# trust. For example, you might store encrypted data in containers. One
# component of your system creates new containers and stores an
# encrypted data key with each container. Then, a different component
# puts the data into the containers. That component first decrypts the
# data key, uses the plaintext data key to encrypt data, puts the
# encrypted data into the container, and then destroys the plaintext
# data key. In this system, the component that creates the containers
# never sees the plaintext data key.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][1]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# The identifier of the customer master key (CMK) that encrypts the data
# key.
#
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
# name, or alias ARN. When using an alias name, prefix it with
# `"alias/"`. To specify a CMK in a different AWS account, you must use
# the key ARN or alias ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Alias name: `alias/ExampleAlias`
#
# * Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
# To get the alias name and alias ARN, use ListAliases.
#
# @option params [Hash<String,String>] :encryption_context
# A set of key-value pairs that represents additional authenticated
# data.
#
# For more information, see [Encryption Context][1] in the *AWS Key
# Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context
#
# @option params [String] :key_spec
# The length of the data key. Use `AES_128` to generate a 128-bit
# symmetric key, or `AES_256` to generate a 256-bit symmetric key.
#
# @option params [Integer] :number_of_bytes
# The length of the data key in bytes. For example, use the value 64 to
# generate a 512-bit data key (64 bytes is 512 bits). For common key
# lengths (128-bit and 256-bit symmetric keys), we recommend that you
# use the `KeySpec` field instead of this one.
#
# @option params [Array<String>] :grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key Management
# Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
#
# @return [Types::GenerateDataKeyWithoutPlaintextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::GenerateDataKeyWithoutPlaintextResponse#ciphertext_blob #ciphertext_blob} => String
# * {Types::GenerateDataKeyWithoutPlaintextResponse#key_id #key_id} => String
#
#
# @example Example: To generate an encrypted data key
#
# # The following example generates an encrypted copy of a 256-bit symmetric data encryption key (data key). The data key is
# # encrypted with the specified customer master key (CMK).
#
# resp = client.generate_data_key_without_plaintext({
# key_id: "alias/ExampleAlias", # The identifier of the CMK to use to encrypt the data key. You can use the key ID or Amazon Resource Name (ARN) of the CMK, or the name or ARN of an alias that refers to the CMK.
# key_spec: "AES_256", # Specifies the type of data key to return.
# })
#
# resp.to_h outputs the following:
# {
# ciphertext_blob: "<binary data>", # The encrypted data key.
# key_id: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The ARN of the CMK that was used to encrypt the data key.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.generate_data_key_without_plaintext({
# key_id: "KeyIdType", # required
# encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# key_spec: "AES_256", # accepts AES_256, AES_128
# number_of_bytes: 1,
# grant_tokens: ["GrantTokenType"],
# })
#
# @example Response structure
#
# resp.ciphertext_blob #=> String
# resp.key_id #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintext AWS API Documentation
#
# @overload generate_data_key_without_plaintext(params = {})
# @param [Hash] params ({})
def generate_data_key_without_plaintext(params = {}, options = {})
req = build_request(:generate_data_key_without_plaintext, params)
req.send_request(options)
end
# Returns a random byte string that is cryptographically secure.
#
# By default, the random byte string is generated in AWS KMS. To
# generate the byte string in the AWS CloudHSM cluster that is
# associated with a [custom key store][1], specify the custom key store
# ID.
#
# For more information about entropy and random number generation, see
# the [AWS Key Management Service Cryptographic Details][2] whitepaper.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# [2]: https://d0.awsstatic.com/whitepapers/KMS-Cryptographic-Details.pdf
#
# @option params [Integer] :number_of_bytes
# The length of the byte string.
#
# @option params [String] :custom_key_store_id
# Generates the random byte string in the AWS CloudHSM cluster that is
# associated with the specified [custom key store][1]. To find the ID of
# a custom key store, use the DescribeCustomKeyStores operation.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
#
# @return [Types::GenerateRandomResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::GenerateRandomResponse#plaintext #plaintext} => String
#
#
# @example Example: To generate random data
#
# # The following example uses AWS KMS to generate 32 bytes of random data.
#
# resp = client.generate_random({
# number_of_bytes: 32, # The length of the random data, specified in number of bytes.
# })
#
# resp.to_h outputs the following:
# {
# plaintext: "<binary data>", # The random data.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.generate_random({
# number_of_bytes: 1,
# custom_key_store_id: "CustomKeyStoreIdType",
# })
#
# @example Response structure
#
# resp.plaintext #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandom AWS API Documentation
#
# @overload generate_random(params = {})
# @param [Hash] params ({})
def generate_random(params = {}, options = {})
req = build_request(:generate_random, params)
req.send_request(options)
end
# Gets a key policy attached to the specified customer master key (CMK).
# You cannot perform this operation on a CMK in a different AWS account.
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [required, String] :policy_name
# Specifies the name of the key policy. The only valid name is
# `default`. To get the names of key policies, use ListKeyPolicies.
#
# @return [Types::GetKeyPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::GetKeyPolicyResponse#policy #policy} => String
#
#
# @example Example: To retrieve a key policy
#
# # The following example retrieves the key policy for the specified customer master key (CMK).
#
# resp = client.get_key_policy({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose key policy you want to retrieve. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# policy_name: "default", # The name of the key policy to retrieve.
# })
#
# resp.to_h outputs the following:
# {
# policy: "{\n \"Version\" : \"2012-10-17\",\n \"Id\" : \"key-default-1\",\n \"Statement\" : [ {\n \"Sid\" : \"Enable IAM User Permissions\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"AWS\" : \"arn:aws:iam::111122223333:root\"\n },\n \"Action\" : \"kms:*\",\n \"Resource\" : \"*\"\n } ]\n}", # The key policy document.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.get_key_policy({
# key_id: "KeyIdType", # required
# policy_name: "PolicyNameType", # required
# })
#
# @example Response structure
#
# resp.policy #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicy AWS API Documentation
#
# @overload get_key_policy(params = {})
# @param [Hash] params ({})
def get_key_policy(params = {}, options = {})
req = build_request(:get_key_policy, params)
req.send_request(options)
end
# Gets a Boolean value that indicates whether [automatic rotation of the
# key material][1] is enabled for the specified customer master key
# (CMK).
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
# * Disabled: The key rotation status does not change when you disable a
# CMK. However, while the CMK is disabled, AWS KMS does not rotate the
# backing key.
#
# * Pending deletion: While a CMK is pending deletion, its key rotation
# status is `false` and AWS KMS does not rotate the backing key. If
# you cancel the deletion, the original key rotation status is
# restored.
#
# To perform this operation on a CMK in a different AWS account, specify
# the key ARN in the value of the `KeyId` parameter.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To
# specify a CMK in a different AWS account, you must use the key ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @return [Types::GetKeyRotationStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::GetKeyRotationStatusResponse#key_rotation_enabled #key_rotation_enabled} => Boolean
#
#
# @example Example: To retrieve the rotation status for a customer master key (CMK)
#
# # The following example retrieves the status of automatic annual rotation of the key material for the specified CMK.
#
# resp = client.get_key_rotation_status({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose key material rotation status you want to retrieve. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# resp.to_h outputs the following:
# {
# key_rotation_enabled: true, # A boolean that indicates the key material rotation status. Returns true when automatic annual rotation of the key material is enabled, or false when it is not.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.get_key_rotation_status({
# key_id: "KeyIdType", # required
# })
#
# @example Response structure
#
# resp.key_rotation_enabled #=> Boolean
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatus AWS API Documentation
#
# @overload get_key_rotation_status(params = {})
# @param [Hash] params ({})
def get_key_rotation_status(params = {}, options = {})
req = build_request(:get_key_rotation_status, params)
req.send_request(options)
end
# Returns the items you need in order to import key material into AWS
# KMS from your existing key management infrastructure. For more
# information about importing key material into AWS KMS, see [Importing
# Key Material][1] in the *AWS Key Management Service Developer Guide*.
#
# You must specify the key ID of the customer master key (CMK) into
# which you will import key material. This CMK's `Origin` must be
# `EXTERNAL`. You must also specify the wrapping algorithm and type of
# wrapping key (public key) that you will use to encrypt the key
# material. You cannot perform this operation on a CMK in a different
# AWS account.
#
# This operation returns a public key and an import token. Use the
# public key to encrypt the key material. Store the import token to send
# with a subsequent ImportKeyMaterial request. The public key and import
# token from the same response must be used together. These items are
# valid for 24 hours. When they expire, they cannot be used for a
# subsequent ImportKeyMaterial request. To get new ones, send another
# `GetParametersForImport` request.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# The identifier of the CMK into which you will import key material. The
# CMK's `Origin` must be `EXTERNAL`.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [required, String] :wrapping_algorithm
# The algorithm you will use to encrypt the key material before
# importing it with ImportKeyMaterial. For more information, see
# [Encrypt the Key Material][1] in the *AWS Key Management Service
# Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html
#
# @option params [required, String] :wrapping_key_spec
# The type of wrapping key (public key) to return in the response. Only
# 2048-bit RSA public keys are supported.
#
# @return [Types::GetParametersForImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::GetParametersForImportResponse#key_id #key_id} => String
# * {Types::GetParametersForImportResponse#import_token #import_token} => String
# * {Types::GetParametersForImportResponse#public_key #public_key} => String
# * {Types::GetParametersForImportResponse#parameters_valid_to #parameters_valid_to} => Time
#
#
# @example Example: To retrieve the public key and import token for a customer master key (CMK)
#
# # The following example retrieves the public key and import token for the specified CMK.
#
# resp = client.get_parameters_for_import({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK for which to retrieve the public key and import token. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# wrapping_algorithm: "RSAES_OAEP_SHA_1", # The algorithm that you will use to encrypt the key material before importing it.
# wrapping_key_spec: "RSA_2048", # The type of wrapping key (public key) to return in the response.
# })
#
# resp.to_h outputs the following:
# {
# import_token: "<binary data>", # The import token to send with a subsequent ImportKeyMaterial request.
# key_id: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The ARN of the CMK for which you are retrieving the public key and import token. This is the same CMK specified in the request.
# parameters_valid_to: Time.parse("2016-12-01T14:52:17-08:00"), # The time at which the import token and public key are no longer valid.
# public_key: "<binary data>", # The public key to use to encrypt the key material before importing it.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.get_parameters_for_import({
# key_id: "KeyIdType", # required
# wrapping_algorithm: "RSAES_PKCS1_V1_5", # required, accepts RSAES_PKCS1_V1_5, RSAES_OAEP_SHA_1, RSAES_OAEP_SHA_256
# wrapping_key_spec: "RSA_2048", # required, accepts RSA_2048
# })
#
# @example Response structure
#
# resp.key_id #=> String
# resp.import_token #=> String
# resp.public_key #=> String
# resp.parameters_valid_to #=> Time
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImport AWS API Documentation
#
# @overload get_parameters_for_import(params = {})
# @param [Hash] params ({})
def get_parameters_for_import(params = {}, options = {})
req = build_request(:get_parameters_for_import, params)
req.send_request(options)
end
# Imports key material into an existing AWS KMS customer master key
# (CMK) that was created without key material. You cannot perform this
# operation on a CMK in a different AWS account. For more information
# about creating CMKs with no key material and then importing key
# material, see [Importing Key Material][1] in the *AWS Key Management
# Service Developer Guide*.
#
# Before using this operation, call GetParametersForImport. Its response
# includes a public key and an import token. Use the public key to
# encrypt the key material. Then, submit the import token from the same
# `GetParametersForImport` response.
#
# When calling this operation, you must specify the following values:
#
# * The key ID or key ARN of a CMK with no key material. Its `Origin`
# must be `EXTERNAL`.
#
# To create a CMK with no key material, call CreateKey and set the
# value of its `Origin` parameter to `EXTERNAL`. To get the `Origin`
# of a CMK, call DescribeKey.)
#
# * The encrypted key material. To get the public key to encrypt the key
# material, call GetParametersForImport.
#
# * The import token that GetParametersForImport returned. This token
# and the public key used to encrypt the key material must have come
# from the same response.
#
# * Whether the key material expires and if so, when. If you set an
# expiration date, you can change it only by reimporting the same key
# material and specifying a new expiration date. If the key material
# expires, AWS KMS deletes the key material and the CMK becomes
# unusable. To use the CMK again, you must reimport the same key
# material.
#
# When this operation is successful, the key state of the CMK changes
# from `PendingImport` to `Enabled`, and you can use the CMK. After you
# successfully import key material into a CMK, you can reimport the same
# key material into that CMK, but you cannot import different key
# material.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# The identifier of the CMK to import the key material into. The CMK's
# `Origin` must be `EXTERNAL`.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [required, String, IO] :import_token
# The import token that you received in the response to a previous
# GetParametersForImport request. It must be from the same response that
# contained the public key that you used to encrypt the key material.
#
# @option params [required, String, IO] :encrypted_key_material
# The encrypted key material to import. It must be encrypted with the
# public key that you received in the response to a previous
# GetParametersForImport request, using the wrapping algorithm that you
# specified in that request.
#
# @option params [Time,DateTime,Date,Integer,String] :valid_to
# The time at which the imported key material expires. When the key
# material expires, AWS KMS deletes the key material and the CMK becomes
# unusable. You must omit this parameter when the `ExpirationModel`
# parameter is set to `KEY_MATERIAL_DOES_NOT_EXPIRE`. Otherwise it is
# required.
#
# @option params [String] :expiration_model
# Specifies whether the key material expires. The default is
# `KEY_MATERIAL_EXPIRES`, in which case you must include the `ValidTo`
# parameter. When this parameter is set to
# `KEY_MATERIAL_DOES_NOT_EXPIRE`, you must omit the `ValidTo` parameter.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To import key material into a customer master key (CMK)
#
# # The following example imports key material into the specified CMK.
#
# resp = client.import_key_material({
# encrypted_key_material: "<binary data>", # The encrypted key material to import.
# expiration_model: "KEY_MATERIAL_DOES_NOT_EXPIRE", # A value that specifies whether the key material expires.
# import_token: "<binary data>", # The import token that you received in the response to a previous GetParametersForImport request.
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK to import the key material into. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.import_key_material({
# key_id: "KeyIdType", # required
# import_token: "data", # required
# encrypted_key_material: "data", # required
# valid_to: Time.now,
# expiration_model: "KEY_MATERIAL_EXPIRES", # accepts KEY_MATERIAL_EXPIRES, KEY_MATERIAL_DOES_NOT_EXPIRE
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterial AWS API Documentation
#
# @overload import_key_material(params = {})
# @param [Hash] params ({})
def import_key_material(params = {}, options = {})
req = build_request(:import_key_material, params)
req.send_request(options)
end
# Gets a list of aliases in the caller's AWS account and region. You
# cannot list aliases in other accounts. For more information about
# aliases, see CreateAlias.
#
# By default, the ListAliases command returns all aliases in the account
# and region. To get only the aliases that point to a particular
# customer master key (CMK), use the `KeyId` parameter.
#
# The `ListAliases` response can include aliases that you created and
# associated with your customer managed CMKs, and aliases that AWS
# created and associated with AWS managed CMKs in your account. You can
# recognize AWS aliases because their names have the format
# `aws/<service-name>`, such as `aws/dynamodb`.
#
# The response might also include aliases that have no `TargetKeyId`
# field. These are predefined aliases that AWS has created but has not
# yet associated with a CMK. Aliases that AWS creates in your account,
# including predefined aliases, do not count against your [AWS KMS
# aliases limit][1].
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit
#
# @option params [String] :key_id
# Lists only aliases that refer to the specified CMK. The value of this
# parameter can be the ID or Amazon Resource Name (ARN) of a CMK in the
# caller's account and region. You cannot use an alias name or alias
# ARN in this value.
#
# This parameter is optional. If you omit it, `ListAliases` returns all
# aliases in the account and region.
#
# @option params [Integer] :limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 100, inclusive. If you do not include a value, it defaults to 50.
#
# @option params [String] :marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
#
# @return [Types::ListAliasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ListAliasesResponse#aliases #aliases} => Array<Types::AliasListEntry>
# * {Types::ListAliasesResponse#next_marker #next_marker} => String
# * {Types::ListAliasesResponse#truncated #truncated} => Boolean
#
#
# @example Example: To list aliases
#
# # The following example lists aliases.
#
# resp = client.list_aliases({
# })
#
# resp.to_h outputs the following:
# {
# aliases: [
# {
# alias_arn: "arn:aws:kms:us-east-2:111122223333:alias/aws/acm",
# alias_name: "alias/aws/acm",
# target_key_id: "da03f6f7-d279-427a-9cae-de48d07e5b66",
# },
# {
# alias_arn: "arn:aws:kms:us-east-2:111122223333:alias/aws/ebs",
# alias_name: "alias/aws/ebs",
# target_key_id: "25a217e7-7170-4b8c-8bf6-045ea5f70e5b",
# },
# {
# alias_arn: "arn:aws:kms:us-east-2:111122223333:alias/aws/rds",
# alias_name: "alias/aws/rds",
# target_key_id: "7ec3104e-c3f2-4b5c-bf42-bfc4772c6685",
# },
# {
# alias_arn: "arn:aws:kms:us-east-2:111122223333:alias/aws/redshift",
# alias_name: "alias/aws/redshift",
# target_key_id: "08f7a25a-69e2-4fb5-8f10-393db27326fa",
# },
# {
# alias_arn: "arn:aws:kms:us-east-2:111122223333:alias/aws/s3",
# alias_name: "alias/aws/s3",
# target_key_id: "d2b0f1a3-580d-4f79-b836-bc983be8cfa5",
# },
# {
# alias_arn: "arn:aws:kms:us-east-2:111122223333:alias/example1",
# alias_name: "alias/example1",
# target_key_id: "4da1e216-62d0-46c5-a7c0-5f3a3d2f8046",
# },
# {
# alias_arn: "arn:aws:kms:us-east-2:111122223333:alias/example2",
# alias_name: "alias/example2",
# target_key_id: "f32fef59-2cc2-445b-8573-2d73328acbee",
# },
# {
# alias_arn: "arn:aws:kms:us-east-2:111122223333:alias/example3",
# alias_name: "alias/example3",
# target_key_id: "1374ef38-d34e-4d5f-b2c9-4e0daee38855",
# },
# ], # A list of aliases, including the key ID of the customer master key (CMK) that each alias refers to.
# truncated: false, # A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.list_aliases({
# key_id: "KeyIdType",
# limit: 1,
# marker: "MarkerType",
# })
#
# @example Response structure
#
# resp.aliases #=> Array
# resp.aliases[0].alias_name #=> String
# resp.aliases[0].alias_arn #=> String
# resp.aliases[0].target_key_id #=> String
# resp.next_marker #=> String
# resp.truncated #=> Boolean
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases AWS API Documentation
#
# @overload list_aliases(params = {})
# @param [Hash] params ({})
def list_aliases(params = {}, options = {})
req = build_request(:list_aliases, params)
req.send_request(options)
end
# Gets a list of all grants for the specified customer master key (CMK).
#
# To perform this operation on a CMK in a different AWS account, specify
# the key ARN in the value of the `KeyId` parameter.
#
# @option params [Integer] :limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 100, inclusive. If you do not include a value, it defaults to 50.
#
# @option params [String] :marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To
# specify a CMK in a different AWS account, you must use the key ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @return [Types::ListGrantsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ListGrantsResponse#grants #grants} => Array<Types::GrantListEntry>
# * {Types::ListGrantsResponse#next_marker #next_marker} => String
# * {Types::ListGrantsResponse#truncated #truncated} => Boolean
#
#
# @example Example: To list grants for a customer master key (CMK)
#
# # The following example lists grants for the specified CMK.
#
# resp = client.list_grants({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose grants you want to list. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# resp.to_h outputs the following:
# {
# grants: [
# {
# creation_date: Time.parse("2016-10-25T14:37:41-07:00"),
# grant_id: "91ad875e49b04a9d1f3bdeb84d821f9db6ea95e1098813f6d47f0c65fbe2a172",
# grantee_principal: "acm.us-east-2.amazonaws.com",
# issuing_account: "arn:aws:iam::111122223333:root",
# key_id: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
# operations: [
# "Encrypt",
# "ReEncryptFrom",
# "ReEncryptTo",
# ],
# retiring_principal: "acm.us-east-2.amazonaws.com",
# },
# {
# creation_date: Time.parse("2016-10-25T14:37:41-07:00"),
# grant_id: "a5d67d3e207a8fc1f4928749ee3e52eb0440493a8b9cf05bbfad91655b056200",
# grantee_principal: "acm.us-east-2.amazonaws.com",
# issuing_account: "arn:aws:iam::111122223333:root",
# key_id: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
# operations: [
# "ReEncryptFrom",
# "ReEncryptTo",
# ],
# retiring_principal: "acm.us-east-2.amazonaws.com",
# },
# {
# creation_date: Time.parse("2016-10-25T14:37:41-07:00"),
# grant_id: "c541aaf05d90cb78846a73b346fc43e65be28b7163129488c738e0c9e0628f4f",
# grantee_principal: "acm.us-east-2.amazonaws.com",
# issuing_account: "arn:aws:iam::111122223333:root",
# key_id: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
# operations: [
# "Encrypt",
# "ReEncryptFrom",
# "ReEncryptTo",
# ],
# retiring_principal: "acm.us-east-2.amazonaws.com",
# },
# {
# creation_date: Time.parse("2016-10-25T14:37:41-07:00"),
# grant_id: "dd2052c67b4c76ee45caf1dc6a1e2d24e8dc744a51b36ae2f067dc540ce0105c",
# grantee_principal: "acm.us-east-2.amazonaws.com",
# issuing_account: "arn:aws:iam::111122223333:root",
# key_id: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
# operations: [
# "Encrypt",
# "ReEncryptFrom",
# "ReEncryptTo",
# ],
# retiring_principal: "acm.us-east-2.amazonaws.com",
# },
# ], # A list of grants.
# truncated: true, # A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.list_grants({
# limit: 1,
# marker: "MarkerType",
# key_id: "KeyIdType", # required
# })
#
# @example Response structure
#
# resp.grants #=> Array
# resp.grants[0].key_id #=> String
# resp.grants[0].grant_id #=> String
# resp.grants[0].name #=> String
# resp.grants[0].creation_date #=> Time
# resp.grants[0].grantee_principal #=> String
# resp.grants[0].retiring_principal #=> String
# resp.grants[0].issuing_account #=> String
# resp.grants[0].operations #=> Array
# resp.grants[0].operations[0] #=> String, one of "Decrypt", "Encrypt", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext", "ReEncryptFrom", "ReEncryptTo", "CreateGrant", "RetireGrant", "DescribeKey"
# resp.grants[0].constraints.encryption_context_subset #=> Hash
# resp.grants[0].constraints.encryption_context_subset["EncryptionContextKey"] #=> String
# resp.grants[0].constraints.encryption_context_equals #=> Hash
# resp.grants[0].constraints.encryption_context_equals["EncryptionContextKey"] #=> String
# resp.next_marker #=> String
# resp.truncated #=> Boolean
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants AWS API Documentation
#
# @overload list_grants(params = {})
# @param [Hash] params ({})
def list_grants(params = {}, options = {})
req = build_request(:list_grants, params)
req.send_request(options)
end
# Gets the names of the key policies that are attached to a customer
# master key (CMK). This operation is designed to get policy names that
# you can use in a GetKeyPolicy operation. However, the only valid
# policy name is `default`. You cannot perform this operation on a CMK
# in a different AWS account.
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [Integer] :limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 1000, inclusive. If you do not include a value, it defaults to
# 100.
#
# Only one policy can be attached to a key.
#
# @option params [String] :marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
#
# @return [Types::ListKeyPoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ListKeyPoliciesResponse#policy_names #policy_names} => Array<String>
# * {Types::ListKeyPoliciesResponse#next_marker #next_marker} => String
# * {Types::ListKeyPoliciesResponse#truncated #truncated} => Boolean
#
#
# @example Example: To list key policies for a customer master key (CMK)
#
# # The following example lists key policies for the specified CMK.
#
# resp = client.list_key_policies({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose key policies you want to list. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# resp.to_h outputs the following:
# {
# policy_names: [
# "default",
# ], # A list of key policy names.
# truncated: false, # A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.list_key_policies({
# key_id: "KeyIdType", # required
# limit: 1,
# marker: "MarkerType",
# })
#
# @example Response structure
#
# resp.policy_names #=> Array
# resp.policy_names[0] #=> String
# resp.next_marker #=> String
# resp.truncated #=> Boolean
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies AWS API Documentation
#
# @overload list_key_policies(params = {})
# @param [Hash] params ({})
def list_key_policies(params = {}, options = {})
req = build_request(:list_key_policies, params)
req.send_request(options)
end
# Gets a list of all customer master keys (CMKs) in the caller's AWS
# account and region.
#
# @option params [Integer] :limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 1000, inclusive. If you do not include a value, it defaults to
# 100.
#
# @option params [String] :marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
#
# @return [Types::ListKeysResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ListKeysResponse#keys #keys} => Array<Types::KeyListEntry>
# * {Types::ListKeysResponse#next_marker #next_marker} => String
# * {Types::ListKeysResponse#truncated #truncated} => Boolean
#
#
# @example Example: To list customer master keys (CMKs)
#
# # The following example lists CMKs.
#
# resp = client.list_keys({
# })
#
# resp.to_h outputs the following:
# {
# keys: [
# {
# key_arn: "arn:aws:kms:us-east-2:111122223333:key/0d990263-018e-4e65-a703-eff731de951e",
# key_id: "0d990263-018e-4e65-a703-eff731de951e",
# },
# {
# key_arn: "arn:aws:kms:us-east-2:111122223333:key/144be297-0ae1-44ac-9c8f-93cd8c82f841",
# key_id: "144be297-0ae1-44ac-9c8f-93cd8c82f841",
# },
# {
# key_arn: "arn:aws:kms:us-east-2:111122223333:key/21184251-b765-428e-b852-2c7353e72571",
# key_id: "21184251-b765-428e-b852-2c7353e72571",
# },
# {
# key_arn: "arn:aws:kms:us-east-2:111122223333:key/214fe92f-5b03-4ae1-b350-db2a45dbe10c",
# key_id: "214fe92f-5b03-4ae1-b350-db2a45dbe10c",
# },
# {
# key_arn: "arn:aws:kms:us-east-2:111122223333:key/339963f2-e523-49d3-af24-a0fe752aa458",
# key_id: "339963f2-e523-49d3-af24-a0fe752aa458",
# },
# {
# key_arn: "arn:aws:kms:us-east-2:111122223333:key/b776a44b-df37-4438-9be4-a27494e4271a",
# key_id: "b776a44b-df37-4438-9be4-a27494e4271a",
# },
# {
# key_arn: "arn:aws:kms:us-east-2:111122223333:key/deaf6c9e-cf2c-46a6-bf6d-0b6d487cffbb",
# key_id: "deaf6c9e-cf2c-46a6-bf6d-0b6d487cffbb",
# },
# ], # A list of CMKs, including the key ID and Amazon Resource Name (ARN) of each one.
# truncated: false, # A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.list_keys({
# limit: 1,
# marker: "MarkerType",
# })
#
# @example Response structure
#
# resp.keys #=> Array
# resp.keys[0].key_id #=> String
# resp.keys[0].key_arn #=> String
# resp.next_marker #=> String
# resp.truncated #=> Boolean
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys AWS API Documentation
#
# @overload list_keys(params = {})
# @param [Hash] params ({})
def list_keys(params = {}, options = {})
req = build_request(:list_keys, params)
req.send_request(options)
end
# Returns a list of all tags for the specified customer master key
# (CMK).
#
# You cannot perform this operation on a CMK in a different AWS account.
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [Integer] :limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 50, inclusive. If you do not include a value, it defaults to 50.
#
# @option params [String] :marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
#
# Do not attempt to construct this value. Use only the value of
# `NextMarker` from the truncated response you just received.
#
# @return [Types::ListResourceTagsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ListResourceTagsResponse#tags #tags} => Array<Types::Tag>
# * {Types::ListResourceTagsResponse#next_marker #next_marker} => String
# * {Types::ListResourceTagsResponse#truncated #truncated} => Boolean
#
#
# @example Example: To list tags for a customer master key (CMK)
#
# # The following example lists tags for a CMK.
#
# resp = client.list_resource_tags({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose tags you are listing. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# resp.to_h outputs the following:
# {
# tags: [
# {
# tag_key: "CostCenter",
# tag_value: "87654",
# },
# {
# tag_key: "CreatedBy",
# tag_value: "ExampleUser",
# },
# {
# tag_key: "Purpose",
# tag_value: "Test",
# },
# ], # A list of tags.
# truncated: false, # A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.list_resource_tags({
# key_id: "KeyIdType", # required
# limit: 1,
# marker: "MarkerType",
# })
#
# @example Response structure
#
# resp.tags #=> Array
# resp.tags[0].tag_key #=> String
# resp.tags[0].tag_value #=> String
# resp.next_marker #=> String
# resp.truncated #=> Boolean
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags AWS API Documentation
#
# @overload list_resource_tags(params = {})
# @param [Hash] params ({})
def list_resource_tags(params = {}, options = {})
req = build_request(:list_resource_tags, params)
req.send_request(options)
end
# Returns a list of all grants for which the grant's
# `RetiringPrincipal` matches the one specified.
#
# A typical use is to list all grants that you are able to retire. To
# retire a grant, use RetireGrant.
#
# @option params [Integer] :limit
# Use this parameter to specify the maximum number of items to return.
# When this value is present, AWS KMS does not return more than the
# specified number of items, but it might return fewer.
#
# This value is optional. If you include a value, it must be between 1
# and 100, inclusive. If you do not include a value, it defaults to 50.
#
# @option params [String] :marker
# Use this parameter in a subsequent request after you receive a
# response with truncated results. Set it to the value of `NextMarker`
# from the truncated response you just received.
#
# @option params [required, String] :retiring_principal
# The retiring principal for which to list grants.
#
# To specify the retiring principal, use the [Amazon Resource Name
# (ARN)][1] of an AWS principal. Valid AWS principals include AWS
# accounts (root), IAM users, federated users, and assumed role users.
# For examples of the ARN syntax for specifying a principal, see [AWS
# Identity and Access Management (IAM)][2] in the Example ARNs section
# of the *Amazon Web Services General Reference*.
#
#
#
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
# [2]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam
#
# @return [Types::ListGrantsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ListGrantsResponse#grants #grants} => Array<Types::GrantListEntry>
# * {Types::ListGrantsResponse#next_marker #next_marker} => String
# * {Types::ListGrantsResponse#truncated #truncated} => Boolean
#
#
# @example Example: To list grants that the specified principal can retire
#
# # The following example lists the grants that the specified principal (identity) can retire.
#
# resp = client.list_retirable_grants({
# retiring_principal: "arn:aws:iam::111122223333:role/ExampleRole", # The retiring principal whose grants you want to list. Use the Amazon Resource Name (ARN) of an AWS principal such as an AWS account (root), IAM user, federated user, or assumed role user.
# })
#
# resp.to_h outputs the following:
# {
# grants: [
# {
# creation_date: Time.parse("2016-12-07T11:09:35-08:00"),
# grant_id: "0c237476b39f8bc44e45212e08498fbe3151305030726c0590dd8d3e9f3d6a60",
# grantee_principal: "arn:aws:iam::111122223333:role/ExampleRole",
# issuing_account: "arn:aws:iam::444455556666:root",
# key_id: "arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab",
# operations: [
# "Decrypt",
# "Encrypt",
# ],
# retiring_principal: "arn:aws:iam::111122223333:role/ExampleRole",
# },
# ], # A list of grants that the specified principal can retire.
# truncated: false, # A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.list_retirable_grants({
# limit: 1,
# marker: "MarkerType",
# retiring_principal: "PrincipalIdType", # required
# })
#
# @example Response structure
#
# resp.grants #=> Array
# resp.grants[0].key_id #=> String
# resp.grants[0].grant_id #=> String
# resp.grants[0].name #=> String
# resp.grants[0].creation_date #=> Time
# resp.grants[0].grantee_principal #=> String
# resp.grants[0].retiring_principal #=> String
# resp.grants[0].issuing_account #=> String
# resp.grants[0].operations #=> Array
# resp.grants[0].operations[0] #=> String, one of "Decrypt", "Encrypt", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext", "ReEncryptFrom", "ReEncryptTo", "CreateGrant", "RetireGrant", "DescribeKey"
# resp.grants[0].constraints.encryption_context_subset #=> Hash
# resp.grants[0].constraints.encryption_context_subset["EncryptionContextKey"] #=> String
# resp.grants[0].constraints.encryption_context_equals #=> Hash
# resp.grants[0].constraints.encryption_context_equals["EncryptionContextKey"] #=> String
# resp.next_marker #=> String
# resp.truncated #=> Boolean
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants AWS API Documentation
#
# @overload list_retirable_grants(params = {})
# @param [Hash] params ({})
def list_retirable_grants(params = {}, options = {})
req = build_request(:list_retirable_grants, params)
req.send_request(options)
end
# Attaches a key policy to the specified customer master key (CMK). You
# cannot perform this operation on a CMK in a different AWS account.
#
# For more information about key policies, see [Key Policies][1] in the
# *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [required, String] :policy_name
# The name of the key policy. The only valid value is `default`.
#
# @option params [required, String] :policy
# The key policy to attach to the CMK.
#
# The key policy must meet the following criteria:
#
# * If you don't set `BypassPolicyLockoutSafetyCheck` to true, the key
# policy must allow the principal that is making the `PutKeyPolicy`
# request to make a subsequent `PutKeyPolicy` request on the CMK. This
# reduces the risk that the CMK becomes unmanageable. For more
# information, refer to the scenario in the [Default Key Policy][1]
# section of the *AWS Key Management Service Developer Guide*.
#
# * Each statement in the key policy must contain one or more
# principals. The principals in the key policy must exist and be
# visible to AWS KMS. When you create a new AWS principal (for
# example, an IAM user or role), you might need to enforce a delay
# before including the new principal in a key policy because the new
# principal might not be immediately visible to AWS KMS. For more
# information, see [Changes that I make are not always immediately
# visible][2] in the *AWS Identity and Access Management User Guide*.
#
# The key policy size limit is 32 kilobytes (32768 bytes).
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency
#
# @option params [Boolean] :bypass_policy_lockout_safety_check
# A flag to indicate whether to bypass the key policy lockout safety
# check.
#
# Setting this value to true increases the risk that the CMK becomes
# unmanageable. Do not set this value to true indiscriminately.
#
# For more information, refer to the scenario in the [Default Key
# Policy][1] section in the *AWS Key Management Service Developer
# Guide*.
#
# Use this parameter only when you intend to prevent the principal that
# is making the request from making a subsequent `PutKeyPolicy` request
# on the CMK.
#
# The default value is false.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To attach a key policy to a customer master key (CMK)
#
# # The following example attaches a key policy to the specified CMK.
#
# resp = client.put_key_policy({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK to attach the key policy to. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# policy: "{\"Version\":\"2012-10-17\",\"Id\":\"custom-policy-2016-12-07\",\"Statement\":[{\"Sid\":\"EnableIAMUserPermissions\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::111122223333:root\"},\"Action\":\"kms:*\",\"Resource\":\"*\"},{\"Sid\":\"AllowaccessforKeyAdministrators\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":[\"arn:aws:iam::111122223333:user/ExampleAdminUser\",\"arn:aws:iam::111122223333:role/ExampleAdminRole\"]},\"Action\":[\"kms:Create*\",\"kms:Describe*\",\"kms:Enable*\",\"kms:List*\",\"kms:Put*\",\"kms:Update*\",\"kms:Revoke*\",\"kms:Disable*\",\"kms:Get*\",\"kms:Delete*\",\"kms:ScheduleKeyDeletion\",\"kms:CancelKeyDeletion\"],\"Resource\":\"*\"},{\"Sid\":\"Allowuseofthekey\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::111122223333:role/ExamplePowerUserRole\"},\"Action\":[\"kms:Encrypt\",\"kms:Decrypt\",\"kms:ReEncrypt*\",\"kms:GenerateDataKey*\",\"kms:DescribeKey\"],\"Resource\":\"*\"},{\"Sid\":\"Allowattachmentofpersistentresources\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::111122223333:role/ExamplePowerUserRole\"},\"Action\":[\"kms:CreateGrant\",\"kms:ListGrants\",\"kms:RevokeGrant\"],\"Resource\":\"*\",\"Condition\":{\"Bool\":{\"kms:GrantIsForAWSResource\":\"true\"}}}]}", # The key policy document.
# policy_name: "default", # The name of the key policy.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.put_key_policy({
# key_id: "KeyIdType", # required
# policy_name: "PolicyNameType", # required
# policy: "PolicyType", # required
# bypass_policy_lockout_safety_check: false,
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicy AWS API Documentation
#
# @overload put_key_policy(params = {})
# @param [Hash] params ({})
def put_key_policy(params = {}, options = {})
req = build_request(:put_key_policy, params)
req.send_request(options)
end
# Encrypts data on the server side with a new customer master key (CMK)
# without exposing the plaintext of the data on the client side. The
# data is first decrypted and then reencrypted. You can also use this
# operation to change the encryption context of a ciphertext.
#
# You can reencrypt data using CMKs in different AWS accounts.
#
# Unlike other operations, `ReEncrypt` is authorized twice, once as
# `ReEncryptFrom` on the source CMK and once as `ReEncryptTo` on the
# destination CMK. We recommend that you include the `"kms:ReEncrypt*"`
# permission in your [key policies][1] to permit reencryption from or to
# the CMK. This permission is automatically included in the key policy
# when you create a CMK through the console. But you must include it
# manually when you create a CMK programmatically or when you set a key
# policy with the PutKeyPolicy operation.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String, IO] :ciphertext_blob
# Ciphertext of the data to reencrypt.
#
# @option params [Hash<String,String>] :source_encryption_context
# Encryption context used to encrypt and decrypt the data specified in
# the `CiphertextBlob` parameter.
#
# @option params [required, String] :destination_key_id
# A unique identifier for the CMK that is used to reencrypt the data.
#
# To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias
# name, or alias ARN. When using an alias name, prefix it with
# `"alias/"`. To specify a CMK in a different AWS account, you must use
# the key ARN or alias ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Alias name: `alias/ExampleAlias`
#
# * Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
# To get the alias name and alias ARN, use ListAliases.
#
# @option params [Hash<String,String>] :destination_encryption_context
# Encryption context to use when the data is reencrypted.
#
# @option params [Array<String>] :grant_tokens
# A list of grant tokens.
#
# For more information, see [Grant Tokens][1] in the *AWS Key Management
# Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token
#
# @return [Types::ReEncryptResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ReEncryptResponse#ciphertext_blob #ciphertext_blob} => String
# * {Types::ReEncryptResponse#source_key_id #source_key_id} => String
# * {Types::ReEncryptResponse#key_id #key_id} => String
#
#
# @example Example: To reencrypt data
#
# # The following example reencrypts data with the specified CMK.
#
# resp = client.re_encrypt({
# ciphertext_blob: "<binary data>", # The data to reencrypt.
# destination_key_id: "0987dcba-09fe-87dc-65ba-ab0987654321", # The identifier of the CMK to use to reencrypt the data. You can use the key ID or Amazon Resource Name (ARN) of the CMK, or the name or ARN of an alias that refers to the CMK.
# })
#
# resp.to_h outputs the following:
# {
# ciphertext_blob: "<binary data>", # The reencrypted data.
# key_id: "arn:aws:kms:us-east-2:111122223333:key/0987dcba-09fe-87dc-65ba-ab0987654321", # The ARN of the CMK that was used to reencrypt the data.
# source_key_id: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The ARN of the CMK that was used to originally encrypt the data.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.re_encrypt({
# ciphertext_blob: "data", # required
# source_encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# destination_key_id: "KeyIdType", # required
# destination_encryption_context: {
# "EncryptionContextKey" => "EncryptionContextValue",
# },
# grant_tokens: ["GrantTokenType"],
# })
#
# @example Response structure
#
# resp.ciphertext_blob #=> String
# resp.source_key_id #=> String
# resp.key_id #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncrypt AWS API Documentation
#
# @overload re_encrypt(params = {})
# @param [Hash] params ({})
def re_encrypt(params = {}, options = {})
req = build_request(:re_encrypt, params)
req.send_request(options)
end
# Retires a grant. To clean up, you can retire a grant when you're done
# using it. You should revoke a grant when you intend to actively deny
# operations that depend on it. The following are permitted to call this
# API:
#
# * The AWS account (root user) under which the grant was created
#
# * The `RetiringPrincipal`, if present in the grant
#
# * The `GranteePrincipal`, if `RetireGrant` is an operation specified
# in the grant
#
# You must identify the grant to retire by its grant token or by a
# combination of the grant ID and the Amazon Resource Name (ARN) of the
# customer master key (CMK). A grant token is a unique variable-length
# base64-encoded string. A grant ID is a 64 character unique identifier
# of a grant. The CreateGrant operation returns both.
#
# @option params [String] :grant_token
# Token that identifies the grant to be retired.
#
# @option params [String] :key_id
# The Amazon Resource Name (ARN) of the CMK associated with the grant.
#
# For example:
# `arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# @option params [String] :grant_id
# Unique identifier of the grant to retire. The grant ID is returned in
# the response to a `CreateGrant` operation.
#
# * Grant ID Example -
# 0123456789012345678901234567890123456789012345678901234567890123
#
# ^
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To retire a grant
#
# # The following example retires a grant.
#
# resp = client.retire_grant({
# grant_id: "0c237476b39f8bc44e45212e08498fbe3151305030726c0590dd8d3e9f3d6a60", # The identifier of the grant to retire.
# key_id: "arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The Amazon Resource Name (ARN) of the customer master key (CMK) associated with the grant.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.retire_grant({
# grant_token: "GrantTokenType",
# key_id: "KeyIdType",
# grant_id: "GrantIdType",
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrant AWS API Documentation
#
# @overload retire_grant(params = {})
# @param [Hash] params ({})
def retire_grant(params = {}, options = {})
req = build_request(:retire_grant, params)
req.send_request(options)
end
# Revokes the specified grant for the specified customer master key
# (CMK). You can revoke a grant to actively deny operations that depend
# on it.
#
# To perform this operation on a CMK in a different AWS account, specify
# the key ARN in the value of the `KeyId` parameter.
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key associated with the
# grant.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To
# specify a CMK in a different AWS account, you must use the key ARN.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [required, String] :grant_id
# Identifier of the grant to be revoked.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To revoke a grant
#
# # The following example revokes a grant.
#
# resp = client.revoke_grant({
# grant_id: "0c237476b39f8bc44e45212e08498fbe3151305030726c0590dd8d3e9f3d6a60", # The identifier of the grant to revoke.
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the customer master key (CMK) associated with the grant. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.revoke_grant({
# key_id: "KeyIdType", # required
# grant_id: "GrantIdType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrant AWS API Documentation
#
# @overload revoke_grant(params = {})
# @param [Hash] params ({})
def revoke_grant(params = {}, options = {})
req = build_request(:revoke_grant, params)
req.send_request(options)
end
# Schedules the deletion of a customer master key (CMK). You may provide
# a waiting period, specified in days, before deletion occurs. If you do
# not provide a waiting period, the default period of 30 days is used.
# When this operation is successful, the key state of the CMK changes to
# `PendingDeletion`. Before the waiting period ends, you can use
# CancelKeyDeletion to cancel the deletion of the CMK. After the waiting
# period ends, AWS KMS deletes the CMK and all AWS KMS data associated
# with it, including all aliases that refer to it.
#
# Deleting a CMK is a destructive and potentially dangerous operation.
# When a CMK is deleted, all data that was encrypted under the CMK is
# unrecoverable. To prevent the use of a CMK without deleting it, use
# DisableKey.
#
# If you schedule deletion of a CMK from a [custom key store][1], when
# the waiting period expires, `ScheduleKeyDeletion` deletes the CMK from
# AWS KMS. Then AWS KMS makes a best effort to delete the key material
# from the associated AWS CloudHSM cluster. However, you might need to
# manually [delete the orphaned key material][2] from the cluster and
# its backups.
#
# You cannot perform this operation on a CMK in a different AWS account.
#
# For more information about scheduling a CMK for deletion, see
# [Deleting Customer Master Keys][3] in the *AWS Key Management Service
# Developer Guide*.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][4]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key
# [3]: https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html
# [4]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# The unique identifier of the customer master key (CMK) to delete.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [Integer] :pending_window_in_days
# The waiting period, specified in number of days. After the waiting
# period ends, AWS KMS deletes the customer master key (CMK).
#
# This value is optional. If you include a value, it must be between 7
# and 30, inclusive. If you do not include a value, it defaults to 30.
#
# @return [Types::ScheduleKeyDeletionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ScheduleKeyDeletionResponse#key_id #key_id} => String
# * {Types::ScheduleKeyDeletionResponse#deletion_date #deletion_date} => Time
#
#
# @example Example: To schedule a customer master key (CMK) for deletion
#
# # The following example schedules the specified CMK for deletion.
#
# resp = client.schedule_key_deletion({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK to schedule for deletion. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# pending_window_in_days: 7, # The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the CMK.
# })
#
# resp.to_h outputs the following:
# {
# deletion_date: Time.parse("2016-12-17T16:00:00-08:00"), # The date and time after which AWS KMS deletes the CMK.
# key_id: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The ARN of the CMK that is scheduled for deletion.
# }
#
# @example Request syntax with placeholder values
#
# resp = client.schedule_key_deletion({
# key_id: "KeyIdType", # required
# pending_window_in_days: 1,
# })
#
# @example Response structure
#
# resp.key_id #=> String
# resp.deletion_date #=> Time
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletion AWS API Documentation
#
# @overload schedule_key_deletion(params = {})
# @param [Hash] params ({})
def schedule_key_deletion(params = {}, options = {})
req = build_request(:schedule_key_deletion, params)
req.send_request(options)
end
# Adds or edits tags for a customer master key (CMK). You cannot perform
# this operation on a CMK in a different AWS account.
#
# Each tag consists of a tag key and a tag value. Tag keys and tag
# values are both required, but tag values can be empty (null) strings.
#
# You can only use a tag key once for each CMK. If you use the tag key
# again, AWS KMS replaces the current tag value with the specified
# value.
#
# For information about the rules that apply to tag keys and tag values,
# see [User-Defined Tag Restrictions][1] in the *AWS Billing and Cost
# Management User Guide*.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# A unique identifier for the CMK you are tagging.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [required, Array<Types::Tag>] :tags
# One or more tags. Each tag consists of a tag key and a tag value.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To tag a customer master key (CMK)
#
# # The following example tags a CMK.
#
# resp = client.tag_resource({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK you are tagging. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# tags: [
# {
# tag_key: "Purpose",
# tag_value: "Test",
# },
# ], # A list of tags.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.tag_resource({
# key_id: "KeyIdType", # required
# tags: [ # required
# {
# tag_key: "TagKeyType", # required
# tag_value: "TagValueType", # required
# },
# ],
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResource AWS API Documentation
#
# @overload tag_resource(params = {})
# @param [Hash] params ({})
def tag_resource(params = {}, options = {})
req = build_request(:tag_resource, params)
req.send_request(options)
end
# Removes the specified tags from the specified customer master key
# (CMK). You cannot perform this operation on a CMK in a different AWS
# account.
#
# To remove a tag, specify the tag key. To change the tag value of an
# existing tag key, use TagResource.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][1]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# A unique identifier for the CMK from which you are removing tags.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [required, Array<String>] :tag_keys
# One or more tag keys. Specify only the tag keys, not the tag values.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To remove tags from a customer master key (CMK)
#
# # The following example removes tags from a CMK.
#
# resp = client.untag_resource({
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose tags you are removing.
# tag_keys: [
# "Purpose",
# "CostCenter",
# ], # A list of tag keys. Provide only the tag keys, not the tag values.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.untag_resource({
# key_id: "KeyIdType", # required
# tag_keys: ["TagKeyType"], # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResource AWS API Documentation
#
# @overload untag_resource(params = {})
# @param [Hash] params ({})
def untag_resource(params = {}, options = {})
req = build_request(:untag_resource, params)
req.send_request(options)
end
# Associates an existing alias with a different customer master key
# (CMK). Each CMK can have multiple aliases, but the aliases must be
# unique within the account and region. You cannot perform this
# operation on an alias in a different AWS account.
#
# This operation works only on existing aliases. To change the alias of
# a CMK to a new value, use CreateAlias to create a new alias and
# DeleteAlias to delete the old alias.
#
# Because an alias is not a property of a CMK, you can create, update,
# and delete the aliases of a CMK without affecting the CMK. Also,
# aliases do not appear in the response from the DescribeKey operation.
# To get the aliases of all CMKs in the account, use the ListAliases
# operation.
#
# The alias name must begin with `alias/` followed by a name, such as
# `alias/ExampleAlias`. It can contain only alphanumeric characters,
# forward slashes (/), underscores (\_), and dashes (-). The alias name
# cannot begin with `alias/aws/`. The `alias/aws/` prefix is reserved
# for [AWS managed CMKs][1].
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][2]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :alias_name
# Specifies the name of the alias to change. This value must begin with
# `alias/` followed by the alias name, such as `alias/ExampleAlias`.
#
# @option params [required, String] :target_key_id
# Unique identifier of the customer master key (CMK) to be mapped to the
# alias. When the update operation completes, the alias will point to
# this CMK.
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# To verify that the alias is mapped to the correct CMK, use
# ListAliases.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To update an alias
#
# # The following example updates the specified alias to refer to the specified customer master key (CMK).
#
# resp = client.update_alias({
# alias_name: "alias/ExampleAlias", # The alias to update.
# target_key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK that the alias will refer to after this operation succeeds. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.update_alias({
# alias_name: "AliasNameType", # required
# target_key_id: "KeyIdType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAlias AWS API Documentation
#
# @overload update_alias(params = {})
# @param [Hash] params ({})
def update_alias(params = {}, options = {})
req = build_request(:update_alias, params)
req.send_request(options)
end
# Changes the properties of a custom key store. Use the
# `CustomKeyStoreId` parameter to identify the custom key store you want
# to edit. Use the remaining parameters to change the properties of the
# custom key store.
#
# You can only update a custom key store that is disconnected. To
# disconnect the custom key store, use DisconnectCustomKeyStore. To
# reconnect the custom key store after the update completes, use
# ConnectCustomKeyStore. To find the connection state of a custom key
# store, use the DescribeCustomKeyStores operation.
#
# Use the parameters of `UpdateCustomKeyStore` to edit your keystore
# settings.
#
# * Use the **NewCustomKeyStoreName** parameter to change the friendly
# name of the custom key store to the value that you specify.
#
#
#
# * Use the **KeyStorePassword** parameter tell AWS KMS the current
# password of the [ `kmsuser` crypto user (CU)][1] in the associated
# AWS CloudHSM cluster. You can use this parameter to [fix connection
# failures][2] that occur when AWS KMS cannot log into the associated
# cluster because the `kmsuser` password has changed. This value does
# not change the password in the AWS CloudHSM cluster.
#
#
#
# * Use the **CloudHsmClusterId** parameter to associate the custom key
# store with a different, but related, AWS CloudHSM cluster. You can
# use this parameter to repair a custom key store if its AWS CloudHSM
# cluster becomes corrupted or is deleted, or when you need to create
# or restore a cluster from a backup.
#
# If the operation succeeds, it returns a JSON object with no
# properties.
#
# This operation is part of the [Custom Key Store feature][3] feature in
# AWS KMS, which combines the convenience and extensive integration of
# AWS KMS with the isolation and control of a single-tenant key store.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-password
# [3]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html
#
# @option params [required, String] :custom_key_store_id
# Identifies the custom key store that you want to update. Enter the ID
# of the custom key store. To find the ID of a custom key store, use the
# DescribeCustomKeyStores operation.
#
# @option params [String] :new_custom_key_store_name
# Changes the friendly name of the custom key store to the value that
# you specify. The custom key store name must be unique in the AWS
# account.
#
# @option params [String] :key_store_password
# Enter the current password of the `kmsuser` crypto user (CU) in the
# AWS CloudHSM cluster that is associated with the custom key store.
#
# This parameter tells AWS KMS the current password of the `kmsuser`
# crypto user (CU). It does not set or change the password of any users
# in the AWS CloudHSM cluster.
#
# @option params [String] :cloud_hsm_cluster_id
# Associates the custom key store with a related AWS CloudHSM cluster.
#
# Enter the cluster ID of the cluster that you used to create the custom
# key store or a cluster that shares a backup history and has the same
# cluster certificate as the original cluster. You cannot use this
# parameter to associate a custom key store with an unrelated cluster.
# In addition, the replacement cluster must [fulfill the
# requirements][1] for a cluster associated with a custom key store. To
# view the cluster certificate of a cluster, use the
# [DescribeClusters][2] operation.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore
# [2]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
# @example Request syntax with placeholder values
#
# resp = client.update_custom_key_store({
# custom_key_store_id: "CustomKeyStoreIdType", # required
# new_custom_key_store_name: "CustomKeyStoreNameType",
# key_store_password: "KeyStorePasswordType",
# cloud_hsm_cluster_id: "CloudHsmClusterIdType",
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateCustomKeyStore AWS API Documentation
#
# @overload update_custom_key_store(params = {})
# @param [Hash] params ({})
def update_custom_key_store(params = {}, options = {})
req = build_request(:update_custom_key_store, params)
req.send_request(options)
end
# Updates the description of a customer master key (CMK). To see the
# description of a CMK, use DescribeKey.
#
# You cannot perform this operation on a CMK in a different AWS account.
#
# The result of this operation varies with the key state of the CMK. For
# details, see [How Key State Affects Use of a Customer Master Key][1]
# in the *AWS Key Management Service Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
#
# @option params [required, String] :key_id
# A unique identifier for the customer master key (CMK).
#
# Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
#
# For example:
#
# * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
#
# * Key ARN:
# `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
#
# To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
#
# @option params [required, String] :description
# New description for the CMK.
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To update the description of a customer master key (CMK)
#
# # The following example updates the description of the specified CMK.
#
# resp = client.update_key_description({
# description: "Example description that indicates the intended use of this CMK.", # The updated description.
# key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the CMK whose description you are updating. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.
# })
#
# @example Request syntax with placeholder values
#
# resp = client.update_key_description({
# key_id: "KeyIdType", # required
# description: "DescriptionType", # required
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescription AWS API Documentation
#
# @overload update_key_description(params = {})
# @param [Hash] params ({})
def update_key_description(params = {}, options = {})
req = build_request(:update_key_description, params)
req.send_request(options)
end
# @!endgroup
# @param params ({})
# @api private
def build_request(operation_name, params = {})
handlers = @handlers.for(operation_name)
context = Seahorse::Client::RequestContext.new(
operation_name: operation_name,
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-kms'
context[:gem_version] = '1.21.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated
def waiter_names
[]
end
class << self
# @api private
attr_reader :identifier
# @api private
def errors_module
Errors
end
end
end
end
# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE
module Aws::KMS
module Errors
extend Aws::Errors::DynamicErrors
class AlreadyExistsException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::AlreadyExistsException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class CloudHsmClusterInUseException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::CloudHsmClusterInUseException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class CloudHsmClusterInvalidConfigurationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::CloudHsmClusterInvalidConfigurationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class CloudHsmClusterNotActiveException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::CloudHsmClusterNotActiveException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class CloudHsmClusterNotFoundException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::CloudHsmClusterNotFoundException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class CloudHsmClusterNotRelatedException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::CloudHsmClusterNotRelatedException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class CustomKeyStoreHasCMKsException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::CustomKeyStoreHasCMKsException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class CustomKeyStoreInvalidStateException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::CustomKeyStoreInvalidStateException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class CustomKeyStoreNameInUseException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::CustomKeyStoreNameInUseException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class CustomKeyStoreNotFoundException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::CustomKeyStoreNotFoundException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class DependencyTimeoutException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::DependencyTimeoutException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class DisabledException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::DisabledException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class ExpiredImportTokenException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::ExpiredImportTokenException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class IncorrectKeyMaterialException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::IncorrectKeyMaterialException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class IncorrectTrustAnchorException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::IncorrectTrustAnchorException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class InvalidAliasNameException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::InvalidAliasNameException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class InvalidArnException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::InvalidArnException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class InvalidCiphertextException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::InvalidCiphertextException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class InvalidGrantIdException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::InvalidGrantIdException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class InvalidGrantTokenException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::InvalidGrantTokenException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class InvalidImportTokenException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::InvalidImportTokenException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class InvalidKeyUsageException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::InvalidKeyUsageException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class InvalidMarkerException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::InvalidMarkerException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class KMSInternalException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::KMSInternalException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class KMSInvalidStateException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::KMSInvalidStateException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class KeyUnavailableException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::KeyUnavailableException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class LimitExceededException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::LimitExceededException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class MalformedPolicyDocumentException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::MalformedPolicyDocumentException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class NotFoundException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::NotFoundException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class TagException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::TagException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
class UnsupportedOperationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::KMS::Types::UnsupportedOperationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]
def message
@message || @data[:message]
end
end
end
end
# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE
module Aws::KMS
class Resource
# @param options ({})
# @option options [Client] :client
def initialize(options = {})
@client = options[:client] || Client.new(options)
end
# @return [Client]
def client
@client
end
end
end
# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing for info on making contributions:
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE
# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE
# KG-dev::RubyPacker replaced for aws-sdk-kms/types.rb
# KG-dev::RubyPacker replaced for aws-sdk-kms/client_api.rb
# KG-dev::RubyPacker replaced for aws-sdk-kms/client.rb
# KG-dev::RubyPacker replaced for aws-sdk-kms/errors.rb
# KG-dev::RubyPacker replaced for aws-sdk-kms/resource.rb
# KG-dev::RubyPacker replaced for aws-sdk-kms/customizations.rb
# This module provides support for AWS Key Management Service. This module is available in the
# `aws-sdk-kms` gem.
#
# # Client
#
# The {Client} class provides one method for each API operation. Operation
# methods each accept a hash of request parameters and return a response
# structure.
#
# See {Client} for more information.
#
# # Errors
#
# Errors returned from AWS Key Management Service all
# extend {Errors::ServiceError}.
#
# begin
# # do stuff
# rescue Aws::KMS::Errors::ServiceError
# # rescues all service API errors
# end
#
# See {Errors} for more information.
#
# @service
module Aws::KMS
GEM_VERSION = '1.21.0'
end
end # Cesium::IonExporter
| 43.326742 | 1,294 | 0.671439 |