file_name
stringlengths 3
137
| prefix
stringlengths 0
918k
| suffix
stringlengths 0
962k
| middle
stringlengths 0
812k
|
---|---|---|---|
functions_create_function_response.go | // Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// FunctionsCreateFunctionResponse functions create function response
//
// swagger:model functionsCreateFunctionResponse
type FunctionsCreateFunctionResponse struct {
// id
ID string `json:"id,omitempty"`
}
// Validate validates this functions create function response
func (m *FunctionsCreateFunctionResponse) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *FunctionsCreateFunctionResponse) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *FunctionsCreateFunctionResponse) UnmarshalBinary(b []byte) error {
var res FunctionsCreateFunctionResponse
if err := swag.ReadJSON(b, &res); err != nil |
*m = res
return nil
}
| {
return err
} |
format.rs | use clippy_utils::diagnostics::span_lint_and_sugg;
use clippy_utils::higher::FormatExpn;
use clippy_utils::source::{snippet_opt, snippet_with_applicability};
use clippy_utils::sugg::Sugg;
use if_chain::if_chain;
use rustc_errors::Applicability;
use rustc_hir::{Expr, ExprKind};
use rustc_lint::{LateContext, LateLintPass};
use rustc_middle::ty;
use rustc_session::{declare_lint_pass, declare_tool_lint};
use rustc_span::symbol::kw;
use rustc_span::{sym, BytePos, Span};
declare_clippy_lint! {
/// ### What it does
/// Checks for the use of `format!("string literal with no
/// argument")` and `format!("{}", foo)` where `foo` is a string.
///
/// ### Why is this bad?
/// There is no point of doing that. `format!("foo")` can
/// be replaced by `"foo".to_owned()` if you really need a `String`. The even
/// worse `&format!("foo")` is often encountered in the wild. `format!("{}",
/// foo)` can be replaced by `foo.clone()` if `foo: String` or `foo.to_owned()`
/// if `foo: &str`.
///
/// ### Examples
/// ```rust
///
/// // Bad
/// let foo = "foo";
/// format!("{}", foo);
///
/// // Good
/// foo.to_owned();
/// ```
#[clippy::version = "pre 1.29.0"]
pub USELESS_FORMAT,
complexity,
"useless use of `format!`"
}
declare_lint_pass!(UselessFormat => [USELESS_FORMAT]);
impl<'tcx> LateLintPass<'tcx> for UselessFormat {
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
let FormatExpn { call_site, format_args } = match FormatExpn::parse(expr) {
Some(e) if !e.call_site.from_expansion() => e,
_ => return,
};
let mut applicability = Applicability::MachineApplicable;
if format_args.value_args.is_empty() {
if format_args.format_string_parts.is_empty() | else {
if_chain! {
if let [e] = &*format_args.format_string_parts;
if let ExprKind::Lit(lit) = &e.kind;
if let Some(s_src) = snippet_opt(cx, lit.span);
then {
// Simulate macro expansion, converting {{ and }} to { and }.
let s_expand = s_src.replace("{{", "{").replace("}}", "}");
let sugg = format!("{}.to_string()", s_expand);
span_useless_format(cx, call_site, sugg, applicability);
}
}
}
} else if let [value] = *format_args.value_args {
if_chain! {
if format_args.format_string_symbols == [kw::Empty];
if match cx.typeck_results().expr_ty(value).peel_refs().kind() {
ty::Adt(adt, _) => cx.tcx.is_diagnostic_item(sym::String, adt.did),
ty::Str => true,
_ => false,
};
if let Some(args) = format_args.args();
if args.iter().all(|arg| arg.is_display() && !arg.has_string_formatting());
then {
let is_new_string = match value.kind {
ExprKind::Binary(..) => true,
ExprKind::MethodCall(path, ..) => path.ident.name.as_str() == "to_string",
_ => false,
};
let sugg = if format_args.format_string_span.contains(value.span) {
// Implicit argument. e.g. `format!("{x}")` span points to `{x}`
let spdata = value.span.data();
let span = Span::new(
spdata.lo + BytePos(1),
spdata.hi - BytePos(1),
spdata.ctxt,
spdata.parent
);
let snip = snippet_with_applicability(cx, span, "..", &mut applicability);
if is_new_string {
snip.into()
} else {
format!("{snip}.to_string()")
}
} else if is_new_string {
snippet_with_applicability(cx, value.span, "..", &mut applicability).into_owned()
} else {
let sugg = Sugg::hir_with_applicability(cx, value, "<arg>", &mut applicability);
format!("{}.to_string()", sugg.maybe_par())
};
span_useless_format(cx, call_site, sugg, applicability);
}
}
};
}
}
fn span_useless_format_empty(cx: &LateContext<'_>, span: Span, sugg: String, applicability: Applicability) {
span_lint_and_sugg(
cx,
USELESS_FORMAT,
span,
"useless use of `format!`",
"consider using `String::new()`",
sugg,
applicability,
);
}
fn span_useless_format(cx: &LateContext<'_>, span: Span, sugg: String, applicability: Applicability) {
span_lint_and_sugg(
cx,
USELESS_FORMAT,
span,
"useless use of `format!`",
"consider using `.to_string()`",
sugg,
applicability,
);
}
| {
span_useless_format_empty(cx, call_site, "String::new()".to_owned(), applicability);
} |
lib.rs | // Copyright 2020 WeDPR Lab Project Authors. Licensed under Apache-2.0.
//! Secp256k1 ECIES functions.
use wedpr_l_utils::{error::WedprError, traits::Ecies};
#[macro_use]
extern crate wedpr_l_macros;
/// Implements a ECIES instance on Secp256k1 curve.
#[derive(Default, Debug, Clone)]
pub struct WedprSecp256k1Ecies {}
impl Ecies for WedprSecp256k1Ecies {
fn encrypt<T: ?Sized + AsRef<[u8]>>(
&self,
public_key: &T,
message: &T,
) -> Result<Vec<u8>, WedprError>
{
match ecies::encrypt(public_key.as_ref(), message.as_ref()) {
Ok(v) => Ok(v.to_vec()),
Err(_) => {
wedpr_println!("secp256k1 ECIES encrypt failed");
return Err(WedprError::FormatError);
},
}
}
fn decrypt<T: ?Sized + AsRef<[u8]>>(
&self,
private_key: &T,
ciphertext: &T,
) -> Result<Vec<u8>, WedprError>
{
match ecies::decrypt(private_key.as_ref(), ciphertext.as_ref()) {
Ok(v) => Ok(v.to_vec()),
Err(_) => {
wedpr_println!("secp256k1 ECIES decrypt failed");
return Err(WedprError::FormatError);
},
}
}
}
#[cfg(test)]
mod tests {
use super::*;
use wedpr_l_utils::constant::tests::{
BASE64_ENCODED_TEST_MESSAGE, SECP256K1_TEST_PUBLIC_KEY,
SECP256K1_TEST_SECRET_KEY,
};
#[test]
fn | () {
let secp256k1_ecies = WedprSecp256k1Ecies::default();
let ciphertext = secp256k1_ecies
.encrypt(
&SECP256K1_TEST_PUBLIC_KEY.to_vec(),
&BASE64_ENCODED_TEST_MESSAGE.to_vec(),
)
.unwrap();
let decrypted_msg = secp256k1_ecies
.decrypt(&SECP256K1_TEST_SECRET_KEY.to_vec(), &ciphertext)
.unwrap();
assert_eq!(decrypted_msg, BASE64_ENCODED_TEST_MESSAGE);
}
}
| test_secp256k1_ecies |
HowItWorks.tsx | import { Alert, Linking, StyleSheet, View, FlatList } from "react-native";
import React from "react";
import CarbonText from "../components/CarbonText";
import { FontSizeMedium } from "../FontSizes";
import CarbonButton from "../components/CarbonButton";
import CarbonButtonOutline from "../components/CarbonButtonOutline";
import { Gray100, White0 } from "../CarbonColors";
import SVGIcon from "../components/SVGIcon"
import { useHistory } from "react-router-dom";
function HowItWorks() {
const history = useHistory();
function userDetailsOnClick() {
history.push("/userDetails");
}
function openURL(url: string) {
Linking.canOpenURL(url).then((supported) => {
if (supported) return Linking.openURL(url);
Alert.alert("Error", "Could not open URL", [{ text: "Ok" }]);
});
}
const howItWorksSteps = [
{
step: '1',
icon: 'iconUSBC',
title: 'Connect sensor to USB-C'
},
{
step: '2',
icon: 'iconEdit',
title: 'Enter your info in the app'
},
{
step: '3',
icon: 'iconWifi',
title: 'Enable internet' | title: 'Add sensor to network'
},
{
step: '5',
icon: 'iconLaptop',
title: 'View your data on the dashboard'
},
];
const Step = ({ title, icon }) => (
<View>
<CarbonText style={styles.steps}>
<SVGIcon type={icon} />
{title}
</CarbonText>
</View>
);
const renderItem = ({ item }) => (
<Step title={item.title} icon={item.icon} />
);
return (
<View style={styles.container}>
<CarbonText style={styles.HowItWorks}>
How it works:
</CarbonText>
<FlatList
data={howItWorksSteps}
renderItem={renderItem}
keyExtractor={item => item.step}
/>
<View style={{ flexDirection:"row" }}>
<CarbonButtonOutline
text="OpenEEW dashboard"
onPress={() => openURL("https://dashboard.openeew.com/")}
style={styles.button}
/>
<CarbonButton text="Get Started" onPress={userDetailsOnClick} style={styles.button} />
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
backgroundColor: Gray100,
width: "100%",
},
HowItWorks: {
fontSize: FontSizeMedium,
color: White0,
marginBottom: 24,
},
steps: {
color: White0,
fontSize: 16,
fontWeight: "bold",
marginBottom: 48,
paddingLeft: 24
},
button: {
marginTop: 100,
paddingRight: 60,
},
});
export default HowItWorks; | },
{
step: '4',
icon: 'iconIot', |
screen_capture.py | import math
import numpy
from PIL import Image
from the_ark.selenium_helpers import SeleniumHelperExceptions, ElementNotVisibleError, ElementError
from StringIO import StringIO
import time
import traceback
DEFAULT_SCROLL_PADDING = 100
SCREENSHOT_FILE_EXTENSION = "png"
DEFAULT_PIXEL_MATCH_OFFSET = 100
FIREFOX_HEAD_HEIGHT = 75
MAX_IMAGE_HEIGHT = 32768.0
class Screenshot:
"""
A helper class for taking screenshots using a Selenium Helper instance
"""
def __init__(self, selenium_helper, paginated=False, header_ids=None, footer_ids=None,
scroll_padding=DEFAULT_SCROLL_PADDING, pixel_match_offset=DEFAULT_PIXEL_MATCH_OFFSET,
file_extenson=SCREENSHOT_FILE_EXTENSION, resize_delay=0, content_container_selector="html"):
"""
Initializes the Screenshot class. These variable will be used throughout to help determine how to capture pages
for this website.
:param
- selenium_helper: SeleniumHelper() - The Selenium Helper object whose browser you are capturing
- paginated: bool - if True, all full page screenshots captured by this class will be a sequence of
viewport sized images
- header_ids: list - A list of css_selectors for elements that "stick" to the top of the screen when
scrolling. These hidden and shown while capturing the screen so that they display
only at the top of the page, and do not cover any content
- footer_ids: list - A list of css_selectors for elements that "stick" to the bottom of the screen
when scrolling. These hidden and shown while capturing the screen so that they
display only at the bottom of the page, and do not cover any content
- scroll_padding: int - The height, in pixels, of the overlap between paginated captures. This is also
used when scrolling elements. the element is scrolled its height minus the padding
to create an overlapping of content shown on both images to not cut any text in half
- file_extenson: string - If provided, this extension will be used while creating the image. This must
be an extension that is usable with PIL
"""
# Set parameters as class variables
self.sh = selenium_helper
self.paginated = paginated
self.headers = header_ids
self.footers = footer_ids
self.content_container_selector = content_container_selector
self.scroll_padding = scroll_padding
self.pixel_match_offset = pixel_match_offset
self.file_extenson = "png"
self.headless = self.sh.desired_capabilities.get("headless", False)
self.head_padding = FIREFOX_HEAD_HEIGHT if self.sh.desired_capabilities ["browserName"] == "firefox" else 0
self.scale_factor = self.sh.desired_capabilities.get("scale_factor", 1)
self.max_height = MAX_IMAGE_HEIGHT / self.scale_factor
self.resize_delay = resize_delay
def capture_page(self, viewport_only=False, padding=None):
"""
Entry point for a screenshot of the whole page. This will send the screenshot off to the correct methods
depending on whether you need paginated screenshots, just the current viewport area, or the whole page in
one large shot.
:param
- viewport_only: bool - Whether to capture just the viewport's visible area or not
:return
- StringIO: A StingIO object containing the captured image(s)
"""
try:
if self.headless:
return self._capture_headless_page(viewport_only)
elif viewport_only:
return self._capture_single_viewport()
elif self.paginated:
return self._capture_paginated_page(padding)
else:
return self._capture_full_page()
except SeleniumHelperExceptions as selenium_error:
message = "A selenium issue arose while taking the screenshot".format()
error = SeleniumError(message, selenium_error)
raise error
except Exception as e:
message = "Unhandled exception while taking the screenshot | {0}".format(e)
raise ScreenshotException(message, stacktrace=traceback.format_exc())
def capture_scrolling_element(self, css_selector, viewport_only=True, scroll_padding=None):
"""
This method will scroll an element one height (with padding) and take a screenshot each scroll until the element
has been scrolled to the bottom. You can choose to capture the whole page (helpful when the scrollable element
is taller than the viewport) or just the viewport area
:param
- css_selector: string - The css selector for the element that you plan to scroll
- viewport_only: bool - Whether to capture just the viewport's visible area or not (each screenshot
after scrolling)
- scroll_padding: int - Overwrites the default scroll padding for the class. This can be used when the
element, or site, have greatly different scroll padding numbers
:return
- StringIO: list - A list containing multiple StringIO image objects
"""
padding = scroll_padding if scroll_padding else self.scroll_padding
try:
image_list = []
# Scroll the element to the top
self.sh.scroll_an_element(css_selector, scroll_top=True)
while True:
if self.headless:
image_list.append(self._capture_headless_page(viewport_only))
elif viewport_only:
image_list.append(self._capture_single_viewport())
else:
image_list.append(self._capture_full_page())
if self.sh.get_is_element_scroll_position_at_bottom(css_selector):
# Stop capturing once you're at the bottom
break
else:
# Scroll down for the next one!
self.sh.scroll_an_element(css_selector, scroll_padding=padding)
return image_list
except SeleniumHelperExceptions as selenium_error:
message = "A selenium issue arose while trying to capture the scrolling element"
error = SeleniumError(message, selenium_error)
raise error
except Exception as e:
message = "Unhandled exception while taking the scrolling screenshot " \
"of the element '{0}' | {1}".format(css_selector, e)
raise ScreenshotException(message,
stacktrace=traceback.format_exc(),
details={"css_selector": css_selector})
def capture_horizontal_scrolling_element(self, css_selector, viewport_only=True, scroll_padding=None):
"""
This method will scroll an element horizontally one width (with padding) and take a screenshot each scroll until
the element has been scrolled to the right. You can choose to capture the whole page (helpful when the
scrollable element is taller than the viewport) or just the viewport area.
:param
- css_selector: string - The css selector for the element that you plan to scroll
- viewport_only: bool - Whether to capture just the viewport's visible area or not (each screenshot
after scrolling)
- scroll_padding: int - Overwrites the default scroll padding for the class. This can be used when the
element, or site, have greatly different scroll padding numbers
:return
- StringIO: list - A list containing multiple StringIO image objects
"""
padding = scroll_padding if scroll_padding else self.scroll_padding
try:
image_list = []
# Scroll the element to the top
self.sh.scroll_an_element(css_selector, scroll_left=True)
while True:
# - Capture the image
if viewport_only:
image_list.append(self._capture_single_viewport())
else:
image_list.append(self._capture_full_page())
if self.sh.get_is_element_scroll_position_at_most_right(css_selector):
# - Stop capturing once you're at the most right
break
else:
# - Scroll right for the next one!
self.sh.scroll_an_element(css_selector, scroll_padding=padding, scroll_horizontal=True)
return image_list
except SeleniumHelperExceptions as selenium_error:
message = "A selenium issue arose while trying to capture the scrolling element"
error = SeleniumError(message, selenium_error)
raise error
except Exception as e:
message = "Unhandled exception while taking the scrolling screenshot " \
"of the element '{0}' | {1}".format(css_selector, e)
raise ScreenshotException(message,
stacktrace=traceback.format_exc(),
details={"css_selector": css_selector})
def _capture_single_viewport(self):
"""
Grabs an image of the page and then craps it to just the visible / viewport area
:return
- StringIO: A StingIO object containing the captured image
"""
cropped_image = self._get_image_data(viewport_only=True)
return self._create_image_file(cropped_image)
def _capture_full_page(self):
"""
Captures an image of the whole page. If there are sitcky elements, as specified by the footers and headers
class variables the code will, the code will capture them only where appropriate ie. headers on top, footers on
bottom. Otherwise the whole screen is sent back as it is currently set up.
:return
- StringIO: A StingIO object containing the captured image
"""
if self.headers and self.footers:
# Capture viewport size window of the headers
self.sh.scroll_window_to_position(0)
self._hide_elements(self.footers)
header_image = self._get_image_data(True)
# - Capture the page from the bottom without headers
self._show_elements(self.footers)
#TODO: Update when scroll position updates to have a scroll to bottom option
self.sh.scroll_window_to_position(40000)
self._hide_elements(self.headers)
footer_image = self._get_image_data()
# Show all header elements again
self._show_elements(self.headers)
# Send the two images off to get merged into one
image_data = self._crop_and_stitch_image(header_image, footer_image)
elif self.headers:
# Scroll to the top so that the headers are not covering content
self.sh.scroll_window_to_position(0)
time.sleep(0.5)
image_data = self._get_image_data()
elif self.footers:
# Scroll to the bottom so that the footer items are not covering content
self.sh.scroll_window_to_position(40000)
time.sleep(0.5)
image_data = self._get_image_data()
else:
image_data = self._get_image_data()
return self._create_image_file(image_data)
def _hide_elements(self, css_selectors):
"""
Hides all elements in the given list
:param
- css_selectors: list - A list of the elements you would like to hide
"""
for selector in css_selectors:
try:
self.sh.hide_element(selector)
# Continue to the next item is this one did not exist or was already not visible
except ElementNotVisibleError:
pass
except ElementError:
pass
def | (self, css_selectors):
"""
Shows all elements in the given list
:param
- css_selectors: list - A list of the elements you would like to make visible
"""
# Show footer items again
for selector in css_selectors:
try:
self.sh.show_element(selector)
# Continue to the next item is this one did not exist
except ElementError:
pass
def _capture_headless_page(self, viewport_only):
if self.paginated and not viewport_only:
return self._capture_headless_paginated_page()
# Store the current size and scroll position of the browser
width, height = self.sh.get_window_size()
current_scroll_position = self.sh.get_window_current_scroll_position()
if not viewport_only:
content_height = self.sh.get_content_height(self.content_container_selector)
if content_height > self.max_height:
self.sh.resize_browser(width, self.max_height + self.head_padding)
time.sleep(self.resize_delay)
elif height < content_height:
self.sh.resize_browser(width, content_height + self.head_padding)
time.sleep(self.resize_delay)
self.sh.scroll_window_to_position(scroll_bottom=True)
time.sleep(self.resize_delay)
if content_height > self.max_height:
images_list = []
number_of_loops = int(math.ceil(content_height / self.max_height))
# Loop through, starting at one for multiplication purposes
for i in range(1, number_of_loops + 1):
image_data = self.sh.get_screenshot_base64()
image = Image.open(StringIO(image_data.decode('base64')))
images_list.append(image)
self.sh.scroll_window_to_position(self.max_height * i)
# Combine al of the images into one capture
image = self._combine_vertical_images(images_list, content_height)
else:
# Gather image byte data
image_data = self.sh.get_screenshot_base64()
# Create an image canvas and write the byte data to it
image = Image.open(StringIO(image_data.decode('base64')))
else:
# Gather image byte data
image_data = self.sh.get_screenshot_base64()
# Create an image canvas and write the byte data to it
image = Image.open(StringIO(image_data.decode('base64')))
# - Return the browser to its previous size and scroll position
if not viewport_only:
self.sh.resize_browser(width, height)
self.sh.scroll_window_to_position(current_scroll_position)
time.sleep(self.resize_delay)
return self._create_image_file(image)
def _combine_vertical_images(self, images_list, content_height):
height_of_full_images = 0
total_height = 0
total_width = 0
# Make the last image the height of the remaining content
for image in images_list[:-1]:
height_of_full_images += image.size[1]
remaining_height = (content_height * self.scale_factor) - height_of_full_images
images_list[-1] = images_list[-1].crop((0,
images_list[-1].size[1] - remaining_height,
images_list[-1].size[0],
images_list[-1].size[1]))
for image in images_list:
total_width = image.size[0] if image.size[0] > total_width else total_width
total_height += image.size[1]
resulting_image = Image.new('RGB', (total_width, total_height))
current_height = 0
for i, image in enumerate(images_list):
resulting_image.paste(im=image, box=(0, current_height))
current_height += image.size[1]
return resulting_image
def _capture_paginated_page(self, padding=None):
"""
Captures the page viewport by viewport, leaving an overlap of pixels the height of the self.padding variable
between each image
"""
image_list = []
scroll_padding = padding if padding else self.scroll_padding
# Scroll page to the top
self.sh.scroll_window_to_position(0)
current_scroll_position = 0
viewport_height = self.sh.driver.execute_script("return document.documentElement.clientHeight")
while True:
# Capture the image
image_list.append(self._capture_single_viewport())
# Scroll for the next one!
self.sh.scroll_window_to_position(current_scroll_position + viewport_height - scroll_padding)
time.sleep(0.25)
new_scroll_position = self.sh.get_window_current_scroll_position()
# Break if the scroll position did not change (because it was at the bottom)
if new_scroll_position == current_scroll_position:
break
else:
current_scroll_position = new_scroll_position
return image_list
def _capture_headless_paginated_page(self, padding=None):
"""
Captures the page viewport by viewport, leaving an overlap of pixels the height of the self.padding variable
between each image
"""
image_list = []
scroll_padding = padding if padding else self.scroll_padding
# Scroll page to the top
self.sh.scroll_window_to_position(0)
current_scroll_position = 0
viewport_height = self.sh.driver.execute_script("return document.documentElement.clientHeight")
while True:
# Capture the image
image_data = self.sh.get_screenshot_base64()
image_file = self._create_image_file(Image.open(StringIO(image_data.decode('base64'))))
image_list.append(image_file)
# Scroll for the next one!
self.sh.scroll_window_to_position(current_scroll_position + viewport_height - scroll_padding)
time.sleep(0.25)
new_scroll_position = self.sh.get_window_current_scroll_position()
# Break if the scroll position did not change (because it was at the bottom)
if new_scroll_position == current_scroll_position:
break
else:
current_scroll_position = new_scroll_position
return image_list
def _get_image_data(self, viewport_only=False):
"""
Creates an Image() canvas of the page. The image is cropped to be only the viewport area if specified.
:param
- viewport_only: bool - Captures only the visible /viewport area if true
:return
- image: Image() - The image canvas of the captured data
"""
# - Capture the image
# Gather image byte data
image_data = self.sh.get_screenshot_base64()
# Create an image canvas and write the byte data to it
image = Image.open(StringIO(image_data.decode('base64')))
# - Crop the image to just the visible area
# Top of the viewport
current_scroll_position = self.sh.get_window_current_scroll_position()
# Viewport Dimensions
viewport_width, viewport_height = self.sh.get_viewport_size()
# Image size of data returned by Selenium
image_height, image_width = image.size
if viewport_only:
# Calculate the visible area
crop_box = (0, current_scroll_position, viewport_width, current_scroll_position + viewport_height)
# Crop everything of the image but the visible area
cropped_image = image.crop(crop_box)
return cropped_image
else:
# Calculate the visible area
crop_box = (0, 0, viewport_width, image_width)
# Crop everything of the image but the visible area
cropped_image = image.crop(crop_box)
return cropped_image
def _crop_and_stitch_image(self, header_image, footer_image):
"""
This object takes in a header and footer image. It then searched for a block of 100 mixles that matches between
the two images. Once it finds this point the footer image is cropped above the "match" point. A new canvas is
then created that is the total height of both images. The two images are then copied onto a new canvas to create
the final image, headers on top, footers on the bottom.
:param
- header_image: Image() - The top of the page, usually displays all of the headers elements
- footer_image: Image() - The bottom of the page, usually displays all of the footer elements
:return
- stitched_image: Image() - The resulting image of the crop and stitching of the header and footer images
"""
try:
# Create Pixel Row arrays from each image
header_array = numpy.asarray(header_image)
footer_array = numpy.asarray(footer_image)
# - Find a place in both images that match then crop and stitch them at that location
crop_row = 0
header_image_height = header_image.height
# Set the offset to the height of the image if the height is less than the offset
if self.pixel_match_offset > header_image_height:
self.pixel_match_offset = header_image_height
# - Find the pixel row in the footer image that matches the bottom row in the header image
# Grab the last 100 rows of header_image
header_last_hundred_rows = header_array[header_image_height - self.pixel_match_offset: header_image_height]
# Iterates throughout the check, will match the height of the row being checked in the image.
for i, footer_row in enumerate(footer_array):
# Jump out if the crop row has been set
if crop_row != 0:
break
# Check if the current row being inspected matches the header row 100 pixels above the bottom
if numpy.array_equal(footer_row, header_last_hundred_rows[0]):
# It is a match!
for y, row in enumerate(header_last_hundred_rows):
# Check that the 100 footer rows above the matching row also match the bottom 100 of
# the header image we grabbed at the start of this check
if numpy.array_equal(footer_array[i + y], header_last_hundred_rows[y]):
# Check whether we've found 100 matching rows or not
if y == self.pixel_match_offset - 1:
# Yes! All 100 matched. Set the crop row to this row
crop_row = i + self.pixel_match_offset
break
# If no rows matched, crop at height of header image
if crop_row == 0:
crop_row = header_image_height
# - Crop the top of the footer image off above the line that matches the header image's bottom row
# Create the crop box that outlines what to remove from the footer image
footer_image_width = footer_image.size[0]
footer_image_height = footer_image.size[1]
crop_box = (0, crop_row, footer_image_width, footer_image_height)
# Perform the crop
cropped_footer_image = footer_image.crop(crop_box)
# Grab the new height of the footer image
cropped_footer_image_height = cropped_footer_image.size[1]
# Create a blank image canvas that is as tall the footer and header images combined
total_height = header_image_height + cropped_footer_image_height
stitched_image = Image.new("RGB", (footer_image_width, total_height))
# - Paste the header and footer images onto the canvas
# Paste the header image at the top
stitched_image.paste(header_image, (0, 0))
# Paste the footer image directly below the header image
stitched_image.paste(cropped_footer_image, (0, header_image_height))
return stitched_image
except Exception as e:
message = "Error while cropping and stitching a full page screenshot | {0}".format(e)
raise ScreenshotException(message, stacktrace=traceback.format_exc())
def _create_image_file(self, image):
"""
This method takes an Image() variable and saves it into a StringIO "file".
:param
- image_data: Image() - The image to be saved into the StringIO object
:return
- image_file: StingIO() - The stringIO object containing the saved image
"""
# Instantiate the file object
image_file = StringIO()
# Save the image canvas to the file as the given file type
image.save(image_file, self.file_extenson.upper())
# Set the file marker back to the beginning
image_file.seek(0)
return image_file
class ScreenshotException(Exception):
def __init__(self, msg, stacktrace=None, details=None):
self.msg = msg
self.details = {} if details is None else details
self.details["stracktrace"] = stacktrace
super(ScreenshotException, self).__init__()
def __str__(self):
exception_msg = "Screenshot Exception: \n"
detail_string = "Exception Details:\n"
for key, value in self.details.items():
detail_string += "{0}: {1}\n".format(key, value)
exception_msg += detail_string
exception_msg += "Message: {0}".format(self.msg)
return exception_msg
class SeleniumError(ScreenshotException):
def __init__(self, message, selenium_helper_exception):
new_message = "{0} | {1}".format(message, selenium_helper_exception.msg)
super(SeleniumError, self).__init__(msg=new_message,
stacktrace=selenium_helper_exception.stacktrace,
details=selenium_helper_exception.details)
| _show_elements |
type_variable.rs | // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub use self::RelationDir::*;
use self::TypeVariableValue::*;
use self::UndoEntry::*;
use middle::ty::{mod, Ty};
use std::mem;
use util::snapshot_vec as sv;
pub struct TypeVariableTable<'tcx> {
values: sv::SnapshotVec<TypeVariableData<'tcx>,UndoEntry,Delegate>,
}
struct TypeVariableData<'tcx> {
value: TypeVariableValue<'tcx>,
diverging: bool
}
enum TypeVariableValue<'tcx> {
Known(Ty<'tcx>),
Bounded(Vec<Relation>),
}
pub struct Snapshot {
snapshot: sv::Snapshot
}
enum UndoEntry {
// The type of the var was specified.
SpecifyVar(ty::TyVid, Vec<Relation>),
Relate(ty::TyVid, ty::TyVid),
}
struct | ;
type Relation = (RelationDir, ty::TyVid);
#[deriving(PartialEq,Show)]
pub enum RelationDir {
SubtypeOf, SupertypeOf, EqTo
}
impl RelationDir {
fn opposite(self) -> RelationDir {
match self {
SubtypeOf => SupertypeOf,
SupertypeOf => SubtypeOf,
EqTo => EqTo
}
}
}
impl<'tcx> TypeVariableTable<'tcx> {
pub fn new() -> TypeVariableTable<'tcx> {
TypeVariableTable { values: sv::SnapshotVec::new(Delegate) }
}
fn relations<'a>(&'a mut self, a: ty::TyVid) -> &'a mut Vec<Relation> {
relations(self.values.get_mut(a.index))
}
pub fn var_diverges<'a>(&'a self, vid: ty::TyVid) -> bool {
self.values.get(vid.index).diverging
}
pub fn relate_vars(&mut self, a: ty::TyVid, dir: RelationDir, b: ty::TyVid) {
/*!
* Records that `a <: b`, `a :> b`, or `a == b`, depending on `dir`.
*
* Precondition: neither `a` nor `b` are known.
*/
if a != b {
self.relations(a).push((dir, b));
self.relations(b).push((dir.opposite(), a));
self.values.record(Relate(a, b));
}
}
pub fn instantiate_and_push(
&mut self,
vid: ty::TyVid,
ty: Ty<'tcx>,
stack: &mut Vec<(Ty<'tcx>, RelationDir, ty::TyVid)>)
{
/*!
* Instantiates `vid` with the type `ty` and then pushes an
* entry onto `stack` for each of the relations of `vid` to
* other variables. The relations will have the form `(ty,
* dir, vid1)` where `vid1` is some other variable id.
*/
let old_value = {
let value_ptr = &mut self.values.get_mut(vid.index).value;
mem::replace(value_ptr, Known(ty))
};
let relations = match old_value {
Bounded(b) => b,
Known(_) => panic!("Asked to instantiate variable that is \
already instantiated")
};
for &(dir, vid) in relations.iter() {
stack.push((ty, dir, vid));
}
self.values.record(SpecifyVar(vid, relations));
}
pub fn new_var(&mut self, diverging: bool) -> ty::TyVid {
let index = self.values.push(TypeVariableData {
value: Bounded(vec![]),
diverging: diverging
});
ty::TyVid { index: index }
}
pub fn probe(&self, vid: ty::TyVid) -> Option<Ty<'tcx>> {
match self.values.get(vid.index).value {
Bounded(..) => None,
Known(t) => Some(t)
}
}
pub fn replace_if_possible(&self, t: Ty<'tcx>) -> Ty<'tcx> {
match t.sty {
ty::ty_infer(ty::TyVar(v)) => {
match self.probe(v) {
None => t,
Some(u) => u
}
}
_ => t,
}
}
pub fn snapshot(&mut self) -> Snapshot {
Snapshot { snapshot: self.values.start_snapshot() }
}
pub fn rollback_to(&mut self, s: Snapshot) {
self.values.rollback_to(s.snapshot);
}
pub fn commit(&mut self, s: Snapshot) {
self.values.commit(s.snapshot);
}
}
impl<'tcx> sv::SnapshotVecDelegate<TypeVariableData<'tcx>,UndoEntry> for Delegate {
fn reverse(&mut self,
values: &mut Vec<TypeVariableData>,
action: UndoEntry) {
match action {
SpecifyVar(vid, relations) => {
values[vid.index].value = Bounded(relations);
}
Relate(a, b) => {
relations(&mut (*values)[a.index]).pop();
relations(&mut (*values)[b.index]).pop();
}
}
}
}
fn relations<'a>(v: &'a mut TypeVariableData) -> &'a mut Vec<Relation> {
match v.value {
Known(_) => panic!("var_sub_var: variable is known"),
Bounded(ref mut relations) => relations
}
}
| Delegate |
test_clientplayback.py | import pytest
from unittest import mock
from mitmproxy.test import tflow
from mitmproxy import io
from mitmproxy import exceptions
from mitmproxy.addons import clientplayback
from mitmproxy.test import taddons
def tdump(path, flows):
w = io.FlowWriter(open(path, "wb"))
for i in flows:
w.add(i)
class MockThread():
def | (self):
return False
class TestClientPlayback:
def test_playback(self):
cp = clientplayback.ClientPlayback()
with taddons.context() as tctx:
assert cp.count() == 0
f = tflow.tflow(resp=True)
cp.load([f])
assert cp.count() == 1
RP = "mitmproxy.proxy.protocol.http_replay.RequestReplayThread"
with mock.patch(RP) as rp:
assert not cp.current_thread
cp.tick()
assert rp.called
assert cp.current_thread
cp.flows = None
cp.current_thread = None
cp.tick()
assert tctx.master.has_event("processing_complete")
cp.current_thread = MockThread()
cp.tick()
assert cp.current_thread is None
def test_configure(self, tmpdir):
cp = clientplayback.ClientPlayback()
with taddons.context() as tctx:
path = str(tmpdir.join("flows"))
tdump(path, [tflow.tflow()])
tctx.configure(cp, client_replay=[path])
tctx.configure(cp, client_replay=[])
tctx.configure(cp)
with pytest.raises(exceptions.OptionsError):
tctx.configure(cp, client_replay=["nonexistent"])
| is_alive |
recaptcha.js | import { options } from './rest';
export default async function validateReCAPTCHA(response) {
var res = await fetch(
"https://www.google.com/recaptcha/api/siteverify",
options.general.POST( | )
const resData = await res.json()
if (res.ok)
return resData.success
else
return false
} | `secret=${process.env.reCAPTCHA_SECRET}&response=${response}`,
{ 'Content-type': 'application/x-www-form-urlencoded' }
) |
Erizo.js | import Room from './Room';
import { LicodeEvent, RoomEvent, StreamEvent } from './Events';
import Stream from './Stream';
import Logger from './utils/Logger';
// eslint-disable-next-line
require('expose-loader?adapter!../lib/adapter.js');
// eslint-disable-next-line | const Erizo = {
Room: Room.bind(null, undefined, undefined),
LicodeEvent,
RoomEvent,
StreamEvent,
Stream: Stream.bind(null, undefined),
Logger,
};
export default Erizo; | require('script-loader!./utils/L.Resizer.js');
|
provider.py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = ['ProviderArgs', 'Provider']
@pulumi.input_type
class ProviderArgs:
def __init__(__self__, *,
metadata_host: pulumi.Input[str],
client_certificate_password: Optional[pulumi.Input[str]] = None,
client_certificate_path: Optional[pulumi.Input[str]] = None,
client_id: Optional[pulumi.Input[str]] = None,
client_secret: Optional[pulumi.Input[str]] = None,
disable_terraform_partner_id: Optional[pulumi.Input[bool]] = None,
environment: Optional[pulumi.Input[str]] = None,
msi_endpoint: Optional[pulumi.Input[str]] = None,
partner_id: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None,
use_cli: Optional[pulumi.Input[bool]] = None,
use_microsoft_graph: Optional[pulumi.Input[bool]] = None,
use_msi: Optional[pulumi.Input[bool]] = None):
"""
The set of arguments for constructing a Provider resource.
:param pulumi.Input[str] metadata_host: [DEPRECATED] The Hostname which should be used for the Azure Metadata Service.
:param pulumi.Input[str] client_certificate_path: The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service
Principal using a Client Certificate.
:param pulumi.Input[str] client_id: The Client ID which should be used for service principal authentication.
:param pulumi.Input[str] client_secret: The password to decrypt the Client Certificate. For use when authenticating as a Service Principal using a Client
Certificate
:param pulumi.Input[bool] disable_terraform_partner_id: Disable the Terraform Partner ID which is used if a custom `partner_id` isn't specified.
:param pulumi.Input[str] environment: The cloud environment which should be used. Possible values are `global` (formerly `public`), `usgovernment`, `dod`,
`germany`, and `china`. Defaults to `global`.
:param pulumi.Input[str] msi_endpoint: The path to a custom endpoint for Managed Identity - in most circumstances this should be detected automatically.
:param pulumi.Input[str] partner_id: A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution.
:param pulumi.Input[str] tenant_id: The Tenant ID which should be used. Works with all authentication methods except Managed Identity.
:param pulumi.Input[bool] use_cli: Allow Azure CLI to be used for Authentication.
:param pulumi.Input[bool] use_microsoft_graph: Beta: Use the Microsoft Graph API, instead of the legacy Azure Active Directory Graph API, where supported.
:param pulumi.Input[bool] use_msi: Allow Managed Identity to be used for Authentication.
"""
pulumi.set(__self__, "metadata_host", metadata_host)
if client_certificate_password is not None:
pulumi.set(__self__, "client_certificate_password", client_certificate_password)
if client_certificate_path is not None:
pulumi.set(__self__, "client_certificate_path", client_certificate_path)
if client_id is not None:
pulumi.set(__self__, "client_id", client_id)
if client_secret is not None:
pulumi.set(__self__, "client_secret", client_secret)
if disable_terraform_partner_id is not None:
pulumi.set(__self__, "disable_terraform_partner_id", disable_terraform_partner_id)
if environment is None:
environment = (_utilities.get_env('ARM_ENVIRONMENT') or 'public')
if environment is not None:
pulumi.set(__self__, "environment", environment)
if msi_endpoint is None:
msi_endpoint = _utilities.get_env('ARM_MSI_ENDPOINT')
if msi_endpoint is not None:
pulumi.set(__self__, "msi_endpoint", msi_endpoint)
if partner_id is not None:
pulumi.set(__self__, "partner_id", partner_id)
if tenant_id is not None:
pulumi.set(__self__, "tenant_id", tenant_id)
if use_cli is not None:
pulumi.set(__self__, "use_cli", use_cli)
if use_microsoft_graph is not None:
pulumi.set(__self__, "use_microsoft_graph", use_microsoft_graph)
if use_msi is None:
use_msi = (_utilities.get_env_bool('ARM_USE_MSI') or False)
if use_msi is not None:
pulumi.set(__self__, "use_msi", use_msi)
@property
@pulumi.getter(name="metadataHost")
def metadata_host(self) -> pulumi.Input[str]:
"""
[DEPRECATED] The Hostname which should be used for the Azure Metadata Service.
"""
return pulumi.get(self, "metadata_host")
@metadata_host.setter
def metadata_host(self, value: pulumi.Input[str]):
pulumi.set(self, "metadata_host", value)
@property
@pulumi.getter(name="clientCertificatePassword")
def client_certificate_password(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "client_certificate_password")
@client_certificate_password.setter
def client_certificate_password(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "client_certificate_password", value)
@property
@pulumi.getter(name="clientCertificatePath")
def client_certificate_path(self) -> Optional[pulumi.Input[str]]:
"""
The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service
Principal using a Client Certificate.
"""
return pulumi.get(self, "client_certificate_path")
@client_certificate_path.setter
def client_certificate_path(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "client_certificate_path", value)
@property
@pulumi.getter(name="clientId")
def client_id(self) -> Optional[pulumi.Input[str]]:
"""
The Client ID which should be used for service principal authentication.
"""
return pulumi.get(self, "client_id")
@client_id.setter
def client_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "client_id", value)
@property
@pulumi.getter(name="clientSecret")
def client_secret(self) -> Optional[pulumi.Input[str]]:
"""
The password to decrypt the Client Certificate. For use when authenticating as a Service Principal using a Client
Certificate
"""
return pulumi.get(self, "client_secret")
@client_secret.setter
def client_secret(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "client_secret", value)
@property
@pulumi.getter(name="disableTerraformPartnerId")
def disable_terraform_partner_id(self) -> Optional[pulumi.Input[bool]]:
"""
Disable the Terraform Partner ID which is used if a custom `partner_id` isn't specified.
"""
return pulumi.get(self, "disable_terraform_partner_id")
@disable_terraform_partner_id.setter
def disable_terraform_partner_id(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "disable_terraform_partner_id", value)
@property
@pulumi.getter
def environment(self) -> Optional[pulumi.Input[str]]:
"""
The cloud environment which should be used. Possible values are `global` (formerly `public`), `usgovernment`, `dod`,
`germany`, and `china`. Defaults to `global`.
"""
return pulumi.get(self, "environment")
@environment.setter
def environment(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "environment", value)
@property
@pulumi.getter(name="msiEndpoint")
def msi_endpoint(self) -> Optional[pulumi.Input[str]]:
"""
The path to a custom endpoint for Managed Identity - in most circumstances this should be detected automatically.
"""
return pulumi.get(self, "msi_endpoint")
@msi_endpoint.setter
def msi_endpoint(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "msi_endpoint", value)
@property
@pulumi.getter(name="partnerId")
def partner_id(self) -> Optional[pulumi.Input[str]]:
"""
A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution.
"""
return pulumi.get(self, "partner_id")
@partner_id.setter
def partner_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "partner_id", value)
@property
@pulumi.getter(name="tenantId")
def tenant_id(self) -> Optional[pulumi.Input[str]]:
"""
The Tenant ID which should be used. Works with all authentication methods except Managed Identity.
"""
return pulumi.get(self, "tenant_id")
@tenant_id.setter
def tenant_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tenant_id", value)
@property
@pulumi.getter(name="useCli")
def use_cli(self) -> Optional[pulumi.Input[bool]]:
"""
Allow Azure CLI to be used for Authentication.
"""
return pulumi.get(self, "use_cli")
@use_cli.setter
def use_cli(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "use_cli", value)
@property
@pulumi.getter(name="useMicrosoftGraph")
def use_microsoft_graph(self) -> Optional[pulumi.Input[bool]]:
"""
Beta: Use the Microsoft Graph API, instead of the legacy Azure Active Directory Graph API, where supported.
"""
return pulumi.get(self, "use_microsoft_graph")
@use_microsoft_graph.setter
def use_microsoft_graph(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "use_microsoft_graph", value)
@property
@pulumi.getter(name="useMsi")
def use_msi(self) -> Optional[pulumi.Input[bool]]:
"""
Allow Managed Identity to be used for Authentication.
"""
return pulumi.get(self, "use_msi")
@use_msi.setter
def use_msi(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "use_msi", value)
class | (pulumi.ProviderResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
client_certificate_password: Optional[pulumi.Input[str]] = None,
client_certificate_path: Optional[pulumi.Input[str]] = None,
client_id: Optional[pulumi.Input[str]] = None,
client_secret: Optional[pulumi.Input[str]] = None,
disable_terraform_partner_id: Optional[pulumi.Input[bool]] = None,
environment: Optional[pulumi.Input[str]] = None,
metadata_host: Optional[pulumi.Input[str]] = None,
msi_endpoint: Optional[pulumi.Input[str]] = None,
partner_id: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None,
use_cli: Optional[pulumi.Input[bool]] = None,
use_microsoft_graph: Optional[pulumi.Input[bool]] = None,
use_msi: Optional[pulumi.Input[bool]] = None,
__props__=None):
"""
The provider type for the azuread package. By default, resources use package-wide configuration
settings, however an explicit `Provider` instance may be created and passed during resource
construction to achieve fine-grained programmatic control over provider settings. See the
[documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] client_certificate_path: The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service
Principal using a Client Certificate.
:param pulumi.Input[str] client_id: The Client ID which should be used for service principal authentication.
:param pulumi.Input[str] client_secret: The password to decrypt the Client Certificate. For use when authenticating as a Service Principal using a Client
Certificate
:param pulumi.Input[bool] disable_terraform_partner_id: Disable the Terraform Partner ID which is used if a custom `partner_id` isn't specified.
:param pulumi.Input[str] environment: The cloud environment which should be used. Possible values are `global` (formerly `public`), `usgovernment`, `dod`,
`germany`, and `china`. Defaults to `global`.
:param pulumi.Input[str] metadata_host: [DEPRECATED] The Hostname which should be used for the Azure Metadata Service.
:param pulumi.Input[str] msi_endpoint: The path to a custom endpoint for Managed Identity - in most circumstances this should be detected automatically.
:param pulumi.Input[str] partner_id: A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution.
:param pulumi.Input[str] tenant_id: The Tenant ID which should be used. Works with all authentication methods except Managed Identity.
:param pulumi.Input[bool] use_cli: Allow Azure CLI to be used for Authentication.
:param pulumi.Input[bool] use_microsoft_graph: Beta: Use the Microsoft Graph API, instead of the legacy Azure Active Directory Graph API, where supported.
:param pulumi.Input[bool] use_msi: Allow Managed Identity to be used for Authentication.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: ProviderArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
The provider type for the azuread package. By default, resources use package-wide configuration
settings, however an explicit `Provider` instance may be created and passed during resource
construction to achieve fine-grained programmatic control over provider settings. See the
[documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
:param str resource_name: The name of the resource.
:param ProviderArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(ProviderArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
client_certificate_password: Optional[pulumi.Input[str]] = None,
client_certificate_path: Optional[pulumi.Input[str]] = None,
client_id: Optional[pulumi.Input[str]] = None,
client_secret: Optional[pulumi.Input[str]] = None,
disable_terraform_partner_id: Optional[pulumi.Input[bool]] = None,
environment: Optional[pulumi.Input[str]] = None,
metadata_host: Optional[pulumi.Input[str]] = None,
msi_endpoint: Optional[pulumi.Input[str]] = None,
partner_id: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None,
use_cli: Optional[pulumi.Input[bool]] = None,
use_microsoft_graph: Optional[pulumi.Input[bool]] = None,
use_msi: Optional[pulumi.Input[bool]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = ProviderArgs.__new__(ProviderArgs)
__props__.__dict__["client_certificate_password"] = client_certificate_password
__props__.__dict__["client_certificate_path"] = client_certificate_path
__props__.__dict__["client_id"] = client_id
__props__.__dict__["client_secret"] = client_secret
__props__.__dict__["disable_terraform_partner_id"] = pulumi.Output.from_input(disable_terraform_partner_id).apply(pulumi.runtime.to_json) if disable_terraform_partner_id is not None else None
if environment is None:
environment = (_utilities.get_env('ARM_ENVIRONMENT') or 'public')
__props__.__dict__["environment"] = environment
if metadata_host is None and not opts.urn:
raise TypeError("Missing required property 'metadata_host'")
__props__.__dict__["metadata_host"] = metadata_host
if msi_endpoint is None:
msi_endpoint = _utilities.get_env('ARM_MSI_ENDPOINT')
__props__.__dict__["msi_endpoint"] = msi_endpoint
__props__.__dict__["partner_id"] = partner_id
__props__.__dict__["tenant_id"] = tenant_id
__props__.__dict__["use_cli"] = pulumi.Output.from_input(use_cli).apply(pulumi.runtime.to_json) if use_cli is not None else None
__props__.__dict__["use_microsoft_graph"] = pulumi.Output.from_input(use_microsoft_graph).apply(pulumi.runtime.to_json) if use_microsoft_graph is not None else None
if use_msi is None:
use_msi = (_utilities.get_env_bool('ARM_USE_MSI') or False)
__props__.__dict__["use_msi"] = pulumi.Output.from_input(use_msi).apply(pulumi.runtime.to_json) if use_msi is not None else None
super(Provider, __self__).__init__(
'azuread',
resource_name,
__props__,
opts)
@property
@pulumi.getter(name="clientCertificatePassword")
def client_certificate_password(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "client_certificate_password")
@property
@pulumi.getter(name="clientCertificatePath")
def client_certificate_path(self) -> pulumi.Output[Optional[str]]:
"""
The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service
Principal using a Client Certificate.
"""
return pulumi.get(self, "client_certificate_path")
@property
@pulumi.getter(name="clientId")
def client_id(self) -> pulumi.Output[Optional[str]]:
"""
The Client ID which should be used for service principal authentication.
"""
return pulumi.get(self, "client_id")
@property
@pulumi.getter(name="clientSecret")
def client_secret(self) -> pulumi.Output[Optional[str]]:
"""
The password to decrypt the Client Certificate. For use when authenticating as a Service Principal using a Client
Certificate
"""
return pulumi.get(self, "client_secret")
@property
@pulumi.getter
def environment(self) -> pulumi.Output[Optional[str]]:
"""
The cloud environment which should be used. Possible values are `global` (formerly `public`), `usgovernment`, `dod`,
`germany`, and `china`. Defaults to `global`.
"""
return pulumi.get(self, "environment")
@property
@pulumi.getter(name="metadataHost")
def metadata_host(self) -> pulumi.Output[str]:
"""
[DEPRECATED] The Hostname which should be used for the Azure Metadata Service.
"""
return pulumi.get(self, "metadata_host")
@property
@pulumi.getter(name="msiEndpoint")
def msi_endpoint(self) -> pulumi.Output[Optional[str]]:
"""
The path to a custom endpoint for Managed Identity - in most circumstances this should be detected automatically.
"""
return pulumi.get(self, "msi_endpoint")
@property
@pulumi.getter(name="partnerId")
def partner_id(self) -> pulumi.Output[Optional[str]]:
"""
A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution.
"""
return pulumi.get(self, "partner_id")
@property
@pulumi.getter(name="tenantId")
def tenant_id(self) -> pulumi.Output[Optional[str]]:
"""
The Tenant ID which should be used. Works with all authentication methods except Managed Identity.
"""
return pulumi.get(self, "tenant_id")
| Provider |
shader_interface.rs | pub use crate::geobacter::spirv::pipeline_layout::CompilerRawImgFormat;
pub use crate::geobacter::spirv::pipeline_layout::CompilerImgFormat;
pub type CompilerRange = (u32, u32);
pub type CompilerOptionalName = &'static [&'static str];
pub type CompilerShaderInterfaceDefEntry = (CompilerRange, | pub type CompilerShaderInterfaceDef = &'static [CompilerShaderInterfaceDefEntry]; | CompilerRawImgFormat,
CompilerOptionalName); |
War.js | import React, { Component } from 'react';
import './Skills.css';
class War extends Component {
constructor(props) {
super(props);
this.state = {
items: []
};
this.componentWillMount = this.componentWillMount.bind(this);
}
componentWillMount() {
fetch('https://api.myjson.com/bins/l0yys')
.then(res => res.json())
.then(data => {
this.setState({ items: data });
});
}
render() {
const { items } = this.state;
return (
<div className="war-wrap">
<span className="skill-title"><h1>Warfare</h1></span>
<div className="War">
{ items.map((item, num) => {
return (
<div className="skill-wrap">
<div className="skill-name">
<p key={num}>{item.name}</p>
</div>
<tg>
<div className="tier-2">
<th><div className="skill-cost">
<p key={num}><strong>Memory:<br /></strong> {item.cost}</p>
</div></th>
<th><div className="skill-cool">
<p key={num}><strong>Cooldown:<br /></strong> {item.cool} turns</p>
</div></th>
<th><div className="skill-req">
<p key={num}><strong>Requirements:<br /></strong> {item.req}</p>
</div></th>
</div>
</tg>
<tg>
<th><div className="skill-desc">
<p key={num}>{item.desc}</p>
</div></th>
</tg>
<tg>
<th><div className="skill-img">
<p>[Image]</p>
</div></th>
</tg>
</div> | </div>
</div>
);
}
}
export default War; | );
})} |
account.rs | // Copyright (c) 2018 Pennsieve, Inc. All Rights Reserved.
use serde_derive::Deserialize;
use crate::ps::model;
/// The result of a successful login.
#[derive(Debug, Clone, Hash, PartialEq, Eq, Deserialize)]
pub struct ApiSession {
session_token: model::SessionToken,
organization: String,
expires_in: i32,
}
impl ApiSession {
pub fn | (session_token: model::SessionToken, organization: String, expires_in: i32) -> Self {
Self {
session_token,
organization,
expires_in,
}
}
pub fn session_token(&self) -> &model::SessionToken {
&self.session_token
}
pub fn organization(&self) -> &String {
&self.organization
}
pub fn expires_in(&self) -> i32 {
self.expires_in
}
}
| new |
L04_Task_1.py | # Проанализировать скорость и сложность одного любого алгоритма,
# разработанных в рамках домашнего задания первых трех уроков.
# В массиве случайных целых чисел поменять местами минимальный и максимальный элементы.
import random
import cProfile
def generate_array(size, min_item, max_item):
return [random.randint(min_item, max_item) for _ in range(size)]
def swap_min_max_1(size):
array = generate_array(size, 0, 100)
min_val = array[0]
min_idx = 0
max_val = array[0]
max_idx = 0
for i in range(len(array)):
if array[i] < min_val:
min_val = array[i]
min_idx = i
elif array[i] > max_val:
max_val = array[i]
max_idx = i
array[min_idx] = max_val
array[max_idx] = min_val
return array
def swap_min_max_2(size):
array = generate_array(size, 0, 100)
min_num = min(array)
max_num = max(array)
idx_min = array.index(min_num)
idx_max = array.index(max_num | x_min], array[idx_max] = array[idx_max], array[idx_min]
return array
# bash-3.2$ python -m timeit -n 10000 -s "import L04_Task_1" "L04_Task_1.swap_min_max_1(100)"
# 10000 loops, best of 5: 13.7 usec per loop - 10
# 10000 loops, best of 5: 26.1 usec per loop - 20
# 10000 loops, best of 5: 65.2 usec per loop - 50
# 10000 loops, best of 5: 128 usec per loop - 100
# 10000 loops, best of 5: 1.45 msec per loop - 1000
# bash-3.2$ python -m timeit -n 10000 -s "import L04_Task_1" "L04_Task_1.swap_min_max_2(10)"
# 10000 loops, best of 5: 13.5 usec per loop - 10
# 10000 loops, best of 5: 26 usec per loop - 20
# 10000 loops, best of 5: 62.1 usec per loop - 50
# 10000 loops, best of 5: 125 usec per loop - 100
# 10000 loops, best of 5: 1.45 msec per loop - 1000
# cProfile.run('swap_min_max_1(100)')
# 10
# ncalls tottime percall cumtime percall filename:lineno(function)
# 1 0.000 0.000 0.000 0.000 <string>:1(<module>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:10(generate_array)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:11(<listcomp>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:14(swap_min_max_1)
# 10 0.000 0.000 0.000 0.000 random.py:174(randrange)
# 10 0.000 0.000 0.000 0.000 random.py:218(randint)
# 10 0.000 0.000 0.000 0.000 random.py:224(_randbelow)
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.exec}
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.len}
# 10 0.000 0.000 0.000 0.000 {method 'bit_length' of 'int' objects}
# 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
# 13 0.000 0.000 0.000 0.000 {method 'getrandbits' of '_random.Random' objects}
# 50
# ncalls tottime percall cumtime percall filename:lineno(function)
# 1 0.000 0.000 0.000 0.000 <string>:1(<module>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:10(generate_array)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:11(<listcomp>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:14(swap_min_max_1)
# 50 0.000 0.000 0.000 0.000 random.py:174(randrange)
# 50 0.000 0.000 0.000 0.000 random.py:218(randint)
# 50 0.000 0.000 0.000 0.000 random.py:224(_randbelow)
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.exec}
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.len}
# 50 0.000 0.000 0.000 0.000 {method 'bit_length' of 'int' objects}
# 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
# 71 0.000 0.000 0.000 0.000 {method 'getrandbits' of '_random.Random' objects}
# 100
# ncalls tottime percall cumtime percall filename:lineno(function)
# 1 0.000 0.000 0.000 0.000 <string>:1(<module>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:10(generate_array)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:11(<listcomp>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:14(swap_min_max_1)
# 100 0.000 0.000 0.000 0.000 random.py:174(randrange)
# 100 0.000 0.000 0.000 0.000 random.py:218(randint)
# 100 0.000 0.000 0.000 0.000 random.py:224(_randbelow)
# 1 0.000 0.000 0.001 0.001 {built-in method builtins.exec}
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.len}
# 100 0.000 0.000 0.000 0.000 {method 'bit_length' of 'int' objects}
# 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
# 129 0.000 0.000 0.000 0.000 {method 'getrandbits' of '_random.Random' objects}
# cProfile.run('swap_min_max_2(100)')
# 10
# ncalls tottime percall cumtime percall filename:lineno(function)
# 1 0.000 0.000 0.000 0.000 <string>:1(<module>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:10(generate_array)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:11(<listcomp>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:35(swap_min_max_2)
# 10 0.000 0.000 0.000 0.000 random.py:174(randrange)
# 10 0.000 0.000 0.000 0.000 random.py:218(randint)
# 10 0.000 0.000 0.000 0.000 random.py:224(_randbelow)
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.exec}
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.max}
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.min}
# 10 0.000 0.000 0.000 0.000 {method 'bit_length' of 'int' objects}
# 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
# 10 0.000 0.000 0.000 0.000 {method 'getrandbits' of '_random.Random' objects}
# 2 0.000 0.000 0.000 0.000 {method 'index' of 'list' objects}
# 50
# ncalls tottime percall cumtime percall filename:lineno(function)
# 1 0.000 0.000 0.000 0.000 <string>:1(<module>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:10(generate_array)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:11(<listcomp>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:35(swap_min_max_2)
# 50 0.000 0.000 0.000 0.000 random.py:174(randrange)
# 50 0.000 0.000 0.000 0.000 random.py:218(randint)
# 50 0.000 0.000 0.000 0.000 random.py:224(_randbelow)
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.exec}
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.max}
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.min}
# 50 0.000 0.000 0.000 0.000 {method 'bit_length' of 'int' objects}
# 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
# 68 0.000 0.000 0.000 0.000 {method 'getrandbits' of '_random.Random' objects}
# 2 0.000 0.000 0.000 0.000 {method 'index' of 'list' objects}
# 100
# ncalls tottime percall cumtime percall filename:lineno(function)
# 1 0.000 0.000 0.000 0.000 <string>:1(<module>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:10(generate_array)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:11(<listcomp>)
# 1 0.000 0.000 0.000 0.000 L04_Task_1.py:35(swap_min_max_2)
# 100 0.000 0.000 0.000 0.000 random.py:174(randrange)
# 100 0.000 0.000 0.000 0.000 random.py:218(randint)
# 100 0.000 0.000 0.000 0.000 random.py:224(_randbelow)
# 1 0.000 0.000 0.001 0.001 {built-in method builtins.exec}
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.max}
# 1 0.000 0.000 0.000 0.000 {built-in method builtins.min}
# 100 0.000 0.000 0.000 0.000 {method 'bit_length' of 'int' objects}
# 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
# 125 0.000 0.000 0.000 0.000 {method 'getrandbits' of '_random.Random' objects}
# 2 0.000 0.000 0.000 0.000 {method 'index' of 'list' objects}
# Все алгоритмы имеют линейную зависимость от размера выборки
# - скорость и сложность растут линейно
| )
array[id |
model_iam_private_key_spec_list_all_of.go | /*
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document.
API version: 1.0.9-6484
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package intersight
import (
"encoding/json"
)
// IamPrivateKeySpecListAllOf struct for IamPrivateKeySpecListAllOf
type IamPrivateKeySpecListAllOf struct {
// The total number of 'iam.PrivateKeySpec' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter.
Count *int32 `json:"Count,omitempty"`
// The array of 'iam.PrivateKeySpec' resources matching the request.
Results []IamPrivateKeySpec `json:"Results,omitempty"`
AdditionalProperties map[string]interface{}
}
type _IamPrivateKeySpecListAllOf IamPrivateKeySpecListAllOf
// NewIamPrivateKeySpecListAllOf instantiates a new IamPrivateKeySpecListAllOf object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewIamPrivateKeySpecListAllOf() *IamPrivateKeySpecListAllOf {
this := IamPrivateKeySpecListAllOf{}
return &this
}
// NewIamPrivateKeySpecListAllOfWithDefaults instantiates a new IamPrivateKeySpecListAllOf object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewIamPrivateKeySpecListAllOfWithDefaults() *IamPrivateKeySpecListAllOf {
this := IamPrivateKeySpecListAllOf{}
return &this
}
// GetCount returns the Count field value if set, zero value otherwise.
func (o *IamPrivateKeySpecListAllOf) GetCount() int32 {
if o == nil || o.Count == nil {
var ret int32
return ret
}
return *o.Count
}
// GetCountOk returns a tuple with the Count field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamPrivateKeySpecListAllOf) GetCountOk() (*int32, bool) {
if o == nil || o.Count == nil {
return nil, false
}
return o.Count, true
}
// HasCount returns a boolean if a field has been set.
func (o *IamPrivateKeySpecListAllOf) HasCount() bool {
if o != nil && o.Count != nil |
return false
}
// SetCount gets a reference to the given int32 and assigns it to the Count field.
func (o *IamPrivateKeySpecListAllOf) SetCount(v int32) {
o.Count = &v
}
// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IamPrivateKeySpecListAllOf) GetResults() []IamPrivateKeySpec {
if o == nil {
var ret []IamPrivateKeySpec
return ret
}
return o.Results
}
// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *IamPrivateKeySpecListAllOf) GetResultsOk() (*[]IamPrivateKeySpec, bool) {
if o == nil || o.Results == nil {
return nil, false
}
return &o.Results, true
}
// HasResults returns a boolean if a field has been set.
func (o *IamPrivateKeySpecListAllOf) HasResults() bool {
if o != nil && o.Results != nil {
return true
}
return false
}
// SetResults gets a reference to the given []IamPrivateKeySpec and assigns it to the Results field.
func (o *IamPrivateKeySpecListAllOf) SetResults(v []IamPrivateKeySpec) {
o.Results = v
}
func (o IamPrivateKeySpecListAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Count != nil {
toSerialize["Count"] = o.Count
}
if o.Results != nil {
toSerialize["Results"] = o.Results
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return json.Marshal(toSerialize)
}
func (o *IamPrivateKeySpecListAllOf) UnmarshalJSON(bytes []byte) (err error) {
varIamPrivateKeySpecListAllOf := _IamPrivateKeySpecListAllOf{}
if err = json.Unmarshal(bytes, &varIamPrivateKeySpecListAllOf); err == nil {
*o = IamPrivateKeySpecListAllOf(varIamPrivateKeySpecListAllOf)
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "Count")
delete(additionalProperties, "Results")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableIamPrivateKeySpecListAllOf struct {
value *IamPrivateKeySpecListAllOf
isSet bool
}
func (v NullableIamPrivateKeySpecListAllOf) Get() *IamPrivateKeySpecListAllOf {
return v.value
}
func (v *NullableIamPrivateKeySpecListAllOf) Set(val *IamPrivateKeySpecListAllOf) {
v.value = val
v.isSet = true
}
func (v NullableIamPrivateKeySpecListAllOf) IsSet() bool {
return v.isSet
}
func (v *NullableIamPrivateKeySpecListAllOf) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableIamPrivateKeySpecListAllOf(val *IamPrivateKeySpecListAllOf) *NullableIamPrivateKeySpecListAllOf {
return &NullableIamPrivateKeySpecListAllOf{value: val, isSet: true}
}
func (v NullableIamPrivateKeySpecListAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableIamPrivateKeySpecListAllOf) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
| {
return true
} |
platformPackager.d.ts | import { Arch, AsyncTaskManager, DebugLogger } from "builder-util";
import { PackageBuilder } from "builder-util/out/api";
import { AppInfo } from "./appInfo";
import { CompressionLevel, Platform, Target, TargetSpecificOptions } from "./core";
import { AfterPackContext, Configuration, FileAssociation, PlatformSpecificBuildOptions } from "./index";
import { Packager } from "./packager";
import { PackagerOptions } from "./packagerApi";
import { AsarIntegrity } from "./asar/integrity";
export declare abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions> implements PackageBuilder {
readonly info: Packager;
readonly platform: Platform;
readonly packagerOptions: PackagerOptions;
readonly buildResourcesDir: string;
readonly projectDir: string;
readonly config: Configuration;
readonly platformSpecificBuildOptions: DC;
readonly resourceList: Promise<Array<string>>;
private readonly _resourceList;
readonly appInfo: AppInfo;
protected constructor(info: Packager, platform: Platform);
readonly compression: CompressionLevel;
readonly debugLogger: DebugLogger;
readonly abstract defaultTarget: Array<string>;
protected prepareAppInfo(appInfo: AppInfo): AppInfo;
private static normalizePlatformSpecificBuildOptions(options);
abstract createTargets(targets: Array<string>, mapper: (name: string, factory: (outDir: string) => Target) => void): void;
protected getCscPassword(): string;
protected getCscLink(extraEnvName?: string | null): string | null | undefined;
protected doGetCscPassword(): string | null | undefined;
protected computeAppOutDir(outDir: string, arch: Arch): string;
dispatchArtifactCreated(file: string, target: Target | null, arch: Arch | null, safeArtifactName?: string | null): void;
pack(outDir: string, arch: Arch, targets: Array<Target>, taskManager: AsyncTaskManager): Promise<any>;
protected packageInDistributableFormat(appOutDir: string, arch: Arch, targets: Array<Target>, taskManager: AsyncTaskManager): void;
private getExtraFileMatchers(isResources, appOutDir, options);
readonly electronDistMacOsAppName: string; | readonly electronDistExecutableName: string;
readonly electronDistMacOsExecutableName: string;
protected doPack(outDir: string, appOutDir: string, platformName: string, arch: Arch, platformSpecificBuildOptions: DC, targets: Array<Target>): Promise<void>;
protected beforeCopyExtraFiles(appOutDir: string, asarIntegrity: AsarIntegrity | null): Promise<void>;
private copyAppFiles(taskManager, asarOptions, resourcePath, outDir, platformSpecificBuildOptions, excludePatterns, macroExpander);
protected postInitApp(packContext: AfterPackContext): Promise<any>;
protected signApp(packContext: AfterPackContext): Promise<any>;
getIconPath(): Promise<string | null>;
private computeAsarOptions(customBuildOptions);
getElectronSrcDir(dist: string): string;
getElectronDestinationDir(appOutDir: string): string;
getResourcesDir(appOutDir: string): string;
getMacOsResourcesDir(appOutDir: string): string;
private checkFileInPackage(resourcesDir, file, messagePrefix, isAsar);
private sanityCheckPackage(appOutDir, isAsar);
computeSafeArtifactName(suggestedName: string | null, ext: string, arch?: Arch | null, skipArchIfX64?: boolean): string | null;
expandArtifactNamePattern(targetSpecificOptions: TargetSpecificOptions | null | undefined, ext: string, arch?: Arch | null, defaultPattern?: string, skipArchIfX64?: boolean): string;
private computeArtifactName(pattern, ext, arch);
expandMacro(pattern: string, arch?: string | null, extra?: any, isProductNameSanitized?: boolean): string;
generateName(ext: string | null, arch: Arch, deployment: boolean, classifier?: string | null): string;
generateName2(ext: string | null, classifier: string | null | undefined, deployment: boolean): string;
getTempFile(suffix: string): Promise<string>;
readonly fileAssociations: Array<FileAssociation>;
getResource(custom: string | null | undefined, ...names: Array<string>): Promise<string | null>;
readonly forceCodeSigning: boolean;
protected getOrConvertIcon(format: IconFormat): Promise<string | null>;
resolveIcon(sources: Array<string>, outputFormat: IconFormat): Promise<Array<IconInfo>>;
}
export interface IconInfo {
file: string;
size: number;
}
export declare type IconFormat = "icns" | "ico" | "set";
export declare function isSafeGithubName(name: string): boolean;
export declare function normalizeExt(ext: string): string;
export declare function resolveFunction<T>(executor: T | string): T;
export declare function chooseNotNull(v1: string | null | undefined, v2: string | null | undefined): string | null | undefined; | |
utils.py | import asyncio
import tempfile
import urllib.parse
from django.conf import settings
from django.http import FileResponse
from core.models import CodeSignToken
from core.utils import get_core_settings, get_mesh_device_id, get_mesh_ws_url
from tacticalrmm.constants import MeshAgentIdent
def get_agent_url(arch: str, plat: str) -> str:
if plat == "windows":
endpoint = "winagents"
dl_url = settings.DL_32 if arch == "32" else settings.DL_64
else:
endpoint = "linuxagents"
dl_url = ""
token = CodeSignToken.objects.first()
if not token:
return dl_url
if token.is_valid:
base_url = settings.EXE_GEN_URL + f"/api/v1/{endpoint}/?"
params = {
"version": settings.LATEST_AGENT_VER,
"arch": arch,
"token": token.token,
}
dl_url = base_url + urllib.parse.urlencode(params)
return dl_url
def generate_linux_install(
client: str,
site: str,
agent_type: str,
arch: str,
token: str,
api: str,
download_url: str,
) -> FileResponse:
match arch:
case "amd64":
arch_id = MeshAgentIdent.LINUX64
case "386":
arch_id = MeshAgentIdent.LINUX32
case "arm64":
arch_id = MeshAgentIdent.LINUX_ARM_64
case "arm":
arch_id = MeshAgentIdent.LINUX_ARM_HF
case _:
arch_id = "not_found"
core = get_core_settings()
| uri = get_mesh_ws_url()
mesh_id = asyncio.run(get_mesh_device_id(uri, core.mesh_device_group))
mesh_dl = (
f"{core.mesh_site}/meshagents?id={mesh_id}&installflags=0&meshinstall={arch_id}"
)
sh = settings.LINUX_AGENT_SCRIPT
with open(sh, "r") as f:
text = f.read()
replace = {
"agentDLChange": download_url,
"meshDLChange": mesh_dl,
"clientIDChange": client,
"siteIDChange": site,
"agentTypeChange": agent_type,
"tokenChange": token,
"apiURLChange": api,
}
for i, j in replace.items():
text = text.replace(i, j)
with tempfile.NamedTemporaryFile() as fp:
with open(fp.name, "w") as f:
f.write(text)
f.write("\n")
return FileResponse(
open(fp.name, "rb"), as_attachment=True, filename="linux_agent_install.sh"
) | |
bitcoinjs-lib.ts | import { Network, SubnetMap, UtxoNetwork } from '@radar/redshift-types';
/**
* Get bitcoinjs-lib network, which includes address and message prefixes
* @param network The network
* @param subnet The network's subnet
*/
export function | <N extends Network>(
network: N,
subnet: SubnetMap[N],
) {
return UtxoNetwork[`${network}_${subnet}`];
}
| getBitcoinJSNetwork |
perfinstance.go | // +build windows
package perfinstance
import (
"encoding/json"
"errors"
"fmt"
"time"
"zabbix.com/pkg/pdh"
"zabbix.com/pkg/plugin"
"zabbix.com/pkg/win32"
)
//Plugin -
type Plugin struct {
plugin.Base
nextObjectRefresh time.Time
nextEngNameRefresh time.Time
}
var impl Plugin
//Export -
func (p *Plugin) Export(key string, params []string, ctx plugin.ContextProvider) (response interface{}, err error) {
if len(params) > 1 {
return nil, errors.New("Too many parameters.")
}
if len(params) == 0 || params[0] == "" |
if err = p.refreshObjects(); err != nil {
p.Warningf("Cannot refresh object cache: %s", err.Error())
}
var name string
switch key {
case "perf_instance.discovery":
name = params[0]
case "perf_instance_en.discovery":
if name = p.getLocalName(params[0]); name == "" {
if err = p.reloadEngObjectNames(); err != nil {
return nil, fmt.Errorf("Cannot obtain object's English names: %s", err.Error())
}
if name = p.getLocalName(params[0]); name == "" {
return nil, errors.New("Cannot obtain object's localized name.")
}
}
default:
return nil, plugin.UnsupportedMetricError
}
var instances []win32.Instance
if instances, err = win32.PdhEnumObjectItems(name); err != nil {
return nil, fmt.Errorf("Cannot find object: %s", err.Error())
}
if len(instances) < 1 {
return "[]", nil
}
var respJSON []byte
if respJSON, err = json.Marshal(instances); err != nil {
return
}
return string(respJSON), nil
}
func init() {
plugin.RegisterMetrics(&impl, "WindowsPerfInstance",
"perf_instance.discovery", "Get Windows performance instance object list.",
"perf_instance_en.discovery", "Get Windows performance instance object English list.",
)
impl.SetCapacity(1)
}
func (p *Plugin) refreshObjects() (err error) {
if time.Now().After(p.nextObjectRefresh) {
_, err = win32.PdhEnumObject()
p.nextObjectRefresh = time.Now().Add(time.Minute)
}
return
}
func (p *Plugin) reloadEngObjectNames() (err error) {
if time.Now().After(p.nextEngNameRefresh) {
err = pdh.LocateObjectsAndDefaultCounters(false)
p.nextEngNameRefresh = time.Now().Add(time.Minute)
}
return
}
func (p *Plugin) getLocalName(engName string) (name string) {
name, _ = pdh.ObjectsNames[engName]
return
}
| {
return nil, errors.New("Invalid first parameter.")
} |
privacy_test.go | // Copyright 2019-present Facebook Inc. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.
package privacy
import (
"context"
"errors"
"testing"
"entgo.io/ent/entc/integration/privacy/ent/enttest"
"entgo.io/ent/entc/integration/privacy/ent/privacy"
"entgo.io/ent/entc/integration/privacy/ent/task"
"entgo.io/ent/entc/integration/privacy/rule"
"entgo.io/ent/entc/integration/privacy/viewer"
_ "github.com/mattn/go-sqlite3"
"github.com/stretchr/testify/require"
)
func | (t *testing.T) {
client := enttest.Open(t, "sqlite3",
"file:ent?mode=memory&cache=shared&_fk=1",
)
defer client.Close()
logf := rule.SetMutationLogFunc(func(string, ...interface{}) {
require.FailNow(t, "hook called on privacy deny")
})
ctx := context.Background()
_, err := client.Team.Create().SetName("ent").Save(ctx)
require.True(t, errors.Is(err, privacy.Deny), "policy requires viewer context")
view := viewer.NewContext(ctx, viewer.AppViewer{
Role: viewer.View,
})
_, err = client.Team.CreateBulk(
client.Team.Create().SetName("ent"),
client.Team.Create().SetName("ent-contrib"),
).Save(view)
require.True(t, errors.Is(err, privacy.Deny), "team policy requires admin user")
rule.SetMutationLogFunc(logf)
admin := viewer.NewContext(ctx, viewer.AppViewer{
Role: viewer.Admin,
})
teams := client.Team.CreateBulk(
client.Team.Create().SetName("ent"),
client.Team.Create().SetName("ent-contrib"),
).SaveX(admin)
_, err = client.User.Create().SetName("a8m").AddTeams(teams[0]).Save(view)
require.True(t, errors.Is(err, privacy.Deny), "user creation requires admin user")
a8m := client.User.Create().SetName("a8m").AddTeams(teams[0], teams[1]).SaveX(admin)
nat := client.User.Create().SetName("nati").AddTeams(teams[1]).SaveX(admin)
_, err = client.Task.Create().SetTitle("task 1").AddTeams(teams[0]).SetOwner(a8m).Save(ctx)
require.True(t, errors.Is(err, privacy.Deny), "task creation requires viewer/owner match")
a8mctx := viewer.NewContext(view, &viewer.UserViewer{User: a8m, Role: viewer.View | viewer.Edit})
client.Task.Create().SetTitle("task 1").AddTeams(teams[0]).SetOwner(a8m).SaveX(a8mctx)
_, err = client.Task.Create().SetTitle("task 2").AddTeams(teams[1]).SetOwner(nat).Save(a8mctx)
require.True(t, errors.Is(err, privacy.Deny), "task creation requires viewer/owner match")
natctx := viewer.NewContext(view, &viewer.UserViewer{User: nat, Role: viewer.View | viewer.Edit})
client.Task.Create().SetTitle("task 2").AddTeams(teams[1]).SetOwner(nat).SaveX(natctx)
tasks := client.Task.Query().AllX(a8mctx)
require.Len(t, tasks, 2, "returned tasks from teams 1, 2")
task2 := client.Task.Query().OnlyX(natctx)
require.Equal(t, "task 2", task2.Title, "returned tasks must be from the same team")
task3 := client.Task.Create().SetTitle("multi-team-task (1, 2)").AddTeams(teams...).SetOwner(a8m).SaveX(a8mctx)
_, err = task3.Update().SetStatus(task.StatusClosed).Save(natctx)
require.True(t, errors.Is(err, privacy.Deny), "viewer 2 is not allowed to change the task status")
// DecisionContext returns a new context from the parent with a decision attached to it.
task3.Update().SetStatus(task.StatusClosed).SaveX(privacy.DecisionContext(natctx, privacy.Allow))
task3.Update().SetStatus(task.StatusClosed).SaveX(a8mctx)
// Update description is allow for other users in the team.
task3.Update().SetDescription("boring description").SaveX(natctx)
task3.Update().SetDescription("boring description").SaveX(a8mctx)
}
| TestPrivacyRules |
reachable.rs | // Finds items that are externally reachable, to determine which items
// need to have their metadata (and possibly their AST) serialized.
// All items that can be referred to through an exported name are
// reachable, and when a reachable thing is inline or generic, it
// makes all other generics or inline functions that it references
// reachable as well.
use crate::hir::{CodegenFnAttrs, CodegenFnAttrFlags};
use crate::hir::Node;
use crate::hir::def::{Res, DefKind};
use crate::hir::def_id::{DefId, CrateNum};
use rustc_data_structures::sync::Lrc;
use crate::ty::{self, TyCtxt};
use crate::ty::query::Providers;
use crate::middle::privacy;
use crate::session::config;
use crate::util::nodemap::{HirIdSet, FxHashSet};
use rustc_target::spec::abi::Abi;
use rustc_macros::HashStable;
use crate::hir;
use crate::hir::def_id::LOCAL_CRATE;
use crate::hir::intravisit::{Visitor, NestedVisitorMap};
use crate::hir::itemlikevisit::ItemLikeVisitor;
use crate::hir::intravisit;
// Returns true if the given item must be inlined because it may be
// monomorphized or it was marked with `#[inline]`. This will only return
// true for functions.
fn item_might_be_inlined(tcx: TyCtxt<'tcx>, item: &hir::Item, attrs: CodegenFnAttrs) -> bool {
if attrs.requests_inline() {
return true
}
match item.kind {
hir::ItemKind::Fn(ref sig, ..) if sig.header.is_const() => {
return true;
}
hir::ItemKind::Impl(..) |
hir::ItemKind::Fn(..) => {
let generics = tcx.generics_of(tcx.hir().local_def_id(item.hir_id));
generics.requires_monomorphization(tcx)
}
_ => false,
}
}
fn method_might_be_inlined(
tcx: TyCtxt<'_>,
impl_item: &hir::ImplItem,
impl_src: DefId,
) -> bool {
let codegen_fn_attrs = tcx.codegen_fn_attrs(impl_item.hir_id.owner_def_id());
let generics = tcx.generics_of(tcx.hir().local_def_id(impl_item.hir_id));
if codegen_fn_attrs.requests_inline() || generics.requires_monomorphization(tcx) {
return true
}
if let hir::ImplItemKind::Method(method_sig, _) = &impl_item.kind {
if method_sig.header.is_const() {
return true
}
}
if let Some(impl_hir_id) = tcx.hir().as_local_hir_id(impl_src) {
match tcx.hir().find(impl_hir_id) {
Some(Node::Item(item)) =>
item_might_be_inlined(tcx, &item, codegen_fn_attrs),
Some(..) | None =>
span_bug!(impl_item.span, "impl did is not an item")
}
} else {
span_bug!(impl_item.span, "found a foreign impl as a parent of a local method")
}
}
// Information needed while computing reachability.
struct ReachableContext<'a, 'tcx> {
// The type context.
tcx: TyCtxt<'tcx>,
tables: &'a ty::TypeckTables<'tcx>,
// The set of items which must be exported in the linkage sense.
reachable_symbols: HirIdSet,
// A worklist of item IDs. Each item ID in this worklist will be inlined
// and will be scanned for further references.
worklist: Vec<hir::HirId>,
// Whether any output of this compilation is a library
any_library: bool,
}
impl<'a, 'tcx> Visitor<'tcx> for ReachableContext<'a, 'tcx> {
fn nested_visit_map<'this>(&'this mut self) -> NestedVisitorMap<'this, 'tcx> {
NestedVisitorMap::None
}
fn visit_nested_body(&mut self, body: hir::BodyId) {
let old_tables = self.tables;
self.tables = self.tcx.body_tables(body);
let body = self.tcx.hir().body(body);
self.visit_body(body);
self.tables = old_tables;
}
fn visit_expr(&mut self, expr: &'tcx hir::Expr) {
let res = match expr.kind {
hir::ExprKind::Path(ref qpath) => {
Some(self.tables.qpath_res(qpath, expr.hir_id))
}
hir::ExprKind::MethodCall(..) => {
self.tables.type_dependent_def(expr.hir_id)
.map(|(kind, def_id)| Res::Def(kind, def_id))
}
_ => None
};
match res {
Some(Res::Local(hir_id)) => {
self.reachable_symbols.insert(hir_id);
}
Some(res) => {
if let Some((hir_id, def_id)) = res.opt_def_id().and_then(|def_id| {
self.tcx.hir().as_local_hir_id(def_id).map(|hir_id| (hir_id, def_id))
}) {
if self.def_id_represents_local_inlined_item(def_id) {
self.worklist.push(hir_id);
} else {
match res {
// If this path leads to a constant, then we need to
// recurse into the constant to continue finding
// items that are reachable.
Res::Def(DefKind::Const, _) | Res::Def(DefKind::AssocConst, _) => {
self.worklist.push(hir_id);
}
// If this wasn't a static, then the destination is
// surely reachable.
_ => {
self.reachable_symbols.insert(hir_id);
}
}
}
}
}
_ => {}
}
intravisit::walk_expr(self, expr)
}
}
impl<'a, 'tcx> ReachableContext<'a, 'tcx> {
// Returns true if the given def ID represents a local item that is
// eligible for inlining and false otherwise.
fn def_id_represents_local_inlined_item(&self, def_id: DefId) -> bool |
// Step 2: Mark all symbols that the symbols on the worklist touch.
fn propagate(&mut self) {
let mut scanned = FxHashSet::default();
while let Some(search_item) = self.worklist.pop() {
if !scanned.insert(search_item) {
continue
}
if let Some(ref item) = self.tcx.hir().find(search_item) {
self.propagate_node(item, search_item);
}
}
}
fn propagate_node(&mut self, node: &Node<'tcx>,
search_item: hir::HirId) {
if !self.any_library {
// If we are building an executable, only explicitly extern
// types need to be exported.
if let Node::Item(item) = *node {
let reachable = if let hir::ItemKind::Fn(ref sig, ..) = item.kind {
sig.header.abi != Abi::Rust
} else {
false
};
let def_id = self.tcx.hir().local_def_id(item.hir_id);
let codegen_attrs = self.tcx.codegen_fn_attrs(def_id);
let is_extern = codegen_attrs.contains_extern_indicator();
let std_internal = codegen_attrs.flags.contains(
CodegenFnAttrFlags::RUSTC_STD_INTERNAL_SYMBOL);
if reachable || is_extern || std_internal {
self.reachable_symbols.insert(search_item);
}
}
} else {
// If we are building a library, then reachable symbols will
// continue to participate in linkage after this product is
// produced. In this case, we traverse the ast node, recursing on
// all reachable nodes from this one.
self.reachable_symbols.insert(search_item);
}
match *node {
Node::Item(item) => {
match item.kind {
hir::ItemKind::Fn(.., body) => {
let def_id = self.tcx.hir().local_def_id(item.hir_id);
if item_might_be_inlined(self.tcx,
&item,
self.tcx.codegen_fn_attrs(def_id)) {
self.visit_nested_body(body);
}
}
// Reachable constants will be inlined into other crates
// unconditionally, so we need to make sure that their
// contents are also reachable.
hir::ItemKind::Const(_, init) => {
self.visit_nested_body(init);
}
// These are normal, nothing reachable about these
// inherently and their children are already in the
// worklist, as determined by the privacy pass
hir::ItemKind::ExternCrate(_) |
hir::ItemKind::Use(..) |
hir::ItemKind::OpaqueTy(..) |
hir::ItemKind::TyAlias(..) |
hir::ItemKind::Static(..) |
hir::ItemKind::Mod(..) |
hir::ItemKind::ForeignMod(..) |
hir::ItemKind::Impl(..) |
hir::ItemKind::Trait(..) |
hir::ItemKind::TraitAlias(..) |
hir::ItemKind::Struct(..) |
hir::ItemKind::Enum(..) |
hir::ItemKind::Union(..) |
hir::ItemKind::GlobalAsm(..) => {}
}
}
Node::TraitItem(trait_method) => {
match trait_method.kind {
hir::TraitItemKind::Const(_, None) |
hir::TraitItemKind::Method(_, hir::TraitMethod::Required(_)) => {
// Keep going, nothing to get exported
}
hir::TraitItemKind::Const(_, Some(body_id)) |
hir::TraitItemKind::Method(_, hir::TraitMethod::Provided(body_id)) => {
self.visit_nested_body(body_id);
}
hir::TraitItemKind::Type(..) => {}
}
}
Node::ImplItem(impl_item) => {
match impl_item.kind {
hir::ImplItemKind::Const(_, body) => {
self.visit_nested_body(body);
}
hir::ImplItemKind::Method(_, body) => {
let did = self.tcx.hir().get_parent_did(search_item);
if method_might_be_inlined(self.tcx, impl_item, did) {
self.visit_nested_body(body)
}
}
hir::ImplItemKind::OpaqueTy(..) |
hir::ImplItemKind::TyAlias(_) => {}
}
}
Node::Expr(&hir::Expr { kind: hir::ExprKind::Closure(.., body, _, _), .. }) => {
self.visit_nested_body(body);
}
// Nothing to recurse on for these
Node::ForeignItem(_) |
Node::Variant(_) |
Node::Ctor(..) |
Node::Field(_) |
Node::Ty(_) |
Node::MacroDef(_) => {}
_ => {
bug!(
"found unexpected node kind in worklist: {} ({:?})",
self.tcx.hir().node_to_string(search_item),
node,
);
}
}
}
}
// Some methods from non-exported (completely private) trait impls still have to be
// reachable if they are called from inlinable code. Generally, it's not known until
// monomorphization if a specific trait impl item can be reachable or not. So, we
// conservatively mark all of them as reachable.
// FIXME: One possible strategy for pruning the reachable set is to avoid marking impl
// items of non-exported traits (or maybe all local traits?) unless their respective
// trait items are used from inlinable code through method call syntax or UFCS, or their
// trait is a lang item.
struct CollectPrivateImplItemsVisitor<'a, 'tcx> {
tcx: TyCtxt<'tcx>,
access_levels: &'a privacy::AccessLevels,
worklist: &'a mut Vec<hir::HirId>,
}
impl<'a, 'tcx> ItemLikeVisitor<'tcx> for CollectPrivateImplItemsVisitor<'a, 'tcx> {
fn visit_item(&mut self, item: &hir::Item) {
// Anything which has custom linkage gets thrown on the worklist no
// matter where it is in the crate, along with "special std symbols"
// which are currently akin to allocator symbols.
let def_id = self.tcx.hir().local_def_id(item.hir_id);
let codegen_attrs = self.tcx.codegen_fn_attrs(def_id);
if codegen_attrs.contains_extern_indicator() ||
codegen_attrs.flags.contains(CodegenFnAttrFlags::RUSTC_STD_INTERNAL_SYMBOL) {
self.worklist.push(item.hir_id);
}
// We need only trait impls here, not inherent impls, and only non-exported ones
if let hir::ItemKind::Impl(.., Some(ref trait_ref), _, ref impl_item_refs) = item.kind {
if !self.access_levels.is_reachable(item.hir_id) {
self.worklist.extend(impl_item_refs.iter().map(|ii_ref| ii_ref.id.hir_id));
let trait_def_id = match trait_ref.path.res {
Res::Def(DefKind::Trait, def_id) => def_id,
_ => unreachable!()
};
if !trait_def_id.is_local() {
return
}
let provided_trait_methods = self.tcx.provided_trait_methods(trait_def_id);
self.worklist.reserve(provided_trait_methods.len());
for default_method in provided_trait_methods {
let hir_id = self.tcx
.hir()
.as_local_hir_id(default_method.def_id)
.unwrap();
self.worklist.push(hir_id);
}
}
}
}
fn visit_trait_item(&mut self, _trait_item: &hir::TraitItem) {}
fn visit_impl_item(&mut self, _impl_item: &hir::ImplItem) {
// processed in visit_item above
}
}
// We introduce a new-type here, so we can have a specialized HashStable
// implementation for it.
#[derive(Clone, HashStable)]
pub struct ReachableSet(pub Lrc<HirIdSet>);
fn reachable_set(tcx: TyCtxt<'_>, crate_num: CrateNum) -> ReachableSet {
debug_assert!(crate_num == LOCAL_CRATE);
let access_levels = &tcx.privacy_access_levels(LOCAL_CRATE);
let any_library = tcx.sess.crate_types.borrow().iter().any(|ty| {
*ty == config::CrateType::Rlib || *ty == config::CrateType::Dylib ||
*ty == config::CrateType::ProcMacro
});
let mut reachable_context = ReachableContext {
tcx,
tables: &ty::TypeckTables::empty(None),
reachable_symbols: Default::default(),
worklist: Vec::new(),
any_library,
};
// Step 1: Seed the worklist with all nodes which were found to be public as
// a result of the privacy pass along with all local lang items and impl items.
// If other crates link to us, they're going to expect to be able to
// use the lang items, so we need to be sure to mark them as
// exported.
reachable_context.worklist.extend(
access_levels.map.iter().map(|(id, _)| *id));
for item in tcx.lang_items().items().iter() {
if let Some(did) = *item {
if let Some(hir_id) = tcx.hir().as_local_hir_id(did) {
reachable_context.worklist.push(hir_id);
}
}
}
{
let mut collect_private_impl_items = CollectPrivateImplItemsVisitor {
tcx,
access_levels,
worklist: &mut reachable_context.worklist,
};
tcx.hir().krate().visit_all_item_likes(&mut collect_private_impl_items);
}
// Step 2: Mark all symbols that the symbols on the worklist touch.
reachable_context.propagate();
debug!("Inline reachability shows: {:?}", reachable_context.reachable_symbols);
// Return the set of reachable symbols.
ReachableSet(Lrc::new(reachable_context.reachable_symbols))
}
pub fn provide(providers: &mut Providers<'_>) {
*providers = Providers {
reachable_set,
..*providers
};
}
| {
let hir_id = match self.tcx.hir().as_local_hir_id(def_id) {
Some(hir_id) => hir_id,
None => { return false; }
};
match self.tcx.hir().find(hir_id) {
Some(Node::Item(item)) => {
match item.kind {
hir::ItemKind::Fn(..) =>
item_might_be_inlined(self.tcx, &item, self.tcx.codegen_fn_attrs(def_id)),
_ => false,
}
}
Some(Node::TraitItem(trait_method)) => {
match trait_method.kind {
hir::TraitItemKind::Const(_, ref default) => default.is_some(),
hir::TraitItemKind::Method(_, hir::TraitMethod::Provided(_)) => true,
hir::TraitItemKind::Method(_, hir::TraitMethod::Required(_)) |
hir::TraitItemKind::Type(..) => false,
}
}
Some(Node::ImplItem(impl_item)) => {
match impl_item.kind {
hir::ImplItemKind::Const(..) => true,
hir::ImplItemKind::Method(..) => {
let attrs = self.tcx.codegen_fn_attrs(def_id);
let generics = self.tcx.generics_of(def_id);
if generics.requires_monomorphization(self.tcx) || attrs.requests_inline() {
true
} else {
let impl_did = self.tcx
.hir()
.get_parent_did(hir_id);
// Check the impl. If the generics on the self
// type of the impl require inlining, this method
// does too.
let impl_hir_id = self.tcx.hir().as_local_hir_id(impl_did).unwrap();
match self.tcx.hir().expect_item(impl_hir_id).kind {
hir::ItemKind::Impl(..) => {
let generics = self.tcx.generics_of(impl_did);
generics.requires_monomorphization(self.tcx)
}
_ => false
}
}
}
hir::ImplItemKind::OpaqueTy(..) |
hir::ImplItemKind::TyAlias(_) => false,
}
}
Some(_) => false,
None => false // This will happen for default methods.
}
} |
ioredis-storage.ts | import type {Redis} from "ioredis";
import {Storage} from "./storage.interface";
interface RedisStorageOptions<T> {
namespace?: string;
deserializer: (data: string) => Promise<T>;
serializer: (data: T) => Promise<string>;
}
export class | <T> implements Storage<T> {
protected options: RedisStorageOptions<T> = {
namespace: undefined,
deserializer: (data) => Promise.resolve(JSON.parse(data)),
serializer: (data) => Promise.resolve(JSON.stringify(data))
};
constructor(private readonly ioRedis: Redis, options: Partial<RedisStorageOptions<T>> = {}) {
Object.assign(this.options, options);
}
public get(key: string | number) {
const dataKey: string = this.nsKey(key + '');
return this.ioRedis.get(dataKey)
.then(response => {
if (response == null) {
return response;
}
return this.options.deserializer(response as string);
});
}
public set(key: string | number, value?: T, ttlSec?: number) {
const dataKey: string = this.nsKey(key + '');
if (value === undefined) {
return this.ioRedis.del(dataKey);
}
return this.options.serializer(value).then(data => {
return ttlSec ? this.ioRedis.setex(dataKey, ttlSec, data) : this.ioRedis.set(dataKey, data);
});
}
private nsKey(key: string) {
if (this.options.namespace) {
key = `${this.options.namespace}:${key}`;
}
return key;
}
}
| IoRedisStorage |
callbacks.py | import numpy as np
from tensorflow import keras
from tensorflow.keras import backend as K
def cosine_decay_with_warmup(global_step,
learning_rate_base,
total_steps,
warmup_learning_rate=0.0,
warmup_steps=0,
hold_base_rate_steps=0):
"""Cosine decay schedule with warm up period.
Cosine annealing learning rate as described in:
Loshchilov and Hutter, SGDR: Stochastic Gradient Descent with Warm Restarts.
ICLR 2017. https://arxiv.org/abs/1608.03983
In this schedule, the learning rate grows linearly from warmup_learning_rate
to learning_rate_base for warmup_steps, then transitions to a cosine decay
schedule.
Arguments:
global_step {int} -- global step.
learning_rate_base {float} -- base learning rate.
total_steps {int} -- total number of training steps.
Keyword Arguments:
warmup_learning_rate {float} -- initial learning rate for warm up. (default: {0.0})
warmup_steps {int} -- number of warmup steps. (default: {0})
hold_base_rate_steps {int} -- Optional number of steps to hold base learning rate
before decaying. (default: {0})
Returns:
a float representing learning rate.
Raises:
ValueError: if warmup_learning_rate is larger than learning_rate_base,
or if warmup_steps is larger than total_steps.
"""
if total_steps < warmup_steps:
raise ValueError('total_steps must be larger or equal to '
'warmup_steps.')
learning_rate = 0.5 * learning_rate_base * (1 + np.cos(
np.pi *
(global_step - warmup_steps - hold_base_rate_steps
) / float(total_steps - warmup_steps - hold_base_rate_steps)))
if hold_base_rate_steps > 0:
learning_rate = np.where(global_step > warmup_steps + hold_base_rate_steps,
learning_rate, learning_rate_base)
if warmup_steps > 0:
if learning_rate_base < warmup_learning_rate:
raise ValueError('learning_rate_base must be larger or equal to '
'warmup_learning_rate.')
slope = (learning_rate_base - warmup_learning_rate) / warmup_steps
warmup_rate = slope * global_step + warmup_learning_rate
learning_rate = np.where(global_step < warmup_steps, warmup_rate,
learning_rate)
return np.where(global_step > total_steps, 0.0, learning_rate)
class WarmUpCosineDecayScheduler(keras.callbacks.Callback):
"""Cosine decay with warmup learning rate scheduler
"""
def __init__(self,
learning_rate_base,
total_steps,
global_step_init=0,
warmup_learning_rate=0.0,
warmup_steps=0,
hold_base_rate_steps=0,
verbose=0):
"""Constructor for cosine decay with warmup learning rate scheduler.
Arguments:
learning_rate_base {float} -- base learning rate.
total_steps {int} -- total number of training steps.
Keyword Arguments:
global_step_init {int} -- initial global step, e.g. from previous checkpoint.
warmup_learning_rate {float} -- initial learning rate for warm up. (default: {0.0})
warmup_steps {int} -- number of warmup steps. (default: {0})
hold_base_rate_steps {int} -- Optional number of steps to hold base learning rate
before decaying. (default: {0})
verbose {int} -- 0: quiet, 1: update messages. (default: {0})
"""
super(WarmUpCosineDecayScheduler, self).__init__()
self.learning_rate_base = learning_rate_base
self.total_steps = total_steps
self.global_step = global_step_init
self.warmup_learning_rate = warmup_learning_rate
self.warmup_steps = warmup_steps
self.hold_base_rate_steps = hold_base_rate_steps
self.verbose = verbose
self.learning_rates = []
self.current_lr = 0.0
def on_epoch_end(self, epoch, logs={}):
if self.verbose == 1:
print('Epoch %05d: Learning rate is %s.\n' % (epoch, self.current_lr))
def on_batch_end(self, batch, logs=None):
|
def on_batch_begin(self, batch, logs=None):
self.current_lr = cosine_decay_with_warmup(global_step=self.global_step,
learning_rate_base=self.learning_rate_base,
total_steps=self.total_steps,
warmup_learning_rate=self.warmup_learning_rate,
warmup_steps=self.warmup_steps,
hold_base_rate_steps=self.hold_base_rate_steps)
K.set_value(self.model.optimizer.lr, self.current_lr)
if self.verbose ==2:
print('\nBatch %05d: setting learning rate to %s.' % (self.global_step + 1, self.current_lr))
| self.global_step = self.global_step + 1
lr = K.get_value(self.model.optimizer.lr)
self.learning_rates.append(lr) |
watcher.go | //
// Last.Backend LLC CONFIDENTIAL
// __________________
//
// [2014] - [2018] Last.Backend LLC
// All Rights Reserved.
//
// NOTICE: All information contained herein is, and remains
// the property of Last.Backend LLC and its suppliers,
// if any. The intellectual and technical concepts contained
// herein are proprietary to Last.Backend LLC
// and its suppliers and may be covered by Russian Federation and Foreign Patents,
// patents in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this material
// is strictly forbidden unless prior written permission is obtained
// from Last.Backend LLC.
//
package v3
import (
"context"
"sync"
"regexp"
"github.com/coreos/etcd/clientv3"
"github.com/lastbackend/lastbackend/pkg/log"
"github.com/lastbackend/lastbackend/pkg/storage/types"
)
const (
incomingBufSize = 100
outgoingBufSize = 100
)
type watcher struct {
client *clientv3.Client
}
type watchChan struct {
watcher *watcher
key string
filter string
rev *int64
recursive bool
ctx context.Context
cancel context.CancelFunc
event chan *event
result chan *types.Event
error chan error
}
type event struct {
key string
value []byte
prevValue []byte
rev int64
isDeleted bool
isCreated bool
}
func newWatcher(client *clientv3.Client) *watcher {
return &watcher{
client: client,
}
}
func (w *watcher) Watch(ctx context.Context, key, keyRegexFilter string, rev *int64) (types.Watcher, error) {
wc := w.newWatchChan(ctx, key, keyRegexFilter, rev)
go wc.run()
return wc, nil
}
func (wc *watchChan) Stop() {
wc.cancel()
}
func (wc *watchChan) ResultChan() <-chan *types.Event {
return wc.result
}
func (w *watcher) newWatchChan(ctx context.Context, key, keyRegexFilter string, rev *int64) *watchChan {
wc := &watchChan{
watcher: w,
key: key,
rev: rev,
filter: keyRegexFilter,
event: make(chan *event, incomingBufSize),
result: make(chan *types.Event, outgoingBufSize),
error: make(chan error, 1),
}
wc.ctx, wc.cancel = context.WithCancel(ctx)
return wc
}
func (wc *watchChan) run() {
watchClosedCh := make(chan struct{})
go wc.watching(watchClosedCh)
var resultChanWG sync.WaitGroup
resultChanWG.Add(1)
go wc.handleEvent(&resultChanWG)
select {
case err := <-wc.error:
if err == context.Canceled {
break
}
errResult := transformError(err)
if errResult != nil {
// guarantee of error after closing
select {
case wc.result <- errResult:
case <-wc.ctx.Done():
}
}
case <-watchClosedCh:
case <-wc.ctx.Done():
}
wc.cancel()
// wait until the result is used
resultChanWG.Wait()
close(wc.result)
}
func (wc *watchChan) watching(watchClosedCh chan struct{}) {
opts := []clientv3.OpOption{
clientv3.WithPrevKV(),
clientv3.WithPrefix(),
}
if wc.rev != nil {
if err := wc.getState(); err != nil {
log.Errorf("%s:watching:> failed to getState with latest state: %v", logPrefix, err)
wc.sendError(err)
return
}
opts = append(opts, clientv3.WithRev(*wc.rev+1))
}
r, _ := regexp.Compile(wc.filter)
wch := wc.watcher.client.Watch(wc.ctx, wc.key, opts...)
for wres := range wch {
if wres.Err() != nil {
err := wres.Err()
log.Errorf("%s:watching:> watch chan err: %v", logPrefix, err)
wc.sendError(err)
return
}
for _, we := range wres.Events {
if r.MatchString(string(we.Kv.Key)) {
e := &event{
key: string(we.Kv.Key),
value: we.Kv.Value,
rev: we.Kv.ModRevision,
isDeleted: we.Type == clientv3.EventTypeDelete,
isCreated: we.IsCreate(),
}
if we.PrevKv != nil {
e.prevValue = we.PrevKv.Value
}
wc.sendEvent(e)
}
}
}
close(watchClosedCh)
}
func (wc *watchChan) getState() error {
opts := []clientv3.OpOption{clientv3.WithPrefix()}
if wc.rev != nil {
opts = append(opts, clientv3.WithMinModRev(*wc.rev))
}
getResp, err := wc.watcher.client.Get(wc.ctx, wc.key, opts...)
if err != nil {
return err
}
wc.rev = &getResp.Header.Revision
for _, kv := range getResp.Kvs {
wc.sendEvent(&event{
key: string(kv.Key),
value: kv.Value,
prevValue: nil,
rev: kv.ModRevision,
isDeleted: false,
isCreated: true,
})
}
return nil
}
func (wc *watchChan) handleEvent(wg *sync.WaitGroup) {
defer wg.Done()
for {
select {
case e := <-wc.event:
res := transformEvent(e)
if res == nil {
continue
}
if len(wc.result) == outgoingBufSize {
log.Warnf("%s:handleevent:> buffered events: %d. Processing event %s takes a long time", logPrefix, outgoingBufSize, res.Key)
}
select {
case wc.result <- res:
case <-wc.ctx.Done():
return
}
case <-wc.ctx.Done():
return
}
}
}
func (wc *watchChan) sendError(err error) {
select {
case wc.error <- err:
case <-wc.ctx.Done():
}
}
func (wc *watchChan) sendEvent(e *event) {
if len(wc.event) == incomingBufSize {
log.Warnf("%s:sendevent:> buffered events: %d. Processing event %s takes a long time", logPrefix, incomingBufSize, e.key)
}
select {
case wc.event <- e:
case <-wc.ctx.Done():
}
}
func transformEvent(e *event) *types.Event {
action := types.STORAGEUPDATEEVENT
data := []byte{}
if e.isCreated {
action = types.STORAGECREATEEVENT
}
if e.isDeleted {
action = types.STORAGEDELETEEVENT
}
if !e.isDeleted {
data = e.value
} else {
data = e.prevValue
}
event := &types.Event{
Type: action,
Key: string(e.key),
Rev: e.rev,
Object: data,
}
return event
}
func | (err error) *types.Event {
return &types.Event{
Type: types.STORAGEERROREVENT,
Object: err,
}
}
| transformError |
tests_question_crosscheck_dispatcher.py | import pytest
from homework import tasks
from homework.models import AnswerCrossCheck
pytestmark = [pytest.mark.django_db]
def test_crosschecks_are_created(question_dispatcher):
question_dispatcher()
assert AnswerCrossCheck.objects.count() == 2
def | (question):
question.dispatch_crosscheck(answers_per_user=1)
assert AnswerCrossCheck.objects.count() == 2
def test_task_does_the_same(question):
tasks.disptach_crosscheck.delay(question_id=question.pk, answers_per_user=1)
assert AnswerCrossCheck.objects.count() == 2
def test_email_is_sent(question_dispatcher, send_mail, mocker, answers):
question_dispatcher()
assert send_mail.call_count == 2
send_mail.assert_has_calls([
mocker.call(
to=answers[0].author.email,
template_id='new-answers-to-check',
disable_antispam=True,
ctx={
'answers': [
{
'url': mocker.ANY,
'text': mocker.ANY,
},
],
},
),
])
| test_question_method_does_the_same |
l2cap.rs | use crate::raw;
pub(crate) fn on_ch_setup_request(
_ble_evt: *const raw::ble_evt_t,
_l2cap_evt: &raw::ble_l2cap_evt_t,
) {
}
pub(crate) fn on_ch_setup_refused(
_ble_evt: *const raw::ble_evt_t,
_l2cap_evt: &raw::ble_l2cap_evt_t,
) {
}
pub(crate) fn on_ch_setup(_ble_evt: *const raw::ble_evt_t, _l2cap_evt: &raw::ble_l2cap_evt_t) {}
pub(crate) fn on_ch_released(_ble_evt: *const raw::ble_evt_t, _l2cap_evt: &raw::ble_l2cap_evt_t) {}
pub(crate) fn on_ch_sdu_buf_released(
_ble_evt: *const raw::ble_evt_t,
_l2cap_evt: &raw::ble_l2cap_evt_t,
) {
}
pub(crate) fn on_ch_credit(_ble_evt: *const raw::ble_evt_t, _l2cap_evt: &raw::ble_l2cap_evt_t) {}
pub(crate) fn on_ch_rx(_ble_evt: *const raw::ble_evt_t, _l2cap_evt: &raw::ble_l2cap_evt_t) {}
pub(crate) fn | (_ble_evt: *const raw::ble_evt_t, _l2cap_evt: &raw::ble_l2cap_evt_t) {}
| on_ch_tx |
useChangedChildSizes.ts | import { Log, LogLevel } from '../loggerSystem'
import { SizeFunction, SizeRange } from '../sizeSystem'
import { useSizeWithElRef } from './useSize'
import { ScrollContainerState } from '../interfaces'
export default function useChangedListContentsSizes(
callback: (ranges: SizeRange[]) => void,
itemSize: SizeFunction,
enabled: boolean,
scrollContainerStateCallback: (state: ScrollContainerState) => void,
log: Log,
customScrollParent?: HTMLElement
) {
return useSizeWithElRef((el: HTMLElement) => {
const ranges = getChangedChildSizes(el.children, itemSize, 'offsetHeight', log)
let scrollableElement = el.parentElement!
while (!scrollableElement.dataset['virtuosoScroller']) {
scrollableElement = scrollableElement.parentElement!
}
const scrollTop = customScrollParent
? customScrollParent.scrollTop
: // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
(scrollableElement.firstElementChild! as HTMLDivElement).dataset['viewportType']! === 'window'
? window.pageYOffset || document.documentElement.scrollTop
: scrollableElement.scrollTop
scrollContainerStateCallback({
scrollTop: Math.max(scrollTop, 0),
scrollHeight: (customScrollParent ?? scrollableElement).scrollHeight,
viewportHeight: (customScrollParent ?? scrollableElement).offsetHeight,
})
if (ranges !== null) {
callback(ranges)
}
}, enabled)
}
function getChangedChildSizes(children: HTMLCollection, itemSize: SizeFunction, field: 'offsetHeight' | 'offsetWidth', log: Log) {
const length = children.length
if (length === 0) {
return null
}
const results: SizeRange[] = []
for (let i = 0; i < length; i++) {
const child = children.item(i) as HTMLElement
if (!child || child.dataset.index === undefined) {
continue
}
const index = parseInt(child.dataset.index!)
const knownSize = parseFloat(child.dataset.knownSize!) | const size = itemSize(child, field)
if (size === 0) {
log('Zero-sized element, this should not happen', { child }, LogLevel.ERROR)
}
if (size === knownSize) {
continue
}
const lastResult = results[results.length - 1]
if (results.length === 0 || lastResult.size !== size || lastResult.endIndex !== index - 1) {
results.push({ startIndex: index, endIndex: index, size })
} else {
results[results.length - 1].endIndex++
}
}
return results
} | |
kendo.culture.am.js | (function( window, undefined ) {
kendo.cultures["am"] = {
name: "am", | pattern: ["-n"],
decimals: 2,
",": ",",
".": ".",
groupSize: [3],
percent: {
pattern: ["-n%","n%"],
decimals: 2,
",": ",",
".": ".",
groupSize: [3],
symbol: "%"
},
currency: {
pattern: ["-$n","$n"],
decimals: 2,
",": ",",
".": ".",
groupSize: [3],
symbol: "ETB"
}
},
calendars: {
standard: {
days: {
names: ["እሑድ","ሰኞ","ማክሰኞ","ረቡዕ","ሐሙስ","ዓርብ","ቅዳሜ"],
namesAbbr: ["እሑድ","ሰኞ","ማክሰ","ረቡዕ","ሐሙስ","ዓርብ","ቅዳሜ"],
namesShort: ["እሑ","ሰኞ","ማክ","ረቡ","ሐሙ","ዓር","ቅዳ"]
},
months: {
names: ["ጥር","የካቲት","መጋቢት","ሚያዚያ","ግንቦት","ሰኔ","ሐምሌ","ነሐሴ","መስከረም","ጥቅምት","ህዳር","ታህሳስ"],
namesAbbr: ["ጥር","የካ.","መጋ.","ሚያ.","ግን.","ሰኔ","ሐም.","ነሐ.","መስ.","ጥቅ.","ህዳ.","ታህ."]
},
AM: ["ጧት","ጧት","ጧት"],
PM: ["ከሰዓት በኋላ","ከሰዓት በኋላ","ከሰዓት በኋላ"],
patterns: {
d: "d/M/yyyy",
D: "dddd '፣' MMMM d 'ቀን' yyyy",
F: "dddd '፣' MMMM d 'ቀን' yyyy h:mm:ss tt",
g: "d/M/yyyy h:mm tt",
G: "d/M/yyyy h:mm:ss tt",
m: "MMMM d' ቀን'",
M: "MMMM d' ቀን'",
s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss",
t: "h:mm tt",
T: "h:mm:ss tt",
u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'",
y: "MMMM yyyy",
Y: "MMMM yyyy"
},
"/": "/",
":": ":",
firstDay: 1
}
}
}
})(this); | numberFormat: { |
token_exchange_for_native_social.rs | use crate::authentication::get_token::*;
#[derive(Serialize, Deserialize)]
pub struct | {
pub grant_type: String,
pub subject_token: String,
pub subject_token_type: String,
pub client_id: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub audience: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub scope: Option<String>,
// #[serde(skip_serializing_if = "Option::is_none")]
#[serde(skip_serializing)]
pub auth0_forwarded_for: Option<String>,
}
| RequestParameters |
test_planning.py | import datetime as dt
import pytest
from note_clerk import planning
@pytest.mark.parametrize(
"date, quarter",
[
(dt.datetime(2020, 1, 1), dt.datetime(2020, 1, 1)),
(dt.datetime(2020, 1, 2), dt.datetime(2020, 1, 1)),
(dt.datetime(2020, 4, 1), dt.datetime(2020, 4, 1)),
(dt.datetime(2020, 4, 2), dt.datetime(2020, 4, 1)),
(dt.datetime(2020, 5, 2), dt.datetime(2020, 4, 1)),
(dt.datetime(2020, 6, 2), dt.datetime(2020, 4, 1)),
(dt.datetime(2020, 7, 2), dt.datetime(2020, 7, 1)),
(dt.datetime(2020, 8, 2), dt.datetime(2020, 7, 1)),
(dt.datetime(2020, 9, 2), dt.datetime(2020, 7, 1)),
(dt.datetime(2020, 10, 2), dt.datetime(2020, 10, 1)),
(dt.datetime(2020, 11, 2), dt.datetime(2020, 10, 1)),
(dt.datetime(2020, 12, 2), dt.datetime(2020, 10, 1)),
],
)
def | (date: dt.datetime, quarter: dt.datetime) -> None:
adjusted = planning.quarter_start(date)
assert adjusted == quarter
def print_with_header(header: str, text: str) -> None:
line = "*" * (len(header) + 4)
print(f"{line}\n* {header} *\n{line}\n{text}")
| test_quarter_start |
blog.js.775ab56ebd5b9a4aea1f.hot-update.js | webpackHotUpdate('static/development/pages/blog.js', {
/***/ './node_modules/css-loader/dist/cjs.js?!./node_modules/next/dist/compiled/postcss-loader/index.js?!./src/styles/header.module.css':
/*!*****************************************************************************************************************************************************************!*\
!*** ./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-2-1!./node_modules/next/dist/compiled/postcss-loader??__nextjs_postcss!./src/styles/header.module.css ***!
\*****************************************************************************************************************************************************************/
/*! no static exports found */
/***/ function(module, exports, __webpack_require__) {
eval(
'// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");\nexports = ___CSS_LOADER_API_IMPORT___(true);\n// Module\nexports.push([module.i, ".header_header__WP9pK {\\n display: block;\\n min-height: 64px;\\n padding: 2em 0;\\n text-align: center;\\n letter-spacing: -0.02em;\\n}\\n\\n.header_header__WP9pK ul {\\n list-style: none;\\n padding: 0;\\n}\\n\\n.header_header__WP9pK ul li {\\n display: inline-block;\\n padding: 0 10px;\\n}\\n\\n.header_header__WP9pK a {\\n color: #DDDDDD;\\n font-weight: 400;\\n}\\n\\n.header_header__WP9pK a.active {\\n color: #a6ff00;\\n font-weight: 600;\\n}\\n\\n@media (max-width: 600px) {\\n .header_header__WP9pK {\\n padding: .5em 0 2em;\\n }\\n}\\n", "",{"version":3,"sources":["/home/rollcake-debian/notion-blog/src/styles/header.module.css"],"names":[],"mappings":"AAAA;EACE,cAAc;EACd,gBAAgB;EAChB,cAAc;EACd,kBAAkB;EAClB,uBAAuB;AACzB;;AAEA;EACE,gBAAgB;EAChB,UAAU;AACZ;;AAEA;EACE,qBAAqB;EACrB,eAAe;AACjB;;AAEA;EACE,cAAc;EACd,gBAAgB;AAClB;;AAEA;EACE,cAAc;EACd,gBAAgB;AAClB;;AAEA;EACE;IACE,mBAAmB;EACrB;AACF","file":"header.module.css","sourcesContent":[".header {\\n display: block;\\n min-height: 64px;\\n padding: 2em 0;\\n text-align: center;\\n letter-spacing: -0.02em;\\n}\\n\\n.header ul {\\n list-style: none;\\n padding: 0;\\n}\\n\\n.header ul li {\\n display: inline-block;\\n padding: 0 10px;\\n}\\n\\n.header :global(a) {\\n color: #DDDDDD;\\n font-weight: 400;\\n}\\n\\n.header :global(a.active) {\\n color: #a6ff00;\\n font-weight: 600;\\n}\\n\\n@media (max-width: 600px) {\\n .header {\\n padding: .5em 0 2em;\\n }\\n}\\n"]}]);\n// Exports\nexports.locals = {\n\t"header": "header_header__WP9pK"\n};\nmodule.exports = exports;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvc3R5bGVzL2hlYWRlci5tb2R1bGUuY3NzPzU3NTIiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQSxrQ0FBa0MsbUJBQU8sQ0FBQyx3R0FBbUQ7QUFDN0Y7QUFDQTtBQUNBLGNBQWMsUUFBUywwQkFBMEIsbUJBQW1CLHFCQUFxQixtQkFBbUIsdUJBQXVCLDRCQUE0QixHQUFHLDhCQUE4QixxQkFBcUIsZUFBZSxHQUFHLGlDQUFpQywwQkFBMEIsb0JBQW9CLEdBQUcsNkJBQTZCLG1CQUFtQixxQkFBcUIsR0FBRyxvQ0FBb0MsbUJBQW1CLHFCQUFxQixHQUFHLCtCQUErQiwyQkFBMkIsMEJBQTBCLEtBQUssR0FBRyxTQUFTLHFIQUFxSCxVQUFVLFlBQVksV0FBVyxZQUFZLGFBQWEsT0FBTyxLQUFLLFlBQVksV0FBVyxNQUFNLEtBQUssWUFBWSxXQUFXLE9BQU8sS0FBSyxVQUFVLFlBQVksT0FBTyxLQUFLLFVBQVUsWUFBWSxPQUFPLEtBQUssS0FBSyxZQUFZLE1BQU0sNkRBQTZELG1CQUFtQixxQkFBcUIsbUJBQW1CLHVCQUF1Qiw0QkFBNEIsR0FBRyxnQkFBZ0IscUJBQXFCLGVBQWUsR0FBRyxtQkFBbUIsMEJBQTBCLG9CQUFvQixHQUFHLHdCQUF3QixtQkFBbUIscUJBQXFCLEdBQUcsK0JBQStCLG1CQUFtQixxQkFBcUIsR0FBRywrQkFBK0IsYUFBYSwwQkFBMEIsS0FBSyxHQUFHLEtBQUs7QUFDejVDO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L2Nqcy5qcz8hLi9ub2RlX21vZHVsZXMvbmV4dC9kaXN0L2NvbXBpbGVkL3Bvc3Rjc3MtbG9hZGVyL2luZGV4LmpzPyEuL3NyYy9zdHlsZXMvaGVhZGVyLm1vZHVsZS5jc3MuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBJbXBvcnRzXG52YXIgX19fQ1NTX0xPQURFUl9BUElfSU1QT1JUX19fID0gcmVxdWlyZShcIi4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2Rpc3QvcnVudGltZS9hcGkuanNcIik7XG5leHBvcnRzID0gX19fQ1NTX0xPQURFUl9BUElfSU1QT1JUX19fKHRydWUpO1xuLy8gTW9kdWxlXG5leHBvcnRzLnB1c2goW21vZHVsZS5pZCwgXCIuaGVhZGVyX2hlYWRlcl9fV1A5cEsge1xcbiAgZGlzcGxheTogYmxvY2s7XFxuICBtaW4taGVpZ2h0OiA2NHB4O1xcbiAgcGFkZGluZzogMmVtIDA7XFxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XFxuICBsZXR0ZXItc3BhY2luZzogLTAuMDJlbTtcXG59XFxuXFxuLmhlYWRlcl9oZWFkZXJfX1dQOXBLIHVsIHtcXG4gIGxpc3Qtc3R5bGU6IG5vbmU7XFxuICBwYWRkaW5nOiAwO1xcbn1cXG5cXG4uaGVhZGVyX2hlYWRlcl9fV1A5cEsgdWwgbGkge1xcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xcbiAgcGFkZGluZzogMCAxMHB4O1xcbn1cXG5cXG4uaGVhZGVyX2hlYWRlcl9fV1A5cEsgYSB7XFxuICBjb2xvcjogI0RERERERDtcXG4gIGZvbnQtd2VpZ2h0OiA0MDA7XFxufVxcblxcbi5oZWFkZXJfaGVhZGVyX19XUDlwSyBhLmFjdGl2ZSB7XFxuICBjb2xvcjogI2E2ZmYwMDtcXG4gIGZvbnQtd2VpZ2h0OiA2MDA7XFxufVxcblxcbkBtZWRpYSAobWF4LXdpZHRoOiA2MDBweCkge1xcbiAgLmhlYWRlcl9oZWFkZXJfX1dQOXBLIHtcXG4gICAgcGFkZGluZzogLjVlbSAwIDJlbTtcXG4gIH1cXG59XFxuXCIsIFwiXCIse1widmVyc2lvblwiOjMsXCJzb3VyY2VzXCI6W1wiL2hvbWUvcm9sbGNha2UtZGViaWFuL25vdGlvbi1ibG9nL3NyYy9zdHlsZXMvaGVhZGVyLm1vZHVsZS5jc3NcIl0sXCJuYW1lc1wiOltdLFwibWFwcGluZ3NcIjpcIkFBQUE7RUFDRSxjQUFjO0VBQ2QsZ0JBQWdCO0VBQ2hCLGNBQWM7RUFDZCxrQkFBa0I7RUFDbEIsdUJBQXVCO0FBQ3pCOztBQUVBO0VBQ0UsZ0JBQWdCO0VBQ2hCLFVBQVU7QUFDWjs7QUFFQTtFQUNFLHFCQUFxQjtFQUNyQixlQUFlO0FBQ2pCOztBQUVBO0VBQ0UsY0FBYztFQUNkLGdCQUFnQjtBQUNsQjs7QUFFQTtFQUNFLGNBQWM7RUFDZCxnQkFBZ0I7QUFDbEI7O0FBRUE7RUFDRTtJQUNFLG1CQUFtQjtFQUNyQjtBQUNGXCIsXCJmaWxlXCI6XCJoZWFkZXIubW9kdWxlLmNzc1wiLFwic291cmNlc0NvbnRlbnRcIjpbXCIuaGVhZGVyIHtcXG4gIGRpc3BsYXk6IGJsb2NrO1xcbiAgbWluLWhlaWdodDogNjRweDtcXG4gIHBhZGRpbmc6IDJlbSAwO1xcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xcbiAgbGV0dGVyLXNwYWNpbmc6IC0wLjAyZW07XFxufVxcblxcbi5oZWFkZXIgdWwge1xcbiAgbGlzdC1zdHlsZTogbm9uZTtcXG4gIHBhZGRpbmc6IDA7XFxufVxcblxcbi5oZWFkZXIgdWwgbGkge1xcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xcbiAgcGFkZGluZzogMCAxMHB4O1xcbn1cXG5cXG4uaGVhZGVyIDpnbG9iYWwoYSkge1xcbiAgY29sb3I6ICNEREREREQ7XFxuICBmb250LXdlaWdodDogNDAwO1xcbn1cXG5cXG4uaGVhZGVyIDpnbG9iYWwoYS5hY3RpdmUpIHtcXG4gIGNvbG9yOiAjYTZmZjAwO1xcbiAgZm9udC13ZWlnaHQ6IDYwMDtcXG59XFxuXFxuQG1lZGlhIChtYXgtd2lkdGg6IDYwMHB4KSB7XFxuICAuaGVhZGVyIHtcXG4gICAgcGFkZGluZzogLjVlbSAwIDJlbTtcXG4gIH1cXG59XFxuXCJdfV0pO1xuLy8gRXhwb3J0c1xuZXhwb3J0cy5sb2NhbHMgPSB7XG5cdFwiaGVhZGVyXCI6IFwiaGVhZGVyX2hlYWRlcl9fV1A5cEtcIlxufTtcbm1vZHVsZS5leHBvcnRzID0gZXhwb3J0cztcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/css-loader/dist/cjs.js?!./node_modules/next/dist/compiled/postcss-loader/index.js?!./src/styles/header.module.css\n'
)
/***/
}, | }) |
|
touchscreen.rs | // use firecore_util::gui::TextColor;
use macroquad::prelude::Color;
use macroquad::prelude::Touch;
use macroquad::prelude::TouchPhase;
use macroquad::prelude::Vec2;
use crate::Control;
pub static mut TOUCHSCREEN: Option<TouchControls> = None;
pub fn touchscreen(active: bool) {
unsafe {
TOUCHSCREEN = if active {
Some(TouchControls::default())
} else {
None
}
}
}
pub struct TouchControls {
pub a: TouchButton,
pub b: TouchButton,
pub down: TouchButton,
pub up: TouchButton,
pub left: TouchButton,
pub right: TouchButton,
}
impl TouchControls {
// pub fn draw(&self) {
// self.a.draw();
// self.b.draw();
// self.down.draw();
// self.up.draw();
// self.left.draw();
// self.right.draw();
// }
pub fn pressed(&self, control: &Control) -> bool |
pub fn down(&self, control: &Control) -> bool {
// if let Some(config) = get::<Configuration>() {
// if config.touchscreen {
let touches = macroquad::input::touches();
if !touches.is_empty() {
if self.a.touching(&touches, false) {
if self.a.control.eq(control) {
return true;
}
}
if self.b.touching(&touches, false) {
if self.b.control.eq(control) {
return true;
}
}
if self.up.touching(&touches, false) {
if self.up.control.eq(control) {
return true;
}
}
if self.down.touching(&touches, false) {
if self.down.control.eq(control) {
return true;
}
}
if self.left.touching(&touches, false) {
if self.left.control.eq(control) {
return true;
}
}
if self.right.touching(&touches, false) {
if self.right.control.eq(control) {
return true;
}
}
}
// }
// }
false
}
}
impl Default for TouchControls {
fn default() -> Self {
Self {
a: TouchButton::new(20.0, 100.0, Control::A),
b: TouchButton::new(10.0, 130.0, Control::B),
down: TouchButton::new(190.0, 130.0, Control::Down),
up: TouchButton::new(190.0, 90.0, Control::Up),
left: TouchButton::new(170.0, 110.0, Control::Left),
right: TouchButton::new(210.0, 110.0, Control::Right),
}
}
}
pub struct TouchButton {
pub pos: Vec2,
pub color: Color, // replace with texture
pub control: Control,
}
impl TouchButton {
pub const BUTTON_SIZE: f32 = 20.0;
pub fn new(x: f32, y: f32, control: Control) -> Self {
Self {
pos: Vec2::new(x, y),
color: macroquad::prelude::RED,
control,
}
}
// pub fn draw(&self) {
// // if let Some(config) = get::<Configuration>() {
// // if config.touchscreen {
// crate::util::graphics::draw_rect(self.color, self.pos.x, self.pos.y, BUTTON_SIZE, BUTTON_SIZE);
// crate::util::graphics::draw_text_left(1, &format!("{:?}", self.control), &TextColor::WHITE, self.pos.x + 1.0, self.pos.y);
// // }
// // }
// }
pub fn touching(&self, touches: &[Touch], pressed: bool) -> bool {
for touch in touches {
if !pressed {
if touch.phase != TouchPhase::Started {
break;
}
}
if self.pos.x <= touch.position.x && self.pos.x + Self::BUTTON_SIZE > touch.position.x {
if self.pos.y <= touch.position.y && self.pos.y + Self::BUTTON_SIZE > touch.position.y {
return true;
}
}
}
false
}
} | {
// if let Some(config) = get::<Configuration>() {
// if config.touchscreen {
let touches = macroquad::input::touches();
if !touches.is_empty() {
if self.a.touching(&touches, true) {
if self.a.control.eq(control) {
return true;
}
}
if self.b.touching(&touches, true) {
if self.b.control.eq(control) {
return true;
}
}
if self.up.touching(&touches, true) {
if self.up.control.eq(control) {
return true;
}
}
if self.down.touching(&touches, true) {
if self.down.control.eq(control) {
return true;
}
}
if self.left.touching(&touches, true) {
if self.left.control.eq(control) {
return true;
}
}
if self.right.touching(&touches, true) {
if self.right.control.eq(control) {
return true;
}
}
}
// }
// }
return false;
} |
json_deser.rs | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn parse_http_generic_error(
response: &http::Response<bytes::Bytes>,
) -> Result<aws_smithy_types::Error, aws_smithy_json::deserialize::Error> {
crate::json_errors::parse_generic_error(response.body(), response.headers())
}
pub fn deser_structure_crate_error_access_denied_exception_json_err(
value: &[u8],
mut builder: crate::error::access_denied_exception::Builder,
) -> Result<crate::error::access_denied_exception::Builder, aws_smithy_json::deserialize::Error> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"message" => {
builder = builder.set_message(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_structure_crate_error_conflict_exception_json_err(
value: &[u8],
mut builder: crate::error::conflict_exception::Builder,
) -> Result<crate::error::conflict_exception::Builder, aws_smithy_json::deserialize::Error> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"message" => {
builder = builder.set_message(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"resourceId" => {
builder = builder.set_resource_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"resourceType" => {
builder = builder.set_resource_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_structure_crate_error_internal_server_exception_json_err(
value: &[u8],
mut builder: crate::error::internal_server_exception::Builder,
) -> Result<crate::error::internal_server_exception::Builder, aws_smithy_json::deserialize::Error> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"message" => {
builder = builder.set_message(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"retryAfterSeconds" => {
builder = builder.set_retry_after_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(|v| v.to_i32()),
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_structure_crate_error_resource_not_found_exception_json_err(
value: &[u8],
mut builder: crate::error::resource_not_found_exception::Builder,
) -> Result<crate::error::resource_not_found_exception::Builder, aws_smithy_json::deserialize::Error>
{
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"message" => {
builder = builder.set_message(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"resourceId" => {
builder = builder.set_resource_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"resourceType" => {
builder = builder.set_resource_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_structure_crate_error_service_quota_exceeded_exception_json_err(
value: &[u8],
mut builder: crate::error::service_quota_exceeded_exception::Builder,
) -> Result<
crate::error::service_quota_exceeded_exception::Builder,
aws_smithy_json::deserialize::Error,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"message" => {
builder = builder.set_message(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"resourceId" => {
builder = builder.set_resource_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"resourceType" => {
builder = builder.set_resource_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"serviceCode" => {
builder = builder.set_service_code(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"quotaCode" => {
builder = builder.set_quota_code(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_structure_crate_error_throttling_exception_json_err(
value: &[u8],
mut builder: crate::error::throttling_exception::Builder,
) -> Result<crate::error::throttling_exception::Builder, aws_smithy_json::deserialize::Error> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"message" => {
builder = builder.set_message(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"serviceCode" => {
builder = builder.set_service_code(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"quotaCode" => {
builder = builder.set_quota_code(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"retryAfterSeconds" => {
builder = builder.set_retry_after_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(|v| v.to_i32()),
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_structure_crate_error_validation_exception_json_err(
value: &[u8],
mut builder: crate::error::validation_exception::Builder,
) -> Result<crate::error::validation_exception::Builder, aws_smithy_json::deserialize::Error> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"message" => {
builder = builder.set_message(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"reason" => {
builder = builder.set_reason(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::ValidationExceptionReason::from(u.as_ref())
})
})
.transpose()?,
);
}
"fieldList" => {
builder = builder.set_field_list(
crate::json_deser::deser_list_com_amazonaws_amp_validation_exception_field_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_operation_crate_operation_create_alert_manager_definition(
value: &[u8],
mut builder: crate::output::create_alert_manager_definition_output::Builder,
) -> Result<
crate::output::create_alert_manager_definition_output::Builder,
aws_smithy_json::deserialize::Error,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_alert_manager_definition_status(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_operation_crate_operation_create_rule_groups_namespace(
value: &[u8],
mut builder: crate::output::create_rule_groups_namespace_output::Builder,
) -> Result<
crate::output::create_rule_groups_namespace_output::Builder,
aws_smithy_json::deserialize::Error,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"arn" => {
builder = builder.set_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_rule_groups_namespace_status(tokens)?
);
}
"tags" => {
builder = builder.set_tags(
crate::json_deser::deser_map_com_amazonaws_amp_tag_map(tokens)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_operation_crate_operation_create_workspace(
value: &[u8],
mut builder: crate::output::create_workspace_output::Builder,
) -> Result<crate::output::create_workspace_output::Builder, aws_smithy_json::deserialize::Error> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"arn" => {
builder = builder.set_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_workspace_status(
tokens,
)?,
);
}
"tags" => {
builder = builder.set_tags(
crate::json_deser::deser_map_com_amazonaws_amp_tag_map(tokens)?,
);
}
"workspaceId" => {
builder = builder.set_workspace_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_operation_crate_operation_describe_alert_manager_definition(
value: &[u8],
mut builder: crate::output::describe_alert_manager_definition_output::Builder,
) -> Result<
crate::output::describe_alert_manager_definition_output::Builder,
aws_smithy_json::deserialize::Error,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"alertManagerDefinition" => {
builder = builder.set_alert_manager_definition(
crate::json_deser::deser_structure_crate_model_alert_manager_definition_description(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_operation_crate_operation_describe_rule_groups_namespace(
value: &[u8],
mut builder: crate::output::describe_rule_groups_namespace_output::Builder,
) -> Result<
crate::output::describe_rule_groups_namespace_output::Builder,
aws_smithy_json::deserialize::Error,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"ruleGroupsNamespace" => {
builder = builder.set_rule_groups_namespace(
crate::json_deser::deser_structure_crate_model_rule_groups_namespace_description(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_operation_crate_operation_describe_workspace(
value: &[u8],
mut builder: crate::output::describe_workspace_output::Builder,
) -> Result<crate::output::describe_workspace_output::Builder, aws_smithy_json::deserialize::Error>
{
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"workspace" => {
builder = builder.set_workspace(
crate::json_deser::deser_structure_crate_model_workspace_description(
tokens,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_operation_crate_operation_list_rule_groups_namespaces(
value: &[u8],
mut builder: crate::output::list_rule_groups_namespaces_output::Builder,
) -> Result<
crate::output::list_rule_groups_namespaces_output::Builder,
aws_smithy_json::deserialize::Error,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"nextToken" => {
builder = builder.set_next_token(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ruleGroupsNamespaces" => {
builder = builder.set_rule_groups_namespaces(
crate::json_deser::deser_list_com_amazonaws_amp_rule_groups_namespace_summary_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_operation_crate_operation_list_tags_for_resource(
value: &[u8],
mut builder: crate::output::list_tags_for_resource_output::Builder,
) -> Result<
crate::output::list_tags_for_resource_output::Builder,
aws_smithy_json::deserialize::Error,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"tags" => {
builder = builder.set_tags(
crate::json_deser::deser_map_com_amazonaws_amp_tag_map(tokens)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_operation_crate_operation_list_workspaces(
value: &[u8],
mut builder: crate::output::list_workspaces_output::Builder,
) -> Result<crate::output::list_workspaces_output::Builder, aws_smithy_json::deserialize::Error> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"nextToken" => {
builder = builder.set_next_token(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"workspaces" => {
builder = builder.set_workspaces(
crate::json_deser::deser_list_com_amazonaws_amp_workspace_summary_list(
tokens,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_operation_crate_operation_put_alert_manager_definition(
value: &[u8],
mut builder: crate::output::put_alert_manager_definition_output::Builder,
) -> Result<
crate::output::put_alert_manager_definition_output::Builder,
aws_smithy_json::deserialize::Error,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_alert_manager_definition_status(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn deser_operation_crate_operation_put_rule_groups_namespace(
value: &[u8],
mut builder: crate::output::put_rule_groups_namespace_output::Builder,
) -> Result<
crate::output::put_rule_groups_namespace_output::Builder,
aws_smithy_json::deserialize::Error,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"arn" => {
builder = builder.set_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_rule_groups_namespace_status(tokens)?
);
}
"tags" => {
builder = builder.set_tags(
crate::json_deser::deser_map_com_amazonaws_amp_tag_map(tokens)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
if tokens.next().is_some() {
return Err(aws_smithy_json::deserialize::Error::custom(
"found more JSON tokens after completing parsing",
));
}
Ok(builder)
}
pub fn or_empty_doc(data: &[u8]) -> &[u8] {
if data.is_empty() {
b"{}"
} else {
data
}
}
#[allow(clippy::type_complexity, non_snake_case)]
pub fn deser_list_com_amazonaws_amp_validation_exception_field_list<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<std::vec::Vec<crate::model::ValidationExceptionField>>,
aws_smithy_json::deserialize::Error,
>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartArray { .. }) => {
let mut items = Vec::new();
loop {
match tokens.peek() {
Some(Ok(aws_smithy_json::deserialize::Token::EndArray { .. })) => {
tokens.next().transpose().unwrap();
break;
}
_ => {
let value =
crate::json_deser::deser_structure_crate_model_validation_exception_field(tokens)?
;
if let Some(value) = value {
items.push(value);
}
}
}
}
Ok(Some(items))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start array or null",
)),
}
}
pub fn deser_structure_crate_model_alert_manager_definition_status<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::AlertManagerDefinitionStatus>, aws_smithy_json::deserialize::Error>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::AlertManagerDefinitionStatus::builder();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"statusCode" => {
builder = builder.set_status_code(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::AlertManagerDefinitionStatusCode::from(
u.as_ref(),
)
})
})
.transpose()?,
);
}
"statusReason" => {
builder = builder.set_status_reason(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
Ok(Some(builder.build()))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start object or null",
)),
}
}
pub fn deser_structure_crate_model_rule_groups_namespace_status<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::RuleGroupsNamespaceStatus>, aws_smithy_json::deserialize::Error>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::RuleGroupsNamespaceStatus::builder();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"statusCode" => {
builder = builder.set_status_code(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::RuleGroupsNamespaceStatusCode::from(
u.as_ref(),
)
})
})
.transpose()?,
);
}
"statusReason" => {
builder = builder.set_status_reason(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
Ok(Some(builder.build()))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start object or null",
)),
}
}
#[allow(clippy::type_complexity, non_snake_case)]
pub fn deser_map_com_amazonaws_amp_tag_map<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<std::collections::HashMap<std::string::String, std::string::String>>,
aws_smithy_json::deserialize::Error,
>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
let mut map = std::collections::HashMap::new();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
let key = key.to_unescaped().map(|u| u.into_owned())?;
let value = aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?;
if let Some(value) = value {
map.insert(key, value);
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
Ok(Some(map))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start object or null",
)),
}
}
pub fn deser_structure_crate_model_workspace_status<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::WorkspaceStatus>, aws_smithy_json::deserialize::Error>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::WorkspaceStatus::builder();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"statusCode" => {
builder = builder.set_status_code(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::WorkspaceStatusCode::from(u.as_ref())
})
})
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
Ok(Some(builder.build()))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start object or null",
)),
}
}
pub fn deser_structure_crate_model_alert_manager_definition_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AlertManagerDefinitionDescription>,
aws_smithy_json::deserialize::Error,
>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::AlertManagerDefinitionDescription::builder();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_alert_manager_definition_status(tokens)?
);
}
"data" => {
builder = builder.set_data(
aws_smithy_json::deserialize::token::expect_blob_or_null(
tokens.next(),
)?,
);
}
"createdAt" => {
builder = builder.set_created_at(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"modifiedAt" => {
builder = builder.set_modified_at(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
Ok(Some(builder.build()))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start object or null",
)),
}
}
pub fn deser_structure_crate_model_rule_groups_namespace_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::RuleGroupsNamespaceDescription>, aws_smithy_json::deserialize::Error>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::RuleGroupsNamespaceDescription::builder();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"arn" => {
builder = builder.set_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_rule_groups_namespace_status(tokens)?
);
}
"data" => {
builder = builder.set_data(
aws_smithy_json::deserialize::token::expect_blob_or_null(
tokens.next(),
)?,
);
}
"createdAt" => {
builder = builder.set_created_at(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"modifiedAt" => {
builder = builder.set_modified_at(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"tags" => {
builder = builder.set_tags(
crate::json_deser::deser_map_com_amazonaws_amp_tag_map(tokens)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
Ok(Some(builder.build()))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start object or null",
)),
}
}
pub fn deser_structure_crate_model_workspace_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::WorkspaceDescription>, aws_smithy_json::deserialize::Error>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::WorkspaceDescription::builder();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"workspaceId" => {
builder = builder.set_workspace_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"alias" => {
builder = builder.set_alias(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"arn" => {
builder = builder.set_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_workspace_status(tokens)?
);
}
"prometheusEndpoint" => {
builder = builder.set_prometheus_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"createdAt" => {
builder = builder.set_created_at(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"tags" => {
builder = builder.set_tags(
crate::json_deser::deser_map_com_amazonaws_amp_tag_map(tokens)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
Ok(Some(builder.build()))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start object or null",
)),
}
}
#[allow(clippy::type_complexity, non_snake_case)]
pub fn deser_list_com_amazonaws_amp_rule_groups_namespace_summary_list<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<std::vec::Vec<crate::model::RuleGroupsNamespaceSummary>>,
aws_smithy_json::deserialize::Error,
>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartArray { .. }) => {
let mut items = Vec::new();
loop {
match tokens.peek() {
Some(Ok(aws_smithy_json::deserialize::Token::EndArray { .. })) => {
tokens.next().transpose().unwrap();
break;
}
_ => {
let value =
crate::json_deser::deser_structure_crate_model_rule_groups_namespace_summary(tokens)?
;
if let Some(value) = value {
items.push(value);
}
}
}
}
Ok(Some(items))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start array or null",
)),
}
}
#[allow(clippy::type_complexity, non_snake_case)]
pub fn deser_list_com_amazonaws_amp_workspace_summary_list<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<std::vec::Vec<crate::model::WorkspaceSummary>>,
aws_smithy_json::deserialize::Error,
>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartArray { .. }) => {
let mut items = Vec::new();
loop {
match tokens.peek() {
Some(Ok(aws_smithy_json::deserialize::Token::EndArray { .. })) => {
tokens.next().transpose().unwrap();
break;
}
_ => {
let value =
crate::json_deser::deser_structure_crate_model_workspace_summary(
tokens,
)?;
if let Some(value) = value {
items.push(value);
}
}
}
}
Ok(Some(items))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start array or null",
)),
}
}
pub fn deser_structure_crate_model_validation_exception_field<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::ValidationExceptionField>, aws_smithy_json::deserialize::Error>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::ValidationExceptionField::builder();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"message" => {
builder = builder.set_message(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
Ok(Some(builder.build()))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start object or null",
)),
}
}
pub fn deser_structure_crate_model_rule_groups_namespace_summary<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::RuleGroupsNamespaceSummary>, aws_smithy_json::deserialize::Error>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::RuleGroupsNamespaceSummary::builder();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"arn" => {
builder = builder.set_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_rule_groups_namespace_status(tokens)?
);
}
"createdAt" => {
builder = builder.set_created_at(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"modifiedAt" => {
builder = builder.set_modified_at(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"tags" => {
builder = builder.set_tags(
crate::json_deser::deser_map_com_amazonaws_amp_tag_map(tokens)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
Ok(Some(builder.build()))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start object or null",
)),
}
}
pub fn deser_structure_crate_model_workspace_summary<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::WorkspaceSummary>, aws_smithy_json::deserialize::Error>
where
I: Iterator<
Item = Result<aws_smithy_json::deserialize::Token<'a>, aws_smithy_json::deserialize::Error>,
>,
| {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::WorkspaceSummary::builder();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"workspaceId" => {
builder = builder.set_workspace_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"alias" => {
builder = builder.set_alias(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"arn" => {
builder = builder.set_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_workspace_status(tokens)?
);
}
"createdAt" => {
builder = builder.set_created_at(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"tags" => {
builder = builder.set_tags(
crate::json_deser::deser_map_com_amazonaws_amp_tag_map(tokens)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(aws_smithy_json::deserialize::Error::custom(format!(
"expected object key or end object, found: {:?}",
other
)))
}
}
}
Ok(Some(builder.build()))
}
_ => Err(aws_smithy_json::deserialize::Error::custom(
"expected start object or null",
)),
}
} |
|
eds.go | // Copyright 2018 Istio Authors
//
// 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 v2
import (
"strconv"
"sync"
"sync/atomic"
"time"
xdsapi "github.com/envoyproxy/go-control-plane/envoy/api/v2"
core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
endpoint "github.com/envoyproxy/go-control-plane/envoy/api/v2/endpoint"
structpb "github.com/golang/protobuf/ptypes/struct"
"github.com/golang/protobuf/ptypes/wrappers"
networkingapi "istio.io/api/networking/v1alpha3"
"istio.io/istio/pilot/pkg/model"
networking "istio.io/istio/pilot/pkg/networking/core/v1alpha3"
"istio.io/istio/pilot/pkg/networking/core/v1alpha3/loadbalancer"
"istio.io/istio/pilot/pkg/networking/util"
"istio.io/istio/pilot/pkg/serviceregistry"
"istio.io/istio/pilot/pkg/serviceregistry/aggregate"
"istio.io/istio/pkg/config/host"
"istio.io/istio/pkg/config/labels"
"istio.io/istio/pkg/config/protocol"
)
// EDS returns the list of endpoints (IP:port and in future labels) associated with a real
// service or a subset of a service, selected using labels.
//
// The source of info is a list of service registries.
//
// Primary event is an endpoint creation/deletion. Once the event is fired, EDS needs to
// find the list of services associated with the endpoint.
//
// In case of k8s, Endpoints event is fired when the endpoints are added to service - typically
// after readiness check. At that point we have the 'real' Service. The Endpoint includes a list
// of port numbers and names.
//
// For the subset case, the Pod referenced in the Endpoint must be looked up, and pod checked
// for labels.
//
// In addition, ExternalEndpoint includes IPs and labels directly and can be directly processed.
//
// TODO: for selector-less services (mesh expansion), skip pod processing
// TODO: optimize the code path for ExternalEndpoint, no additional processing needed
// TODO: if a service doesn't have split traffic - we can also skip pod and lable processing
// TODO: efficient label processing. In alpha3, the destination policies are set per service, so
// we may only need to search in a small list.
var (
edsClusterMutex sync.RWMutex
// edsClusters keep tracks of all watched clusters in 1.0 (not isolated) mode
// TODO: if global isolation is enabled, don't update or use this.
edsClusters = map[string]*EdsCluster{}
// Tracks connections, increment on each new connection.
connectionNumber = int64(0)
)
// EdsCluster tracks eds-related info for monitored cluster. Used in 1.0, where cluster info is not source-dependent.
type EdsCluster struct {
// mutex protects changes to this cluster
mutex sync.Mutex
// LoadAssignment has the pre-computed EDS response for this cluster. Any sidecar asking for the
// cluster will get this response.
LoadAssignment *xdsapi.ClusterLoadAssignment
// EdsClients keeps track of all nodes monitoring the cluster.
EdsClients map[string]*XdsConnection `json:"-"`
}
// TODO: add prom metrics !
// Return the load assignment with mutex. The field can be updated by another routine.
func loadAssignment(c *EdsCluster) *xdsapi.ClusterLoadAssignment {
c.mutex.Lock()
defer c.mutex.Unlock()
return c.LoadAssignment
}
// buildEnvoyLbEndpoint packs the endpoint based on istio info.
func buildEnvoyLbEndpoint(uid string, family model.AddressFamily, address string, port uint32, network string, weight uint32) *endpoint.LbEndpoint {
var addr core.Address
switch family {
case model.AddressFamilyTCP:
addr = core.Address{
Address: &core.Address_SocketAddress{
SocketAddress: &core.SocketAddress{
Address: address,
PortSpecifier: &core.SocketAddress_PortValue{
PortValue: port,
},
},
},
}
case model.AddressFamilyUnix:
addr = core.Address{Address: &core.Address_Pipe{Pipe: &core.Pipe{Path: address}}}
}
epWeight := weight
if epWeight == 0 {
epWeight = 1
}
ep := &endpoint.LbEndpoint{
LoadBalancingWeight: &wrappers.UInt32Value{
Value: epWeight,
},
HostIdentifier: &endpoint.LbEndpoint_Endpoint{
Endpoint: &endpoint.Endpoint{
Address: &addr,
},
},
}
// Istio telemetry depends on the metadata value being set for endpoints in the mesh.
// Do not remove: mixerfilter depends on this logic.
ep.Metadata = endpointMetadata(uid, network)
return ep
}
func networkEndpointToEnvoyEndpoint(e *model.NetworkEndpoint) (*endpoint.LbEndpoint, error) {
err := model.ValidateNetworkEndpointAddress(e)
if err != nil {
return nil, err
}
addr := util.GetNetworkEndpointAddress(e)
epWeight := e.LbWeight
if epWeight == 0 {
epWeight = 1
}
ep := &endpoint.LbEndpoint{
LoadBalancingWeight: &wrappers.UInt32Value{
Value: epWeight,
},
HostIdentifier: &endpoint.LbEndpoint_Endpoint{
Endpoint: &endpoint.Endpoint{
Address: addr,
},
},
}
// Istio telemetry depends on the metadata value being set for endpoints in the mesh.
// Do not remove: mixerfilter depends on this logic.
ep.Metadata = endpointMetadata(e.UID, e.Network)
return ep, nil
}
// Create an Istio filter metadata object with the UID and Network fields (if exist).
func endpointMetadata(uid string, network string) *core.Metadata {
if uid == "" && network == "" {
return nil
}
metadata := &core.Metadata{
FilterMetadata: map[string]*structpb.Struct{
util.IstioMetadataKey: {
Fields: map[string]*structpb.Value{},
},
},
}
if uid != "" {
metadata.FilterMetadata[util.IstioMetadataKey].Fields["uid"] = &structpb.Value{Kind: &structpb.Value_StringValue{StringValue: uid}}
}
if network != "" {
metadata.FilterMetadata[util.IstioMetadataKey].Fields["network"] = &structpb.Value{Kind: &structpb.Value_StringValue{StringValue: network}}
}
return metadata
}
// Determine Service associated with a hostname when there is no Sidecar scope. Which namespace the service comes from
// is undefined, as we do not have enough information to make a smart decision
func legacyServiceForHostname(hostname host.Name, serviceByHostname map[host.Name]map[string]*model.Service) *model.Service {
for _, service := range serviceByHostname[hostname] {
return service
}
return nil
}
// updateClusterInc computes an envoy cluster assignment from the service shards.
// This happens when endpoints are updated.
// TODO: this code is specific for 1.0 / pre-isolation. With config scoping, two sidecars can get
// a cluster of same name but with different set of endpoints. See the
// explanation below for more details
func (s *DiscoveryServer) updateClusterInc(push *model.PushContext, clusterName string,
edsCluster *EdsCluster) error {
var hostname host.Name
var clusterPort int
var subsetName string
_, subsetName, hostname, clusterPort = model.ParseSubsetKey(clusterName)
// TODO: BUG. this code is incorrect if 1.1 isolation is used. With destination rule scoping
// (public/private) as well as sidecar scopes allowing import of
// specific destination rules, the destination rule for a given
// namespace should be determined based on the sidecar scope or the
// proxy's config namespace. As such, this code searches through all
// destination rules, public and private and returns a completely
// arbitrary destination rule's subset labels!
subsetLabels := push.SubsetToLabels(nil, subsetName, hostname)
push.Mutex.Lock()
svc := legacyServiceForHostname(hostname, push.ServiceByHostnameAndNamespace)
push.Mutex.Unlock()
if svc == nil {
return s.updateCluster(push, clusterName, edsCluster)
}
// Check that there is a matching port
// We don't use the port though, as there could be multiple matches
svcPort, found := svc.Ports.GetByPort(clusterPort)
if !found {
return s.updateCluster(push, clusterName, edsCluster)
}
s.mutex.RLock()
// The service was never updated - do the full update
se, f := s.EndpointShardsByService[string(hostname)][svc.Attributes.Namespace]
s.mutex.RUnlock()
if !f {
return s.updateCluster(push, clusterName, edsCluster)
}
locEps := buildLocalityLbEndpointsFromShards(se, svcPort, subsetLabels, clusterName, push)
// There is a chance multiple goroutines will update the cluster at the same time.
// This could be prevented by a lock - but because the update may be slow, it may be
// better to accept the extra computations.
// We still lock the access to the LoadAssignments.
edsCluster.mutex.Lock()
defer edsCluster.mutex.Unlock()
edsCluster.LoadAssignment = &xdsapi.ClusterLoadAssignment{
ClusterName: clusterName,
Endpoints: locEps,
}
return nil
}
// updateServiceShards will list the endpoints and create the shards.
// This is used to reconcile and to support non-k8s registries (until they migrate).
// Note that aggregated list is expensive (for large numbers) - we want to replace
// it with a model where DiscoveryServer keeps track of all endpoint registries
// directly, and calls them one by one.
func (s *DiscoveryServer) updateServiceShards(push *model.PushContext) error {
// TODO: if ServiceDiscovery is aggregate, and all members support direct, use
// the direct interface.
var registries []aggregate.Registry
var nonK8sRegistries []aggregate.Registry
if agg, ok := s.Env.ServiceDiscovery.(*aggregate.Controller); ok {
registries = agg.GetRegistries()
} else {
registries = []aggregate.Registry{
{
ServiceDiscovery: s.Env.ServiceDiscovery,
},
}
}
for _, registry := range registries {
if registry.Name != serviceregistry.KubernetesRegistry {
nonK8sRegistries = append(nonK8sRegistries, registry)
}
}
// Each registry acts as a shard - we don't want to combine them because some
// may individually update their endpoints incrementally
for _, svc := range push.Services(nil) {
for _, registry := range nonK8sRegistries {
// in case this svc does not belong to the registry
if svc, _ := registry.GetService(svc.Hostname); svc == nil {
continue
}
entries := make([]*model.IstioEndpoint, 0)
for _, port := range svc.Ports {
if port.Protocol == protocol.UDP {
continue
}
// This loses track of grouping (shards)
endpoints, err := registry.InstancesByPort(svc, port.Port, labels.Collection{})
if err != nil {
return err
}
for _, ep := range endpoints {
entries = append(entries, &model.IstioEndpoint{
Family: ep.Endpoint.Family,
Address: ep.Endpoint.Address,
EndpointPort: uint32(ep.Endpoint.Port),
ServicePortName: port.Name,
Labels: ep.Labels,
UID: ep.Endpoint.UID,
ServiceAccount: ep.ServiceAccount,
Network: ep.Endpoint.Network,
Locality: ep.GetLocality(),
LbWeight: ep.Endpoint.LbWeight,
Attributes: ep.Service.Attributes,
})
}
}
s.edsUpdate(registry.ClusterID, string(svc.Hostname), svc.Attributes.Namespace, entries, true)
}
}
return nil
}
// updateCluster is called from the event (or global cache invalidation) to update
// the endpoints for the cluster.
func (s *DiscoveryServer) updateCluster(push *model.PushContext, clusterName string, edsCluster *EdsCluster) error {
// TODO: should we lock this as well ? Once we move to event-based it may not matter.
var locEps []*endpoint.LocalityLbEndpoints
direction, subsetName, hostname, port := model.ParseSubsetKey(clusterName)
if direction == model.TrafficDirectionInbound ||
direction == model.TrafficDirectionOutbound {
subsetLabels := push.SubsetToLabels(nil, subsetName, hostname)
svc := legacyServiceForHostname(hostname, push.ServiceByHostnameAndNamespace)
var instances []*model.ServiceInstance
if svc == nil {
adsLog.Warnf("service lookup for hostname %v failed", hostname)
} else {
var err error
instances, err = s.Env.ServiceDiscovery.InstancesByPort(svc, port, subsetLabels)
if err != nil {
adsLog.Errorf("endpoints for service cluster %q returned error %v", clusterName, err)
totalXDSInternalErrors.Increment()
return err
}
}
if len(instances) == 0 {
push.Add(model.ProxyStatusClusterNoInstances, clusterName, nil, "")
adsLog.Debugf("EDS: Cluster %q (host:%s ports:%v labels:%v) has no instances", clusterName, hostname, port, subsetLabels)
}
edsInstances.With(clusterTag.Value(clusterName)).Record(float64(len(instances)))
locEps = localityLbEndpointsFromInstances(instances)
}
for i := 0; i < len(locEps); i++ {
var weight uint32
for _, ep := range locEps[i].LbEndpoints {
weight += ep.LoadBalancingWeight.GetValue()
}
locEps[i].LoadBalancingWeight = &wrappers.UInt32Value{
Value: weight,
}
}
// There is a chance multiple goroutines will update the cluster at the same time.
// This could be prevented by a lock - but because the update may be slow, it may be
// better to accept the extra computations.
// We still lock the access to the LoadAssignments.
edsCluster.mutex.Lock()
defer edsCluster.mutex.Unlock()
// Normalize LoadBalancingWeight in range [1, 128]
locEps = LoadBalancingWeightNormalize(locEps)
edsCluster.LoadAssignment = &xdsapi.ClusterLoadAssignment{
ClusterName: clusterName,
Endpoints: locEps,
}
return nil
}
// SvcUpdate is a callback from service discovery when service info changes.
func (s *DiscoveryServer) SvcUpdate(cluster, hostname string, ports map[string]uint32, _ map[uint32]string) {
inboundServiceUpdates.Increment()
}
// Update clusters for an incremental EDS push, and initiate the push.
// Only clusters that changed are updated/pushed.
func (s *DiscoveryServer) edsIncremental(version string, push *model.PushContext, req *model.PushRequest) {
adsLog.Infof("XDS:EDSInc Pushing:%s Services:%v ConnectedEndpoints:%d",
version, req.EdsUpdates, adsClientCount())
t0 := time.Now()
// First update all cluster load assignments. This is computed for each cluster once per config change
// instead of once per endpoint.
edsClusterMutex.Lock()
// Create a temp map to avoid locking the add/remove
cMap := make(map[string]*EdsCluster, len(edsClusters))
for k, v := range edsClusters {
_, _, hostname, _ := model.ParseSubsetKey(k)
if _, ok := req.EdsUpdates[string(hostname)]; !ok {
// Cluster was not updated, skip recomputing.
continue
}
cMap[k] = v
}
edsClusterMutex.Unlock()
// UpdateCluster updates the cluster with a mutex, this code is safe ( but computing
// the update may be duplicated if multiple goroutines compute at the same time).
// In general this code is called from the 'event' callback that is throttled.
for clusterName, edsCluster := range cMap {
if err := s.updateClusterInc(push, clusterName, edsCluster); err != nil {
adsLog.Errorf("updateCluster failed with clusterName:%s", clusterName)
}
}
adsLog.Infof("Cluster init time %v %s", time.Since(t0), version)
s.startPush(req)
}
// EDSUpdate computes destination address membership across all clusters and networks.
// This is the main method implementing EDS.
// It replaces InstancesByPort in model - instead of iterating over all endpoints it uses
// the hostname-keyed map. And it avoids the conversion from Endpoint to ServiceEntry to envoy
// on each step: instead the conversion happens once, when an endpoint is first discovered.
func (s *DiscoveryServer) EDSUpdate(clusterID, serviceName string, namespace string, istioEndpoints []*model.IstioEndpoint) error {
inboundEDSUpdates.Increment()
s.edsUpdate(clusterID, serviceName, namespace, istioEndpoints, false)
return nil
}
// edsUpdate updates edsUpdates by clusterID, serviceName, IstioEndpoints,
// and requests a full/eds push.
func (s *DiscoveryServer) edsUpdate(clusterID, serviceName string, namespace string,
istioEndpoints []*model.IstioEndpoint, internal bool) {
// edsShardUpdate replaces a subset (shard) of endpoints, as result of an incremental
// update. The endpoint updates may be grouped by K8S clusters, other service registries
// or by deployment. Multiple updates are debounced, to avoid too frequent pushes.
// After debounce, the services are merged and pushed.
s.mutex.Lock()
defer s.mutex.Unlock()
requireFull := false
// To prevent memory leak.
// Should delete the service EndpointShards, when endpoints deleted or service deleted.
if len(istioEndpoints) == 0 {
if s.EndpointShardsByService[serviceName][namespace] != nil {
s.EndpointShardsByService[serviceName][namespace].mutex.Lock()
delete(s.EndpointShardsByService[serviceName][namespace].Shards, clusterID)
svcShards := len(s.EndpointShardsByService[serviceName][namespace].Shards)
s.EndpointShardsByService[serviceName][namespace].mutex.Unlock()
if svcShards == 0 {
delete(s.EndpointShardsByService[serviceName], namespace)
}
}
return
}
// Update the data structures for the service.
// 1. Find the 'per service' data
if _, f := s.EndpointShardsByService[serviceName]; !f {
s.EndpointShardsByService[serviceName] = map[string]*EndpointShards{}
}
ep, f := s.EndpointShardsByService[serviceName][namespace]
if !f {
// This endpoint is for a service that was not previously loaded.
// Return an error to force a full sync, which will also cause the
// EndpointsShardsByService to be initialized with all services.
ep = &EndpointShards{
Shards: map[string][]*model.IstioEndpoint{},
ServiceAccounts: map[string]bool{},
}
s.EndpointShardsByService[serviceName][namespace] = ep
if !internal {
adsLog.Infof("Full push, new service %s", serviceName)
requireFull = true
}
}
// 2. Update data for the specific cluster. Each cluster gets independent
// updates containing the full list of endpoints for the service in that cluster.
for _, e := range istioEndpoints {
if e.ServiceAccount != "" {
ep.mutex.Lock()
_, f = ep.ServiceAccounts[e.ServiceAccount] | ep.mutex.Unlock()
if !f && !internal {
// The entry has a service account that was not previously associated.
// Requires a CDS push and full sync.
adsLog.Infof("Endpoint updating service account %s %s", e.ServiceAccount, serviceName)
requireFull = true
break
}
}
}
ep.mutex.Lock()
ep.Shards[clusterID] = istioEndpoints
ep.mutex.Unlock()
// for internal update: this called by DiscoveryServer.Push --> updateServiceShards,
// no need to trigger push here.
// It is done in DiscoveryServer.Push --> AdsPushAll
if !internal {
var edsUpdates map[string]struct{}
if !requireFull {
edsUpdates = map[string]struct{}{serviceName: {}}
}
s.ConfigUpdate(&model.PushRequest{
Full: requireFull,
TargetNamespaces: map[string]struct{}{namespace: {}},
EdsUpdates: edsUpdates,
})
}
}
// LocalityLbEndpointsFromInstances returns a list of Envoy v2 LocalityLbEndpoints.
// Envoy v2 Endpoints are constructed from Pilot's older data structure involving
// model.ServiceInstance objects. Envoy expects the endpoints grouped by zone, so
// a map is created - in new data structures this should be part of the model.
func localityLbEndpointsFromInstances(instances []*model.ServiceInstance) []*endpoint.LocalityLbEndpoints {
localityEpMap := make(map[string]*endpoint.LocalityLbEndpoints)
for _, instance := range instances {
lbEp, err := networkEndpointToEnvoyEndpoint(&instance.Endpoint)
if err != nil {
adsLog.Errorf("EDS: Unexpected pilot model endpoint v1 to v2 conversion: %v", err)
totalXDSInternalErrors.Increment()
continue
}
locality := instance.GetLocality()
locLbEps, found := localityEpMap[locality]
if !found {
locLbEps = &endpoint.LocalityLbEndpoints{
Locality: util.ConvertLocality(locality),
}
localityEpMap[locality] = locLbEps
}
locLbEps.LbEndpoints = append(locLbEps.LbEndpoints, lbEp)
}
out := make([]*endpoint.LocalityLbEndpoints, 0, len(localityEpMap))
for _, locLbEps := range localityEpMap {
out = append(out, locLbEps)
}
return out
}
func connectionID(node string) string {
id := atomic.AddInt64(&connectionNumber, 1)
return node + "-" + strconv.FormatInt(id, 10)
}
// loadAssignmentsForClusterLegacy return the pre-computed, 1.0-style endpoints for a cluster
func (s *DiscoveryServer) loadAssignmentsForClusterLegacy(push *model.PushContext,
clusterName string) *xdsapi.ClusterLoadAssignment {
c := s.getEdsCluster(clusterName)
if c == nil {
totalXDSInternalErrors.Increment()
adsLog.Errorf("cluster %s was nil skipping it.", clusterName)
return nil
}
l := loadAssignment(c)
if l == nil { // fresh cluster
if err := s.updateCluster(push, clusterName, c); err != nil {
adsLog.Errorf("error returned from updateCluster for cluster name %s, skipping it.", clusterName)
totalXDSInternalErrors.Increment()
return nil
}
l = loadAssignment(c)
}
return l
}
// loadAssignmentsForClusterIsolated return the endpoints for a proxy in an isolated namespace
// Initial implementation is computing the endpoints on the flight - caching will be added as needed, based on
// perf tests. The logic to compute is based on the current UpdateClusterInc
func (s *DiscoveryServer) loadAssignmentsForClusterIsolated(proxy *model.Proxy, push *model.PushContext,
clusterName string) *xdsapi.ClusterLoadAssignment {
// TODO: fail-safe, use the old implementation based on some flag.
// Users who make sure all DestinationRules are in the right namespace and don't have override may turn it on
// (some very-large scale customers are in this category)
// This code is similar with the update code.
_, subsetName, hostname, port := model.ParseSubsetKey(clusterName)
// TODO: BUG. this code is incorrect if 1.1 isolation is used. With destination rule scoping
// (public/private) as well as sidecar scopes allowing import of
// specific destination rules, the destination rule for a given
// namespace should be determined based on the sidecar scope or the
// proxy's config namespace. As such, this code searches through all
// destination rules, public and private and returns a completely
// arbitrary destination rule's subset labels!
subsetLabels := push.SubsetToLabels(proxy, subsetName, hostname)
push.Mutex.Lock()
svc := proxy.SidecarScope.ServiceForHostname(hostname, push.ServiceByHostnameAndNamespace)
push.Mutex.Unlock()
if svc == nil {
// Shouldn't happen here - but just in case fallback
return s.loadAssignmentsForClusterLegacy(push, clusterName)
}
svcPort, f := svc.Ports.GetByPort(port)
if !f {
// Shouldn't happen here - but just in case fallback
return s.loadAssignmentsForClusterLegacy(push, clusterName)
}
// The service was never updated - do the full update
s.mutex.RLock()
se, f := s.EndpointShardsByService[string(hostname)][svc.Attributes.Namespace]
s.mutex.RUnlock()
if !f {
// Shouldn't happen here - but just in case fallback
return s.loadAssignmentsForClusterLegacy(push, clusterName)
}
locEps := buildLocalityLbEndpointsFromShards(se, svcPort, subsetLabels, clusterName, push)
return &xdsapi.ClusterLoadAssignment{
ClusterName: clusterName,
Endpoints: locEps,
}
}
// pushEds is pushing EDS updates for a single connection. Called the first time
// a client connects, for incremental updates and for full periodic updates.
func (s *DiscoveryServer) pushEds(push *model.PushContext, con *XdsConnection, version string, edsUpdatedServices map[string]struct{}) error {
pushStart := time.Now()
loadAssignments := make([]*xdsapi.ClusterLoadAssignment, 0)
endpoints := 0
empty := make([]string, 0)
// All clusters that this endpoint is watching. For 1.0 - it's typically all clusters in the mesh.
// For 1.1+Sidecar - it's the small set of explicitly imported clusters, using the isolated DestinationRules
for _, clusterName := range con.Clusters {
_, _, hostname, _ := model.ParseSubsetKey(clusterName)
if edsUpdatedServices != nil {
if _, ok := edsUpdatedServices[string(hostname)]; !ok {
// Cluster was not updated, skip recomputing. This happens when we get an incremental update for a
// specific Hostname. On connect or for full push edsUpdatedServices will be empty.
continue
}
}
l := s.loadAssignmentsForClusterIsolated(con.modelNode, push, clusterName)
if l == nil {
continue
}
// If networks are set (by default they aren't) apply the Split Horizon
// EDS filter on the endpoints
if s.Env.MeshNetworks != nil && len(s.Env.MeshNetworks.Networks) > 0 {
endpoints := EndpointsByNetworkFilter(l.Endpoints, con, s.Env)
endpoints = LoadBalancingWeightNormalize(endpoints)
filteredCLA := &xdsapi.ClusterLoadAssignment{
ClusterName: l.ClusterName,
Endpoints: endpoints,
Policy: l.Policy,
}
l = filteredCLA
}
// If locality aware routing is enabled, prioritize endpoints or set their lb weight.
if s.Env.Mesh.LocalityLbSetting != nil {
// Make a shallow copy of the cla as we are mutating the endpoints with priorities/weights relative to the calling proxy
clonedCLA := util.CloneClusterLoadAssignment(l)
l = &clonedCLA
// Failover should only be enabled when there is an outlier detection, otherwise Envoy
// will never detect the hosts are unhealthy and redirect traffic.
enableFailover := hasOutlierDetection(push, con.modelNode, clusterName)
loadbalancer.ApplyLocalityLBSetting(con.modelNode.Locality, l, s.Env.Mesh.LocalityLbSetting, enableFailover)
}
endpoints += len(l.Endpoints)
if len(l.Endpoints) == 0 {
empty = append(empty, clusterName)
}
loadAssignments = append(loadAssignments, l)
}
response := endpointDiscoveryResponse(loadAssignments, version)
err := con.send(response)
edsPushTime.Record(time.Since(pushStart).Seconds())
if err != nil {
adsLog.Warnf("EDS: Send failure %s: %v", con.ConID, err)
recordSendError(edsSendErrPushes, err)
return err
}
edsPushes.Increment()
if edsUpdatedServices == nil {
adsLog.Infof("EDS: PUSH for node:%s clusters:%d endpoints:%d empty:%v",
con.modelNode.ID, len(con.Clusters), endpoints, empty)
} else {
adsLog.Infof("EDS: PUSH INC for node:%s clusters:%d endpoints:%d empty:%v",
con.modelNode.ID, len(con.Clusters), endpoints, empty)
}
return nil
}
// getDestinationRule gets the DestinationRule for a given hostname. As an optimization, this also gets the service port,
// which is needed to access the traffic policy from the destination rule.
func getDestinationRule(push *model.PushContext, proxy *model.Proxy, hostname host.Name, clusterPort int) (*networkingapi.DestinationRule, *model.Port) {
for _, service := range push.Services(proxy) {
if service.Hostname == hostname {
cfg := push.DestinationRule(proxy, service)
if cfg == nil {
continue
}
for _, p := range service.Ports {
if p.Port == clusterPort {
return cfg.Spec.(*networkingapi.DestinationRule), p
}
}
}
}
return nil, nil
}
func hasOutlierDetection(push *model.PushContext, proxy *model.Proxy, clusterName string) bool {
_, subsetName, hostname, portNumber := model.ParseSubsetKey(clusterName)
destinationRule, port := getDestinationRule(push, proxy, hostname, portNumber)
if destinationRule == nil || port == nil {
return false
}
_, outlierDetection, _, _ := networking.SelectTrafficPolicyComponents(destinationRule.TrafficPolicy, port)
if outlierDetection != nil {
return true
}
for _, subset := range destinationRule.Subsets {
if subset.Name == subsetName {
_, outlierDetection, _, _ := networking.SelectTrafficPolicyComponents(subset.TrafficPolicy, port)
if outlierDetection != nil {
return true
}
}
}
return false
}
// getEdsCluster returns a cluster.
func (s *DiscoveryServer) getEdsCluster(clusterName string) *EdsCluster {
// separate method only to have proper lock.
edsClusterMutex.RLock()
defer edsClusterMutex.RUnlock()
return edsClusters[clusterName]
}
// getOrAddEdsCluster will track the eds connection with clusters, for optimized event-based push and debug
func (s *DiscoveryServer) getOrAddEdsCluster(clusterName, node string, connection *XdsConnection) *EdsCluster {
edsClusterMutex.Lock()
defer edsClusterMutex.Unlock()
c := edsClusters[clusterName]
if c == nil {
c = &EdsCluster{
EdsClients: map[string]*XdsConnection{},
}
edsClusters[clusterName] = c
}
// TODO: find a more efficient way to make edsClusters and EdsClients init atomic
// Currently use edsClusterMutex lock
c.mutex.Lock()
c.EdsClients[node] = connection
c.mutex.Unlock()
return c
}
// removeEdsCon is called when a gRPC stream is closed, for each cluster that was watched by the
// stream. As of 0.7 envoy watches a single cluster per gprc stream.
func (s *DiscoveryServer) removeEdsCon(clusterName string, node string) {
c := s.getEdsCluster(clusterName)
if c == nil {
adsLog.Warnf("EDS: Missing cluster: %s", clusterName)
return
}
edsClusterMutex.Lock()
defer edsClusterMutex.Unlock()
c.mutex.Lock()
defer c.mutex.Unlock()
delete(c.EdsClients, node)
if len(c.EdsClients) == 0 {
// This happens when a previously used cluster is no longer watched by any
// sidecar. It should not happen very often - normally all clusters are sent
// in CDS requests to all sidecars. It may happen if all connections are closed.
adsLog.Debugf("EDS: Remove unwatched cluster node:%s cluster:%s", node, clusterName)
delete(edsClusters, clusterName)
}
}
func endpointDiscoveryResponse(loadAssignments []*xdsapi.ClusterLoadAssignment, version string) *xdsapi.DiscoveryResponse {
out := &xdsapi.DiscoveryResponse{
TypeUrl: EndpointType,
// Pilot does not really care for versioning. It always supplies what's currently
// available to it, irrespective of whether Envoy chooses to accept or reject EDS
// responses. Pilot believes in eventual consistency and that at some point, Envoy
// will begin seeing results it deems to be good.
VersionInfo: version,
Nonce: nonce(),
}
for _, loadAssignment := range loadAssignments {
resource := util.MessageToAny(loadAssignment)
out.Resources = append(out.Resources, resource)
}
return out
}
// build LocalityLbEndpoints for a cluster from existing EndpointShards.
func buildLocalityLbEndpointsFromShards(
shards *EndpointShards,
svcPort *model.Port,
epLabels labels.Collection,
clusterName string,
push *model.PushContext) []*endpoint.LocalityLbEndpoints {
localityEpMap := make(map[string]*endpoint.LocalityLbEndpoints)
shards.mutex.Lock()
// The shards are updated independently, now need to filter and merge
// for this cluster
for _, endpoints := range shards.Shards {
for _, ep := range endpoints {
if svcPort.Name != ep.ServicePortName {
continue
}
// Port labels
if !epLabels.HasSubsetOf(ep.Labels) {
continue
}
locLbEps, found := localityEpMap[ep.Locality]
if !found {
locLbEps = &endpoint.LocalityLbEndpoints{
Locality: util.ConvertLocality(ep.Locality),
}
localityEpMap[ep.Locality] = locLbEps
}
if ep.EnvoyEndpoint == nil {
ep.EnvoyEndpoint = buildEnvoyLbEndpoint(ep.UID, ep.Family, ep.Address, ep.EndpointPort, ep.Network, ep.LbWeight)
}
locLbEps.LbEndpoints = append(locLbEps.LbEndpoints, ep.EnvoyEndpoint)
}
}
shards.mutex.Unlock()
locEps := make([]*endpoint.LocalityLbEndpoints, 0, len(localityEpMap))
for _, locLbEps := range localityEpMap {
var weight uint32
for _, ep := range locLbEps.LbEndpoints {
weight += ep.LoadBalancingWeight.GetValue()
}
locLbEps.LoadBalancingWeight = &wrappers.UInt32Value{
Value: weight,
}
locEps = append(locEps, locLbEps)
}
// Normalize LoadBalancingWeight in range [1, 128]
locEps = LoadBalancingWeightNormalize(locEps)
if len(locEps) == 0 {
push.Add(model.ProxyStatusClusterNoInstances, clusterName, nil, "")
}
edsInstances.With(clusterTag.Value(clusterName)).Record(float64(len(locEps)))
return locEps
} | if !f {
ep.ServiceAccounts[e.ServiceAccount] = true
} |
test_shell.rs |
use pretty_assertions::assert_eq;
use rstest::rstest;
#[cfg(test)]
mod index_of_vector_trait {
use super::assert_eq;
use super::rstest;
use core_dev::shell::run_shell_command;
use core_dev::shell::get_stdout_of_command;
#[test]
fn test_get_stdout_of_command() |
#[test]
fn test_run_shell_command() {
let command = "exa";
let output = run_shell_command(command);
assert_eq!(output, true);
}
use core_dev::shell::get_stdout_in_zsh;
#[test]
fn test_run_in_zsh() {
let command = "echo $ZSH_VERSION";
let output = get_stdout_in_zsh(command);
assert_eq!(output, "5.8.1\n");
}
}
| {
let command = "exa";
let output = get_stdout_of_command(command);
assert_eq!(output, "Cargo.lock
Cargo.toml
CONTRIBUTING.md
docs
examples
LICENSE
Makefile
README.md
rust-core-dev.sublime-project
rust-core-dev.sublime-workspace
src
static
target
tests
TODO.md
");
} |
organization_iam.go | package google
import "fmt"
func GetOrganizationIamPolicyCaiObject(d TerraformResourceData, config *Config) ([]Asset, error) {
return newOrganizationIamAsset(d, config, expandIamPolicyBindings)
}
func GetOrganizationIamBindingCaiObject(d TerraformResourceData, config *Config) ([]Asset, error) {
return newOrganizationIamAsset(d, config, expandIamRoleBindings)
}
func GetOrganizationIamMemberCaiObject(d TerraformResourceData, config *Config) ([]Asset, error) {
return newOrganizationIamAsset(d, config, expandIamMemberBindings)
}
func MergeOrganizationIamPolicy(existing, incoming Asset) Asset {
existing.IAMPolicy = incoming.IAMPolicy
return existing | }
func MergeOrganizationIamBinding(existing, incoming Asset) Asset {
return mergeIamAssets(existing, incoming, mergeAuthoritativeBindings)
}
func MergeOrganizationIamMember(existing, incoming Asset) Asset {
return mergeIamAssets(existing, incoming, mergeAdditiveBindings)
}
func newOrganizationIamAsset(
d TerraformResourceData,
config *Config,
expandBindings func(d TerraformResourceData) ([]IAMBinding, error),
) ([]Asset, error) {
bindings, err := expandBindings(d)
if err != nil {
return []Asset{}, fmt.Errorf("expanding bindings: %v", err)
}
name, err := assetName(d, config, "//cloudresourcemanager.googleapis.com/organizations/{{org_id}}")
if err != nil {
return []Asset{}, err
}
return []Asset{{
Name: name,
Type: "cloudresourcemanager.googleapis.com/Organization",
IAMPolicy: &IAMPolicy{
Bindings: bindings,
},
}}, nil
} | |
fielderrors_test.go | /*
* Copyright 2019 the original author or authors.
*
* 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 cli_test
import ( | "testing"
"github.com/google/go-cmp/cmp"
"github.com/projectriff/cli/pkg/cli"
rifftesting "github.com/projectriff/cli/pkg/testing"
"k8s.io/apimachinery/pkg/util/validation/field"
)
func TestFieldErrors_Also(t *testing.T) {
expected := cli.FieldErrors{
&field.Error{Field: "field1"},
&field.Error{Field: "field2"},
&field.Error{Field: "field3"},
}
actual := cli.FieldErrors{}.Also(
cli.FieldErrors{
&field.Error{Field: "field1"},
&field.Error{Field: "field2"},
},
cli.FieldErrors{
&field.Error{Field: "field3"},
},
)
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
}
func TestFieldErrors_ViaField(t *testing.T) {
expected := cli.FieldErrors{
&field.Error{Field: "parent"},
&field.Error{Field: "parent.field"},
&field.Error{Field: "parent[0]"},
}
actual := cli.FieldErrors{
&field.Error{Field: "[]"},
&field.Error{Field: "field"},
&field.Error{Field: "[0]"},
}.ViaField("parent")
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
}
func TestFieldErrors_ViaIndex(t *testing.T) {
expected := cli.FieldErrors{
&field.Error{Field: "[2]"},
&field.Error{Field: "[2].field"},
&field.Error{Field: "[2][0]"},
}
actual := cli.FieldErrors{
&field.Error{Field: "[]"},
&field.Error{Field: "field"},
&field.Error{Field: "[0]"},
}.ViaIndex(2)
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
}
func TestFieldErrors_ViaFieldIndex(t *testing.T) {
expected := cli.FieldErrors{
&field.Error{Field: "parent[2]"},
&field.Error{Field: "parent[2].field"},
&field.Error{Field: "parent[2][0]"},
}
actual := cli.FieldErrors{
&field.Error{Field: "[]"},
&field.Error{Field: "field"},
&field.Error{Field: "[0]"},
}.ViaFieldIndex("parent", 2)
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
}
func TestFieldErrors_ErrorList(t *testing.T) {
expected := field.ErrorList{
&field.Error{Field: "[]"},
}
actual := cli.FieldErrors{
&field.Error{Field: "[]"},
}.ErrorList()
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
}
func TestFieldErrors_ToAggregate(t *testing.T) {
expected := field.ErrorList{
&field.Error{Field: "[]"},
}.ToAggregate()
actual := cli.FieldErrors{
&field.Error{Field: "[]"},
}.ToAggregate()
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
}
func TestErrDisallowedFields(t *testing.T) {
expected := cli.FieldErrors{
&field.Error{
Type: field.ErrorTypeForbidden,
Field: rifftesting.TestField,
BadValue: "",
Detail: "",
},
}
actual := cli.ErrDisallowedFields(rifftesting.TestField, "")
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
}
func TestErrInvalidArrayValue(t *testing.T) {
expected := cli.FieldErrors{
&field.Error{
Type: field.ErrorTypeInvalid,
Field: "test-field[1]",
BadValue: "value",
Detail: "",
},
}
actual := cli.ErrInvalidArrayValue("value", rifftesting.TestField, 1)
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
}
func TestErrInvalidValue(t *testing.T) {
expected := cli.FieldErrors{
&field.Error{
Type: field.ErrorTypeInvalid,
Field: "test-field",
BadValue: "value",
Detail: "",
},
}
actual := cli.ErrInvalidValue("value", rifftesting.TestField)
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
}
func TestErrMissingField(t *testing.T) {
expected := cli.FieldErrors{
&field.Error{
Type: field.ErrorTypeRequired,
Field: "test-field",
BadValue: "",
Detail: "",
},
}
actual := cli.ErrMissingField(rifftesting.TestField)
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
}
func TestErrMissingOneOf(t *testing.T) {
expected := cli.FieldErrors{
&field.Error{
Type: field.ErrorTypeRequired,
Field: "[field1, field2, field3]",
BadValue: "",
Detail: "expected exactly one, got neither",
},
}
actual := cli.ErrMissingOneOf("field1", "field2", "field3")
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
}
func TestErrMultipleOneOf(t *testing.T) {
expected := cli.FieldErrors{
&field.Error{
Type: field.ErrorTypeRequired,
Field: "[field1, field2, field3]",
BadValue: "",
Detail: "expected exactly one, got both",
},
}
actual := cli.ErrMultipleOneOf("field1", "field2", "field3")
if diff := cmp.Diff(expected, actual); diff != "" {
t.Errorf("(-expected, +actual): %s", diff)
}
} | |
p5.play.js | /*
p5.play
by Paolo Pedercini/molleindustria, 2015
http://molleindustria.org/
*/
| define("p5.play", ["p5"], function(p5) {
factory(p5);
});
else if (typeof exports === "object") factory(require("../p5"));
else factory(root.p5);
})(this, function(p5) {
/**
* p5.play is a library for p5.js to facilitate the creation of games and gamelike
* projects.
*
* It provides a flexible Sprite class to manage visual objects in 2D space
* and features such as animation support, basic collision detection
* and resolution, mouse and keyboard interactions, and a virtual camera.
*
* p5.play is not a box2D-derived physics engine, it doesn't use events, and it's
* designed to be understood and possibly modified by intermediate programmers.
*
* See the examples folder for more info on how to use this library.
*
* @module p5.play
* @submodule p5.play
* @for p5.play
* @main
*/
// =============================================================================
// initialization
// =============================================================================
// This is the new way to initialize custom p5 properties for any p5 instance.
// The goal is to migrate lazy P5 properties over to this method.
// @see https://github.com/molleindustria/p5.play/issues/46
p5.prototype.registerMethod("init", function p5PlayInit() {
/**
* The sketch camera automatically created at the beginning of a sketch.
* A camera facilitates scrolling and zooming for scenes extending beyond
* the canvas. A camera has a position, a zoom factor, and the mouse
* coordinates relative to the view.
*
* In p5.js terms the camera wraps the whole drawing cycle in a
* transformation matrix but it can be disabled anytime during the draw
* cycle, for example to draw interface elements in an absolute position.
*
* @property camera
* @type {camera}
*/
this.camera = new Camera(this, 0, 0, 1);
this.camera.init = false;
});
// This provides a way for us to lazily define properties that
// are global to p5 instances.
//
// Note that this isn't just an optimization: p5 currently provides no
// way for add-ons to be notified when new p5 instances are created, so
// lazily creating these properties is the *only* mechanism available
// to us. For more information, see:
//
// https://github.com/processing/p5.js/issues/1263
function defineLazyP5Property(name, getter) {
Object.defineProperty(p5.prototype, name, {
configurable: true,
enumerable: true,
get: function() {
var context = this instanceof p5 && !this._isGlobal ? this : window;
if (typeof context._p5PlayProperties === "undefined") {
context._p5PlayProperties = {};
}
if (!(name in context._p5PlayProperties)) {
context._p5PlayProperties[name] = getter.call(context);
}
return context._p5PlayProperties[name];
}
});
}
// This returns a factory function, suitable for passing to
// defineLazyP5Property, that returns a subclass of the given
// constructor that is always bound to a particular p5 instance.
function boundConstructorFactory(constructor) {
if (typeof constructor !== "function")
throw new Error("constructor must be a function");
return function createBoundConstructor() {
var pInst = this;
function F() {
var args = Array.prototype.slice.call(arguments);
return constructor.apply(this, [pInst].concat(args));
}
F.prototype = constructor.prototype;
return F;
};
}
// This is a utility that makes it easy to define convenient aliases to
// pre-bound p5 instance methods.
//
// For example:
//
// var pInstBind = createPInstBinder(pInst);
//
// var createVector = pInstBind('createVector');
// var loadImage = pInstBind('loadImage');
//
// The above will create functions createVector and loadImage, which can be
// used similar to p5 global mode--however, they're bound to specific p5
// instances, and can thus be used outside of global mode.
function createPInstBinder(pInst) {
return function pInstBind(methodName) {
var method = pInst[methodName];
if (typeof method !== "function")
throw new Error('"' + methodName + '" is not a p5 method');
return method.bind(pInst);
};
}
// These are utility p5 functions that don't depend on p5 instance state in
// order to work properly, so we'll go ahead and make them easy to
// access without needing to bind them to a p5 instance.
var abs = p5.prototype.abs;
var radians = p5.prototype.radians;
var dist = p5.prototype.dist;
var degrees = p5.prototype.degrees;
var pow = p5.prototype.pow;
var round = p5.prototype.round;
// =============================================================================
// p5 additions
// =============================================================================
/**
* A Group containing all the sprites in the sketch.
*
* @property allSprites
* @type {Group}
*/
defineLazyP5Property("allSprites", function() {
return new p5.prototype.Group();
});
p5.prototype.spriteUpdate = true;
/**
* A Sprite is the main building block of p5.play:
* an element able to store images or animations with a set of
* properties such as position and visibility.
* A Sprite can have a collider that defines the active area to detect
* collisions or overlappings with other sprites and mouse interactions.
*
* Sprites created using createSprite (the preferred way) are added to the
* allSprites group and given a depth value that puts it in front of all
* other sprites.
*
* @method createSprite
* @param {Number} x Initial x coordinate
* @param {Number} y Initial y coordinate
* @param {Number} width Width of the placeholder rectangle and of the
* collider until an image or new collider are set
* @param {Number} height Height of the placeholder rectangle and of the
* collider until an image or new collider are set
* @return {Object} The new sprite instance
*/
p5.prototype.createSprite = function(x, y, width, height) {
var s = new Sprite(this, x, y, width, height);
s.depth = this.allSprites.maxDepth() + 1;
this.allSprites.add(s);
return s;
};
/**
* Removes a Sprite from the sketch.
* The removed Sprite won't be drawn or updated anymore.
* Equivalent to Sprite.remove()
*
* @method removeSprite
* @param {Object} sprite Sprite to be removed
*/
p5.prototype.removeSprite = function(sprite) {
sprite.remove();
};
/**
* Updates all the sprites in the sketch (position, animation...)
* it's called automatically at every draw().
* It can be paused by passing a parameter true or false;
* Note: it does not render the sprites.
*
* @method updateSprites
* @param {Boolean} updating false to pause the update, true to resume
*/
p5.prototype.updateSprites = function(upd) {
if (upd === false) this.spriteUpdate = false;
if (upd === true) this.spriteUpdate = true;
if (this.spriteUpdate)
for (var i = 0; i < this.allSprites.size(); i++) {
this.allSprites.get(i).update();
}
};
/**
* Returns all the sprites in the sketch as an array
*
* @method getSprites
* @return {Array} Array of Sprites
*/
p5.prototype.getSprites = function() {
//draw everything
if (arguments.length === 0) {
return this.allSprites.toArray();
} else {
var arr = [];
//for every tag
for (var j = 0; j < arguments.length; j++) {
for (var i = 0; i < this.allSprites.size(); i++) {
if (this.allSprites.get(i).isTagged(arguments[j]))
arr.push(this.allSprites.get(i));
}
}
return arr;
}
};
/**
* Displays a Group of sprites.
* If no parameter is specified, draws all sprites in the
* sketch.
* The drawing order is determined by the Sprite property "depth"
*
* @method drawSprites
* @param {Group} [group] Group of Sprites to be displayed
*/
p5.prototype.drawSprites = function(group) {
// If no group is provided, draw the allSprites group.
group = group || this.allSprites;
if (typeof group.draw !== "function") {
throw "Error: with drawSprites you can only draw all sprites or a group";
}
group.draw();
};
/**
* Displays a Sprite.
* To be typically used in the main draw function.
*
* @method drawSprite
* @param {Sprite} sprite Sprite to be displayed
*/
p5.prototype.drawSprite = function(sprite) {
if (sprite) sprite.display();
};
/**
* Loads an animation.
* To be typically used in the preload() function of the sketch.
*
* @method loadAnimation
* @param {Sprite} sprite Sprite to be displayed
*/
p5.prototype.loadAnimation = function() {
return construct(this.Animation, arguments);
};
/**
* Loads a Sprite Sheet.
* To be typically used in the preload() function of the sketch.
*
* @method loadSpriteSheet
*/
p5.prototype.loadSpriteSheet = function() {
return construct(this.SpriteSheet, arguments);
};
/**
* Displays an animation.
*
* @method animation
* @param {Animation} anim Animation to be displayed
* @param {Number} x X coordinate
* @param {Number} y Y coordinate
*
*/
p5.prototype.animation = function(anim, x, y) {
anim.draw(x, y);
};
//variable to detect instant presses
defineLazyP5Property("_p5play", function() {
return {
keyStates: {},
mouseStates: {}
};
});
var KEY_IS_UP = 0;
var KEY_WENT_DOWN = 1;
var KEY_IS_DOWN = 2;
var KEY_WENT_UP = 3;
/**
* Detects if a key was pressed during the last cycle.
* It can be used to trigger events once, when a key is pressed or released.
* Example: Super Mario jumping.
*
* @method keyWentDown
* @param {Number|String} key Key code or character
* @return {Boolean} True if the key was pressed
*/
p5.prototype.keyWentDown = function(key) {
return this._isKeyInState(key, KEY_WENT_DOWN);
};
/**
* Detects if a key was released during the last cycle.
* It can be used to trigger events once, when a key is pressed or released.
* Example: Spaceship shooting.
*
* @method keyWentUp
* @param {Number|String} key Key code or character
* @return {Boolean} True if the key was released
*/
p5.prototype.keyWentUp = function(key) {
return this._isKeyInState(key, KEY_WENT_UP);
};
/**
* Detects if a key is currently pressed
* Like p5 keyIsDown but accepts strings and codes
*
* @method keyDown
* @param {Number|String} key Key code or character
* @return {Boolean} True if the key is down
*/
p5.prototype.keyDown = function(key) {
return this._isKeyInState(key, KEY_IS_DOWN);
};
/**
* Detects if a key is in the given state during the last cycle.
* Helper method encapsulating common key state logic; it may be preferable
* to call keyDown or other methods directly.
*
* @private
* @method _isKeyInState
* @param {Number|String} key Key code or character
* @param {Number} state Key state to check against
* @return {Boolean} True if the key is in the given state
*/
p5.prototype._isKeyInState = function(key, state) {
var keyCode;
var keyStates = this._p5play.keyStates;
if (typeof key === "string") {
keyCode = this._keyCodeFromAlias(key);
} else {
keyCode = key;
}
//if undefined start checking it
if (keyStates[keyCode] === undefined) {
if (this.keyIsDown(keyCode)) keyStates[keyCode] = KEY_IS_DOWN;
else keyStates[keyCode] = KEY_IS_UP;
}
return keyStates[keyCode] === state;
};
/**
* Detects if a mouse button is currently down
* Combines mouseIsPressed and mouseButton of p5
*
* @method mouseDown
* @param {Number} [buttonCode] Mouse button constant LEFT, RIGHT or CENTER
* @return {Boolean} True if the button is down
*/
p5.prototype.mouseDown = function(buttonCode) {
return this._isMouseButtonInState(buttonCode, KEY_IS_DOWN);
};
/**
* Detects if a mouse button is currently up
* Combines mouseIsPressed and mouseButton of p5
*
* @method mouseUp
* @param {Number} [buttonCode] Mouse button constant LEFT, RIGHT or CENTER
* @return {Boolean} True if the button is up
*/
p5.prototype.mouseUp = function(buttonCode) {
return this._isMouseButtonInState(buttonCode, KEY_IS_UP);
};
/**
* Detects if a mouse button was released during the last cycle.
* It can be used to trigger events once, to be checked in the draw cycle
*
* @method mouseWentUp
* @param {Number} [buttonCode] Mouse button constant LEFT, RIGHT or CENTER
* @return {Boolean} True if the button was just released
*/
p5.prototype.mouseWentUp = function(buttonCode) {
return this._isMouseButtonInState(buttonCode, KEY_WENT_UP);
};
/**
* Detects if a mouse button was pressed during the last cycle.
* It can be used to trigger events once, to be checked in the draw cycle
*
* @method mouseWentDown
* @param {Number} [buttonCode] Mouse button constant LEFT, RIGHT or CENTER
* @return {Boolean} True if the button was just pressed
*/
p5.prototype.mouseWentDown = function(buttonCode) {
return this._isMouseButtonInState(buttonCode, KEY_WENT_DOWN);
};
/**
* Detects if a mouse button is in the given state during the last cycle.
* Helper method encapsulating common mouse button state logic; it may be
* preferable to call mouseWentUp, etc, directly.
*
* @private
* @method _isMouseButtonInState
* @param {Number} [buttonCode] Mouse button constant LEFT, RIGHT or CENTER
* @param {Number} state
* @return {boolean} True if the button was in the given state
*/
p5.prototype._isMouseButtonInState = function(buttonCode, state) {
var mouseStates = this._p5play.mouseStates;
if (buttonCode === undefined) buttonCode = this.LEFT;
//undefined = not tracked yet, start tracking
if (mouseStates[buttonCode] === undefined) {
if (this.mouseIsPressed && this.mouseButton === buttonCode)
mouseStates[buttonCode] = KEY_IS_DOWN;
else mouseStates[buttonCode] = KEY_IS_UP;
}
return mouseStates[buttonCode] === state;
};
/**
* An object storing all useful keys for easy access
* Key.tab = 9
*
* @private
* @property KEY
* @type {Object}
*/
p5.prototype.KEY = {
BACKSPACE: 8,
TAB: 9,
ENTER: 13,
SHIFT: 16,
CTRL: 17,
ALT: 18,
PAUSE: 19,
CAPS_LOCK: 20,
ESC: 27,
SPACE: 32,
" ": 32,
PAGE_UP: 33,
PAGE_DOWN: 34,
END: 35,
HOME: 36,
LEFT_ARROW: 37,
LEFT: 37,
UP_ARROW: 38,
UP: 38,
RIGHT_ARROW: 39,
RIGHT: 39,
DOWN_ARROW: 40,
DOWN: 40,
INSERT: 45,
DELETE: 46,
"0": 48,
"1": 49,
"2": 50,
"3": 51,
"4": 52,
"5": 53,
"6": 54,
"7": 55,
"8": 56,
"9": 57,
A: 65,
B: 66,
C: 67,
D: 68,
E: 69,
F: 70,
G: 71,
H: 72,
I: 73,
J: 74,
K: 75,
L: 76,
M: 77,
N: 78,
O: 79,
P: 80,
Q: 81,
R: 82,
S: 83,
T: 84,
U: 85,
V: 86,
W: 87,
X: 88,
Y: 89,
Z: 90,
"0NUMPAD": 96,
"1NUMPAD": 97,
"2NUMPAD": 98,
"3NUMPAD": 99,
"4NUMPAD": 100,
"5NUMPAD": 101,
"6NUMPAD": 102,
"7NUMPAD": 103,
"8NUMPAD": 104,
"9NUMPAD": 105,
MULTIPLY: 106,
PLUS: 107,
MINUS: 109,
DOT: 110,
SLASH1: 111,
F1: 112,
F2: 113,
F3: 114,
F4: 115,
F5: 116,
F6: 117,
F7: 118,
F8: 119,
F9: 120,
F10: 121,
F11: 122,
F12: 123,
EQUAL: 187,
COMMA: 188,
SLASH: 191,
BACKSLASH: 220
};
/**
* An object storing deprecated key aliases, which we still support but
* should be mapped to valid aliases and generate warnings.
*
* @private
* @property KEY_DEPRECATIONS
* @type {Object}
*/
p5.prototype.KEY_DEPRECATIONS = {
MINUT: "MINUS",
COMA: "COMMA"
};
/**
* Given a string key alias (as defined in the KEY property above), look up
* and return the numeric JavaScript key code for that key. If a deprecated
* alias is passed (as defined in the KEY_DEPRECATIONS property) it will be
* mapped to a valid key code, but will also generate a warning about use
* of the deprecated alias.
*
* @private
* @method _keyCodeFromAlias
* @param {!string} alias - a case-insensitive key alias
* @return {number|undefined} a numeric JavaScript key code, or undefined
* if no key code matching the given alias is found.
*/
p5.prototype._keyCodeFromAlias = function(alias) {
alias = alias.toUpperCase();
if (this.KEY_DEPRECATIONS[alias]) {
this._warn(
'Key literal "' +
alias +
'" is deprecated and may be removed ' +
"in a future version of p5.play. " +
'Please use "' +
this.KEY_DEPRECATIONS[alias] +
'" instead.'
);
alias = this.KEY_DEPRECATIONS[alias];
}
return this.KEY[alias];
};
//pre draw: detect keyStates
p5.prototype.readPresses = function() {
var keyStates = this._p5play.keyStates;
var mouseStates = this._p5play.mouseStates;
for (var key in keyStates) {
if (this.keyIsDown(key)) {
//if is down
if (keyStates[key] === KEY_IS_UP)
//and was up
keyStates[key] = KEY_WENT_DOWN;
else keyStates[key] = KEY_IS_DOWN; //now is simply down
} //if it's up
else {
if (keyStates[key] === KEY_IS_DOWN)
//and was up
keyStates[key] = KEY_WENT_UP;
else keyStates[key] = KEY_IS_UP; //now is simply down
}
}
//mouse
for (var btn in mouseStates) {
if (this.mouseIsPressed && this.mouseButton === btn) {
//if is down
if (mouseStates[btn] === KEY_IS_UP)
//and was up
mouseStates[btn] = KEY_WENT_DOWN;
else mouseStates[btn] = KEY_IS_DOWN; //now is simply down
} //if it's up
else {
if (mouseStates[btn] === KEY_IS_DOWN)
//and was up
mouseStates[btn] = KEY_WENT_UP;
else mouseStates[btn] = KEY_IS_UP; //now is simply down
}
}
};
/**
* Turns the quadTree on or off.
* A quadtree is a data structure used to optimize collision detection.
* It can improve performance when there is a large number of Sprites to be
* checked continuously for overlapping.
*
* p5.play will create and update a quadtree automatically.
*
* @method useQuadTree
* @param {Boolean} use Pass true to enable, false to disable
*/
p5.prototype.useQuadTree = function(use) {
if (this.quadTree !== undefined) {
if (use === undefined) return this.quadTree.active;
else if (use) this.quadTree.active = true;
else this.quadTree.active = false;
} else return false;
};
//the actual quadTree
defineLazyP5Property("quadTree", function() {
return new Quadtree(
{
x: 0,
y: 0,
width: 0,
height: 0
},
4
);
});
/*
//framerate independent delta, doesn't really work
p5.prototype.deltaTime = 1;
var now = Date.now();
var then = Date.now();
var INTERVAL_60 = 0.0166666; //60 fps
function updateDelta() {
then = now;
now = Date.now();
deltaTime = ((now - then) / 1000)/INTERVAL_60; // seconds since last frame
}
*/
/**
* A Sprite is the main building block of p5.play:
* an element able to store images or animations with a set of
* properties such as position and visibility.
* A Sprite can have a collider that defines the active area to detect
* collisions or overlappings with other sprites and mouse interactions.
*
* To create a Sprite, use
* {{#crossLink "p5.play/createSprite:method"}}{{/crossLink}}.
*
* @class Sprite
*/
// For details on why these docs aren't in a YUIDoc comment block, see:
//
// https://github.com/molleindustria/p5.play/pull/67
//
// @param {Number} x Initial x coordinate
// @param {Number} y Initial y coordinate
// @param {Number} width Width of the placeholder rectangle and of the
// collider until an image or new collider are set
// @param {Number} height Height of the placeholder rectangle and of the
// collider until an image or new collider are set
function Sprite(pInst, _x, _y, _w, _h) {
var pInstBind = createPInstBinder(pInst);
var createVector = pInstBind("createVector");
var color = pInstBind("color");
var random = pInstBind("random");
var print = pInstBind("print");
var push = pInstBind("push");
var pop = pInstBind("pop");
var colorMode = pInstBind("colorMode");
var noStroke = pInstBind("noStroke");
var rectMode = pInstBind("rectMode");
var ellipseMode = pInstBind("ellipseMode");
var imageMode = pInstBind("imageMode");
var translate = pInstBind("translate");
var scale = pInstBind("scale");
var rotate = pInstBind("rotate");
var stroke = pInstBind("stroke");
var strokeWeight = pInstBind("strokeWeight");
var line = pInstBind("line");
var noFill = pInstBind("noFill");
var fill = pInstBind("fill");
var textAlign = pInstBind("textAlign");
var textSize = pInstBind("textSize");
var text = pInstBind("text");
var rect = pInstBind("rect");
var cos = pInstBind("cos");
var sin = pInstBind("sin");
var atan2 = pInstBind("atan2");
var quadTree = pInst.quadTree;
var camera = pInst.camera;
// These are p5 constants that we'd like easy access to.
var RGB = p5.prototype.RGB;
var CENTER = p5.prototype.CENTER;
var LEFT = p5.prototype.LEFT;
var BOTTOM = p5.prototype.BOTTOM;
/**
* The sprite's position of the sprite as a vector (x,y).
* @property position
* @type {p5.Vector}
*/
this.position = createVector(_x, _y);
/**
* The sprite's position at the beginning of the last update as a vector (x,y).
* @property previousPosition
* @type {p5.Vector}
*/
this.previousPosition = createVector(_x, _y);
/*
The sprite's position at the end of the last update as a vector (x,y).
Note: this will differ from position whenever the position is changed
directly by assignment.
*/
this.newPosition = createVector(_x, _y);
//Position displacement on the x coordinate since the last update
this.deltaX = 0;
this.deltaY = 0;
/**
* The sprite's velocity as a vector (x,y)
* Velocity is speed broken down to its vertical and horizontal components.
*
* @property velocity
* @type {p5.Vector}
*/
this.velocity = createVector(0, 0);
/**
* Set a limit to the sprite's scalar speed regardless of the direction.
* The value can only be positive. If set to -1, there's no limit.
*
* @property maxSpeed
* @type {Number}
* @default -1
*/
this.maxSpeed = -1;
/**
* Friction factor, reduces the sprite's velocity.
* The friction should be close to 0 (eg. 0.01)
* 0: no friction
* 1: full friction
*
* @property friction
* @type {Number}
* @default 0
*/
this.friction = 0;
/**
* The sprite's current collider.
* It can either be an Axis Aligned Bounding Box (a non-rotated rectangle)
* or a circular collider.
* If the sprite is checked for collision, bounce, overlapping or mouse events the
* collider is automatically created from the width and height
* of the sprite or from the image dimension in case of animate sprites
*
* You can set a custom collider with Sprite.setCollider
*
* @property collider
* @type {Object}
*/
this.collider = undefined;
//internal use
//"default" - no image or custom collider is specified, use the shape width / height
//"custom" - specified with setCollider
//"image" - no collider is set with setCollider and an image is added
this.colliderType = "none";
/**
* Object containing information about the most recent collision/overlapping
* To be typically used in combination with Sprite.overlap or Sprite.collide
* functions.
* The properties are touching.left, touching.right, touching.top,
* touching.bottom and are either true or false depending on the side of the
* collider.
*
* @property touching
* @type {Object}
*/
this.touching = {};
this.touching.left = false;
this.touching.right = false;
this.touching.top = false;
this.touching.bottom = false;
/**
* The mass determines the velocity transfer when sprites bounce
* against each other. See Sprite.bounce
* The higher the mass the least the sprite will be affected by collisions.
*
* @property mass
* @type {Number}
* @default 1
*/
this.mass = 1;
/**
* If set to true the sprite won't bounce or be displaced by collisions
* Simulates an infinite mass or an anchored object.
*
* @property immovable
* @type {Boolean}
* @default false
*/
this.immovable = false;
//Coefficient of restitution - velocity lost in the bouncing
//0 perfectly inelastic , 1 elastic, > 1 hyper elastic
/**
* Coefficient of restitution. The velocity lost after bouncing.
* 1: perfectly elastic, no energy is lost
* 0: perfectly inelastic, no bouncing
* less than 1: inelastic, this is the most common in nature
* greater than 1: hyper elastic, energy is increased like in a pinball bumper
*
* @property restitution
* @type {Number}
* @default 1
*/
this.restitution = 1;
/**
* Rotation in degrees of the visual element (image or animation)
* Note: this is not the movement's direction, see getDirection.
*
* @property rotation
* @type {Number}
* @default 0
*/
Object.defineProperty(this, "rotation", {
enumerable: true,
get: function() {
return this._rotation;
},
set: function(value) {
this._rotation = value;
if (this.rotateToDirection) {
this.setSpeed(this.getSpeed(), value);
}
}
});
/**
* Internal rotation variable (expressed in degrees).
* Note: external callers access this through the rotation property above.
*
* @private
* @property _rotation
* @type {Number}
* @default 0
*/
this._rotation = 0;
/**
* Rotation change in degrees per frame of thevisual element (image or animation)
* Note: this is not the movement's direction, see getDirection.
*
* @property rotationSpeed
* @type {Number}
* @default 0
*/
this.rotationSpeed = 0;
/**
* Automatically lock the rotation property of the visual element
* (image or animation) to the sprite's movement direction and vice versa.
*
* @property rotateToDirection
* @type {Boolean}
* @default false
*/
this.rotateToDirection = false;
/**
* Determines the rendering order within a group: a sprite with
* lower depth will appear below the ones with higher depth.
*
* Note: drawing a group before another with drawSprites will make
* its members appear below the second one, like in normal p5 canvas
* drawing.
*
* @property depth
* @type {Number}
* @default One more than the greatest existing sprite depth, when calling
* createSprite(). When calling new Sprite() directly, depth will
* initialize to 0 (not recommended).
*/
this.depth = 0;
/**
* Determines the sprite's scale.
* Example: 2 will be twice the native size of the visuals,
* 0.5 will be half. Scaling up may make images blurry.
*
* @property scale
* @type {Number}
* @default 1
*/
this.scale = 1;
var dirX = 1;
var dirY = 1;
/**
* The sprite's visibility.
*
* @property visible
* @type {Boolean}
* @default true
*/
this.visible = true;
/**
* If set to true sprite will track its mouse state.
* the properties mouseIsPressed and mouseIsOver will be updated.
* Note: automatically set to true if the functions
* onMouseReleased or onMousePressed are set.
*
* @property mouseActive
* @type {Boolean}
* @default false
*/
this.mouseActive = false;
/**
* True if mouse is on the sprite's collider.
* Read only.
*
* @property mouseIsOver
* @type {Boolean}
*/
this.mouseIsOver = false;
/**
* True if mouse is pressed on the sprite's collider.
* Read only.
*
* @property mouseIsPressed
* @type {Boolean}
*/
this.mouseIsPressed = false;
/*
* Width of the sprite's current image.
* If no images or animations are set it's the width of the
* placeholder rectangle.
* Used internally to make calculations and draw the sprite.
*
* @private
* @property _internalWidth
* @type {Number}
* @default 100
*/
this._internalWidth = _w;
/*
* Height of the sprite's current image.
* If no images or animations are set it's the height of the
* placeholder rectangle.
* Used internally to make calculations and draw the sprite.
*
* @private
* @property _internalHeight
* @type {Number}
* @default 100
*/
this._internalHeight = _h;
/*
* _internalWidth and _internalHeight are used for all p5.play
* calculations, but width and height can be extended. For example,
* you may want users to always get and set a scaled width:
Object.defineProperty(this, 'width', {
enumerable: true,
configurable: true,
get: function() {
return this._internalWidth * this.scale;
},
set: function(value) {
this._internalWidth = value / this.scale;
}
});
*/
/**
* Width of the sprite's current image.
* If no images or animations are set it's the width of the
* placeholder rectangle.
*
* @property width
* @type {Number}
* @default 100
*/
Object.defineProperty(this, "width", {
enumerable: true,
configurable: true,
get: function() {
return this._internalWidth;
},
set: function(value) {
this._internalWidth = value;
}
});
if (_w === undefined) this.width = 100;
else this.width = _w;
/**
* Height of the sprite's current image.
* If no images or animations are set it's the height of the
* placeholder rectangle.
*
* @property height
* @type {Number}
* @default 100
*/
Object.defineProperty(this, "height", {
enumerable: true,
configurable: true,
get: function() {
return this._internalHeight;
},
set: function(value) {
this._internalHeight = value;
}
});
if (_h === undefined) this.height = 100;
else this.height = _h;
/**
* Unscaled width of the sprite
* If no images or animations are set it's the width of the
* placeholder rectangle.
*
* @property originalWidth
* @type {Number}
* @default 100
*/
this.originalWidth = this._internalWidth;
/**
* Unscaled height of the sprite
* If no images or animations are set it's the height of the
* placeholder rectangle.
*
* @property originalHeight
* @type {Number}
* @default 100
*/
this.originalHeight = this._internalHeight;
/**
* True if the sprite has been removed.
*
* @property removed
* @type {Boolean}
*/
this.removed = false;
/**
* Cycles before self removal.
* Set it to initiate a countdown, every draw cycle the property is
* reduced by 1 unit. At 0 it will call a sprite.remove()
* Disabled if set to -1.
*
* @property life
* @type {Number}
* @default -1
*/
this.life = -1;
/**
* If set to true, draws an outline of the collider, the depth, and center.
*
* @property debug
* @type {Boolean}
* @default false
*/
this.debug = false;
/**
* If no image or animations are set this is color of the
* placeholder rectangle
*
* @property shapeColor
* @type {color}
*/
this.shapeColor = color(random(255), random(255), random(255));
/**
* Groups the sprite belongs to, including allSprites
*
* @property groups
* @type {Array}
*/
this.groups = [];
var animations = {};
//The current animation's label.
var currentAnimation = "";
/**
* Reference to the current animation.
*
* @property animation
* @type {Animation}
*/
this.animation = undefined;
/**
* Internal variable to keep track of whether this sprite is drawn while
* the camera is active.
* Used in Sprite.update() to know whether to use camera mouse coordinates.
* @see https://github.com/molleindustria/p5.play/issues/107
*
* @private
* @property _drawnWithCamera
* @type {Boolean}
* @default false
*/
this._drawnWithCamera = false;
/*
* @private
* Keep animation properties in sync with how the animation changes.
*/
this._syncAnimationSizes = function() {
//has an animation but the collider is still default
//the animation wasn't loaded. if the animation is not a 1x1 image
//it means it just finished loading
if (
this.colliderType === "default" &&
animations[currentAnimation].getWidth() !== 1 &&
animations[currentAnimation].getHeight() !== 1
) {
this.collider = this.getBoundingBox();
this.colliderType = "image";
this._internalWidth =
animations[currentAnimation].getWidth() * abs(this._getScaleX());
this._internalHeight =
animations[currentAnimation].getHeight() * abs(this._getScaleY());
//quadTree.insert(this);
}
//update size and collider
if (
animations[currentAnimation].frameChanged ||
this.width === undefined ||
this.height === undefined
) {
//this.collider = this.getBoundingBox();
this._internalWidth =
animations[currentAnimation].getWidth() * abs(this._getScaleX());
this._internalHeight =
animations[currentAnimation].getHeight() * abs(this._getScaleY());
}
};
/**
* Updates the sprite.
* Called automatically at the beginning of the draw cycle.
*
* @method update
*/
this.update = function() {
if (!this.removed) {
//if there has been a change somewhere after the last update
//the old position is the last position registered in the update
if (this.newPosition !== this.position)
this.previousPosition = createVector(
this.newPosition.x,
this.newPosition.y
);
else
this.previousPosition = createVector(
this.position.x,
this.position.y
);
this.velocity.x *= 1 - this.friction;
this.velocity.y *= 1 - this.friction;
if (this.maxSpeed !== -1) this.limitSpeed(this.maxSpeed);
if (this.rotateToDirection && this.velocity.mag() > 0)
this._rotation = this.getDirection();
this.rotation += this.rotationSpeed;
this.position.x += this.velocity.x;
this.position.y += this.velocity.y;
this.newPosition = createVector(this.position.x, this.position.y);
this.deltaX = this.position.x - this.previousPosition.x;
this.deltaY = this.position.y - this.previousPosition.y;
//if there is an animation
if (animations[currentAnimation]) {
//update it
animations[currentAnimation].update();
this._syncAnimationSizes();
//patch for unpreloaded single image sprites
if (this.width == 1 && this.height == 1) {
this.width = animations[currentAnimation].getWidth();
this.height = animations[currentAnimation].getHeight();
}
}
//a collider is created either manually with setCollider or
//when I check this sprite for collisions or overlaps
if (this.collider) {
if (this.collider instanceof AABB) {
//scale / rotate collider
var t;
if (pInst._angleMode === pInst.RADIANS) {
t = radians(this.rotation);
} else {
t = this.rotation;
}
if (this.colliderType === "custom") {
this.collider.extents.x =
this.collider.originalExtents.x *
abs(this._getScaleX()) *
abs(cos(t)) +
this.collider.originalExtents.y *
abs(this._getScaleY()) *
abs(sin(t));
this.collider.extents.y =
this.collider.originalExtents.x *
abs(this._getScaleX()) *
abs(sin(t)) +
this.collider.originalExtents.y *
abs(this._getScaleY()) *
abs(cos(t));
} else if (this.colliderType === "default") {
this.collider.extents.x =
this._internalWidth * abs(this._getScaleX()) * abs(cos(t)) +
this._internalHeight * abs(this._getScaleY()) * abs(sin(t));
this.collider.extents.y =
this._internalWidth * abs(this._getScaleX()) * abs(sin(t)) +
this._internalHeight * abs(this._getScaleY()) * abs(cos(t));
} else if (this.colliderType === "image") {
this.collider.extents.x =
this._internalWidth * abs(cos(t)) +
this._internalHeight * abs(sin(t));
this.collider.extents.y =
this._internalWidth * abs(sin(t)) +
this._internalHeight * abs(cos(t));
}
}
if (this.collider instanceof CircleCollider) {
//print(this.scale);
this.collider.radius =
this.collider.originalRadius * abs(this.scale);
}
} //end collider != null
//mouse actions
if (this.mouseActive) {
//if no collider set it
if (!this.collider) this.setDefaultCollider();
this.mouseUpdate();
} else {
if (
typeof this.onMouseOver === "function" ||
typeof this.onMouseOut === "function" ||
typeof this.onMousePressed === "function" ||
typeof this.onMouseReleased === "function"
) {
//if a mouse function is set
//it's implied we want to have it mouse active so
//we do this automatically
this.mouseActive = true;
//if no collider set it
if (!this.collider) this.setDefaultCollider();
this.mouseUpdate();
}
}
//self destruction countdown
if (this.life > 0) this.life--;
if (this.life === 0) this.remove();
}
}; //end update
/**
* Creates a default collider matching the size of the
* placeholder rectangle or the bounding box of the image.
*
* @method setDefaultCollider
*/
this.setDefaultCollider = function() {
//if has animation get the animation bounding box
//working only for preloaded images
if (
animations[currentAnimation] &&
animations[currentAnimation].getWidth() !== 1 &&
animations[currentAnimation].getHeight() !== 1
) {
this.collider = this.getBoundingBox();
this._internalWidth =
animations[currentAnimation].getWidth() * abs(this._getScaleX());
this._internalHeight =
animations[currentAnimation].getHeight() * abs(this._getScaleY());
//quadTree.insert(this);
this.colliderType = "image";
//print("IMAGE COLLIDER ADDED");
} else if (
animations[currentAnimation] &&
animations[currentAnimation].getWidth() === 1 &&
animations[currentAnimation].getHeight() === 1
) {
//animation is still loading
//print("wait");
} //get the with and height defined at the creation
else {
this.collider = new AABB(
pInst,
this.position,
createVector(this._internalWidth, this._internalHeight)
);
//quadTree.insert(this);
this.colliderType = "default";
}
pInst.quadTree.insert(this);
};
/**
* Updates the sprite mouse states and triggers the mouse events:
* onMouseOver, onMouseOut, onMousePressed, onMouseReleased
*
* @method mouseUpdate
*/
this.mouseUpdate = function() {
var mouseWasOver = this.mouseIsOver;
var mouseWasPressed = this.mouseIsPressed;
this.mouseIsOver = false;
this.mouseIsPressed = false;
var mousePosition;
if (this._drawnWithCamera)
mousePosition = createVector(camera.mouseX, camera.mouseY);
else mousePosition = createVector(pInst.mouseX, pInst.mouseY);
//rollover
if (this.collider) {
if (this.collider instanceof CircleCollider) {
if (
dist(
mousePosition.x,
mousePosition.y,
this.collider.center.x,
this.collider.center.y
) < this.collider.radius
)
this.mouseIsOver = true;
} else if (this.collider instanceof AABB) {
if (
mousePosition.x > this.collider.left() &&
mousePosition.y > this.collider.top() &&
mousePosition.x < this.collider.right() &&
mousePosition.y < this.collider.bottom()
) {
this.mouseIsOver = true;
}
}
//global p5 var
if (this.mouseIsOver && pInst.mouseIsPressed)
this.mouseIsPressed = true;
//event change - call functions
if (!mouseWasOver && this.mouseIsOver && this.onMouseOver !== undefined)
if (typeof this.onMouseOver === "function")
this.onMouseOver.call(this, this);
else print("Warning: onMouseOver should be a function");
if (mouseWasOver && !this.mouseIsOver && this.onMouseOut !== undefined)
if (typeof this.onMouseOut === "function")
this.onMouseOut.call(this, this);
else print("Warning: onMouseOut should be a function");
if (
!mouseWasPressed &&
this.mouseIsPressed &&
this.onMousePressed !== undefined
)
if (typeof this.onMousePressed === "function")
this.onMousePressed.call(this, this);
else print("Warning: onMousePressed should be a function");
if (
mouseWasPressed &&
!pInst.mouseIsPressed &&
!this.mouseIsPressed &&
this.onMouseReleased !== undefined
)
if (typeof this.onMouseReleased === "function")
this.onMouseReleased.call(this, this);
else print("Warning: onMouseReleased should be a function");
}
};
/**
* Sets a collider for the sprite.
*
* In p5.play a Collider is an invisible circle or rectangle
* that can have any size or position relative to the sprite and which
* will be used to detect collisions and overlapping with other sprites,
* or the mouse cursor.
*
* If the sprite is checked for collision, bounce, overlapping or mouse events
* a collider is automatically created from the width and height parameter
* passed at the creation of the sprite or the from the image dimension in case
* of animated sprites.
*
* Often the image bounding box is not appropriate as the active area for
* collision detection so you can set a circular or rectangular sprite with
* different dimensions and offset from the sprite's center.
*
* There are four ways to call this method:
*
* 1. setCollider("rectangle")
* 2. setCollider("rectangle", offsetX, offsetY, width, height)
* 3. setCollider("circle")
* 4. setCollider("circle", offsetX, offsetY, radius)
*
* @method setCollider
* @param {String} type Either "rectangle" or "circle"
* @param {Number} offsetX Collider x position from the center of the sprite
* @param {Number} offsetY Collider y position from the center of the sprite
* @param {Number} width Collider width or radius
* @param {Number} height Collider height
* @throws {TypeError} if given invalid parameters.
*/
this.setCollider = function(type, offsetX, offsetY, width, height) {
if (!(type === "rectangle" || type === "circle")) {
throw new TypeError(
'setCollider expects the first argument to be either "circle" or "rectangle"'
);
} else if (
type === "circle" &&
arguments.length > 1 &&
arguments.length < 4
) {
throw new TypeError(
'Usage: setCollider("circle") or setCollider("circle", offsetX, offsetY, radius)'
);
} else if (type === "circle" && arguments.length > 4) {
pInst._warn(
'Extra parameters to setCollider were ignored. Usage: setCollider("circle") or setCollider("circle", offsetX, offsetY, radius)'
);
} else if (
type === "rectangle" &&
arguments.length > 1 &&
arguments.length < 5
) {
throw new TypeError(
'Usage: setCollider("rectangle") or setCollider("rectangle", offsetX, offsetY, width, height)'
);
} else if (type === "rectangle" && arguments.length > 5) {
pInst._warn(
'Extra parameters to setCollider were ignored. Usage: setCollider("rectangle") or setCollider("rectangle", offsetX, offsetY, width, height)'
);
}
this.colliderType = "custom";
var v = createVector(offsetX, offsetY);
if (type === "rectangle" && arguments.length === 1) {
this.collider = new AABB(
pInst,
this.position,
createVector(this.width, this.height)
);
} else if (type === "rectangle" && arguments.length >= 5) {
this.collider = new AABB(
pInst,
this.position,
createVector(width, height),
v
);
} else if (type === "circle" && arguments.length === 1) {
this.collider = new CircleCollider(
pInst,
this.position,
Math.floor(Math.max(this.width, this.height) / 2)
);
} else if (type === "circle" && arguments.length >= 4) {
this.collider = new CircleCollider(pInst, this.position, width, v);
}
quadTree.insert(this);
};
/**
* Returns a the bounding box of the current image
* @method getBoundingBox
*/
this.getBoundingBox = function() {
var w = animations[currentAnimation].getWidth() * abs(this._getScaleX());
var h = animations[currentAnimation].getHeight() * abs(this._getScaleY());
//if the bounding box is 1x1 the image is not loaded
//potential issue with actual 1x1 images
if (w === 1 && h === 1) {
//not loaded yet
return new AABB(pInst, this.position, createVector(w, h));
} else {
return new AABB(pInst, this.position, createVector(w, h));
}
};
/**
* Sets the sprite's horizontal mirroring.
* If 1 the images displayed normally
* If -1 the images are flipped horizontally
* If no argument returns the current x mirroring
*
* @method mirrorX
* @param {Number} dir Either 1 or -1
* @return {Number} Current mirroring if no parameter is specified
*/
this.mirrorX = function(dir) {
if (dir === 1 || dir === -1) dirX = dir;
else return dirX;
};
/**
* Sets the sprite's vertical mirroring.
* If 1 the images displayed normally
* If -1 the images are flipped vertically
* If no argument returns the current y mirroring
*
* @method mirrorY
* @param {Number} dir Either 1 or -1
* @return {Number} Current mirroring if no parameter is specified
*/
this.mirrorY = function(dir) {
if (dir === 1 || dir === -1) dirY = dir;
else return dirY;
};
/*
* Returns the value the sprite should be scaled in the X direction.
* Used to calculate rendering and collisions.
* @private
*/
this._getScaleX = function() {
return this.scale;
};
/*
* Returns the value the sprite should be scaled in the Y direction.
* Used to calculate rendering and collisions.
* @private
*/
this._getScaleY = function() {
return this.scale;
};
/**
* Manages the positioning, scale and rotation of the sprite
* Called automatically, it should not be overridden
* @private
* @final
* @method display
*/
this.display = function() {
if (this.visible && !this.removed) {
push();
colorMode(RGB);
noStroke();
rectMode(CENTER);
ellipseMode(CENTER);
imageMode(CENTER);
translate(this.position.x, this.position.y);
scale(this._getScaleX() * dirX, this._getScaleY() * dirY);
if (pInst._angleMode === pInst.RADIANS) {
rotate(radians(this.rotation));
} else {
rotate(this.rotation);
}
this.draw();
//draw debug info
pop();
this._drawnWithCamera = camera.active;
if (this.debug) {
push();
//draw the anchor point
stroke(0, 255, 0);
strokeWeight(1);
line(
this.position.x - 10,
this.position.y,
this.position.x + 10,
this.position.y
);
line(
this.position.x,
this.position.y - 10,
this.position.x,
this.position.y + 10
);
noFill();
//depth number
noStroke();
fill(0, 255, 0);
textAlign(LEFT, BOTTOM);
textSize(16);
text(this.depth + "", this.position.x + 4, this.position.y - 2);
noFill();
stroke(0, 255, 0);
//bounding box
if (this.collider !== undefined) {
this.collider.draw();
}
pop();
}
}
};
/**
* Manages the visuals of the sprite.
* It can be overridden with a custom drawing function.
* The 0,0 point will be the center of the sprite.
* Example:
* sprite.draw = function() { ellipse(0,0,10,10) }
* Will display the sprite as circle.
*
* @method draw
*/
this.draw = function() {
if (currentAnimation !== "" && animations) {
if (animations[currentAnimation])
animations[currentAnimation].draw(0, 0, 0);
} else {
noStroke();
fill(this.shapeColor);
rect(0, 0, this._internalWidth, this._internalHeight);
}
};
/**
* Removes the Sprite from the sketch.
* The removed Sprite won't be drawn or updated anymore.
*
* @method remove
*/
this.remove = function() {
this.removed = true;
quadTree.removeObject(this);
//when removed from the "scene" also remove all the references in all the groups
while (this.groups.length > 0) {
this.groups[0].remove(this);
}
};
/**
* Sets the velocity vector.
*
* @method setVelocity
* @param {Number} x X component
* @param {Number} y Y component
*/
this.setVelocity = function(x, y) {
this.velocity.x = x;
this.velocity.y = y;
};
/**
* Calculates the scalar speed.
*
* @method getSpeed
* @return {Number} Scalar speed
*/
this.getSpeed = function() {
return this.velocity.mag();
};
/**
* Calculates the movement's direction in degrees.
*
* @method getDirection
* @return {Number} Angle in degrees
*/
this.getDirection = function() {
var direction = atan2(this.velocity.y, this.velocity.x);
if (isNaN(direction)) direction = 0;
// Unlike Math.atan2, the atan2 method above will return degrees if
// the current p5 angleMode is DEGREES, and radians if the p5 angleMode is
// RADIANS. This method should always return degrees (for now).
// See https://github.com/molleindustria/p5.play/issues/94
if (pInst._angleMode === pInst.RADIANS) {
direction = degrees(direction);
}
return direction;
};
/**
* Adds the sprite to an existing group
*
* @method addToGroup
* @param {Object} group
*/
this.addToGroup = function(group) {
if (group instanceof Array) group.add(this);
else print("addToGroup error: " + group + " is not a group");
};
/**
* Limits the scalar speed.
*
* @method limitSpeed
* @param {Number} max Max speed: positive number
*/
this.limitSpeed = function(max) {
//update linear speed
var speed = this.getSpeed();
if (abs(speed) > max) {
//find reduction factor
var k = max / abs(speed);
this.velocity.x *= k;
this.velocity.y *= k;
}
};
/**
* Set the speed and direction of the sprite.
* The action overwrites the current velocity.
* If direction is not supplied, the current direction is maintained.
* If direction is not supplied and there is no current velocity, the current
* rotation angle used for the direction.
*
* @method setSpeed
* @param {Number} speed Scalar speed
* @param {Number} [angle] Direction in degrees
*/
this.setSpeed = function(speed, angle) {
var a;
if (typeof angle === "undefined") {
if (this.velocity.x !== 0 || this.velocity.y !== 0) {
a = pInst.atan2(this.velocity.y, this.velocity.x);
} else {
if (pInst._angleMode === pInst.RADIANS) {
a = radians(this._rotation);
} else {
a = this._rotation;
}
}
} else {
if (pInst._angleMode === pInst.RADIANS) {
a = radians(angle);
} else {
a = angle;
}
}
this.velocity.x = cos(a) * speed;
this.velocity.y = sin(a) * speed;
};
/**
* Pushes the sprite in a direction defined by an angle.
* The force is added to the current velocity.
*
* @method addSpeed
* @param {Number} speed Scalar speed to add
* @param {Number} angle Direction in degrees
*/
this.addSpeed = function(speed, angle) {
var a;
if (pInst._angleMode === pInst.RADIANS) {
a = radians(angle);
} else {
a = angle;
}
this.velocity.x += cos(a) * speed;
this.velocity.y += sin(a) * speed;
};
/**
* Pushes the sprite toward a point.
* The force is added to the current velocity.
*
* @method attractionPoint
* @param {Number} magnitude Scalar speed to add
* @param {Number} pointX Direction x coordinate
* @param {Number} pointY Direction y coordinate
*/
this.attractionPoint = function(magnitude, pointX, pointY) {
var angle = atan2(pointY - this.position.y, pointX - this.position.x);
this.velocity.x += cos(angle) * magnitude;
this.velocity.y += sin(angle) * magnitude;
};
/**
* Adds an image to the sprite.
* An image will be considered a one-frame animation.
* The image should be preloaded in the preload() function using p5 loadImage.
* Animations require a identifying label (string) to change them.
* The image is stored in the sprite but not necessarily displayed
* until Sprite.changeAnimation(label) is called
*
* Usages:
* - sprite.addImage(label, image);
* - sprite.addImage(image);
*
* If only an image is passed no label is specified
*
* @method addImage
* @param {String|p5.Image} label Label or image
* @param {p5.Image} [img] Image
*/
this.addImage = function() {
if (typeof arguments[0] === "string" && arguments[1] instanceof p5.Image)
this.addAnimation(arguments[0], arguments[1]);
else if (arguments[0] instanceof p5.Image)
this.addAnimation("normal", arguments[0]);
else
throw "addImage error: allowed usages are <image> or <label>, <image>";
};
/**
* Adds an animation to the sprite.
* The animation should be preloaded in the preload() function
* using loadAnimation.
* Animations require a identifying label (string) to change them.
* Animations are stored in the sprite but not necessarily displayed
* until Sprite.changeAnimation(label) is called.
*
* Usage:
* - sprite.addAnimation(label, animation);
*
* Alternative usages. See Animation for more information on file sequences:
* - sprite.addAnimation(label, firstFrame, lastFrame);
* - sprite.addAnimation(label, frame1, frame2, frame3...);
*
* @method addAnimation
* @param {String} label Animation identifier
* @param {Animation} animation The preloaded animation
*/
this.addAnimation = function(label) {
var anim;
if (typeof label !== "string") {
print(
"Sprite.addAnimation error: the first argument must be a label (String)"
);
return -1;
} else if (arguments.length < 2) {
print(
"addAnimation error: you must specify a label and n frame images"
);
return -1;
} else if (arguments[1] instanceof Animation) {
var sourceAnimation = arguments[1];
var newAnimation = sourceAnimation.clone();
animations[label] = newAnimation;
if (currentAnimation === "") {
currentAnimation = label;
this.animation = newAnimation;
}
newAnimation.isSpriteAnimation = true;
this._internalWidth = newAnimation.getWidth() * abs(this._getScaleX());
this._internalHeight =
newAnimation.getHeight() * abs(this._getScaleY());
return newAnimation;
} else {
var animFrames = [];
for (var i = 1; i < arguments.length; i++)
animFrames.push(arguments[i]);
anim = construct(pInst.Animation, animFrames);
animations[label] = anim;
if (currentAnimation === "") {
currentAnimation = label;
this.animation = anim;
}
anim.isSpriteAnimation = true;
this._internalWidth = anim.getWidth() * abs(this._getScaleX());
this._internalHeight = anim.getHeight() * abs(this._getScaleY());
return anim;
}
};
/**
* Changes the displayed image/animation.
* Equivalent to changeAnimation
*
* @method changeImage
* @param {String} label Image/Animation identifier
*/
this.changeImage = function(label) {
this.changeAnimation(label);
};
/**
* Returns the label of the current animation
*
* @method getAnimationLabel
* @return {String} label Image/Animation identifier
*/
this.getAnimationLabel = function() {
return currentAnimation;
};
/**
* Changes the displayed animation.
* See Animation for more control over the sequence.
*
* @method changeAnimation
* @param {String} label Animation identifier
*/
this.changeAnimation = function(label) {
if (!animations[label])
print("changeAnimation error: no animation labeled " + label);
else {
currentAnimation = label;
this.animation = animations[label];
}
};
/**
* Checks if the given point corresponds to a transparent pixel
* in the sprite's current image. It can be used to check a point collision
* against only the visible part of the sprite.
*
* @method overlapPixel
* @param {Number} pointX x coordinate of the point to check
* @param {Number} pointY y coordinate of the point to check
* @return {Boolean} result True if non-transparent
*/
this.overlapPixel = function(pointX, pointY) {
var point = createVector(pointX, pointY);
var img = this.animation.getFrameImage();
//convert point to img relative position
point.x -= this.position.x - img.width / 2;
point.y -= this.position.y - img.height / 2;
//out of the image entirely
if (
point.x < 0 ||
point.x > img.width ||
point.y < 0 ||
point.y > img.height
)
return false;
else if (this.rotation === 0 && this.scale === 1) {
//true if full opacity
var values = img.get(point.x, point.y);
return values[3] === 255;
} else {
print(
"Error: overlapPixel doesn't work with scaled or rotated sprites yet"
);
//offscreen printing to be implemented bleurch
return false;
}
};
/**
* Checks if the given point is inside the sprite's collider.
*
* @method overlapPoint
* @param {Number} pointX x coordinate of the point to check
* @param {Number} pointY y coordinate of the point to check
* @return {Boolean} result True if inside
*/
this.overlapPoint = function(pointX, pointY) {
var point = createVector(pointX, pointY);
if (!this.collider) this.setDefaultCollider();
if (this.collider !== undefined) {
if (this.collider instanceof AABB)
return (
point.x > this.collider.left() &&
point.x < this.collider.right() &&
point.y > this.collider.top() &&
point.y < this.collider.bottom()
);
if (this.collider instanceof CircleCollider) {
var sqRadius = this.collider.radius * this.collider.radius;
var sqDist =
pow(this.collider.center.x - point.x, 2) +
pow(this.collider.center.y - point.y, 2);
return sqDist < sqRadius;
} else return false;
} else return false;
};
/**
* Checks if the the sprite is overlapping another sprite or a group.
* The check is performed using the colliders. If colliders are not set
* they will be created automatically from the image/animation bounding box.
*
* A callback function can be specified to perform additional operations
* when the overlap occours.
* If the target is a group the function will be called for each single
* sprite overlapping. The parameter of the function are respectively the
* current sprite and the colliding sprite.
*
* @example
* sprite.overlap(otherSprite, explosion);
*
* function explosion(spriteA, spriteB) {
* spriteA.remove();
* spriteB.score++;
* }
*
* @method overlap
* @param {Object} target Sprite or group to check against the current one
* @param {Function} [callback] The function to be called if overlap is positive
* @return {Boolean} True if overlapping
*/
this.overlap = function(target, callback) {
//if(this.collider instanceof AABB && target.collider instanceof AABB)
return this.AABBops("overlap", target, callback);
};
/**
* Checks if the the sprite is overlapping another sprite or a group.
* If the overlap is positive the current sprite will be displace by
* the colliding one in the closest non-overlapping position.
*
* The check is performed using the colliders. If colliders are not set
* they will be created automatically from the image/animation bounding box.
*
* A callback function can be specified to perform additional operations
* when the collision occours.
* If the target is a group the function will be called for each single
* sprite colliding. The parameter of the function are respectively the
* current sprite and the colliding sprite.
*
* @example
* sprite.collide(otherSprite, explosion);
*
* function explosion(spriteA, spriteB) {
* spriteA.remove();
* spriteB.score++;
* }
*
* @method collide
* @param {Object} target Sprite or group to check against the current one
* @param {Function} [callback] The function to be called if overlap is positive
* @return {Boolean} True if overlapping
*/
this.collide = function(target, callback) {
//if(this.collider instanceof AABB && target.collider instanceof AABB)
return this.AABBops("collide", target, callback);
};
/**
* Checks if the the sprite is overlapping another sprite or a group.
* If the overlap is positive the current sprite will displace
* the colliding one to the closest non-overlapping position.
*
* The check is performed using the colliders. If colliders are not set
* they will be created automatically from the image/animation bounding box.
*
* A callback function can be specified to perform additional operations
* when the collision occours.
* If the target is a group the function will be called for each single
* sprite colliding. The parameter of the function are respectively the
* current sprite and the colliding sprite.
*
* @example
* sprite.displace(otherSprite, explosion);
*
* function explosion(spriteA, spriteB) {
* spriteA.remove();
* spriteB.score++;
* }
*
* @method displace
* @param {Object} target Sprite or group to check against the current one
* @param {Function} [callback] The function to be called if overlap is positive
* @return {Boolean} True if overlapping
*/
this.displace = function(target, callback) {
return this.AABBops("displace", target, callback);
};
/**
* Checks if the the sprite is overlapping another sprite or a group.
* If the overlap is positive the sprites will bounce affecting each
* other's trajectories depending on their .velocity, .mass and .restitution
*
* The check is performed using the colliders. If colliders are not set
* they will be created automatically from the image/animation bounding box.
*
* A callback function can be specified to perform additional operations
* when the collision occours.
* If the target is a group the function will be called for each single
* sprite colliding. The parameter of the function are respectively the
* current sprite and the colliding sprite.
*
* @example
* sprite.bounce(otherSprite, explosion);
*
* function explosion(spriteA, spriteB) {
* spriteA.remove();
* spriteB.score++;
* }
*
* @method bounce
* @param {Object} target Sprite or group to check against the current one
* @param {Function} [callback] The function to be called if overlap is positive
* @return {Boolean} True if overlapping
*/
this.bounce = function(target, callback) {
return this.AABBops("bounce", target, callback);
};
// Internal collision detection function. Do not use directly.
this.AABBops = function(type, target, callback) {
this.touching.left = false;
this.touching.right = false;
this.touching.top = false;
this.touching.bottom = false;
var result = false;
//if single sprite turn into array anyway
var others = [];
if (target instanceof Sprite) others.push(target);
else if (target instanceof Array) {
if (quadTree !== undefined && quadTree.active)
others = quadTree.retrieveFromGroup(this, target);
if (others.length === 0) others = target;
} else
throw "Error: overlap can only be checked between sprites or groups";
for (var i = 0; i < others.length; i++)
if (this !== others[i] && !this.removed) {
//you can check collisions within the same group but not on itself
var displacement;
var other = others[i];
if (this.collider === undefined) this.setDefaultCollider();
if (other.collider === undefined) other.setDefaultCollider();
/*
if(this.colliderType=="default" && animations[currentAnimation]!=null)
{
print("busted");
return false;
}*/
if (this.collider !== undefined && other.collider !== undefined) {
if (type === "overlap") {
var over;
//if the other is a circle I calculate the displacement from here
if (this.collider instanceof CircleCollider)
over = other.collider.overlap(this.collider);
else over = this.collider.overlap(other.collider);
if (over) {
result = true;
if (callback !== undefined && typeof callback === "function")
callback.call(this, this, other);
}
} else if (
type === "collide" ||
type === "displace" ||
type === "bounce"
) {
displacement = createVector(0, 0);
//if the sum of the speed is more than the collider i may
//have a tunnelling problem
var tunnelX =
abs(this.velocity.x - other.velocity.x) >=
other.collider.extents.x / 2 &&
round(this.deltaX - this.velocity.x) === 0;
var tunnelY =
abs(this.velocity.y - other.velocity.y) >=
other.collider.size().y / 2 &&
round(this.deltaY - this.velocity.y) === 0;
if (tunnelX || tunnelY) {
//instead of using the colliders I use the bounding box
//around the previous position and current position
//this is regardless of the collider type
//the center is the average of the coll centers
var c = createVector(
(this.position.x + this.previousPosition.x) / 2,
(this.position.y + this.previousPosition.y) / 2
);
//the extents are the distance between the coll centers
//plus the extents of both
var e = createVector(
abs(this.position.x - this.previousPosition.x) +
this.collider.extents.x,
abs(this.position.y - this.previousPosition.y) +
this.collider.extents.y
);
var bbox = new AABB(pInst, c, e, this.collider.offset);
//bbox.draw();
if (bbox.overlap(other.collider)) {
if (tunnelX) {
//entering from the right
if (this.velocity.x < 0)
displacement.x =
other.collider.right() - this.collider.left() + 1;
else if (this.velocity.x > 0)
displacement.x =
other.collider.left() - this.collider.right() - 1;
}
if (tunnelY) {
//from top
if (this.velocity.y > 0)
displacement.y =
other.collider.top() - this.collider.bottom() - 1;
else if (this.velocity.y < 0)
displacement.y =
other.collider.bottom() - this.collider.top() + 1;
}
} //end overlap
} //non tunnel overlap
else {
//if the other is a circle I calculate the displacement from here
//and reverse it
if (this.collider instanceof CircleCollider) {
displacement = other.collider.collide(this.collider).mult(-1);
} else displacement = this.collider.collide(other.collider);
}
if (displacement.x !== 0 || displacement.y !== 0) {
var newVelX1, newVelY1, newVelX2, newVelY2;
if (type === "displace" && !other.immovable) {
other.position.sub(displacement);
} else if (
(type === "collide" || type === "bounce") &&
!this.immovable
) {
this.position.add(displacement);
this.previousPosition = createVector(
this.position.x,
this.position.y
);
this.newPosition = createVector(
this.position.x,
this.position.y
);
}
if (displacement.x > 0) this.touching.left = true;
if (displacement.x < 0) this.touching.right = true;
if (displacement.y < 0) this.touching.bottom = true;
if (displacement.y > 0) this.touching.top = true;
if (type === "bounce") {
if (
this.collider instanceof CircleCollider &&
other.collider instanceof CircleCollider
) {
var dx1 = p5.Vector.sub(this.position, other.position);
var dx2 = p5.Vector.sub(other.position, this.position);
var magnitude = dx1.magSq();
var totalMass = this.mass + other.mass;
var m1 = 0,
m2 = 0;
if (this.immovable) {
m2 = 2;
} else if (other.immovable) {
m1 = 2;
} else {
m1 = (2 * other.mass) / totalMass;
m2 = (2 * this.mass) / totalMass;
}
var newVel1 = dx1.mult(
(m1 *
p5.Vector.sub(this.velocity, other.velocity).dot(dx1)) /
magnitude
);
var newVel2 = dx2.mult(
(m2 *
p5.Vector.sub(other.velocity, this.velocity).dot(dx2)) /
magnitude
);
this.velocity.sub(newVel1.mult(this.restitution));
other.velocity.sub(newVel2.mult(other.restitution));
} else {
if (other.immovable) {
newVelX1 = -this.velocity.x + other.velocity.x;
newVelY1 = -this.velocity.y + other.velocity.y;
} else {
newVelX1 =
(this.velocity.x * (this.mass - other.mass) +
2 * other.mass * other.velocity.x) /
(this.mass + other.mass);
newVelY1 =
(this.velocity.y * (this.mass - other.mass) +
2 * other.mass * other.velocity.y) /
(this.mass + other.mass);
newVelX2 =
(other.velocity.x * (other.mass - this.mass) +
2 * this.mass * this.velocity.x) /
(this.mass + other.mass);
newVelY2 =
(other.velocity.y * (other.mass - this.mass) +
2 * this.mass * this.velocity.y) /
(this.mass + other.mass);
}
//var bothCircles = (this.collider instanceof CircleCollider &&
// other.collider instanceof CircleCollider);
//if(this.touching.left || this.touching.right || this.collider instanceof CircleCollider)
//print(displacement);
if (abs(displacement.x) > abs(displacement.y)) {
if (!this.immovable) {
this.velocity.x = newVelX1 * this.restitution;
}
if (!other.immovable)
other.velocity.x = newVelX2 * other.restitution;
}
//if(this.touching.top || this.touching.bottom || this.collider instanceof CircleCollider)
if (abs(displacement.x) < abs(displacement.y)) {
if (!this.immovable)
this.velocity.y = newVelY1 * this.restitution;
if (!other.immovable)
other.velocity.y = newVelY2 * other.restitution;
}
}
}
//else if(type == "collide")
//this.velocity = createVector(0,0);
if (callback !== undefined && typeof callback === "function")
callback.call(this, this, other);
result = true;
}
}
} //end collider exists
}
return result;
};
} //end Sprite class
defineLazyP5Property("Sprite", boundConstructorFactory(Sprite));
/**
* A camera facilitates scrolling and zooming for scenes extending beyond
* the canvas. A camera has a position, a zoom factor, and the mouse
* coordinates relative to the view.
* The camera is automatically created on the first draw cycle.
*
* In p5.js terms the camera wraps the whole drawing cycle in a
* transformation matrix but it can be disable anytime during the draw
* cycle for example to draw interface elements in an absolute position.
*
* @class Camera
* @constructor
* @param {Number} x Initial x coordinate
* @param {Number} y Initial y coordinate
* @param {Number} zoom magnification
**/
function Camera(pInst, x, y, zoom) {
/**
* Camera position. Defines the global offset of the sketch.
*
* @property position
* @type {p5.Vector}
*/
this.position = pInst.createVector(x, y);
/**
* Camera zoom. Defines the global scale of the sketch.
* A scale of 1 will be the normal size. Setting it to 2 will make everything
* twice the size. .5 will make everything half size.
*
* @property zoom
* @type {Number}
*/
this.zoom = zoom;
/**
* MouseX translated to the camera view.
* Offsetting and scaling the canvas will not change the sprites' position
* nor the mouseX and mouseY variables. Use this property to read the mouse
* position if the camera moved or zoomed.
*
* @property mouseX
* @type {Number}
*/
this.mouseX = pInst.mouseX;
/**
* MouseY translated to the camera view.
* Offsetting and scaling the canvas will not change the sprites' position
* nor the mouseX and mouseY variables. Use this property to read the mouse
* position if the camera moved or zoomed.
*
* @property mouseY
* @type {Number}
*/
this.mouseY = pInst.mouseY;
/**
* True if the camera is active.
* Read only property. Use the methods Camera.on() and Camera.off()
* to enable or disable the camera.
*
* @property active
* @type {Boolean}
*/
this.active = false;
/**
* Activates the camera.
* The canvas will be drawn according to the camera position and scale until
* Camera.off() is called
*
* @method on
*/
this.on = function() {
if (!this.active) {
cameraPush.call(pInst);
this.active = true;
}
};
/**
* Deactivates the camera.
* The canvas will be drawn normally, ignoring the camera's position
* and scale until Camera.on() is called
*
* @method off
*/
this.off = function() {
if (this.active) {
cameraPop.call(pInst);
this.active = false;
}
};
} //end camera class
defineLazyP5Property("Camera", boundConstructorFactory(Camera));
//called pre draw by default
function cameraPush() {
var pInst = this;
var camera = pInst.camera;
//awkward but necessary in order to have the camera at the center
//of the canvas by default
if (!camera.init && camera.position.x === 0 && camera.position.y === 0) {
camera.position.x = pInst.width / 2;
camera.position.y = pInst.height / 2;
camera.init = true;
}
camera.mouseX = pInst.mouseX + camera.position.x - pInst.width / 2;
camera.mouseY = pInst.mouseY + camera.position.y - pInst.height / 2;
if (!camera.active) {
camera.active = true;
pInst.push();
pInst.scale(camera.zoom);
pInst.translate(
-camera.position.x + pInst.width / 2 / camera.zoom,
-camera.position.y + pInst.height / 2 / camera.zoom
);
}
}
//called postdraw by default
function cameraPop() {
var pInst = this;
if (pInst.camera.active) {
pInst.pop();
pInst.camera.active = false;
}
}
/**
* In p5.play groups are collections of sprites with similar behavior.
* For example a group may contain all the sprites in the background
* or all the sprites that "kill" the player.
*
* Groups are "extended" arrays and inherit all their properties
* e.g. group.length
*
* Since groups contain only references, a sprite can be in multiple
* groups and deleting a group doesn't affect the sprites themselves.
*
* Sprite.remove() will also remove the sprite from all the groups
* it belongs to.
*
* @class Group
* @constructor
*/
function Group() {
//basically extending the array
var array = [];
/**
* Gets the member at index i.
*
* @method get
* @param {Number} i The index of the object to retrieve
*/
array.get = function(i) {
return array[i];
};
/**
* Checks if the group contains a sprite.
*
* @method contains
* @param {Sprite} sprite The sprite to search
* @return {Number} Index or -1 if not found
*/
array.contains = function(sprite) {
return this.indexOf(sprite) > -1;
};
/**
* Same as Group.contains
* @method indexOf
*/
array.indexOf = function(item) {
for (var i = 0, len = array.length; i < len; ++i) {
if (virtEquals(item, array[i])) {
return i;
}
}
return -1;
};
/**
* Adds a sprite to the group.
*
* @method add
* @param {Sprite} s The sprite to be added
*/
array.add = function(s) {
if (!(s instanceof Sprite)) {
throw "Error: you can only add sprites to a group";
}
if (-1 === this.indexOf(s)) {
array.push(s);
s.groups.push(this);
}
};
/**
* Same as group.length
* @method size
*/
array.size = function() {
return array.length;
};
/**
* Removes all the sprites in the group
* from the scene.
*
* @method removeSprites
*/
array.removeSprites = function() {
while (array.length > 0) {
array[0].remove();
}
};
/**
* Removes all references to the group.
* Does not remove the actual sprites.
*
* @method clear
*/
array.clear = function() {
array.length = 0;
};
/**
* Removes a sprite from the group.
* Does not remove the actual sprite, only the affiliation (reference).
*
* @method remove
* @param {Sprite} item The sprite to be removed
* @return {Boolean} True if sprite was found and removed
*/
array.remove = function(item) {
if (!(item instanceof Sprite)) {
throw "Error: you can only remove sprites from a group";
}
var i,
removed = false;
for (i = array.length - 1; i >= 0; i--) {
if (array[i] === item) {
array.splice(i, 1);
removed = true;
}
}
if (removed) {
for (i = item.groups.length - 1; i >= 0; i--) {
if (item.groups[i] === this) {
item.groups.splice(i, 1);
}
}
}
return removed;
};
/**
* Returns a copy of the group as standard array.
* @method toArray
*/
array.toArray = function() {
return array.slice(0);
};
/**
* Returns the highest depth in a group
*
* @method maxDepth
* @return {Number} The depth of the sprite drawn on the top
*/
array.maxDepth = function() {
if (array.length === 0) {
return 0;
}
return array.reduce(function(maxDepth, sprite) {
return Math.max(maxDepth, sprite.depth);
}, -Infinity);
};
/**
* Returns the lowest depth in a group
*
* @method minDepth
* @return {Number} The depth of the sprite drawn on the bottom
*/
array.minDepth = function() {
if (array.length === 0) {
return 99999;
}
return array.reduce(function(minDepth, sprite) {
return Math.min(minDepth, sprite.depth);
}, Infinity);
};
/**
* Draws all the sprites in the group.
*
* @method draw
*/
array.draw = function() {
//sort by depth
this.sort(function(a, b) {
return a.depth - b.depth;
});
for (var i = 0; i < this.size(); i++) {
this.get(i).display();
}
};
//internal use
function virtEquals(obj, other) {
if (obj === null || other === null) {
return obj === null && other === null;
}
if (typeof obj === "string") {
return obj === other;
}
if (typeof obj !== "object") {
return obj === other;
}
if (obj.equals instanceof Function) {
return obj.equals(other);
}
return obj === other;
}
/**
* Collide each member of group against the target using the given collision
* type. Return true if any collision occurred.
* Internal use
*
* @private
* @method _groupCollide
* @param {!string} type one of 'overlap', 'collide', 'displace', 'bounce'
* @param {Object} target Group or Sprite
* @param {Function} [callback] on collision.
* @return {boolean} True if any collision/overlap occurred
*/
function _groupCollide(type, target, callback) {
var didCollide = false;
for (var i = 0; i < this.size(); i++)
didCollide = this.get(i).AABBops(type, target, callback) || didCollide;
return didCollide;
}
/**
* Checks if the the group is overlapping another group or sprite.
* The check is performed using the colliders. If colliders are not set
* they will be created automatically from the image/animation bounding box.
*
* A callback function can be specified to perform additional operations
* when the overlap occurs.
* The function will be called for each single sprite overlapping.
* The parameter of the function are respectively the
* member of the current group and the other sprite passed as parameter.
*
* @example
* group.overlap(otherSprite, explosion);
*
* function explosion(spriteA, spriteB) {
* spriteA.remove();
* spriteB.score++;
* }
*
* @method overlap
* @param {Object} target Group or Sprite to check against the current one
* @param {Function} [callback] The function to be called if overlap is positive
* @return {Boolean} True if overlapping
*/
array.overlap = _groupCollide.bind(array, "overlap");
/**
* Checks if the the group is overlapping another group or sprite.
* If the overlap is positive the sprites in the group will be displaced
* by the colliding one to the closest non-overlapping positions.
*
* The check is performed using the colliders. If colliders are not set
* they will be created automatically from the image/animation bounding box.
*
* A callback function can be specified to perform additional operations
* when the overlap occours.
* The function will be called for each single sprite overlapping.
* The parameter of the function are respectively the
* member of the current group and the other sprite passed as parameter.
*
* @example
* group.collide(otherSprite, explosion);
*
* function explosion(spriteA, spriteB) {
* spriteA.remove();
* spriteB.score++;
* }
*
* @method collide
* @param {Object} target Group or Sprite to check against the current one
* @param {Function} [callback] The function to be called if overlap is positive
* @return {Boolean} True if overlapping
*/
array.collide = _groupCollide.bind(array, "collide");
/**
* Checks if the the group is overlapping another group or sprite.
* If the overlap is positive the sprites in the group will displace
* the colliding ones to the closest non-overlapping positions.
*
* The check is performed using the colliders. If colliders are not set
* they will be created automatically from the image/animation bounding box.
*
* A callback function can be specified to perform additional operations
* when the overlap occurs.
* The function will be called for each single sprite overlapping.
* The parameter of the function are respectively the
* member of the current group and the other sprite passed as parameter.
*
* @example
* group.displace(otherSprite, explosion);
*
* function explosion(spriteA, spriteB) {
* spriteA.remove();
* spriteB.score++;
* }
*
* @method displace
* @param {Object} target Group or Sprite to check against the current one
* @param {Function} [callback] The function to be called if overlap is positive
* @return {Boolean} True if overlapping
*/
array.displace = _groupCollide.bind(array, "displace");
/**
* Checks if the the group is overlapping another group or sprite.
* If the overlap is positive the sprites will bounce affecting each
* other's trajectories depending on their .velocity, .mass and .restitution.
*
* The check is performed using the colliders. If colliders are not set
* they will be created automatically from the image/animation bounding box.
*
* A callback function can be specified to perform additional operations
* when the overlap occours.
* The function will be called for each single sprite overlapping.
* The parameter of the function are respectively the
* member of the current group and the other sprite passed as parameter.
*
* @example
* group.bounce(otherSprite, explosion);
*
* function explosion(spriteA, spriteB) {
* spriteA.remove();
* spriteB.score++;
* }
*
* @method bounce
* @param {Object} target Group or Sprite to check against the current one
* @param {Function} [callback] The function to be called if overlap is positive
* @return {Boolean} True if overlapping
*/
array.bounce = _groupCollide.bind(array, "bounce");
return array;
}
p5.prototype.Group = Group;
//circle collider - used internally
function CircleCollider(pInst, _center, _radius, _offset) {
var pInstBind = createPInstBinder(pInst);
var createVector = pInstBind("createVector");
var CENTER = p5.prototype.CENTER;
this.center = _center;
this.radius = _radius;
this.originalRadius = _radius;
if (_offset === undefined) this.offset = createVector(0, 0);
else this.offset = _offset;
this.extents = createVector(_radius * 2, _radius * 2);
this.draw = function() {
pInst.noFill();
pInst.stroke(0, 255, 0);
pInst.rectMode(CENTER);
pInst.ellipse(
this.center.x + this.offset.x,
this.center.y + this.offset.y,
this.radius * 2,
this.radius * 2
);
};
//should be called only for circle vs circle
this.overlap = function(other) {
//square dist
var r = this.radius + other.radius;
r *= r;
var thisCenterX = this.center.x + this.offset.x;
var thisCenterY = this.center.y + this.offset.y;
var otherCenterX = other.center.x + other.offset.x;
var otherCenterY = other.center.y + other.offset.y;
var sqDist =
pow(thisCenterX - otherCenterX, 2) + pow(thisCenterY - otherCenterY, 2);
return r > sqDist;
};
//should be called only for circle vs circle
this.collide = function(other) {
if (this.overlap(other)) {
var thisCenterX = this.center.x + this.offset.x;
var thisCenterY = this.center.y + this.offset.y;
var otherCenterX = other.center.x + other.offset.x;
var otherCenterY = other.center.y + other.offset.y;
var a = pInst.atan2(
thisCenterY - otherCenterY,
thisCenterX - otherCenterX
);
var radii = this.radius + other.radius;
var intersection = abs(
radii - dist(thisCenterX, thisCenterY, otherCenterX, otherCenterY)
);
var displacement = createVector(
pInst.cos(a) * intersection,
pInst.sin(a) * intersection
);
return displacement;
} else {
return createVector(0, 0);
}
};
this.size = function() {
return createVector(this.radius * 2, this.radius * 2);
};
this.left = function() {
return this.center.x + this.offset.x - this.radius;
};
this.right = function() {
return this.center.x + this.offset.x + this.radius;
};
this.top = function() {
return this.center.y + this.offset.y - this.radius;
};
this.bottom = function() {
return this.center.y + this.offset.y + this.radius;
};
}
defineLazyP5Property(
"CircleCollider",
boundConstructorFactory(CircleCollider)
);
//axis aligned bounding box - extents are the half sizes - used internally
function AABB(pInst, _center, _extents, _offset) {
var pInstBind = createPInstBinder(pInst);
var createVector = pInstBind("createVector");
var CENTER = p5.prototype.CENTER;
var PI = p5.prototype.PI;
this.center = _center;
this.extents = _extents;
this.originalExtents = _extents.copy();
if (_offset === undefined) this.offset = createVector(0, 0);
else this.offset = _offset;
this.min = function() {
return createVector(
this.center.x + this.offset.x - this.extents.x,
this.center.y + this.offset.y - this.extents.y
);
};
this.max = function() {
return createVector(
this.center.x + this.offset.x + this.extents.x,
this.center.y + this.offset.y + this.extents.y
);
};
this.right = function() {
return this.center.x + this.offset.x + this.extents.x / 2;
};
this.left = function() {
return this.center.x + this.offset.x - this.extents.x / 2;
};
this.top = function() {
return this.center.y + this.offset.y - this.extents.y / 2;
};
this.bottom = function() {
return this.center.y + this.offset.y + this.extents.y / 2;
};
this.size = function() {
return createVector(this.extents.x * 2, this.extents.y * 2);
};
this.rotate = function(r) {
//rotate the bbox
var t;
if (pInst._angleMode === pInst.RADIANS) {
t = radians(r);
} else {
t = r;
}
var w2 =
this.extents.x * abs(pInst.cos(t)) + this.extents.y * abs(pInst.sin(t));
var h2 =
this.extents.x * abs(pInst.sin(t)) + this.extents.y * abs(pInst.cos(t));
this.extents.x = w2;
this.extents.y = h2;
};
this.draw = function() {
//fill(col);
pInst.noFill();
pInst.stroke(0, 255, 0);
pInst.rectMode(CENTER);
pInst.rect(
this.center.x + this.offset.x,
this.center.y + this.offset.y,
this.size().x / 2,
this.size().y / 2
);
};
this.overlap = function(other) {
//box vs box
if (other instanceof AABB) {
var md = other.minkowskiDifference(this);
if (
md.min().x <= 0 &&
md.max().x >= 0 &&
md.min().y <= 0 &&
md.max().y >= 0
) {
return true;
} else return false;
}
//box vs circle
else if (other instanceof CircleCollider) {
//find closest point to the circle on the box
var pt = createVector(other.center.x, other.center.y);
//I don't know what's going o try to trace a line from centers to see
if (other.center.x < this.left()) pt.x = this.left();
else if (other.center.x > this.right()) pt.x = this.right();
if (other.center.y < this.top()) pt.y = this.top();
else if (other.center.y > this.bottom()) pt.y = this.bottom();
var distance = pt.dist(other.center);
return distance < other.radius;
}
};
this.collide = function(other) {
if (other instanceof AABB) {
var md = other.minkowskiDifference(this);
if (
md.min().x <= 0 &&
md.max().x >= 0 &&
md.min().y <= 0 &&
md.max().y >= 0
) {
var boundsPoint = md.closestPointOnBoundsToPoint(createVector(0, 0));
return boundsPoint;
} else return createVector(0, 0);
}
//box vs circle
else if (other instanceof CircleCollider) {
//find closest point to the circle on the box
var pt = createVector(other.center.x, other.center.y);
//I don't know what's going o try to trace a line from centers to see
if (other.center.x < this.left()) pt.x = this.left();
else if (other.center.x > this.right()) pt.x = this.right();
if (other.center.y < this.top()) pt.y = this.top();
else if (other.center.y > this.bottom()) pt.y = this.bottom();
var distance = pt.dist(other.center);
var a;
if (distance < other.radius) {
//reclamp point
if (pt.x === other.center.x && pt.y === other.center.y) {
var xOverlap = pt.x - this.center.x;
var yOverlap = pt.y - this.center.y;
if (abs(xOverlap) < abs(yOverlap)) {
if (xOverlap > 0) pt.x = this.right();
else pt.x = this.left();
} else {
if (yOverlap < 0) pt.y = this.top();
else pt.y = this.bottom();
}
a = pInst.atan2(other.center.y - pt.y, other.center.x - pt.x);
//fix exceptions
if (a === 0) {
if (pt.x === this.right()) a = PI;
if (pt.y === this.top()) a = PI / 2;
if (pt.y === this.bottom()) a = -PI / 2;
}
} else {
//angle bw point and center
a = pInst.atan2(pt.y - other.center.y, pt.x - other.center.x);
//project the normal (line between pt and center) onto the circle
}
var d = createVector(pt.x - other.center.x, pt.y - other.center.y);
var displacement = createVector(
pInst.cos(a) * other.radius - d.x,
pInst.sin(a) * other.radius - d.y
);
//if(pt.x === other.center.x && pt.y === other.center.y)
//displacement = displacement.mult(-1);
return displacement;
//return createVector(0,0);
} else return createVector(0, 0);
}
};
this.minkowskiDifference = function(other) {
var topLeft = this.min().sub(other.max());
var fullSize = this.size().add(other.size());
return new AABB(pInst, topLeft.add(fullSize.div(2)), fullSize.div(2));
};
this.closestPointOnBoundsToPoint = function(point) {
// test x first
var minDist = abs(point.x - this.min().x);
var boundsPoint = createVector(this.min().x, point.y);
if (abs(this.max().x - point.x) < minDist) {
minDist = abs(this.max().x - point.x);
boundsPoint = createVector(this.max().x, point.y);
}
if (abs(this.max().y - point.y) < minDist) {
minDist = abs(this.max().y - point.y);
boundsPoint = createVector(point.x, this.max().y);
}
if (abs(this.min().y - point.y) < minDist) {
minDist = abs(this.min.y - point.y);
boundsPoint = createVector(point.x, this.min().y);
}
return boundsPoint;
};
} //end AABB
defineLazyP5Property("AABB", boundConstructorFactory(AABB));
/**
* An Animation object contains a series of images (p5.Image) that
* can be displayed sequentially.
*
* All files must be png images. You must include the directory from the sketch root,
* and the extension .png
*
* A sprite can have multiple labeled animations, see Sprite.addAnimation
* and Sprite.changeAnimation, however an animation can be used independently.
*
* An animation can be created either by passing a series of file names,
* no matter how many or by passing the first and the last file name
* of a numbered sequence.
* p5.play will try to detect the sequence pattern.
*
* For example if the given filenames are
* "data/file0001.png" and "data/file0005.png" the images
* "data/file0003.png" and "data/file0004.png" will be loaded as well.
*
* @example
* var sequenceAnimation;
* var glitch;
*
* function preload() {
* sequenceAnimation = loadAnimation("data/walking0001.png", "data/walking0005.png");
* glitch = loadAnimation("data/dog.png", "data/horse.png", "data/cat.png", "data/snake.png");
* }
*
* function setup() {
* createCanvas(800, 600);
* }
*
* function draw() {
* background(0);
* animation(sequenceAnimation, 100, 100);
* animation(glitch, 200, 100);
* }
*
* @class Animation
* @constructor
* @param {String} fileName1 First file in a sequence OR first image file
* @param {String} fileName2 Last file in a sequence OR second image file
* @param {String} [...fileNameN] Any number of image files after the first two
*/
function Animation(pInst) {
var frameArguments = Array.prototype.slice.call(arguments, 1);
var i;
var CENTER = p5.prototype.CENTER;
/**
* Array of frames (p5.Image)
*
* @property images
* @type {Array}
*/
this.images = [];
var frame = 0;
var cycles = 0;
var targetFrame = -1;
this.offX = 0;
this.offY = 0;
/**
* Delay between frames in number of draw cycles.
* If set to 4 the framerate of the animation would be the
* sketch framerate divided by 4 (60fps = 15fps)
*
* @property frameDelay
* @type {Number}
* @default 4
*/
this.frameDelay = 4;
/**
* True if the animation is currently playing.
*
* @property playing
* @type {Boolean}
* @default true
*/
this.playing = true;
/**
* Animation visibility.
*
* @property visible
* @type {Boolean}
* @default true
*/
this.visible = true;
/**
* If set to false the animation will stop after reaching the last frame
*
* @property looping
* @type {Boolean}
* @default true
*/
this.looping = true;
/**
* True if frame changed during the last draw cycle
*
* @property frameChanged
* @type {Boolean}
*/
this.frameChanged = false;
//is the collider defined manually or defined
//by the current frame size
this.imageCollider = false;
//sequence mode
if (
frameArguments.length === 2 &&
typeof frameArguments[0] === "string" &&
typeof frameArguments[1] === "string"
) {
var from = frameArguments[0];
var to = frameArguments[1];
//print("sequence mode "+from+" -> "+to);
//make sure the extensions are fine
var ext1 = from.substring(from.length - 4, from.length);
if (ext1 !== ".png") {
pInst.print(
"Animation error: you need to use .png files (filename " + from + ")"
);
from = -1;
}
var ext2 = to.substring(to.length - 4, to.length);
if (ext2 !== ".png") {
pInst.print(
"Animation error: you need to use .png files (filename " + to + ")"
);
to = -1;
}
//extensions are fine
if (from !== -1 && to !== -1) {
var digits1 = 0;
var digits2 = 0;
//skip extension work backwards to find the numbers
for (i = from.length - 4; i >= 0; i--) {
if (from.charAt(i) >= "0" && from.charAt(i) <= "9") digits1++;
}
for (i = to.length - 4; i >= 0; i--) {
if (to.charAt(i) >= "0" && to.charAt(i) <= "9") digits2++;
}
var prefix1 = from.substring(0, from.length - (4 + digits1));
var prefix2 = to.substring(0, to.length - (4 + digits2));
// Our numbers likely have leading zeroes, which means that some
// browsers (e.g., PhantomJS) will interpret them as base 8 (octal)
// instead of decimal. To fix this, we'll explicity tell parseInt to
// use a base of 10 (decimal). For more details on this issue, see
// http://stackoverflow.com/a/8763427/2422398.
var number1 = parseInt(
from.substring(from.length - (4 + digits1), from.length - 4),
10
);
var number2 = parseInt(
to.substring(to.length - (4 + digits2), to.length - 4),
10
);
//swap if inverted
if (number2 < number1) {
var t = number2;
number2 = number1;
number1 = t;
}
//two different frames
if (prefix1 !== prefix2) {
//print("2 separate images");
this.images.push(pInst.loadImage(from));
this.images.push(pInst.loadImage(to));
}
//same digits: case img0001, img0002
else {
var fileName;
if (digits1 === digits2) {
//load all images
for (i = number1; i <= number2; i++) {
// Use nf() to number format 'i' into four digits
fileName = prefix1 + pInst.nf(i, digits1) + ".png";
this.images.push(pInst.loadImage(fileName));
}
} //case: case img1, img2
else {
//print("from "+prefix1+" "+number1 +" to "+number2);
for (i = number1; i <= number2; i++) {
// Use nf() to number format 'i' into four digits
fileName = prefix1 + i + ".png";
this.images.push(pInst.loadImage(fileName));
}
}
}
} //end no ext error
} //end sequence mode
// Sprite sheet mode
else if (
frameArguments.length === 1 &&
frameArguments[0] instanceof SpriteSheet
) {
this.spriteSheet = frameArguments[0];
this.images = this.spriteSheet.frames;
} else if (frameArguments.length !== 0) {
//arbitrary list of images
//print("Animation arbitrary mode");
for (i = 0; i < frameArguments.length; i++) {
//print("loading "+fileNames[i]);
if (frameArguments[i] instanceof p5.Image)
this.images.push(frameArguments[i]);
else this.images.push(pInst.loadImage(frameArguments[i]));
}
}
/**
* Objects are passed by reference so to have different sprites
* using the same animation you need to clone it.
*
* @method clone
* @return {Animation} A clone of the current animation
*/
this.clone = function() {
var myClone = new Animation(pInst); //empty
myClone.images = [];
if (this.spriteSheet) {
myClone.spriteSheet = this.spriteSheet.clone();
}
myClone.images = this.images.slice();
myClone.offX = this.offX;
myClone.offY = this.offY;
myClone.frameDelay = this.frameDelay;
myClone.playing = this.playing;
myClone.looping = this.looping;
return myClone;
};
/**
* Draws the animation at coordinate x and y.
* Updates the frames automatically.
*
* @method draw
* @param {Number} x x coordinate
* @param {Number} y y coordinate
* @param {Number} [r=0] rotation
*/
this.draw = function(x, y, r) {
this.xpos = x;
this.ypos = y;
this.rotation = r || 0;
if (this.visible) {
//only connection with the sprite class
//if animation is used independently draw and update are the sam
if (!this.isSpriteAnimation) this.update();
//this.currentImageMode = g.imageMode;
pInst.push();
pInst.imageMode(CENTER);
pInst.translate(this.xpos, this.ypos);
if (pInst._angleMode === pInst.RADIANS) {
pInst.rotate(radians(this.rotation));
} else {
pInst.rotate(this.rotation);
}
if (this.images[frame] !== undefined) {
if (this.spriteSheet) {
var frame_info = this.images[frame].frame;
pInst.image(
this.spriteSheet.image,
this.offX,
this.offY,
frame_info.width,
frame_info.height,
frame_info.x,
frame_info.y,
frame_info.width,
frame_info.height
);
} else {
pInst.image(this.images[frame], this.offX, this.offY);
}
} else {
pInst.print("Warning undefined frame " + frame);
//this.isActive = false;
}
pInst.pop();
}
};
//called by draw
this.update = function() {
cycles++;
var previousFrame = frame;
this.frameChanged = false;
//go to frame
if (this.images.length === 1) {
this.playing = false;
frame = 0;
}
if (this.playing && cycles % this.frameDelay === 0) {
//going to target frame up
if (targetFrame > frame && targetFrame !== -1) {
frame++;
}
//going to taget frame down
else if (targetFrame < frame && targetFrame !== -1) {
frame--;
} else if (targetFrame === frame && targetFrame !== -1) {
this.playing = false;
} else if (this.looping) {
//advance frame
//if next frame is too high
if (frame >= this.images.length - 1) frame = 0;
else frame++;
} else {
//if next frame is too high
if (frame < this.images.length - 1) frame++;
}
}
if (frame == this.images.length - 1 && this.onComplete != undefined)
this.onComplete(); //fire when on last frame
if (previousFrame !== frame) this.frameChanged = true;
}; //end update
/**
* Plays the animation.
*
* @method play
*/
this.play = function() {
this.playing = true;
targetFrame = -1;
};
/**
* Stops the animation.
*
* @method stop
*/
this.stop = function() {
this.playing = false;
};
/**
* Rewinds the animation to the first frame.
*
* @method rewind
*/
this.rewind = function() {
frame = 0;
};
/**
* fire when animation ends
*
* @method onComplete
* @return {Animation}
*/
this.onComplete = function() {
return undefined;
};
/**
* Changes the current frame.
*
* @method changeFrame
* @param {Number} frame Frame number (starts from 0).
*/
this.changeFrame = function(f) {
if (f < this.images.length) frame = f;
else frame = this.images.length - 1;
targetFrame = -1;
//this.playing = false;
};
/**
* Goes to the next frame and stops.
*
* @method nextFrame
*/
this.nextFrame = function() {
if (frame < this.images.length - 1) frame = frame + 1;
else if (this.looping) frame = 0;
targetFrame = -1;
this.playing = false;
};
/**
* Goes to the previous frame and stops.
*
* @method previousFrame
*/
this.previousFrame = function() {
if (frame > 0) frame = frame - 1;
else if (this.looping) frame = this.images.length - 1;
targetFrame = -1;
this.playing = false;
};
/**
* Plays the animation forward or backward toward a target frame.
*
* @method goToFrame
* @param {Number} toFrame Frame number destination (starts from 0)
*/
this.goToFrame = function(toFrame) {
if (toFrame < 0 || toFrame >= this.images.length) {
return;
}
// targetFrame gets used by the update() method to decide what frame to
// select next. When it's not being used it gets set to -1.
targetFrame = toFrame;
if (targetFrame !== frame) {
this.playing = true;
}
};
/**
* Returns the current frame number.
*
* @method getFrame
* @return {Number} Current frame (starts from 0)
*/
this.getFrame = function() {
return frame;
};
/**
* Returns the last frame number.
*
* @method getLastFrame
* @return {Number} Last frame number (starts from 0)
*/
this.getLastFrame = function() {
return this.images.length - 1;
};
/**
* Returns the current frame image as p5.Image.
*
* @method getFrameImage
* @return {p5.Image} Current frame image
*/
this.getFrameImage = function() {
return this.images[frame];
};
/**
* Returns the frame image at the specified frame number.
*
* @method getImageAt
* @param {Number} frame Frame number
* @return {p5.Image} Frame image
*/
this.getImageAt = function(f) {
return this.images[f];
};
/**
* Returns the current frame width in pixels.
* If there is no image loaded, returns 1.
*
* @method getWidth
* @return {Number} Frame width
*/
this.getWidth = function() {
if (this.images[frame] instanceof p5.Image) {
return this.images[frame].width;
} else if (this.images[frame]) {
// Special case: Animation-from-spritesheet treats its images array differently.
return this.images[frame].frame.width;
} else {
return 1;
}
};
/**
* Returns the current frame height in pixels.
* If there is no image loaded, returns 1.
*
* @method getHeight
* @return {Number} Frame height
*/
this.getHeight = function() {
if (this.images[frame] instanceof p5.Image) {
return this.images[frame].height;
} else if (this.images[frame]) {
// Special case: Animation-from-spritesheet treats its images array differently.
return this.images[frame].frame.height;
} else {
return 1;
}
};
}
defineLazyP5Property("Animation", boundConstructorFactory(Animation));
/**
* Represents a sprite sheet and all it's frames. To be used with Animation,
* or static drawing single frames.
*
* There are two different ways to load a SpriteSheet
*
* 1. Given width, height that will be used for every frame and the
* number of frames to cycle through. The sprite sheet must have a
* uniform grid with consistent rows and columns.
*
* 2. Given an array of frame objects that define the position and
* dimensions of each frame. This is Flexible because you can use
* sprite sheets that don't have uniform rows and columns.
*
* @example
* // Method 1 - Using width, height for each frame and number of frames
* explode_sprite_sheet = loadSpriteSheet('assets/explode_sprite_sheet.png', 171, 158, 11);
*
* // Method 2 - Using an array of objects that define each frame
* var player_frames = loadJSON('assets/tiles.json');
* player_sprite_sheet = loadSpriteSheet('assets/player_spritesheet.png', player_frames);
*
* @class SpriteSheet
* @constructor
* @param image String image path or p5.Image object
*/
function SpriteSheet(pInst) {
var spriteSheetArgs = Array.prototype.slice.call(arguments, 1);
this.image = null;
this.frames = [];
this.frame_width = 0;
this.frame_height = 0;
this.num_frames = 0;
/**
* Generate the frames data for this sprite sheet baesd on user params
* @private
* @method _generateSheetFrames
*/
this._generateSheetFrames = function() {
var sX = 0,
sY = 0;
for (var i = 0; i < this.num_frames; i++) {
this.frames.push({
name: i,
frame: {
x: sX,
y: sY,
width: this.frame_width,
height: this.frame_height
}
});
sX += this.frame_width;
if (sX >= this.image.width) {
sX = 0;
sY += this.frame_height;
if (sY >= this.image.height) {
sY = 0;
}
}
}
};
if (spriteSheetArgs.length === 2 && Array.isArray(spriteSheetArgs[1])) {
this.frames = spriteSheetArgs[1];
this.num_frames = this.frames.length;
} else if (
spriteSheetArgs.length === 4 &&
typeof spriteSheetArgs[1] === "number" &&
typeof spriteSheetArgs[2] === "number" &&
typeof spriteSheetArgs[3] === "number"
) {
this.frame_width = spriteSheetArgs[1];
this.frame_height = spriteSheetArgs[2];
this.num_frames = spriteSheetArgs[3];
}
if (spriteSheetArgs[0] instanceof p5.Image) {
this.image = spriteSheetArgs[0];
if (spriteSheetArgs.length === 4) {
this._generateSheetFrames();
}
} else {
if (spriteSheetArgs.length === 2) {
this.image = pInst.loadImage(spriteSheetArgs[0]);
} else if (spriteSheetArgs.length === 4) {
this.image = pInst.loadImage(
spriteSheetArgs[0],
this._generateSheetFrames.bind(this)
);
}
}
/**
* Draws a specific frame to the canvas.
* @param frame_name Can either be a string name, or a numeric index.
* @param x x position to draw the frame at
* @param y y position to draw the frame at
* @param [width] optional width to draw the frame
* @param [height] optional height to draw the frame
* @method drawFrame
*/
this.drawFrame = function(frame_name, x, y, width, height) {
var frameToDraw;
if (typeof frame_name === "number") {
frameToDraw = this.frames[frame_name].frame;
} else {
for (var i = 0; i < this.frames.length; i++) {
if (this.frames[i].name === frame_name) {
frameToDraw = this.frames[i].frame;
break;
}
}
}
var dWidth = width || frameToDraw.width;
var dHeight = height || frameToDraw.height;
pInst.image(
this.image,
x,
y,
dWidth,
dHeight,
frameToDraw.x,
frameToDraw.y,
frameToDraw.width,
frameToDraw.height
);
};
/**
* Objects are passed by reference so to have different sprites
* using the same animation you need to clone it.
*
* @method clone
* @return {SpriteSheet} A clone of the current SpriteSheet
*/
this.clone = function() {
var myClone = new SpriteSheet(pInst); //empty
// Deep clone the frames by value not reference
for (var i = 0; i < this.frames.length; i++) {
var frame = this.frames[i].frame;
var cloneFrame = {
name: frame.name,
frame: {
x: frame.x,
y: frame.y,
width: frame.width,
height: frame.height
}
};
myClone.frames.push(cloneFrame);
}
// clone other fields
myClone.image = this.image;
myClone.frame_width = this.frame_width;
myClone.frame_height = this.frame_height;
myClone.num_frames = this.num_frames;
return myClone;
};
}
defineLazyP5Property("SpriteSheet", boundConstructorFactory(SpriteSheet));
//general constructor to be able to feed arguments as array
function construct(constructor, args) {
function F() {
return constructor.apply(this, args);
}
F.prototype = constructor.prototype;
return new F();
}
/*
* Javascript Quadtree
* based on
* https://github.com/timohausmann/quadtree-js/
* Copyright © 2012 Timo Hausmann
*/
function Quadtree(bounds, max_objects, max_levels, level) {
this.active = true;
this.max_objects = max_objects || 10;
this.max_levels = max_levels || 4;
this.level = level || 0;
this.bounds = bounds;
this.objects = [];
this.object_refs = [];
this.nodes = [];
}
Quadtree.prototype.updateBounds = function() {
//find maximum area
var objects = this.getAll();
var x = 10000;
var y = 10000;
var w = -10000;
var h = -10000;
for (var i = 0; i < objects.length; i++) {
if (objects[i].position.x < x) x = objects[i].position.x;
if (objects[i].position.y < y) y = objects[i].position.y;
if (objects[i].position.x > w) w = objects[i].position.x;
if (objects[i].position.y > h) h = objects[i].position.y;
}
this.bounds = {
x: x,
y: y,
width: w,
height: h
};
//print(this.bounds);
};
/*
* Split the node into 4 subnodes
*/
Quadtree.prototype.split = function() {
var nextLevel = this.level + 1,
subWidth = Math.round(this.bounds.width / 2),
subHeight = Math.round(this.bounds.height / 2),
x = Math.round(this.bounds.x),
y = Math.round(this.bounds.y);
//top right node
this.nodes[0] = new Quadtree(
{
x: x + subWidth,
y: y,
width: subWidth,
height: subHeight
},
this.max_objects,
this.max_levels,
nextLevel
);
//top left node
this.nodes[1] = new Quadtree(
{
x: x,
y: y,
width: subWidth,
height: subHeight
},
this.max_objects,
this.max_levels,
nextLevel
);
//bottom left node
this.nodes[2] = new Quadtree(
{
x: x,
y: y + subHeight,
width: subWidth,
height: subHeight
},
this.max_objects,
this.max_levels,
nextLevel
);
//bottom right node
this.nodes[3] = new Quadtree(
{
x: x + subWidth,
y: y + subHeight,
width: subWidth,
height: subHeight
},
this.max_objects,
this.max_levels,
nextLevel
);
};
/*
* Determine the quadtrant for an area in this node
*/
Quadtree.prototype.getIndex = function(pRect) {
if (!pRect.collider) return -1;
else {
var index = -1,
verticalMidpoint = this.bounds.x + this.bounds.width / 2,
horizontalMidpoint = this.bounds.y + this.bounds.height / 2,
//pRect can completely fit within the top quadrants
topQuadrant =
pRect.collider.top() < horizontalMidpoint &&
pRect.collider.top() + pRect.collider.size().y < horizontalMidpoint,
//pRect can completely fit within the bottom quadrants
bottomQuadrant = pRect.collider.top() > horizontalMidpoint;
//pRect can completely fit within the left quadrants
if (
pRect.collider.left() < verticalMidpoint &&
pRect.collider.left() + pRect.collider.size().x < verticalMidpoint
) {
if (topQuadrant) {
index = 1;
} else if (bottomQuadrant) {
index = 2;
}
//pRect can completely fit within the right quadrants
} else if (pRect.collider.left() > verticalMidpoint) {
if (topQuadrant) {
index = 0;
} else if (bottomQuadrant) {
index = 3;
}
}
return index;
}
};
/*
* Insert an object into the node. If the node
* exceeds the capacity, it will split and add all
* objects to their corresponding subnodes.
*/
Quadtree.prototype.insert = function(obj) {
//avoid double insertion
if (this.objects.indexOf(obj) === -1) {
var i = 0,
index;
//if we have subnodes ...
if (typeof this.nodes[0] !== "undefined") {
index = this.getIndex(obj);
if (index !== -1) {
this.nodes[index].insert(obj);
return;
}
}
this.objects.push(obj);
if (
this.objects.length > this.max_objects &&
this.level < this.max_levels
) {
//split if we don't already have subnodes
if (typeof this.nodes[0] === "undefined") {
this.split();
}
//add all objects to there corresponding subnodes
while (i < this.objects.length) {
index = this.getIndex(this.objects[i]);
if (index !== -1) {
this.nodes[index].insert(this.objects.splice(i, 1)[0]);
} else {
i = i + 1;
}
}
}
}
};
/*
* Return all objects that could collide with a given area
*/
Quadtree.prototype.retrieve = function(pRect) {
var index = this.getIndex(pRect),
returnObjects = this.objects;
//if we have subnodes ...
if (typeof this.nodes[0] !== "undefined") {
//if pRect fits into a subnode ..
if (index !== -1) {
returnObjects = returnObjects.concat(this.nodes[index].retrieve(pRect));
//if pRect does not fit into a subnode, check it against all subnodes
} else {
for (var i = 0; i < this.nodes.length; i = i + 1) {
returnObjects = returnObjects.concat(this.nodes[i].retrieve(pRect));
}
}
}
return returnObjects;
};
Quadtree.prototype.retrieveFromGroup = function(pRect, group) {
var results = [];
var candidates = this.retrieve(pRect);
for (var i = 0; i < candidates.length; i++)
if (group.contains(candidates[i])) results.push(candidates[i]);
return results;
};
/*
* Get all objects stored in the quadtree
*/
Quadtree.prototype.getAll = function() {
var objects = this.objects;
for (var i = 0; i < this.nodes.length; i = i + 1) {
objects = objects.concat(this.nodes[i].getAll());
}
return objects;
};
/*
* Get the node in which a certain object is stored
*/
Quadtree.prototype.getObjectNode = function(obj) {
var index;
//if there are no subnodes, object must be here
if (!this.nodes.length) {
return this;
} else {
index = this.getIndex(obj);
//if the object does not fit into a subnode, it must be here
if (index === -1) {
return this;
//if it fits into a subnode, continue deeper search there
} else {
var node = this.nodes[index].getObjectNode(obj);
if (node) return node;
}
}
return false;
};
/*
* Removes a specific object from the quadtree
* Does not delete empty subnodes. See cleanup-function
*/
Quadtree.prototype.removeObject = function(obj) {
var node = this.getObjectNode(obj),
index = node.objects.indexOf(obj);
if (index === -1) return false;
node.objects.splice(index, 1);
};
/*
* Clear the quadtree and delete all objects
*/
Quadtree.prototype.clear = function() {
this.objects = [];
if (!this.nodes.length) return;
for (var i = 0; i < this.nodes.length; i = i + 1) {
this.nodes[i].clear();
}
this.nodes = [];
};
/*
* Clean up the quadtree
* Like clear, but objects won't be deleted but re-inserted
*/
Quadtree.prototype.cleanup = function() {
var objects = this.getAll();
this.clear();
for (var i = 0; i < objects.length; i++) {
this.insert(objects[i]);
}
};
function updateTree() {
if (this.quadTree.active) {
this.quadTree.updateBounds();
this.quadTree.cleanup();
}
}
//keyboard input
p5.prototype.registerMethod("pre", p5.prototype.readPresses);
//automatic sprite update
p5.prototype.registerMethod("pre", p5.prototype.updateSprites);
//quadtree update
p5.prototype.registerMethod("post", updateTree);
//camera push and pop
p5.prototype.registerMethod("pre", cameraPush);
p5.prototype.registerMethod("post", cameraPop);
//deltaTime
//p5.prototype.registerMethod('pre', updateDelta);
/**
* Log a warning message to the host console, using native `console.warn`
* if it is available but falling back on `console.log` if not. If no
* console is available, this method will fail silently.
* @method _warn
* @param {!string} message
* @private
*/
p5.prototype._warn = function(message) {
var console = window.console;
if (console) {
if ("function" === typeof console.warn) {
console.warn(message);
} else if ("function" === typeof console.log) {
console.log("Warning: " + message);
}
}
};
}); |
(function(root, factory) {
if (typeof define === "function" && define.amd)
|
multi_process_runner_test.py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# 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.
# ==============================================================================
"""Tests for `multi_process_runner`."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
import os
import threading
import time
from absl import logging
from tensorflow.python.distribute import multi_process_runner
from tensorflow.python.distribute import multi_worker_test_base
from tensorflow.python.eager import test
def proc_func_that_adds_task_type_in_return_data():
return multi_worker_test_base.get_task_type()
def proc_func_that_errors():
raise ValueError('This is an error.')
def proc_func_that_does_nothing():
pass
def proc_func_that_adds_simple_return_data():
return 'dummy_data'
def proc_func_that_return_args_and_kwargs(*args, **kwargs):
return list(args) + list(kwargs.items())
def proc_func_with_barrier():
return multi_process_runner.barrier()
class MultiProcessRunnerTest(test.TestCase):
def _worker_idx(self):
config_task = json.loads(os.environ['TF_CONFIG'])['task']
return config_task['index']
def test_multi_process_runner(self):
mpr_result = multi_process_runner.run(
proc_func_that_adds_task_type_in_return_data,
multi_worker_test_base.create_cluster_spec(
num_workers=2, num_ps=3, has_eval=1))
job_count_dict = {'worker': 2, 'ps': 3, 'evaluator': 1}
for data in mpr_result.return_value:
job_count_dict[data] -= 1
self.assertEqual(job_count_dict['worker'], 0)
self.assertEqual(job_count_dict['ps'], 0)
self.assertEqual(job_count_dict['evaluator'], 0)
def test_multi_process_runner_error_propagates_from_subprocesses(self):
runner = multi_process_runner.MultiProcessRunner(
proc_func_that_errors,
multi_worker_test_base.create_cluster_spec(num_workers=1, num_ps=1),
max_run_time=20)
runner.start()
with self.assertRaisesRegexp(ValueError, 'This is an error.'):
runner.join()
def test_multi_process_runner_queue_emptied_between_runs(self):
cluster_spec = multi_worker_test_base.create_cluster_spec(num_workers=2)
return_value = multi_process_runner.run(
proc_func_that_adds_simple_return_data, cluster_spec).return_value
self.assertTrue(return_value)
self.assertEqual(return_value[0], 'dummy_data')
self.assertEqual(return_value[1], 'dummy_data')
return_value = multi_process_runner.run(proc_func_that_does_nothing,
cluster_spec).return_value
self.assertFalse(return_value)
def test_multi_process_runner_args_passed_correctly(self):
return_value = multi_process_runner.run(
proc_func_that_return_args_and_kwargs,
multi_worker_test_base.create_cluster_spec(num_workers=1),
args=('a', 'b'),
kwargs={
'c_k': 'c_v'
}).return_value
self.assertEqual(return_value[0][0], 'a')
self.assertEqual(return_value[0][1], 'b')
self.assertEqual(return_value[0][2], ('c_k', 'c_v'))
def test_stdout_captured(self):
def simple_print_func():
print('This is something printed.', flush=True)
return 'This is returned data.'
mpr_result = multi_process_runner.run(
simple_print_func,
multi_worker_test_base.create_cluster_spec(num_workers=2),
list_stdout=True)
std_stream_results = mpr_result.stdout
return_value = mpr_result.return_value
self.assertIn('[worker-0]: This is something printed.\n',
std_stream_results)
self.assertIn('[worker-1]: This is something printed.\n',
std_stream_results)
self.assertIn('This is returned data.', return_value)
def test_process_that_exits(self):
def func_to_exit_in_25_sec():
logging.error('foo')
time.sleep(100)
logging.error('bar')
mpr = multi_process_runner.MultiProcessRunner(
func_to_exit_in_25_sec,
multi_worker_test_base.create_cluster_spec(num_workers=1),
list_stdout=True,
max_run_time=25)
mpr.start()
stdout = mpr.join().stdout
self.assertLen([msg for msg in stdout if 'foo' in msg], 1)
self.assertLen([msg for msg in stdout if 'bar' in msg], 0)
def test_termination(self):
def proc_func():
for i in range(0, 10):
print(
'index {}, iteration {}'.format(self._worker_idx(), i), flush=True)
time.sleep(5)
mpr = multi_process_runner.MultiProcessRunner(
proc_func,
multi_worker_test_base.create_cluster_spec(num_workers=2),
list_stdout=True)
mpr.start()
time.sleep(5)
mpr.terminate('worker', 0)
std_stream_results = mpr.join().stdout
# Worker 0 is terminated in the middle, so it should not have iteration 9
# printed.
self.assertIn('[worker-0]: index 0, iteration 0\n', std_stream_results)
self.assertNotIn('[worker-0]: index 0, iteration 9\n',
std_stream_results)
self.assertIn('[worker-1]: index 1, iteration 0\n', std_stream_results)
self.assertIn('[worker-1]: index 1, iteration 9\n', std_stream_results)
def test_termination_and_start_single_process(self):
def proc_func():
for i in range(0, 10):
print(
'index {}, iteration {}'.format(self._worker_idx(), i), flush=True)
time.sleep(1)
mpr = multi_process_runner.MultiProcessRunner(
proc_func,
multi_worker_test_base.create_cluster_spec(num_workers=2),
list_stdout=True)
mpr.start()
time.sleep(3)
mpr.terminate('worker', 0)
mpr.start_single_process('worker', 0)
std_stream_results = mpr.join().stdout
# Worker 0 is terminated in the middle, but a new worker 0 is added, so it
# should still have iteration 9 printed. Moreover, iteration 0 of worker 0
# should happen twice.
self.assertLen(
[s for s in std_stream_results if 'index 0, iteration 0' in s], 2)
self.assertIn('[worker-0]: index 0, iteration 9\n', std_stream_results)
self.assertIn('[worker-1]: index 1, iteration 0\n', std_stream_results)
self.assertIn('[worker-1]: index 1, iteration 9\n', std_stream_results)
def | (self):
def proc_func():
for i in range(5):
logging.info('(logging) %s-%d, i: %d',
multi_worker_test_base.get_task_type(), self._worker_idx(),
i)
print(
'(print) {}-{}, i: {}'.format(
multi_worker_test_base.get_task_type(), self._worker_idx(), i),
flush=True)
time.sleep(1)
mpr = multi_process_runner.MultiProcessRunner(
proc_func,
multi_worker_test_base.create_cluster_spec(
has_chief=True, num_workers=2, num_ps=2, has_eval=True),
list_stdout=True)
mpr._dependence_on_chief = False
mpr.start()
mpr.start_single_process('worker', 2)
mpr.start_single_process('ps', 2)
mpr_result = mpr.join()
list_to_assert = mpr_result.stdout
for job in ['chief', 'evaluator']:
for iteration in range(5):
self.assertTrue(
any('(logging) {}-0, i: {}'.format(job, iteration) in line
for line in list_to_assert))
self.assertTrue(
any('(print) {}-0, i: {}'.format(job, iteration) in line
for line in list_to_assert))
for job in ['worker', 'ps']:
for iteration in range(5):
for task in range(3):
self.assertTrue(
any('(logging) {}-{}, i: {}'.format(job, task, iteration) in line
for line in list_to_assert))
self.assertTrue(
any('(print) {}-{}, i: {}'.format(job, task, iteration) in line
for line in list_to_assert))
task = 3
self.assertFalse(
any('(logging) {}-{}, i: {}'.format(job, task, iteration) in line
for line in list_to_assert))
self.assertFalse(
any('(print) {}-{}, i: {}'.format(job, task, iteration) in line
for line in list_to_assert))
def test_start_in_process_as(self):
def proc_func():
for i in range(5):
logging.info('%s-%d, i: %d', multi_worker_test_base.get_task_type(),
self._worker_idx(), i)
time.sleep(1)
mpr = multi_process_runner.MultiProcessRunner(
proc_func,
multi_worker_test_base.create_cluster_spec(
has_chief=True, num_workers=1),
list_stdout=True)
def eval_func():
time.sleep(1)
mpr.start_single_process(task_type='evaluator', task_id=0)
eval_thread = threading.Thread(target=eval_func)
eval_thread.start()
mpr.start_in_process_as(as_task_type='chief', as_task_id=0)
eval_thread.join()
list_to_assert = mpr.join().stdout
for job in ['worker', 'evaluator']:
for iteration in range(5):
self.assertTrue(
any('{}-0, i: {}'.format(job, iteration) in line
for line in list_to_assert))
def test_terminate_all_does_not_ignore_error(self):
mpr = multi_process_runner.MultiProcessRunner(
proc_func_that_errors,
multi_worker_test_base.create_cluster_spec(num_workers=2),
list_stdout=True)
mpr.start()
time.sleep(60)
mpr.terminate_all()
with self.assertRaisesRegexp(ValueError, 'This is an error.'):
mpr.join()
def test_barrier(self):
multi_process_runner.run(
proc_func_with_barrier,
cluster_spec=multi_worker_test_base.create_cluster_spec(
has_chief=True, num_workers=1),
)
def test_barrier_called_in_main_process(self):
with self.assertRaises(ValueError):
multi_process_runner.barrier()
def test_stdout_available_when_timeout(self):
def proc_func():
for i in range(50):
logging.info('(logging) %s-%d, i: %d',
multi_worker_test_base.get_task_type(), self._worker_idx(),
i)
time.sleep(1)
with self.assertRaises(multi_process_runner.SubprocessTimeoutError) as cm:
multi_process_runner.run(
proc_func,
multi_worker_test_base.create_cluster_spec(num_workers=1, num_ps=1),
list_stdout=True,
timeout=5)
list_to_assert = cm.exception.mpr_result.stdout
for job in ['worker', 'ps']:
for iteration in range(0, 5):
self.assertTrue(
any('(logging) {}-0, i: {}'.format(job, iteration) in line
for line in list_to_assert))
if __name__ == '__main__':
multi_process_runner.test_main()
| test_streaming |
test_http_job_server.py | import logging
from pathlib import Path
import sys
import tempfile
from typing import Optional
import pytest
from unittest.mock import patch
import ray
from ray.dashboard.modules.job.common import CURRENT_VERSION, JobStatus
from ray.dashboard.modules.job.sdk import (
ClusterInfo,
JobSubmissionClient,
parse_cluster_info,
)
from ray.dashboard.tests.conftest import * # noqa
from ray.ray_constants import DEFAULT_DASHBOARD_PORT
from ray.tests.conftest import _ray_start
from ray._private.test_utils import (
format_web_url,
wait_for_condition,
wait_until_server_available,
)
logger = logging.getLogger(__name__)
@pytest.fixture(scope="module")
def headers():
return {"Connection": "keep-alive", "Authorization": "TOK:<MY_TOKEN>"}
@pytest.fixture(scope="module")
def job_sdk_client(headers):
with _ray_start(include_dashboard=True, num_cpus=1) as address_info:
address = address_info["webui_url"]
assert wait_until_server_available(address)
yield JobSubmissionClient(format_web_url(address), headers=headers)
def _check_job_succeeded(client: JobSubmissionClient, job_id: str) -> bool:
status = client.get_job_status(job_id)
if status.status == JobStatus.FAILED:
logs = client.get_job_logs(job_id)
raise RuntimeError(f"Job failed\nlogs:\n{logs}")
return status.status == JobStatus.SUCCEEDED
def _check_job_failed(client: JobSubmissionClient, job_id: str) -> bool:
status = client.get_job_status(job_id)
return status.status == JobStatus.FAILED
def _check_job_stopped(client: JobSubmissionClient, job_id: str) -> bool:
status = client.get_job_status(job_id)
return status.status == JobStatus.STOPPED
@pytest.fixture(
scope="module", params=["no_working_dir", "local_working_dir", "s3_working_dir"]
)
def working_dir_option(request):
if request.param == "no_working_dir":
yield {
"runtime_env": {},
"entrypoint": "echo hello",
"expected_logs": "hello\n",
}
elif request.param == "local_working_dir":
with tempfile.TemporaryDirectory() as tmp_dir:
path = Path(tmp_dir)
hello_file = path / "test.py"
with hello_file.open(mode="w") as f:
f.write("from test_module import run_test\n")
f.write("print(run_test())")
module_path = path / "test_module"
module_path.mkdir(parents=True)
test_file = module_path / "test.py"
with test_file.open(mode="w") as f:
f.write("def run_test():\n")
f.write(" return 'Hello from test_module!'\n") # noqa: Q000
init_file = module_path / "__init__.py" |
yield {
"runtime_env": {"working_dir": tmp_dir},
"entrypoint": "python test.py",
"expected_logs": "Hello from test_module!\n",
}
elif request.param == "s3_working_dir":
yield {
"runtime_env": {
"working_dir": "s3://runtime-env-test/script_runtime_env.zip",
},
"entrypoint": "python script.py",
"expected_logs": "Executing main() from script.py !!\n",
}
else:
assert False, f"Unrecognized option: {request.param}."
def test_submit_job(job_sdk_client, working_dir_option):
client = job_sdk_client
job_id = client.submit_job(
entrypoint=working_dir_option["entrypoint"],
runtime_env=working_dir_option["runtime_env"],
)
wait_for_condition(_check_job_succeeded, client=client, job_id=job_id)
logs = client.get_job_logs(job_id)
assert logs == working_dir_option["expected_logs"]
def test_http_bad_request(job_sdk_client):
"""
Send bad requests to job http server and ensure right return code and
error message is returned via http.
"""
client = job_sdk_client
# 400 - HTTPBadRequest
r = client._do_request(
"POST",
"/api/jobs/",
json_data={"key": "baaaad request"},
)
assert r.status_code == 400
assert "TypeError: __init__() got an unexpected keyword argument" in r.text
def test_invalid_runtime_env(job_sdk_client):
client = job_sdk_client
job_id = client.submit_job(
entrypoint="echo hello", runtime_env={"working_dir": "s3://not_a_zip"}
)
wait_for_condition(_check_job_failed, client=client, job_id=job_id)
status = client.get_job_status(job_id)
assert "Only .zip files supported for remote URIs" in status.message
def test_runtime_env_setup_failure(job_sdk_client):
client = job_sdk_client
job_id = client.submit_job(
entrypoint="echo hello", runtime_env={"working_dir": "s3://does_not_exist.zip"}
)
wait_for_condition(_check_job_failed, client=client, job_id=job_id)
status = client.get_job_status(job_id)
assert "Failed to setup runtime environment" in status.message
def test_submit_job_with_exception_in_driver(job_sdk_client):
"""
Submit a job that's expected to throw exception while executing.
"""
client = job_sdk_client
with tempfile.TemporaryDirectory() as tmp_dir:
path = Path(tmp_dir)
driver_script = """
print('Hello !')
raise RuntimeError('Intentionally failed.')
"""
test_script_file = path / "test_script.py"
with open(test_script_file, "w+") as file:
file.write(driver_script)
job_id = client.submit_job(
entrypoint="python test_script.py", runtime_env={"working_dir": tmp_dir}
)
wait_for_condition(_check_job_failed, client=client, job_id=job_id)
logs = client.get_job_logs(job_id)
assert "Hello !" in logs
assert "RuntimeError: Intentionally failed." in logs
def test_stop_long_running_job(job_sdk_client):
"""
Submit a job that runs for a while and stop it in the middle.
"""
client = job_sdk_client
with tempfile.TemporaryDirectory() as tmp_dir:
path = Path(tmp_dir)
driver_script = """
print('Hello !')
import time
time.sleep(300) # This should never finish
raise RuntimeError('Intentionally failed.')
"""
test_script_file = path / "test_script.py"
with open(test_script_file, "w+") as file:
file.write(driver_script)
job_id = client.submit_job(
entrypoint="python test_script.py", runtime_env={"working_dir": tmp_dir}
)
assert client.stop_job(job_id) is True
wait_for_condition(_check_job_stopped, client=client, job_id=job_id)
def test_job_metadata(job_sdk_client):
client = job_sdk_client
print_metadata_cmd = (
'python -c"'
"import ray;"
"ray.init();"
"job_config=ray.worker.global_worker.core_worker.get_job_config();"
"print(dict(sorted(job_config.metadata.items())))"
'"'
)
job_id = client.submit_job(
entrypoint=print_metadata_cmd, metadata={"key1": "val1", "key2": "val2"}
)
wait_for_condition(_check_job_succeeded, client=client, job_id=job_id)
assert (
str(
{
"job_name": job_id,
"job_submission_id": job_id,
"key1": "val1",
"key2": "val2",
}
)
in client.get_job_logs(job_id)
)
def test_pass_job_id(job_sdk_client):
client = job_sdk_client
job_id = "my_custom_id"
returned_id = client.submit_job(entrypoint="echo hello", job_id=job_id)
assert returned_id == job_id
wait_for_condition(_check_job_succeeded, client=client, job_id=returned_id)
# Test that a duplicate job_id is rejected.
with pytest.raises(Exception, match=f"{job_id} already exists"):
returned_id = client.submit_job(entrypoint="echo hello", job_id=job_id)
def test_nonexistent_job(job_sdk_client):
client = job_sdk_client
with pytest.raises(RuntimeError, match="nonexistent_job does not exist"):
client.get_job_status("nonexistent_job")
def test_submit_optional_args(job_sdk_client):
"""Check that job_id, runtime_env, and metadata are optional."""
client = job_sdk_client
r = client._do_request(
"POST",
"/api/jobs/",
json_data={"entrypoint": "ls"},
)
wait_for_condition(_check_job_succeeded, client=client, job_id=r.json()["job_id"])
def test_missing_resources(job_sdk_client):
"""Check that 404s are raised for resources that don't exist."""
client = job_sdk_client
conditions = [
("GET", "/api/jobs/fake_job_id"),
("GET", "/api/jobs/fake_job_id/logs"),
("POST", "/api/jobs/fake_job_id/stop"),
("GET", "/api/packages/fake_package_uri"),
]
for method, route in conditions:
assert client._do_request(method, route).status_code == 404
def test_version_endpoint(job_sdk_client):
client = job_sdk_client
r = client._do_request("GET", "/api/version")
assert r.status_code == 200
assert r.json() == {
"version": CURRENT_VERSION,
"ray_version": ray.__version__,
"ray_commit": ray.__commit__,
}
def test_request_headers(job_sdk_client):
client = job_sdk_client
with patch("requests.request") as mock_request:
_ = client._do_request(
"POST",
"/api/jobs/",
json_data={"entrypoint": "ls"},
)
mock_request.assert_called_with(
"POST",
"http://127.0.0.1:8265/api/jobs/",
cookies=None,
data=None,
json={"entrypoint": "ls"},
headers={"Connection": "keep-alive", "Authorization": "TOK:<MY_TOKEN>"},
)
@pytest.mark.parametrize("scheme", ["http", "https", "ray", "fake_module"])
@pytest.mark.parametrize("host", ["127.0.0.1", "localhost", "fake.dns.name"])
@pytest.mark.parametrize("port", [None, 8265, 10000])
def test_parse_cluster_info(scheme: str, host: str, port: Optional[int]):
address = f"{scheme}://{host}"
if port is not None:
address += f":{port}"
final_port = port if port is not None else DEFAULT_DASHBOARD_PORT
if scheme in {"http", "ray"}:
assert parse_cluster_info(address, False) == ClusterInfo(
address=f"http://{host}:{final_port}",
cookies=None,
metadata=None,
headers=None,
)
elif scheme == "https":
assert parse_cluster_info(address, False) == ClusterInfo(
address=f"https://{host}:{final_port}",
cookies=None,
metadata=None,
headers=None,
)
else:
with pytest.raises(RuntimeError):
parse_cluster_info(address, False)
@pytest.mark.asyncio
async def test_tail_job_logs(job_sdk_client):
client = job_sdk_client
with tempfile.TemporaryDirectory() as tmp_dir:
path = Path(tmp_dir)
driver_script = """
import time
for i in range(100):
print("Hello", i)
time.sleep(0.1)
"""
test_script_file = path / "test_script.py"
with open(test_script_file, "w+") as f:
f.write(driver_script)
job_id = client.submit_job(
entrypoint="python test_script.py", runtime_env={"working_dir": tmp_dir}
)
i = 0
async for lines in client.tail_job_logs(job_id):
print(lines, end="")
for line in lines.strip().split("\n"):
assert line.split(" ") == ["Hello", str(i)]
i += 1
wait_for_condition(_check_job_succeeded, client=client, job_id=job_id)
if __name__ == "__main__":
sys.exit(pytest.main(["-v", __file__])) | with init_file.open(mode="w") as f:
f.write("from test_module.test import run_test\n") |
fortios_router_setting.py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# the lib use python logging can get it if the following is set in your
# Ansible config.
__metaclass__ = type
ANSIBLE_METADATA = {'status': ['preview'],
'supported_by': 'community',
'metadata_version': '1.1'}
DOCUMENTATION = '''
---
module: fortios_router_setting
short_description: Configure router settings in Fortinet's FortiOS and FortiGate.
description:
- This module is able to configure a FortiGate or FortiOS by allowing the
user to set and modify router feature and setting category.
Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.2
version_added: "2.8"
author:
- Miguel Angel Munoz (@mamunozgonzalez)
- Nicolas Thomas (@thomnico)
notes:
- Requires fortiosapi library developed by Fortinet
- Run as a local_action in your playbook
requirements:
- fortiosapi>=0.9.8
options:
host:
description:
- FortiOS or FortiGate ip address.
required: true
username:
description:
- FortiOS or FortiGate username.
required: true
password:
description:
- FortiOS or FortiGate password.
default: ""
vdom:
description:
- Virtual domain, among those defined previously. A vdom is a
virtual instance of the FortiGate that can be configured and
used as a different unit.
default: root
https:
description:
- Indicates if the requests towards FortiGate must use HTTPS
protocol
type: bool
default: true
router_setting:
description:
- Configure router settings.
default: null
suboptions:
hostname:
description:
- Hostname for this virtual domain router.
show-filter:
description:
- Prefix-list as filter for showing routes. Source router.prefix-list.name.
'''
EXAMPLES = '''
- hosts: localhost
vars:
host: "192.168.122.40"
username: "admin"
password: ""
vdom: "root"
tasks:
- name: Configure router settings.
fortios_router_setting:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
vdom: "{{ vdom }}"
https: "False"
router_setting:
hostname: "myhostname"
show-filter: "<your_own_value> (source router.prefix-list.name)"
'''
RETURN = '''
build:
description: Build number of the fortigate image
returned: always
type: str
sample: '1547'
http_method:
description: Last method used to provision the content into FortiGate
returned: always
type: str
sample: 'PUT'
http_status:
description: Last result given by FortiGate on last operation applied
returned: always
type: str
sample: "200"
mkey:
description: Master key (id) used in the last call to FortiGate
returned: success
type: str
sample: "id"
name:
description: Name of the table used to fulfill the request
returned: always
type: str
sample: "urlfilter"
path:
description: Path of the table used to fulfill the request
returned: always
type: str
sample: "webfilter"
revision:
description: Internal revision number
returned: always
type: str
sample: "17.0.2.10658"
serial:
description: Serial number of the unit
returned: always
type: str
sample: "FGVMEVYYQT3AB5352"
status:
description: Indication of the operation's result
returned: always
type: str
sample: "success"
vdom:
description: Virtual domain used
returned: always
type: str
sample: "root"
version:
description: Version of the FortiGate
returned: always
type: str
sample: "v5.6.3"
'''
from ansible.module_utils.basic import AnsibleModule
fos = None
def login(data):
|
def filter_router_setting_data(json):
option_list = ['hostname', 'show-filter']
dictionary = {}
for attribute in option_list:
if attribute in json and json[attribute] is not None:
dictionary[attribute] = json[attribute]
return dictionary
def flatten_multilists_attributes(data):
multilist_attrs = []
for attr in multilist_attrs:
try:
path = "data['" + "']['".join(elem for elem in attr) + "']"
current_val = eval(path)
flattened_val = ' '.join(elem for elem in current_val)
exec(path + '= flattened_val')
except BaseException:
pass
return data
def router_setting(data, fos):
vdom = data['vdom']
router_setting_data = data['router_setting']
flattened_data = flatten_multilists_attributes(router_setting_data)
filtered_data = filter_router_setting_data(flattened_data)
return fos.set('router',
'setting',
data=filtered_data,
vdom=vdom)
def fortios_router(data, fos):
login(data)
if data['router_setting']:
resp = router_setting(data, fos)
fos.logout()
return not resp['status'] == "success", resp['status'] == "success", resp
def main():
fields = {
"host": {"required": True, "type": "str"},
"username": {"required": True, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True},
"router_setting": {
"required": False, "type": "dict",
"options": {
"hostname": {"required": False, "type": "str"},
"show-filter": {"required": False, "type": "str"}
}
}
}
module = AnsibleModule(argument_spec=fields,
supports_check_mode=False)
try:
from fortiosapi import FortiOSAPI
except ImportError:
module.fail_json(msg="fortiosapi module is required")
global fos
fos = FortiOSAPI()
is_error, has_changed, result = fortios_router(module.params, fos)
if not is_error:
module.exit_json(changed=has_changed, meta=result)
else:
module.fail_json(msg="Error in repo", meta=result)
if __name__ == '__main__':
main()
| host = data['host']
username = data['username']
password = data['password']
fos.debug('on')
if 'https' in data and not data['https']:
fos.https('off')
else:
fos.https('on')
fos.login(host, username, password) |
netrics.js | function generateSmallWorldEdgePush(edges, n , p, k) {
for (var nodeID = 0; nodeID < n; nodeID++) {
for (var edgeID = 0; edgeID < k; edgeID++) {
var diff = Math.floor((edgeID / 2) + 1);
if (edgeID%2 === 1) diff *= -1;
var newIndex = nodeID + diff;
if (newIndex < 0) newIndex += n;
if (newIndex >= n) newIndex -= n;
edges.push([nodeID, newIndex]);
}
}
}
function generateSmallWorldEdgeVerticePush(edges, vertices, n , p, k) {
for (var edgeIndex = 0; edgeIndex < edges.length; edgeIndex++) {
if (Math.random() < p) {
var source = edges[edgeIndex][0];
do {
var randomIndex = Math.floor(Math.random() * n);
var newDestination = vertices[randomIndex];
}
while(source === newDestination); // at this stage, duplicate edges still possible, removed later
edges[edgeIndex][1] = newDestination;
}
}
}
function generateSmallWorld(n, p, k) {
var vertices = [];
var edges = [];
var nodes = [];
for (var nodeCreateID = 0; nodeCreateID < n; nodeCreateID++) {
vertices.push(nodeCreateID);
var nodeString = {id:vertices[nodeCreateID], status:"S", group:null, edges:[], marked:false, degree:null, bcScore:null, exposureTimestep:null, infectedBy:null};
nodes.push(nodeString);
}
generateSmallWorldEdgePush(edges, n, p, k);
generateSmallWorldEdgeVerticePush(edges, vertices, n , p, k)
var graph = {};
var links = [];
for (var i = 0; i < edges.length; i++) {
var linkString = {source:edges[i][0],target:edges[i][1],remove:false};
if (!testDuplicate(links, linkString)) links.push(linkString); // here is where we get rid of duplicate edges
}
graph.nodes = nodes;
graph.links = links;
return graph;
}
function removeDuplicateEdges(graph) {
for (var ii = 0; ii < graph.nodes.length; ii++) {
var node1 = graph.nodes[ii];
for (var iii = 0; iii < graph.nodes.length; iii++) {
var node2 = graph.nodes[iii];
spliceDuplicateEdges(node1, node2, graph)
}
}
}
function testDuplicate(links, linkString) {
var testSource = linkString.source;
var testTarget = linkString.target;
var duplicate = false;
for (var i = 0; i < links.length; i++) {
var link = links[i];
var source = link.source;
var target = link.target;
if (source === testSource && target === testTarget) duplicate = true;
if (source === testTarget && target === testSource) duplicate = true;
}
return duplicate;
}
// basic functions
function degree(node) {
var degree = 0;
for (var i = 0; i < graph.links.length; i++) {
if (graph.links[i].source === node || graph.links[i].target === node) degree++;
}
return degree;
}
function | (node) {
var neighbors = [];
for (var i = 0; i < graph.links.length; i++) {
var testLink = graph.links[i];
if (testLink.source === node) neighbors.push(testLink.target);
if (testLink.target === node) neighbors.push(testLink.source);
}
return neighbors;
}
function findLink(source, target) {
var link = null;
for (var i = 0; i < graph.links.length; i++) {
var gsource = graph.links[i].source;
var gtarget = graph.links[i].target;
if (gsource === source && gtarget === target) link = graph.links[i];
if (gtarget === source && gsource === target ) link = graph.links[i];
}
return link;
}
function edgeExists(source, target, graph) {
var edgeExists = false;
for (var i = 0; i < graph.links.length; i++) {
var link = graph.links[i];
if (link.source.id === source.id && link.target.id === target.id) {
edgeExists = true;
}
else {
if (link.target.id === source.id && link.source.id === target.id) {
edgeExists = true;
}
}
}
return edgeExists;
}
function spliceDuplicateEdges(source, target, graph) {
var edgeExists = 0;
for (var i = 0; i < graph.links.length; i++) {
var link = graph.links[i];
var lTargetId = link.target.id;
var lSourceId = link.source.id
// test one direction
if (lTargetId === target.id && lSourceId === source.id) {
//this is one direction
edgeExists++;
}
// test the other direction
if (lSourceId === target.id && lTargetId === source.id) {
//this is another direction
edgeExists++;
}
// if a duplicate is found then splice it, and continue testing (knowing that any more duplicate edges should definitely be removed)
if (edgeExists > 1) {
edgeExists = 1;
graph.links.splice(i,1);
}
}
return edgeExists;
}
function removeVaccinatedNodes(graph) {
var nodes = [];
for (var i = 0; i < graph.nodes.length; i++) {
if (graph.nodes[i].status !== "V" && graph.nodes[i].status !== "Q" && graph.nodes[i].status !== "VOL") {
nodes.push(graph.nodes[i]);
}
}
return nodes;
}
function removeOldLinks(graph) {
var links = [];
for (var i = 0; i < graph.links.length; i++) {
if (graph.links[i].source.status !== "V" &&
graph.links[i].target.status !== "V" &&
graph.links[i].source.status !== "R" &&
graph.links[i].target.status !== "R" &&
graph.links[i].source.status !== "Q" &&
graph.links[i].target.status !== "Q" &&
graph.links[i].remove !== true){
links.push(graph.links[i]);
}
}
return links;
}
function assignEdgeListsToNodes(graph) {
for (var ii = 0; ii < graph.nodes.length; ii++) {
var node = graph.nodes[ii];
for (var i = 0; i < graph.links.length; i++) {
var link = graph.links[i];
if (link.source === node || link.target === node) node.edges.push(link);
}
}
return graph;
}
function updateCommunities() {
twine = [];
twineIndex = 0;
groupCounter = 1;
for (var nodeIndex = 0; nodeIndex < graph.nodes.length; nodeIndex++) {
var node = graph.nodes[nodeIndex];
node.group = null;
node.marked = false;
}
assignGroups();
}
function assignGroups() {
for(;;) {
var unassigned = getUnmarkedUngroupedNodes();
if (unassigned.length === 0) {
numberOfCommunities = groupCounter - 1;
break;
}
if (pacMan(unassigned[0]) && unassigned.length !== 0) {
groupCounter++;
}
}
}
function getUnmarkedUngroupedNodes() {
var unmarkedNodes = [];
for (var nodeIndex = 0; nodeIndex < graph.nodes.length; nodeIndex++) {
var node = graph.nodes[nodeIndex];
if (node.marked === false) unmarkedNodes.push(node);
}
return unmarkedNodes;
}
function pacMan(node) {
node.group = groupCounter;
var nextNode = null;
if (node !== null && !node.marked) {
node.marked = true;
node.group = groupCounter;
twine.push(node);
var nodeDegree = degree(node);
var neighbors = findNeighbors(node);
for (var completionCounter = 0; completionCounter < nodeDegree; completionCounter++) {
var nodeToCheck = neighbors[completionCounter];
if (!nodeToCheck.marked) {
nextNode = nodeToCheck;
pacMan(nextNode);
}
}
}
if (node === null && twineIndex !== 0) {
twineIndex =- 1;
nextNode = twine[twineIndex];
pacMan(nextNode);
}
else {
return true;
}
}
function findLargestCommunity() {
communities = [];
for (var i = 0; i < groupCounter; i++) {
communities[i] = 0;
}
for (var ii = 0; ii < groupCounter; ii++) {
for (var nodeIndex = 0; nodeIndex < graph.nodes.length; nodeIndex++) {
if (graph.nodes[nodeIndex].group === ii) communities[ii]++;
}
}
largestCommunity = Array.max(communities);
}
Array.max = function( array ){
return Math.max.apply( Math, array );
};
function convertGraphForNetX(graph) {
var vertices = [];
var edges = [];
var G = jsnx.Graph();
for (var node = 0; node < graph.nodes.length; node++) {
vertices.push(graph.nodes[node].id);
}
for (var edge = 0; edge < graph.links.length; edge++) {
var formatted = [];
formatted.push(graph.links[edge].source.id);
formatted.push(graph.links[edge].target.id);
edges.push(formatted);
}
G.add_nodes_from(vertices);
G.add_edges_from(edges);
return G;
}
function assignDegree() {
for (var i = 0; i < graph.nodes.length; i++) {
graph.nodes[i].degree = degree(graph.nodes[i]);
}
}
function computeBetweennessCentrality() {
G = convertGraphForNetX(graph);
var bc = jsnx.betweenness_centrality(G);
for (var i = 0; i < graph.nodes.length; i++) {
if (bc[i] === 0) bc[i] = 0.0001;
graph.nodes[i].bcScore = bc[i];
}
return bc;
}
function shuffle(o){ //v1.0
for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
return o;
}
function getTailoredNodes() {
// make nodes
var tailoredNodes= [];
for (var ii = 0; ii < 13; ii++) {
var nodeString = {id:ii+13, status:"S", group:null, edges:[], marked:false, degree:null, bcScore:null, exposureTimestep:null, infectedBy:null};
tailoredNodes.push(nodeString);
}
return tailoredNodes;
}
function cleanup(arr, prop) {
var new_arr = [];
var lookup = {};
for(var i = 0; i<arr.length; i++) {
lookup[arr[i][prop]] = arr[i];
}
for(var ii = 0; ii<lookup.length; ii++) {
new_arr.push(lookup[ii]);
}
return new_arr;
}
function getTailoredLinks() {
// make links
var tailoredLinks = [];
tailoredLinks = [
{
source:tailoredNodes[13-13],
target:tailoredNodes[14-13],
remove:false
},
{
source:tailoredNodes[13-13],
target:tailoredNodes[17-13],
remove:false
},
{
source:tailoredNodes[13-13],
target:tailoredNodes[18-13],
remove:false
},
{
source:tailoredNodes[13-13],
target:tailoredNodes[25-13],
remove:false
},
{
source:tailoredNodes[14-13],
target:tailoredNodes[13-13],
remove:false
},
{
source:tailoredNodes[14-13],
target:tailoredNodes[25-13],
remove:false
},
{
source:tailoredNodes[14-13],
target:tailoredNodes[15-13],
remove:false
},
{
source:tailoredNodes[14-13],
target:tailoredNodes[20-13],
remove:false
},
{
source:tailoredNodes[14-13],
target:tailoredNodes[23-13],
remove:false
},
{
source:tailoredNodes[17-13],
target:tailoredNodes[13-13],
remove:false
},
{
source:tailoredNodes[17-13],
target:tailoredNodes[18-13],
remove:false
},
{
source:tailoredNodes[17-13],
target:tailoredNodes[19-13],
remove:false
},
{
source:tailoredNodes[18-13],
target:tailoredNodes[13-13],
remove:false
},
{
source:tailoredNodes[18-13],
target:tailoredNodes[17-13],
remove:false
},
{
source:tailoredNodes[18-13],
target:tailoredNodes[19-13],
remove:false
},
{
source:tailoredNodes[25-13],
target:tailoredNodes[13-13],
remove:false
},
{
source:tailoredNodes[25-13],
target:tailoredNodes[14-13],
remove:false
},
{
source:tailoredNodes[25-13],
target:tailoredNodes[15-13],
remove:false
},
{
source:tailoredNodes[25-13],
target:tailoredNodes[16-13],
remove:false
},
{
source:tailoredNodes[15-13],
target:tailoredNodes[14-13],
remove:false
},
{
source:tailoredNodes[15-13],
target:tailoredNodes[25-13],
remove:false
},
{
source:tailoredNodes[15-13],
target:tailoredNodes[23-13],
remove:false
},
{
source:tailoredNodes[15-13],
target:tailoredNodes[16-13],
remove:false
},
{
source:tailoredNodes[15-13],
target:tailoredNodes[21-13],
remove:false
},
{
source:tailoredNodes[15-13],
target:tailoredNodes[22-13],
remove:false
},
{
source:tailoredNodes[15-13],
target:tailoredNodes[24-13],
remove:false
},
{
source:tailoredNodes[20-13],
target:tailoredNodes[14-13],
remove:false
},
{
source:tailoredNodes[23-13],
target:tailoredNodes[14-13],
remove:false
},
{
source:tailoredNodes[23-13],
target:tailoredNodes[15-13],
remove:false
},
{
source:tailoredNodes[23-13],
target:tailoredNodes[21-13],
remove:false
},
{
source:tailoredNodes[16-13],
target:tailoredNodes[25-13],
remove:false
},
{
source:tailoredNodes[16-13],
target:tailoredNodes[15-13],
remove:false
},
{
source:tailoredNodes[16-13],
target:tailoredNodes[21-13],
remove:false
},
{
source:tailoredNodes[16-13],
target:tailoredNodes[19-13],
remove:false
},
{
source:tailoredNodes[21-13],
target:tailoredNodes[15-13],
remove:false
},
{
source:tailoredNodes[21-13],
target:tailoredNodes[23-13],
remove:false
},
{
source:tailoredNodes[21-13],
target:tailoredNodes[16-13],
remove:false
},
{
source:tailoredNodes[21-13],
target:tailoredNodes[22-13],
remove:false
},
{
source:tailoredNodes[22-13],
target:tailoredNodes[15-13],
remove:false
},
{
source:tailoredNodes[22-13],
target:tailoredNodes[21-13],
remove:false
},
{
source:tailoredNodes[24-13],
target:tailoredNodes[15-13],
remove:false
},
{
source:tailoredNodes[19-13],
target:tailoredNodes[17-13],
remove:false
},
{
source:tailoredNodes[19-13],
target:tailoredNodes[18-13],
remove:false
},
{
source:tailoredNodes[19-13],
target:tailoredNodes[16-13],
remove:false
}
]
return tailoredLinks;
}
function getWeakTieNodes() {
var weakTieNodes = [];
for (var i = 0; i < 30; i++) {
var nodeString = {id:i, status:"S", group:null, edges:[], marked:false, degree:null, bcScore:null, exposureTimestep:null, infectedBy:null};
weakTieNodes.push(nodeString);
}
return weakTieNodes;
}
function getWeakTieLinks() {
var weakTieLinks = [
{
source:weakTieNodes[1],
target:weakTieNodes[3],
remove:false
},
{
source:weakTieNodes[3],
target:weakTieNodes[6],
remove:false
},
{
source:weakTieNodes[4],
target:weakTieNodes[1],
remove:false
},
{
source:weakTieNodes[4],
target:weakTieNodes[2],
remove:false
},
{
source:weakTieNodes[4],
target:weakTieNodes[3],
remove:false
},
{
source:weakTieNodes[4],
target:weakTieNodes[8],
remove:false
},
{
source:weakTieNodes[4],
target:weakTieNodes[9],
remove:false
},
{
source:weakTieNodes[5],
target:weakTieNodes[16],
remove:false
},
{
source:weakTieNodes[6],
target:weakTieNodes[1],
remove:false
},
{
source:weakTieNodes[8],
target:weakTieNodes[12],
remove:false
},
{
source:weakTieNodes[8],
target:weakTieNodes[13],
remove:false
},
{
source:weakTieNodes[9],
target:weakTieNodes[15],
remove:false
},
{
source:weakTieNodes[10],
target:weakTieNodes[6],
remove:false
},
{
source:weakTieNodes[10],
target:weakTieNodes[18],
remove:false
},
{
source:weakTieNodes[12],
target:weakTieNodes[2],
remove:false
},
{
source:weakTieNodes[12],
target:weakTieNodes[9],
remove:false
},
{
source:weakTieNodes[13],
target:weakTieNodes[2],
remove:false
},
{
source:weakTieNodes[13],
target:weakTieNodes[17],
remove:false
},
{
source:weakTieNodes[14],
target:weakTieNodes[13],
remove:false
},
{
source:weakTieNodes[14],
target:weakTieNodes[15],
remove:false
},
{
source:weakTieNodes[15],
target:weakTieNodes[2],
remove:false
},
{
source:weakTieNodes[15],
target:weakTieNodes[5],
remove:false
},
{
source:weakTieNodes[16],
target:weakTieNodes[14],
remove:false
},
{
source:weakTieNodes[16],
target:weakTieNodes[17],
remove:false
},
{
source:weakTieNodes[18],
target:weakTieNodes[19],
remove:false
},
{
source:weakTieNodes[19],
target:weakTieNodes[10],
remove:false
},
{
source:weakTieNodes[19],
target:weakTieNodes[24],
remove:false
},
{
source:weakTieNodes[19],
target:weakTieNodes[28],
remove:false
},
{
source:weakTieNodes[21],
target:weakTieNodes[23],
remove:false
},
{
source:weakTieNodes[21],
target:weakTieNodes[28],
remove:false
},
{
source:weakTieNodes[22],
target:weakTieNodes[18],
remove:false
},
{
source:weakTieNodes[23],
target:weakTieNodes[19],
remove:false
},
{
source:weakTieNodes[23],
target:weakTieNodes[22],
remove:false
},
{
source:weakTieNodes[24],
target:weakTieNodes[26],
remove:false
},
{
source:weakTieNodes[28],
target:weakTieNodes[24],
remove:false
},
{
source:weakTieNodes[29],
target:weakTieNodes[26],
remove:false
}
]
return weakTieLinks;
}
function generateFrontGraph() {
var frontCharge = -30000;
frontGraph = {};
frontNodes = [{id:0}, {id:1}, {id:2}, {id:3}];
frontLinks = [
{
source:frontNodes[0],
target:frontNodes[1]
},
{
source:frontNodes[1],
target:frontNodes[2]
},
{
source:frontNodes[2],
target:frontNodes[0]
},
{
source:frontNodes[1],
target:frontNodes[3]
}
];
frontGraph.nodes = frontNodes;
frontGraph.links = frontLinks;
frontForce = getFriction(frontGraph.nodes, frontGraph.links, frontCharge, 0.80, frontTick);
// associate empty SVGs with link data. assign attributes.
frontLink = frontManager(homeSVG,".link", frontGraph.links, "line", "link", "10px", "#d5d5d5")
.style("fill", "#707070");
// associate empty SVGs with node data. assign attributes. call force.drag to make them moveable.
frontNode = frontManager(homeSVG, ".node", frontGraph.nodes, "circle", "node", "10px", "#b7b7b7")
.attr("r", 50)
.attr("fill", function(d) {
if (d.id === 3) return "#f1d2d2"
else return "#d5d5d5"
})
.call(frontForce.drag);
}
function frontManager(obj, selectAl, frontgraph, append, clas, strow, strok){
return defData(obj, selectAl, frontgraph, append, clas, strok)
.style("stroke-width", strow)
.style("stroke", strok);
}
function frontTick() {
getCxCy(frontNode, width - 50, 500 - 50);
getAttribute(frontLink);
}
function getAttribute(obj){
return obj.attr("x1", function(d) { return d.source.x; })
.attr("y1", function(d) { return d.source.y; })
.attr("x2", function(d) { return d.target.x; })
.attr("y2", function(d) { return d.target.y; });
}
function getCxCy(obj, w, h){
return obj.attr("cx", function(d) {
d.x = mathMax(w, d.x);
return d.x;
})
.attr("cy", function(d) {
d.y = mathMax(h, d.y);
return d.y;
});
}
function mathMax(x, y){
return Math.max(8, Math.min(x, y));
}
function getFriction(nod, link, charg, fric, tic){
return d3.layout.force()
.nodes(nod)
.links(link)
.size([width, height])
.charge(charg)
.friction(fric)
.on("tick", tic)
.start();
}
| findNeighbors |
surge_suite_test.go | package surge_test
import (
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func TestSurge(t *testing.T) | {
RegisterFailHandler(Fail)
RunSpecs(t, "Surge Suite")
} |
|
lib.rs | #![feature(libc)]
extern crate libc;
extern crate errno;
extern crate sgx_types;
extern crate sgx_urts;
extern crate utils;
#[macro_use]
extern crate lazy_static;
use std::panic;
use errno::{set_errno, Errno};
use sgx_types::*;
use sgx_urts::SgxEnclave;
pub mod multiply;
pub mod wasm;
static ENCLAVE_FILE: &'static str = "enclave.signed.so";
// lazy_static allows us to setup a global value to persist the enclave in, so that we don't have
// to pass the SgxEnclave into go territory and then back again.
lazy_static! {
static ref ENCLAVE: SgxEnclave = {
perform_enclave_init().unwrap_or_else(|err| {
panic!("Failed to initialize the enclave: {}", err);
})
};
}
#[no_mangle]
pub extern "C" fn init_enclave() {
// lazy_statics don't have a way to return an error, so setup a panic handler.
let result = panic::catch_unwind(|| {
lazy_static::initialize(&ENCLAVE);
});
set_errno(Errno(0));
if result.is_err() {
// Go uses the C _errno variable to get errors from C
set_errno(Errno(1));
}
}
fn perform_enclave_init() -> SgxResult<SgxEnclave> | {
let mut launch_token: sgx_launch_token_t = [0; 1024];
let mut launch_token_updated: i32 = 0;
let debug = 1;
let mut misc_attr = sgx_misc_attribute_t {
secs_attr: sgx_attributes_t { flags: 0, xfrm: 0 },
misc_select: 0,
};
SgxEnclave::create(
ENCLAVE_FILE,
debug,
&mut launch_token,
&mut launch_token_updated,
&mut misc_attr,
)
} |
|
arithmetic.ts | import {CPU} from "../cpu";
import {BinaryOperation, UnaryReadOperation, UnaryWriteOperation} from "./instruction";
import {RuntimeException} from "../runtime-exception";
export class Add extends BinaryOperation
{
execute(cpu: CPU): number
{
this.target.setValue(cpu.alu.add(this.target.getValue(), this.source.getValue()));
return cpu.getNextInstruction();
}
}
export class AddWithCarry extends Add
{
execute(cpu: CPU): number
{
this.target.setValue(cpu.alu.add(this.target.getValue(), this.source.getValue(), cpu.statusWord.carry ? 1 : 0));
return cpu.getNextInstruction();
}
}
export class Sub extends BinaryOperation
{
execute(cpu: CPU): number
{
this.target.setValue(cpu.alu.sub(this.target.getValue(), this.source.getValue()));
return cpu.getNextInstruction();
}
}
export class | extends Sub
{
execute(cpu: CPU): number
{
this.target.setValue(cpu.alu.sub(this.target.getValue(), this.source.getValue(), cpu.statusWord.carry ? 1 : 0));
return cpu.getNextInstruction();
}
}
export class Increment extends UnaryWriteOperation
{
execute(cpu: CPU): number
{
this.target.setValue(cpu.alu.inc(this.target.getValue()));
return cpu.getNextInstruction();
}
}
export class Decrement extends UnaryWriteOperation
{
execute(cpu: CPU): number
{
this.target.setValue(cpu.alu.dec(this.target.getValue()));
return cpu.getNextInstruction();
}
}
export class DivideSigned extends UnaryReadOperation
{
public execute(cpu: CPU): number
{
if (this.target.getValue() === 0)
{
throw new RuntimeException("Division by zero");
}
let edx = cpu.getRegisterByName("EDX").getValue();
let eax = cpu.getRegisterByName("EAX").getValue();
let value: number = cpu.alu.extend64bit(eax, edx);
let result: { value: number, remainder: number } = cpu.alu.idivide(value, this.target.getValue());
cpu.getRegisterByName("EDX").setValue(result.remainder);
cpu.getRegisterByName("EAX").setValue(result.value);
return cpu.getNextInstruction();
}
}
export class MultiplySigned extends UnaryReadOperation
{
public execute(cpu: CPU): number
{
let eax = cpu.getRegisterByName("EAX").getValue();
let result: { lowerHalf: number, upperHalf: number } = cpu.alu.imultiply(eax, this.target.getValue());
cpu.getRegisterByName("EDX").setValue(result.upperHalf);
cpu.getRegisterByName("EAX").setValue(result.lowerHalf);
return cpu.getNextInstruction();
}
}
| SubWithBorrow |
gowo.go | package gowo
import (
"fmt"
"math/rand"
"strings"
)
var prefixes = []string{
"<3 ",
"0w0 ",
"H-hewwo?? ",
"HIIII! ",
"Haiiii! ",
"Huohhhh. ",
"OWO ",
"OwO ",
"UwU ",
}
var suffixes = []string{
" :3",
" UwU",
" ʕʘ‿ʘʔ",
" >_>",
" ^_^",
"..",
" Huoh.",
" ^-^",
" ;_;",
" ;-;",
" xD",
" x3",
" :D",
" :P",
" ;3",
" XDDD",
", fwendo",
" ㅇㅅㅇ",
" (人◕ω◕)",
"(^v^)",
" Sigh.",
" x3",
" ._.",
" (• o •)",
" >_<",
}
var subs = map[string]string{
"r": "w",
"l": "w",
"R": "W",
"L": "W",
// "ow": "OwO",
"no": "nu",
"has": "haz",
"have": "haz",
"you": "uu",
"the ": "da ",
"The ": "Da ",
}
func getRandomFromSlice(slice []string) string {
return slice[rand.Intn(len(slice))]
}
func OwOify(text string, enablePrefix | enableSuffix bool) string {
prefix := ""
suffix := ""
if enablePrefix {
prefix = getRandomFromSlice(prefixes)
}
if enableSuffix {
suffix = getRandomFromSlice(suffixes)
}
replacedString := string(text)
for k, v := range subs {
replacedString = strings.Replace(replacedString, k, v, -1)
}
return fmt.Sprintf("%s%s%s", prefix, replacedString, suffix)
}
| bool, |
login.py | #MIT License
#Copyright (c) 2021 subinps
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#copies of the Software, and to permit persons to whom the Software is
#furnished to do so, subject to the following conditions:
#The above copyright notice and this permission notice shall be included in all
#copies or substantial portions of the Software.
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#SOFTWARE.
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
from pyrogram import Client, filters
from config import Config
from utils import *
import os
from instaloader import Profile, TwoFactorAuthRequiredException, BadCredentialsException
from asyncio.exceptions import TimeoutError
USER=Config.USER
STATUS=Config.STATUS
OWNER=Config.OWNER
HOME_TEXT=Config.HOME_TEXT
insta = Config.L
@Client.on_message(filters.command("login") & filters.private)
async def | (bot, message):
if str(message.from_user.id) == OWNER:
await message.reply_text(
HOME_TEXT.format(message.from_user.first_name, message.from_user.id, USER, USER, USER, OWNER),
disable_web_page_preview=True,
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton("👨🏼💻Developer", url='https://t.me/Justmeio')
],
[
InlineKeyboardButton("🧩Follow me on Insta", url="https:/instagram.com/felt_feelings")
]
]
)
)
return
username=USER
if 1 in STATUS:
m=await bot.send_message(message.from_user.id, "Fetching details from Instagram")
profile = Profile.own_profile(insta.context)
mediacount = profile.mediacount
name = profile.full_name
bio = profile.biography
profilepic = profile.profile_pic_url
igtvcount = profile.igtvcount
followers = profile.followers
following = profile.followees
await m.delete()
await bot.send_photo(
chat_id=message.from_user.id,
caption=f"You are already Logged In as {name}\n\n**Your Account Details**\n\n🏷 **Name**: {name}\n🔖 **Username**: {profile.username}\n📝 **Bio**: {bio}\n📍 **Account Type**: {acc_type(profile.is_private)}\n🏭 **Is Business Account?**: {yes_or_no(profile.is_business_account)}\n👥 **Total Followers**: {followers}\n👥 **Total Following**: {following}\n📸 **Total Posts**: {mediacount}\n📺 **IGTV Videos**: {igtvcount}",
photo=profilepic
)
return
while True:
try:
password = await bot.ask(text = f"Helo {USER} Enter your Instagram Password to login into your account 🙈", chat_id = message.from_user.id, filters=filters.text, timeout=30)
except TimeoutError:
await bot.send_message(message.from_user.id, "Error!!\n\nRequest timed out.\nRestart by using /login")
return
passw=password.text
break
try:
insta.login(username, passw)
insta.save_session_to_file(filename=f"./{username}")
f=await bot.send_document(
chat_id=message.from_user.id,
document=f"./{username}",
file_name=str(message.from_user.id),
caption="⚠️ KEEP THIS SESSION FILE SAFE AND DO NOT SHARE WITH ANYBODY"
)
file_id=f.document.file_id
await bot.send_message(message.from_user.id, f"Now go to [Heroku](https://dashboard.heroku.com/apps) and set Environment variable.\n\n\n**KEY**: <code>INSTA_SESSIONFILE_ID</code>\n\n**VALUE**: <code>{file_id}</code>\n\nIf you do not set this you may need to Login again When Heroku restarts.", disable_web_page_preview=True)
STATUS.add(1)
m=await bot.send_message(message.from_user.id, "Fetching details from Instagram")
profile = Profile.from_username(insta.context, username)
mediacount = profile.mediacount
name = profile.full_name
bio = profile.biography
profilepic = profile.profile_pic_url
igtvcount = profile.igtvcount
followers = profile.followers
following = profile.followees
await m.delete()
await bot.send_photo(
chat_id=message.from_user.id,
caption=f"🔓Succesfully Logged In as {name}\n\n**Your Account Details**\n\n🏷 **Name**: {name}\n🔖 **Username**: {profile.username}\n📝 **Bio**: {bio}\n📍 **Account Type**: {acc_type(profile.is_private)}\n🏭 **Is Business Account?**: {yes_or_no(profile.is_business_account)}\n👥 **Total Followers**: {followers}\n👥 **Total Following**: {following}\n📸 **Total Posts**: {mediacount}\n📺 **IGTV Videos**: {igtvcount}",
photo=profilepic
)
except TwoFactorAuthRequiredException:
while True:
try:
code = await bot.ask(text = "Oh!!\nYour Instagram account has Two Factor Authentication enabled🔐\n\nAn OTP has been sent to your phone\nEnter the OTP", chat_id = message.from_user.id, filters=filters.text, timeout=30)
except TimeoutError:
await bot.send_message(message.from_user.id, "Error!!\n\nRequest timed out.\nRestart by using /login")
return
codei=code.text
try:
codei=int(codei)
break
except:
await bot.send_message(message.from_user.id, "OTP Should be Integer")
continue
try:
insta.two_factor_login(codei)
insta.save_session_to_file(filename=f"./{username}")
f=await bot.send_document(
chat_id=message.from_user.id,
document=f"./{username}",
file_name=str(message.from_user.id),
caption="⚠️ KEEP THIS SESSION FILE SAFE AND DO NOT SHARE WITH ANYBODY"
)
file_id=f.document.file_id
await bot.send_message(message.from_user.id, f"Now go to [Heroku](https://dashboard.heroku.com/apps) and set Environment variable.\n\n\n**KEY**: <code>INSTA_SESSIONFILE_ID</code>\n\n**VALUE**: <code>{file_id}</code>\n\nIf you do not set this you may need to Login again When Heroku restarts.", disable_web_page_preview=True)
STATUS.add(1)
m=await bot.send_message(message.from_user.id, "Fetching details from Instagram")
profile = Profile.from_username(insta.context, username)
mediacount = profile.mediacount
name = profile.full_name
bio = profile.biography
profilepic = profile.profile_pic_url
igtvcount = profile.igtvcount
followers = profile.followers
following = profile.followees
await m.delete()
await bot.send_photo(
chat_id=message.from_user.id,
caption=f"🔓Succesfully Logged In as {name}\n\n**Your Account Details**\n\n🏷 **Name**: {name}\n🔖 **Username**: {profile.username}\n📝**Bio**: {bio}\n📍**Account Type**: {acc_type(profile.is_private)}\n🏭**Is Business Account?**: {yes_or_no(profile.is_business_account)}\n👥**Total Followers**: {followers}\n👥**Total Following**: {following}\n📸**Total Posts**: {mediacount}\n📺**IGTV Videos**: {igtvcount}",
photo=profilepic
)
except BadCredentialsException:
await bot.send_message(message.from_user.id, "Wrong Credentials\n\n/login again")
pass
except Exception as e:
await bot.send_message(message.from_user.id, f"{e}\nTry /login again")
print("Logged in")
except Exception as e:
await bot.send_message(message.from_user.id, f"{e}\nTry again or Report this Issue to [Developer](tg://user?id=626664225)")
@Client.on_message(filters.command("logout") & filters.private)
async def logout(bot, message):
if str(message.from_user.id) != OWNER:
await message.reply_text(
HOME_TEXT.format(message.from_user.first_name, message.from_user.id, USER, USER, USER, OWNER),
disable_web_page_preview=True,
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton("👨🏼💻Developer", url='https://t.me/Justmeio')
],
[
InlineKeyboardButton("🧩Follow me on Insta", url="https:/instagram.com/felt_feelings")
]
]
)
)
return
if 1 in STATUS:
await message.reply_text("Succesfully Logged Out")
STATUS.remove(1)
os.remove(f"./{USER}")
else:
await message.reply_text("You are not Logged in\nUse /login first")
| login |
persona_routes.go | package routes
import (
"github.com/alejandrosubero/crud-api/controllers"
"github.com/gorilla/mux"
)
func SetPersonaRoutes(router *mux.Router) | {
subRoute := router.PathPrefix("/persona/api").Subrouter()
subRoute.HandleFunc("/all", controllers.GetALL).Methods("GEt")
subRoute.HandleFunc("/save", controllers.Save).Methods("POST")
subRoute.HandleFunc("/delete/{id}", controllers.Delete).Methods("POST")
subRoute.HandleFunc("/find/{id}", controllers.Get).Methods("GEt")
subRoute.HandleFunc("/", controllers.Base).Methods("GEt")
subRoute.HandleFunc("/dowload/{nombre}", controllers.FileDowload).Methods("GEt")
} |
|
483b7a8c5ba926dbe5f6a89ea6cbbec3.js | load("201224b0d1c296b45befd2285e95dd42.js");
function | () {
function g() {
eval("");
gc();
Math.abs(4);
NaN;
}
g();
}
function h() {
var x, y;
x = Math.floor(-0);
y = parseInt("1");
}
f();
h();
| f |
service.go | package telecom
import (
"fmt"
"go-common/app/interface/main/app-wall/conf"
seqDao "go-common/app/interface/main/app-wall/dao/seq"
telecomDao "go-common/app/interface/main/app-wall/dao/telecom"
"go-common/library/log"
"go-common/library/stat/prom"
)
const (
_initIPlimitKey = "iplimit_%v_%v"
_telecomKey = "telecom"
)
type Service struct {
c *conf.Config
dao *telecomDao.Dao
seqdao *seqDao.Dao
flowPercentage int
smsTemplate string
smsMsgTemplate string
smsFlowTemplate string
smsOrderTemplateOK string
operationIPlimit map[string]struct{}
telecomArea map[string]struct{}
// prom
pHit *prom.Prom
pMiss *prom.Prom
}
func New(c *conf.Config) (s *Service) {
s = &Service{
c: c,
dao: telecomDao.New(c),
seqdao: seqDao.New(c),
flowPercentage: c.Telecom.FlowPercentage,
smsTemplate: c.Telecom.SMSTemplate,
smsMsgTemplate: c.Telecom.SMSMsgTemplate,
smsFlowTemplate: c.Telecom.SMSFlowTemplate,
smsOrderTemplateOK: c.Telecom.SMSOrderTemplateOK,
operationIPlimit: map[string]struct{}{},
telecomArea: map[string]struct{}{},
// prom
pHit: prom.CacheHit,
pMiss: prom.CacheMiss,
}
go s.loadIPlimit(c)
go s.loadTelecomArea(c)
return
}
func (s *Service) loadIPlimit(c *conf.Config) {
hosts := make(map[string]struct{}, len(c.IPLimit.Addrs))
for k, v := range c.IPLimit.Addrs { | }
}
}
s.operationIPlimit = hosts
log.Info("loadTelecomIPCache success")
}
func (s *Service) loadTelecomArea(c *conf.Config) {
areas := make(map[string]struct{}, len(c.Telecom.Area))
for _, v := range c.Telecom.Area {
for _, area := range v {
if _, ok := areas[area]; !ok {
areas[area] = struct{}{}
}
}
}
s.telecomArea = areas
log.Info("loadTelecomArea success")
} | for _, ipStr := range v {
key := fmt.Sprintf(_initIPlimitKey, k, ipStr)
if _, ok := hosts[key]; !ok {
hosts[key] = struct{}{} |
cloud.py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# 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.
"""
Cloud Controller: Implementation of EC2 REST API calls, which are
dispatched to other nodes via AMQP RPC. State is via distributed
datastore.
"""
import base64
import time
from oslo_config import cfg
from oslo_log import log as logging
from oslo_log import versionutils
from oslo_utils import timeutils
import six
from nova.api.ec2 import ec2utils
from nova.api.ec2 import inst_state
from nova.api.metadata import password
from nova.api.openstack import extensions
from nova.api import validator
from nova import availability_zones
from nova import block_device
from nova.cloudpipe import pipelib
from nova import compute
from nova.compute import api as compute_api
from nova.compute import vm_states
from nova import exception
from nova.i18n import _
from nova.i18n import _LI
from nova.i18n import _LW
from nova.image import s3
from nova import network
from nova.network.security_group import neutron_driver
from nova.network.security_group import openstack_driver
from nova import objects
from nova import quota
from nova import servicegroup
from nova import utils
from nova import volume
ec2_opts = [
cfg.StrOpt('ec2_host',
default='$my_ip',
help='The IP address of the EC2 API server'),
cfg.StrOpt('ec2_dmz_host',
default='$my_ip',
help='The internal IP address of the EC2 API server'),
cfg.IntOpt('ec2_port',
default=8773,
min=1,
max=65535,
help='The port of the EC2 API server'),
cfg.StrOpt('ec2_scheme',
default='http',
choices=('http', 'https'),
help='The protocol to use when connecting to the EC2 API '
'server'),
cfg.StrOpt('ec2_path',
default='/',
help='The path prefix used to call the ec2 API server'),
cfg.ListOpt('region_list',
default=[],
help='List of region=fqdn pairs separated by commas'),
]
CONF = cfg.CONF
CONF.register_opts(ec2_opts)
CONF.import_opt('my_ip', 'nova.netconf')
CONF.import_opt('vpn_key_suffix', 'nova.cloudpipe.pipelib')
CONF.import_opt('internal_service_availability_zone',
'nova.availability_zones')
LOG = logging.getLogger(__name__)
QUOTAS = quota.QUOTAS
# EC2 ID can return the following error codes:
# http://docs.aws.amazon.com/AWSEC2/latest/APIReference/api-error-codes.html
# Validate methods are split to return valid EC2 error codes for different
# resource types
def _validate_ec2_id(val):
if not validator.validate_str()(val):
raise exception.InvalidEc2Id(ec2_id=val)
ec2utils.ec2_id_to_id(val)
def validate_volume_id(volume_id):
try:
_validate_ec2_id(volume_id)
except exception.InvalidEc2Id:
raise exception.InvalidVolumeIDMalformed(volume_id=volume_id)
def validate_instance_id(instance_id):
try:
_validate_ec2_id(instance_id)
except exception.InvalidEc2Id:
raise exception.InvalidInstanceIDMalformed(instance_id=instance_id)
# EC2 API can return the following values as documented in the EC2 API
# http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/
# ApiReference-ItemType-InstanceStateType.html
# pending 0 | running 16 | shutting-down 32 | terminated 48 | stopping 64 |
# stopped 80
_STATE_DESCRIPTION_MAP = {
None: inst_state.PENDING,
vm_states.ACTIVE: inst_state.RUNNING,
vm_states.BUILDING: inst_state.PENDING,
vm_states.DELETED: inst_state.TERMINATED,
vm_states.SOFT_DELETED: inst_state.TERMINATED,
vm_states.STOPPED: inst_state.STOPPED,
vm_states.PAUSED: inst_state.PAUSE,
vm_states.SUSPENDED: inst_state.SUSPEND,
vm_states.RESCUED: inst_state.RESCUE,
vm_states.RESIZED: inst_state.RESIZE,
}
def _state_description(vm_state, _shutdown_terminate):
"""Map the vm state to the server status string."""
# Note(maoy): We do not provide EC2 compatibility
# in shutdown_terminate flag behavior. So we ignore
# it here.
name = _STATE_DESCRIPTION_MAP.get(vm_state, vm_state)
return {'code': inst_state.name_to_code(name),
'name': name}
def _parse_block_device_mapping(bdm):
"""Parse BlockDeviceMappingItemType into flat hash
BlockDevicedMapping.<N>.DeviceName
BlockDevicedMapping.<N>.Ebs.SnapshotId
BlockDevicedMapping.<N>.Ebs.VolumeSize
BlockDevicedMapping.<N>.Ebs.DeleteOnTermination
BlockDevicedMapping.<N>.Ebs.NoDevice
BlockDevicedMapping.<N>.VirtualName
=> remove .Ebs and allow volume id in SnapshotId
"""
ebs = bdm.pop('ebs', None)
if ebs:
ec2_id = ebs.pop('snapshot_id', None)
if ec2_id:
if ec2_id.startswith('snap-'):
bdm['snapshot_id'] = ec2utils.ec2_snap_id_to_uuid(ec2_id)
elif ec2_id.startswith('vol-'):
bdm['volume_id'] = ec2utils.ec2_vol_id_to_uuid(ec2_id)
ebs.setdefault('delete_on_termination', True)
bdm.update(ebs)
return bdm
def _properties_get_mappings(properties):
return block_device.mappings_prepend_dev(properties.get('mappings', []))
def _format_block_device_mapping(bdm):
"""Construct BlockDeviceMappingItemType
{'device_name': '...', 'snapshot_id': , ...}
=> BlockDeviceMappingItemType
"""
keys = (('deviceName', 'device_name'),
('virtualName', 'virtual_name'))
item = {}
for name, k in keys:
if k in bdm:
item[name] = bdm[k]
if bdm.get('no_device'):
item['noDevice'] = True
if ('snapshot_id' in bdm) or ('volume_id' in bdm):
ebs_keys = (('snapshotId', 'snapshot_id'),
('snapshotId', 'volume_id'), # snapshotId is abused
('volumeSize', 'volume_size'),
('deleteOnTermination', 'delete_on_termination'))
ebs = {}
for name, k in ebs_keys:
if bdm.get(k) is not None:
if k == 'snapshot_id':
ebs[name] = ec2utils.id_to_ec2_snap_id(bdm[k])
elif k == 'volume_id':
ebs[name] = ec2utils.id_to_ec2_vol_id(bdm[k])
else:
ebs[name] = bdm[k]
assert 'snapshotId' in ebs
item['ebs'] = ebs
return item
def _format_mappings(properties, result):
"""Format multiple BlockDeviceMappingItemType."""
mappings = [{'virtualName': m['virtual'], 'deviceName': m['device']}
for m in _properties_get_mappings(properties)
if block_device.is_swap_or_ephemeral(m['virtual'])]
block_device_mapping = [_format_block_device_mapping(bdm) for bdm in
properties.get('block_device_mapping', [])]
# NOTE(yamahata): overwrite mappings with block_device_mapping
for bdm in block_device_mapping:
for i in range(len(mappings)):
if bdm.get('deviceName') == mappings[i].get('deviceName'):
del mappings[i]
break
mappings.append(bdm)
# NOTE(yamahata): trim ebs.no_device == true. Is this necessary?
mappings = [bdm for bdm in mappings if not (bdm.get('noDevice', False))]
if mappings:
result['blockDeviceMapping'] = mappings
class CloudController(object):
"""CloudController provides the critical dispatch between
inbound API calls through the endpoint and messages
sent to the other nodes.
"""
def __init__(self):
versionutils.report_deprecated_feature(
LOG,
_LW('The in tree EC2 API is deprecated as of Kilo release and may '
'be removed in a future release. The openstack ec2-api '
'project http://git.openstack.org/cgit/openstack/ec2-api/ '
'is the target replacement for this functionality.')
)
self.image_service = s3.S3ImageService()
self.network_api = network.API()
self.volume_api = volume.API()
self.security_group_api = get_cloud_security_group_api()
self.compute_api = compute.API(network_api=self.network_api,
volume_api=self.volume_api,
security_group_api=self.security_group_api)
self.keypair_api = compute_api.KeypairAPI()
self.servicegroup_api = servicegroup.API()
def __str__(self):
return 'CloudController'
def _enforce_valid_instance_ids(self, context, instance_ids):
# NOTE(mikal): Amazon's implementation of the EC2 API requires that
# _all_ instance ids passed in be valid.
instances = {}
if instance_ids:
for ec2_id in instance_ids:
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, ec2_id)
instance = self.compute_api.get(context, instance_uuid)
instances[ec2_id] = instance
return instances
def _get_image_state(self, image):
# NOTE(vish): fallback status if image_state isn't set
state = image.get('status')
if state == 'active':
state = 'available'
return image['properties'].get('image_state', state)
def describe_availability_zones(self, context, **kwargs):
if ('zone_name' in kwargs and
'verbose' in kwargs['zone_name'] and
context.is_admin):
return self._describe_availability_zones_verbose(context,
**kwargs)
else:
return self._describe_availability_zones(context, **kwargs)
def _describe_availability_zones(self, context, **kwargs):
ctxt = context.elevated()
available_zones, not_available_zones = \
availability_zones.get_availability_zones(ctxt)
result = []
for zone in available_zones:
# Hide internal_service_availability_zone
if zone == CONF.internal_service_availability_zone:
continue
result.append({'zoneName': zone,
'zoneState': "available"})
for zone in not_available_zones:
result.append({'zoneName': zone,
'zoneState': "not available"})
return {'availabilityZoneInfo': result}
def _describe_availability_zones_verbose(self, context, **kwargs):
ctxt = context.elevated()
available_zones, not_available_zones = \
availability_zones.get_availability_zones(ctxt)
# Available services
enabled_services = objects.ServiceList.get_all(context,
disabled=False, set_zones=True)
zone_hosts = {}
host_services = {}
for service in enabled_services:
zone_hosts.setdefault(service.availability_zone, [])
if service.host not in zone_hosts[service.availability_zone]:
zone_hosts[service.availability_zone].append(
service.host)
host_services.setdefault(service.availability_zone +
service.host, [])
host_services[service.availability_zone + service.host].\
append(service)
result = []
for zone in available_zones:
result.append({'zoneName': zone,
'zoneState': "available"})
for host in zone_hosts[zone]:
result.append({'zoneName': '|- %s' % host,
'zoneState': ''})
for service in host_services[zone + host]:
alive = self.servicegroup_api.service_is_up(service)
art = (alive and ":-)") or "XXX"
active = 'enabled'
if service.disabled:
active = 'disabled'
result.append({'zoneName': '| |- %s' % service.binary,
'zoneState': ('%s %s %s'
% (active, art,
service.updated_at))})
for zone in not_available_zones:
result.append({'zoneName': zone,
'zoneState': "not available"})
return {'availabilityZoneInfo': result}
def describe_regions(self, context, region_name=None, **kwargs):
if CONF.region_list:
regions = []
for region in CONF.region_list:
name, _sep, host = region.partition('=')
endpoint = '%s://%s:%s%s' % (CONF.ec2_scheme,
host,
CONF.ec2_port,
CONF.ec2_path)
regions.append({'regionName': name,
'regionEndpoint': endpoint})
else:
regions = [{'regionName': 'nova',
'regionEndpoint': '%s://%s:%s%s' % (CONF.ec2_scheme,
CONF.ec2_host,
CONF.ec2_port,
CONF.ec2_path)}]
return {'regionInfo': regions}
def describe_snapshots(self,
context,
snapshot_id=None,
owner=None,
restorable_by=None,
**kwargs):
if snapshot_id:
snapshots = []
for ec2_id in snapshot_id:
internal_id = ec2utils.ec2_snap_id_to_uuid(ec2_id)
snapshot = self.volume_api.get_snapshot(
context,
snapshot_id=internal_id)
snapshots.append(snapshot)
else:
snapshots = self.volume_api.get_all_snapshots(context)
formatted_snapshots = []
for s in snapshots:
formatted = self._format_snapshot(context, s)
if formatted:
formatted_snapshots.append(formatted)
return {'snapshotSet': formatted_snapshots}
def _format_snapshot(self, context, snapshot):
# NOTE(mikal): this is just a set of strings in cinder. If they
# implement an enum, then we should move this code to use it. The
# valid ec2 statuses are "pending", "completed", and "error".
status_map = {'new': 'pending',
'creating': 'pending',
'available': 'completed',
'active': 'completed',
'deleting': 'pending',
'deleted': None,
'error': 'error'}
mapped_status = status_map.get(snapshot['status'], snapshot['status'])
if not mapped_status:
return None
s = {}
s['snapshotId'] = ec2utils.id_to_ec2_snap_id(snapshot['id'])
s['volumeId'] = ec2utils.id_to_ec2_vol_id(snapshot['volume_id'])
s['status'] = mapped_status
s['startTime'] = snapshot['created_at']
s['progress'] = snapshot['progress']
s['ownerId'] = snapshot['project_id']
s['volumeSize'] = snapshot['volume_size']
s['description'] = snapshot['display_description']
return s
def create_snapshot(self, context, volume_id, **kwargs):
validate_volume_id(volume_id)
LOG.info(_LI("Create snapshot of volume %s"), volume_id,
context=context)
volume_id = ec2utils.ec2_vol_id_to_uuid(volume_id)
args = (context, volume_id, kwargs.get('name'),
kwargs.get('description'))
if kwargs.get('force', False):
snapshot = self.volume_api.create_snapshot_force(*args)
else:
snapshot = self.volume_api.create_snapshot(*args)
smap = objects.EC2SnapshotMapping(context, uuid=snapshot['id'])
smap.create()
return self._format_snapshot(context, snapshot)
def delete_snapshot(self, context, snapshot_id, **kwargs):
snapshot_id = ec2utils.ec2_snap_id_to_uuid(snapshot_id)
self.volume_api.delete_snapshot(context, snapshot_id)
return True
def describe_key_pairs(self, context, key_name=None, **kwargs):
key_pairs = self.keypair_api.get_key_pairs(context, context.user_id)
if key_name is not None:
key_pairs = [x for x in key_pairs if x['name'] in key_name]
# If looking for non existent key pair
if key_name is not None and not key_pairs:
msg = _('Could not find key pair(s): %s') % ','.join(key_name)
raise exception.KeypairNotFound(message=msg)
result = []
for key_pair in key_pairs:
# filter out the vpn keys
suffix = CONF.vpn_key_suffix
if context.is_admin or not key_pair['name'].endswith(suffix):
result.append({
'keyName': key_pair['name'],
'keyFingerprint': key_pair['fingerprint'],
})
return {'keySet': result}
def create_key_pair(self, context, key_name, **kwargs):
LOG.info(_LI("Create key pair %s"), key_name, context=context)
keypair, private_key = self.keypair_api.create_key_pair(
context, context.user_id, key_name)
return {'keyName': key_name,
'keyFingerprint': keypair['fingerprint'],
'keyMaterial': private_key}
# TODO(vish): when context is no longer an object, pass it here
def import_key_pair(self, context, key_name, public_key_material,
**kwargs):
LOG.info(_LI("Import key %s"), key_name, context=context)
public_key = base64.b64decode(public_key_material)
keypair = self.keypair_api.import_key_pair(context,
context.user_id,
key_name,
public_key)
return {'keyName': key_name,
'keyFingerprint': keypair['fingerprint']}
def delete_key_pair(self, context, key_name, **kwargs):
LOG.info(_LI("Delete key pair %s"), key_name, context=context)
try:
self.keypair_api.delete_key_pair(context, context.user_id,
key_name)
except exception.NotFound:
# aws returns true even if the key doesn't exist
pass
return True
def describe_security_groups(self, context, group_name=None, group_id=None,
**kwargs):
search_opts = ec2utils.search_opts_from_filters(kwargs.get('filter'))
raw_groups = self.security_group_api.list(context,
group_name,
group_id,
context.project_id,
search_opts=search_opts)
groups = [self._format_security_group(context, g) for g in raw_groups]
return {'securityGroupInfo':
list(sorted(groups,
key=lambda k: (k['ownerId'], k['groupName'])))}
def _format_security_group(self, context, group):
g = {}
g['groupDescription'] = group['description']
g['groupName'] = group['name']
g['ownerId'] = group['project_id']
g['ipPermissions'] = []
for rule in group['rules']:
r = {}
r['groups'] = []
r['ipRanges'] = []
if rule['group_id']:
if rule.get('grantee_group'):
source_group = rule['grantee_group']
r['groups'] += [{'groupName': source_group['name'],
'userId': source_group['project_id']}]
else:
# rule is not always joined with grantee_group
# for example when using neutron driver.
source_group = self.security_group_api.get(
context, id=rule['group_id'])
r['groups'] += [{'groupName': source_group.get('name'),
'userId': source_group.get('project_id')}]
if rule['protocol']:
r['ipProtocol'] = rule['protocol'].lower()
r['fromPort'] = rule['from_port']
r['toPort'] = rule['to_port']
g['ipPermissions'] += [dict(r)]
else:
for protocol, min_port, max_port in (('icmp', -1, -1),
('tcp', 1, 65535),
('udp', 1, 65535)):
r['ipProtocol'] = protocol
r['fromPort'] = min_port
r['toPort'] = max_port
g['ipPermissions'] += [dict(r)]
else:
r['ipProtocol'] = rule['protocol']
r['fromPort'] = rule['from_port']
r['toPort'] = rule['to_port']
r['ipRanges'] += [{'cidrIp': rule['cidr']}]
g['ipPermissions'] += [r]
return g
def _rule_args_to_dict(self, context, kwargs):
rules = []
if 'groups' not in kwargs and 'ip_ranges' not in kwargs:
rule = self._rule_dict_last_step(context, **kwargs)
if rule:
rules.append(rule)
return rules
if 'ip_ranges' in kwargs:
rules = self._cidr_args_split(kwargs)
else:
rules = [kwargs]
finalset = []
for rule in rules:
if 'groups' in rule:
groups_values = self._groups_args_split(rule)
for groups_value in groups_values:
final = self._rule_dict_last_step(context, **groups_value)
finalset.append(final)
else:
final = self._rule_dict_last_step(context, **rule)
finalset.append(final)
return finalset
def _cidr_args_split(self, kwargs):
cidr_args_split = []
cidrs = kwargs['ip_ranges']
for key, cidr in six.iteritems(cidrs):
mykwargs = kwargs.copy()
del mykwargs['ip_ranges']
mykwargs['cidr_ip'] = cidr['cidr_ip']
cidr_args_split.append(mykwargs)
return cidr_args_split
def _groups_args_split(self, kwargs):
groups_args_split = []
groups = kwargs['groups']
for key, group in six.iteritems(groups):
mykwargs = kwargs.copy()
del mykwargs['groups']
if 'group_name' in group:
mykwargs['source_security_group_name'] = group['group_name']
if 'user_id' in group:
mykwargs['source_security_group_owner_id'] = group['user_id']
if 'group_id' in group:
mykwargs['source_security_group_id'] = group['group_id']
groups_args_split.append(mykwargs)
return groups_args_split
def _rule_dict_last_step(self, context, to_port=None, from_port=None,
ip_protocol=None, cidr_ip=None, user_id=None,
source_security_group_name=None,
source_security_group_owner_id=None):
if source_security_group_name:
source_project_id = self._get_source_project_id(context,
source_security_group_owner_id)
source_security_group = objects.SecurityGroup.get_by_name(
context.elevated(),
source_project_id,
source_security_group_name)
notfound = exception.SecurityGroupNotFound
if not source_security_group:
raise notfound(security_group_id=source_security_group_name)
group_id = source_security_group.id
return self.security_group_api.new_group_ingress_rule(
group_id, ip_protocol, from_port, to_port)
else:
cidr = self.security_group_api.parse_cidr(cidr_ip)
return self.security_group_api.new_cidr_ingress_rule(
cidr, ip_protocol, from_port, to_port)
def _validate_group_identifier(self, group_name, group_id):
if not group_name and not group_id:
err = _("need group_name or group_id")
raise exception.MissingParameter(reason=err)
def _validate_rulevalues(self, rulesvalues):
if not rulesvalues:
err = _("can't build a valid rule")
raise exception.MissingParameter(reason=err)
def _validate_security_group_protocol(self, values):
validprotocols = ['tcp', 'udp', 'icmp', '6', '17', '1']
if 'ip_protocol' in values and \
values['ip_protocol'] not in validprotocols:
protocol = values['ip_protocol']
err = _("Invalid IP protocol %(protocol)s") % \
{'protocol': protocol}
raise exception.InvalidParameterValue(message=err)
def revoke_security_group_ingress(self, context, group_name=None,
group_id=None, **kwargs):
self._validate_group_identifier(group_name, group_id)
security_group = self.security_group_api.get(context, group_name,
group_id)
extensions.check_compute_policy(context, 'security_groups',
security_group, 'compute_extension')
prevalues = kwargs.get('ip_permissions', [kwargs])
rule_ids = []
for values in prevalues:
rulesvalues = self._rule_args_to_dict(context, values)
self._validate_rulevalues(rulesvalues)
for values_for_rule in rulesvalues:
values_for_rule['parent_group_id'] = security_group['id']
rule_ids.append(self.security_group_api.rule_exists(
security_group, values_for_rule))
rule_ids = [id for id in rule_ids if id]
if rule_ids:
self.security_group_api.remove_rules(context, security_group,
rule_ids)
return True
msg = _("No rule for the specified parameters.")
raise exception.InvalidParameterValue(message=msg)
# TODO(soren): This has only been tested with Boto as the client.
# Unfortunately, it seems Boto is using an old API
# for these operations, so support for newer API versions
# is sketchy.
def authorize_security_group_ingress(self, context, group_name=None,
group_id=None, **kwargs):
self._validate_group_identifier(group_name, group_id)
security_group = self.security_group_api.get(context, group_name,
group_id)
extensions.check_compute_policy(context, 'security_groups',
security_group, 'compute_extension')
prevalues = kwargs.get('ip_permissions', [kwargs])
postvalues = []
for values in prevalues:
self._validate_security_group_protocol(values)
rulesvalues = self._rule_args_to_dict(context, values)
self._validate_rulevalues(rulesvalues)
for values_for_rule in rulesvalues:
values_for_rule['parent_group_id'] = security_group['id']
if self.security_group_api.rule_exists(security_group,
values_for_rule):
raise exception.SecurityGroupRuleExists(
rule=values_for_rule)
postvalues.append(values_for_rule)
if postvalues:
self.security_group_api.add_rules(context, security_group['id'],
security_group['name'], postvalues)
return True
msg = _("No rule for the specified parameters.")
raise exception.InvalidParameterValue(message=msg)
def _get_source_project_id(self, context, source_security_group_owner_id):
if source_security_group_owner_id:
# Parse user:project for source group.
source_parts = source_security_group_owner_id.split(':')
# If no project name specified, assume it's same as user name.
# Since we're looking up by project name, the user name is not
# used here. It's only read for EC2 API compatibility.
if len(source_parts) == 2:
source_project_id = source_parts[1]
else:
source_project_id = source_parts[0]
else:
source_project_id = context.project_id
return source_project_id
def create_security_group(self, context, group_name, group_description):
if isinstance(group_name, six.text_type):
group_name = utils.utf8(group_name)
if CONF.ec2_strict_validation:
# EC2 specification gives constraints for name and description:
# Accepts alphanumeric characters, spaces, dashes, and underscores
allowed = '^[a-zA-Z0-9_\- ]+$'
self.security_group_api.validate_property(group_name, 'name',
allowed)
self.security_group_api.validate_property(group_description,
'description', allowed)
else:
# Amazon accepts more symbols.
# So, allow POSIX [:print:] characters.
allowed = r'^[\x20-\x7E]+$'
self.security_group_api.validate_property(group_name, 'name',
allowed)
group_ref = self.security_group_api.create_security_group(
context, group_name, group_description)
return {'securityGroupSet': [self._format_security_group(context,
group_ref)]}
def delete_security_group(self, context, group_name=None, group_id=None,
**kwargs):
if not group_name and not group_id:
err = _("need group_name or group_id")
raise exception.MissingParameter(reason=err)
security_group = self.security_group_api.get(context, group_name,
group_id)
extensions.check_compute_policy(context, 'security_groups',
security_group, 'compute_extension')
self.security_group_api.destroy(context, security_group)
return True
def get_password_data(self, context, instance_id, **kwargs):
# instance_id may be passed in as a list of instances
if isinstance(instance_id, list):
ec2_id = instance_id[0]
else:
ec2_id = instance_id
validate_instance_id(ec2_id)
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, ec2_id)
instance = self.compute_api.get(context, instance_uuid)
output = password.extract_password(instance)
# NOTE(vish): this should be timestamp from the metadata fields
# but it isn't important enough to implement properly
now = timeutils.utcnow()
return {"InstanceId": ec2_id,
"Timestamp": now,
"passwordData": output}
def get_console_output(self, context, instance_id, **kwargs):
LOG.info(_LI("Get console output for instance %s"), instance_id,
context=context)
# instance_id may be passed in as a list of instances
if isinstance(instance_id, list):
ec2_id = instance_id[0]
else:
ec2_id = instance_id
validate_instance_id(ec2_id)
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, ec2_id)
instance = self.compute_api.get(context, instance_uuid,
want_objects=True)
output = self.compute_api.get_console_output(context, instance)
now = timeutils.utcnow()
return {"InstanceId": ec2_id,
"Timestamp": now,
"output": base64.b64encode(output)}
def describe_volumes(self, context, volume_id=None, **kwargs):
if volume_id:
volumes = []
for ec2_id in volume_id:
validate_volume_id(ec2_id)
internal_id = ec2utils.ec2_vol_id_to_uuid(ec2_id)
volume = self.volume_api.get(context, internal_id)
volumes.append(volume)
else:
volumes = self.volume_api.get_all(context)
volumes = [self._format_volume(context, v) for v in volumes]
return {'volumeSet': volumes}
def _format_volume(self, context, volume):
valid_ec2_api_volume_status_map = {
'attaching': 'in-use',
'detaching': 'in-use'}
instance_ec2_id = None
if volume.get('instance_uuid', None):
instance_uuid = volume['instance_uuid']
# Make sure instance exists
objects.Instance.get_by_uuid(context.elevated(), instance_uuid)
instance_ec2_id = ec2utils.id_to_ec2_inst_id(instance_uuid)
v = {}
v['volumeId'] = ec2utils.id_to_ec2_vol_id(volume['id'])
v['status'] = valid_ec2_api_volume_status_map.get(volume['status'],
volume['status'])
v['size'] = volume['size']
v['availabilityZone'] = volume['availability_zone']
v['createTime'] = volume['created_at']
if v['status'] == 'in-use':
v['attachmentSet'] = [{'attachTime': volume.get('attach_time'),
'deleteOnTermination': False,
'device': volume['mountpoint'],
'instanceId': instance_ec2_id,
'status': self._get_volume_attach_status(
volume),
'volumeId': v['volumeId']}]
else:
v['attachmentSet'] = [{}]
if volume.get('snapshot_id') is not None:
v['snapshotId'] = ec2utils.id_to_ec2_snap_id(volume['snapshot_id'])
else:
v['snapshotId'] = None
return v
def create_volume(self, context, **kwargs):
snapshot_ec2id = kwargs.get('snapshot_id', None)
if snapshot_ec2id is not None:
snapshot_id = ec2utils.ec2_snap_id_to_uuid(kwargs['snapshot_id'])
snapshot = self.volume_api.get_snapshot(context, snapshot_id)
LOG.info(_LI("Create volume from snapshot %s"), snapshot_ec2id,
context=context)
else:
snapshot = None
LOG.info(_LI("Create volume of %s GB"),
kwargs.get('size'),
context=context)
create_kwargs = dict(snapshot=snapshot,
volume_type=kwargs.get('volume_type'),
metadata=kwargs.get('metadata'),
availability_zone=kwargs.get('availability_zone'))
volume = self.volume_api.create(context,
kwargs.get('size'),
kwargs.get('name'),
kwargs.get('description'),
**create_kwargs)
vmap = objects.EC2VolumeMapping(context)
vmap.uuid = volume['id']
vmap.create()
# TODO(vish): Instance should be None at db layer instead of
# trying to lazy load, but for now we turn it into
# a dict to avoid an error.
return self._format_volume(context, dict(volume))
def delete_volume(self, context, volume_id, **kwargs):
validate_volume_id(volume_id)
volume_id = ec2utils.ec2_vol_id_to_uuid(volume_id)
self.volume_api.delete(context, volume_id)
return True
def attach_volume(self, context,
volume_id,
instance_id,
device, **kwargs):
validate_instance_id(instance_id)
validate_volume_id(volume_id)
volume_id = ec2utils.ec2_vol_id_to_uuid(volume_id)
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, instance_id)
instance = self.compute_api.get(context, instance_uuid,
want_objects=True)
LOG.info(_LI('Attach volume %(volume_id)s to instance %(instance_id)s '
'at %(device)s'),
{'volume_id': volume_id,
'instance_id': instance_id,
'device': device},
context=context)
self.compute_api.attach_volume(context, instance, volume_id, device)
volume = self.volume_api.get(context, volume_id)
ec2_attach_status = ec2utils.status_to_ec2_attach_status(volume)
return {'attachTime': volume['attach_time'],
'device': volume['mountpoint'],
'instanceId': ec2utils.id_to_ec2_inst_id(instance_uuid),
'requestId': context.request_id,
'status': ec2_attach_status,
'volumeId': ec2utils.id_to_ec2_vol_id(volume_id)}
def _get_instance_from_volume(self, context, volume):
if volume.get('instance_uuid'):
try:
inst_uuid = volume['instance_uuid']
return objects.Instance.get_by_uuid(context, inst_uuid)
except exception.InstanceNotFound:
pass
raise exception.VolumeUnattached(volume_id=volume['id'])
def detach_volume(self, context, volume_id, **kwargs):
validate_volume_id(volume_id)
volume_id = ec2utils.ec2_vol_id_to_uuid(volume_id)
LOG.info(_LI("Detach volume %s"), volume_id, context=context)
volume = self.volume_api.get(context, volume_id)
instance = self._get_instance_from_volume(context, volume)
self.compute_api.detach_volume(context, instance, volume)
resp_volume = self.volume_api.get(context, volume_id)
ec2_attach_status = ec2utils.status_to_ec2_attach_status(resp_volume)
return {'attachTime': volume['attach_time'],
'device': volume['mountpoint'],
'instanceId': ec2utils.id_to_ec2_inst_id(
volume['instance_uuid']),
'requestId': context.request_id,
'status': ec2_attach_status,
'volumeId': ec2utils.id_to_ec2_vol_id(volume_id)}
def _format_kernel_id(self, context, instance_ref, result, key):
kernel_uuid = instance_ref['kernel_id']
if kernel_uuid is None or kernel_uuid == '':
return
result[key] = ec2utils.glance_id_to_ec2_id(context, kernel_uuid, 'aki')
def _format_ramdisk_id(self, context, instance_ref, result, key):
ramdisk_uuid = instance_ref['ramdisk_id']
if ramdisk_uuid is None or ramdisk_uuid == '':
return
result[key] = ec2utils.glance_id_to_ec2_id(context, ramdisk_uuid,
'ari')
def describe_instance_attribute(self, context, instance_id, attribute,
**kwargs):
def _unsupported_attribute(instance, result):
raise exception.InvalidAttribute(attr=attribute)
def _format_attr_block_device_mapping(instance, result):
tmp = {}
self._format_instance_root_device_name(instance, tmp)
self._format_instance_bdm(context, instance.uuid,
tmp['rootDeviceName'], result)
def _format_attr_disable_api_termination(instance, result):
result['disableApiTermination'] = instance.disable_terminate
def _format_attr_group_set(instance, result):
CloudController._format_group_set(instance, result)
def _format_attr_instance_initiated_shutdown_behavior(instance,
result):
if instance.shutdown_terminate:
result['instanceInitiatedShutdownBehavior'] = 'terminate'
else:
result['instanceInitiatedShutdownBehavior'] = 'stop'
def _format_attr_instance_type(instance, result):
self._format_instance_type(instance, result)
def _format_attr_kernel(instance, result):
self._format_kernel_id(context, instance, result, 'kernel')
def _format_attr_ramdisk(instance, result):
self._format_ramdisk_id(context, instance, result, 'ramdisk')
def _format_attr_root_device_name(instance, result):
self._format_instance_root_device_name(instance, result)
def _format_attr_source_dest_check(instance, result):
_unsupported_attribute(instance, result)
def _format_attr_user_data(instance, result):
result['userData'] = base64.b64decode(instance.user_data)
attribute_formatter = {
'blockDeviceMapping': _format_attr_block_device_mapping,
'disableApiTermination': _format_attr_disable_api_termination,
'groupSet': _format_attr_group_set,
'instanceInitiatedShutdownBehavior':
_format_attr_instance_initiated_shutdown_behavior,
'instanceType': _format_attr_instance_type,
'kernel': _format_attr_kernel,
'ramdisk': _format_attr_ramdisk,
'rootDeviceName': _format_attr_root_device_name,
'sourceDestCheck': _format_attr_source_dest_check,
'userData': _format_attr_user_data,
}
fn = attribute_formatter.get(attribute)
if fn is None:
raise exception.InvalidAttribute(attr=attribute)
validate_instance_id(instance_id)
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, instance_id)
instance = self.compute_api.get(context, instance_uuid,
want_objects=True)
result = {'instance_id': instance_id}
fn(instance, result)
return result
def describe_instances(self, context, **kwargs):
# Optional DescribeInstances argument
instance_id = kwargs.get('instance_id', None)
filters = kwargs.get('filter', None)
instances = self._enforce_valid_instance_ids(context, instance_id)
return self._format_describe_instances(context,
instance_id=instance_id,
instance_cache=instances,
filter=filters)
def describe_instances_v6(self, context, **kwargs):
# Optional DescribeInstancesV6 argument
instance_id = kwargs.get('instance_id', None)
filters = kwargs.get('filter', None)
instances = self._enforce_valid_instance_ids(context, instance_id)
return self._format_describe_instances(context,
instance_id=instance_id,
instance_cache=instances,
filter=filters,
use_v6=True)
def _format_describe_instances(self, context, **kwargs):
return {'reservationSet': self._format_instances(context, **kwargs)}
def _format_run_instances(self, context, reservation_id):
i = self._format_instances(context, reservation_id=reservation_id)
assert len(i) == 1
return i[0]
def _format_terminate_instances(self, context, instance_id,
previous_states):
instances_set = []
for (ec2_id, previous_state) in zip(instance_id, previous_states):
i = {}
i['instanceId'] = ec2_id
i['previousState'] = _state_description(previous_state['vm_state'],
previous_state['shutdown_terminate'])
try:
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, ec2_id)
instance = self.compute_api.get(context, instance_uuid,
want_objects=True)
i['currentState'] = _state_description(instance.vm_state,
instance.shutdown_terminate)
except exception.NotFound:
i['currentState'] = _state_description(
inst_state.SHUTTING_DOWN, True)
instances_set.append(i)
return {'instancesSet': instances_set}
def _format_stop_instances(self, context, instance_ids, previous_states):
instances_set = []
for (ec2_id, previous_state) in zip(instance_ids, previous_states):
i = {}
i['instanceId'] = ec2_id
i['previousState'] = _state_description(previous_state['vm_state'],
previous_state['shutdown_terminate'])
i['currentState'] = _state_description(inst_state.STOPPING, True)
instances_set.append(i)
return {'instancesSet': instances_set}
def _format_start_instances(self, context, instance_id, previous_states):
instances_set = []
for (ec2_id, previous_state) in zip(instance_id, previous_states):
i = {}
i['instanceId'] = ec2_id
i['previousState'] = _state_description(previous_state['vm_state'],
previous_state['shutdown_terminate'])
i['currentState'] = _state_description(None, True)
instances_set.append(i)
return {'instancesSet': instances_set}
def _format_instance_bdm(self, context, instance_uuid, root_device_name,
result):
"""Format InstanceBlockDeviceMappingResponseItemType."""
root_device_type = 'instance-store'
root_device_short_name = block_device.strip_dev(root_device_name)
if root_device_name == root_device_short_name:
root_device_name = block_device.prepend_dev(root_device_name)
mapping = []
bdms = objects.BlockDeviceMappingList.get_by_instance_uuid(
context, instance_uuid)
for bdm in bdms:
volume_id = bdm.volume_id
if volume_id is None or bdm.no_device:
continue
if (bdm.is_volume and
(bdm.device_name == root_device_name or
bdm.device_name == root_device_short_name)):
root_device_type = 'ebs'
vol = self.volume_api.get(context, volume_id)
LOG.debug("vol = %s\n", vol)
# TODO(yamahata): volume attach time
ebs = {'volumeId': ec2utils.id_to_ec2_vol_id(volume_id),
'deleteOnTermination': bdm.delete_on_termination,
'attachTime': vol['attach_time'] or '',
'status': self._get_volume_attach_status(vol), }
res = {'deviceName': bdm.device_name,
'ebs': ebs, }
mapping.append(res)
if mapping:
result['blockDeviceMapping'] = mapping
result['rootDeviceType'] = root_device_type
@staticmethod
def _get_volume_attach_status(volume):
return (volume['status']
if volume['status'] in ('attaching', 'detaching') else
volume['attach_status'])
@staticmethod
def _format_instance_root_device_name(instance, result):
result['rootDeviceName'] = (instance.get('root_device_name') or
block_device.DEFAULT_ROOT_DEV_NAME)
@staticmethod
def _format_instance_type(instance, result):
flavor = instance.get_flavor()
result['instanceType'] = flavor.name
@staticmethod
def _format_group_set(instance, result):
security_group_names = []
if instance.get('security_groups'):
for security_group in instance.security_groups:
security_group_names.append(security_group['name'])
result['groupSet'] = utils.convert_to_list_dict(
security_group_names, 'groupId')
def _format_instances(self, context, instance_id=None, use_v6=False,
instances_cache=None, **search_opts):
# TODO(termie): this method is poorly named as its name does not imply
# that it will be making a variety of database calls
# rather than simply formatting a bunch of instances that
# were handed to it
reservations = {}
if not instances_cache:
instances_cache = {}
# NOTE(vish): instance_id is an optional list of ids to filter by
if instance_id:
instances = []
for ec2_id in instance_id:
if ec2_id in instances_cache:
instances.append(instances_cache[ec2_id])
else:
try:
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context,
ec2_id)
instance = self.compute_api.get(context, instance_uuid,
want_objects=True)
except exception.NotFound:
continue
instances.append(instance)
else:
try:
# always filter out deleted instances
search_opts['deleted'] = False
instances = self.compute_api.get_all(context,
search_opts=search_opts,
sort_keys=['created_at'],
sort_dirs=['asc'],
want_objects=True)
except exception.NotFound:
instances = []
for instance in instances:
if not context.is_admin:
if pipelib.is_vpn_image(instance.image_ref):
continue
i = {}
instance_uuid = instance.uuid
ec2_id = ec2utils.id_to_ec2_inst_id(instance_uuid)
i['instanceId'] = ec2_id
image_uuid = instance.image_ref
i['imageId'] = ec2utils.glance_id_to_ec2_id(context, image_uuid)
self._format_kernel_id(context, instance, i, 'kernelId')
self._format_ramdisk_id(context, instance, i, 'ramdiskId')
i['instanceState'] = _state_description(
instance.vm_state, instance.shutdown_terminate)
fixed_ip = None
floating_ip = None
ip_info = ec2utils.get_ip_info_for_instance(context, instance)
if ip_info['fixed_ips']:
fixed_ip = ip_info['fixed_ips'][0]
if ip_info['floating_ips']:
floating_ip = ip_info['floating_ips'][0]
if ip_info['fixed_ip6s']:
i['dnsNameV6'] = ip_info['fixed_ip6s'][0]
if CONF.ec2_private_dns_show_ip:
i['privateDnsName'] = fixed_ip
else:
i['privateDnsName'] = instance.hostname
i['privateIpAddress'] = fixed_ip
if floating_ip is not None:
i['ipAddress'] = floating_ip
i['dnsName'] = floating_ip
i['keyName'] = instance.key_name
i['tagSet'] = []
for k, v in six.iteritems(utils.instance_meta(instance)):
i['tagSet'].append({'key': k, 'value': v})
client_token = self._get_client_token(context, instance_uuid)
if client_token:
i['clientToken'] = client_token
if context.is_admin:
i['keyName'] = '%s (%s, %s)' % (i['keyName'],
instance.project_id,
instance.host)
i['productCodesSet'] = utils.convert_to_list_dict([],
'product_codes')
self._format_instance_type(instance, i)
i['launchTime'] = instance.created_at
i['amiLaunchIndex'] = instance.launch_index
self._format_instance_root_device_name(instance, i)
self._format_instance_bdm(context, instance.uuid,
i['rootDeviceName'], i)
zone = availability_zones.get_instance_availability_zone(context,
instance)
i['placement'] = {'availabilityZone': zone}
if instance.reservation_id not in reservations:
r = {}
r['reservationId'] = instance.reservation_id
r['ownerId'] = instance.project_id
self._format_group_set(instance, r)
r['instancesSet'] = []
reservations[instance.reservation_id] = r
reservations[instance.reservation_id]['instancesSet'].append(i)
return list(reservations.values())
def describe_addresses(self, context, public_ip=None, **kwargs):
if public_ip:
floatings = []
for address in public_ip:
floating = self.network_api.get_floating_ip_by_address(context,
address)
floatings.append(floating)
else:
floatings = self.network_api.get_floating_ips_by_project(context)
addresses = [self._format_address(context, f) for f in floatings]
return {'addressesSet': addresses}
def _format_address(self, context, floating_ip):
ec2_id = None
if floating_ip['fixed_ip_id']:
if utils.is_neutron():
fixed_vm_uuid = floating_ip['instance']['uuid']
if fixed_vm_uuid is not None:
ec2_id = ec2utils.id_to_ec2_inst_id(fixed_vm_uuid)
else:
fixed_id = floating_ip['fixed_ip_id']
fixed = self.network_api.get_fixed_ip(context, fixed_id)
if fixed['instance_uuid'] is not None:
ec2_id = ec2utils.id_to_ec2_inst_id(fixed['instance_uuid'])
address = {'public_ip': floating_ip['address'],
'instance_id': ec2_id}
if context.is_admin:
details = "%s (%s)" % (address['instance_id'],
floating_ip['project_id'])
address['instance_id'] = details
return address
def allocate_address(self, context, **kwargs):
LOG.info(_LI("Allocate address"), context=context)
public_ip = self.network_api.allocate_floating_ip(context)
return {'publicIp': public_ip}
def release_address(self, context, public_ip, **kwargs):
LOG.info(_LI('Release address %s'), public_ip, context=context)
self.network_api.release_floating_ip(context, address=public_ip)
return {'return': "true"}
def associate_address(self, context, instance_id, public_ip, **kwargs):
LOG.info(_LI("Associate address %(public_ip)s to instance "
"%(instance_id)s"),
{'public_ip': public_ip, 'instance_id': instance_id},
context=context)
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, instance_id)
instance = self.compute_api.get(context, instance_uuid,
want_objects=True)
cached_ipinfo = ec2utils.get_ip_info_for_instance(context, instance)
fixed_ips = cached_ipinfo['fixed_ips'] + cached_ipinfo['fixed_ip6s']
if not fixed_ips:
msg = _('Unable to associate IP Address, no fixed_ips.')
raise exception.NoMoreFixedIps(message=msg)
# TODO(tr3buchet): this will associate the floating IP with the
# first fixed_ip an instance has. This should be
# changed to support specifying a particular fixed_ip if
# multiple exist but this may not apply to ec2..
if len(fixed_ips) > 1:
LOG.warning(_LW('multiple fixed_ips exist, using the first: %s'),
fixed_ips[0])
self.network_api.associate_floating_ip(context, instance,
floating_address=public_ip,
fixed_address=fixed_ips[0])
return {'return': 'true'}
def disassociate_address(self, context, public_ip, **kwargs):
instance_id = self.network_api.get_instance_id_by_floating_address(
context, public_ip)
if instance_id:
instance = self.compute_api.get(context, instance_id,
want_objects=True)
LOG.info(_LI("Disassociate address %s"),
public_ip, context=context)
self.network_api.disassociate_floating_ip(context, instance,
address=public_ip)
else:
msg = _('Floating ip is not associated.')
raise exception.InvalidAssociation(message=msg)
return {'return': "true"}
def run_instances(self, context, **kwargs):
min_count = int(kwargs.get('min_count', 1))
max_count = int(kwargs.get('max_count', min_count))
try:
min_count = utils.validate_integer(
min_count, "min_count", min_value=1)
max_count = utils.validate_integer(
max_count, "max_count", min_value=1)
except exception.InvalidInput as e:
raise exception.InvalidInput(message=e.format_message())
if min_count > max_count:
msg = _('min_count must be <= max_count')
raise exception.InvalidInput(message=msg)
client_token = kwargs.get('client_token')
if client_token:
resv_id = self._resv_id_from_token(context, client_token)
if resv_id:
# since this client_token already corresponds to a reservation
# id, this returns a proper response without creating a new
# instance
return self._format_run_instances(context, resv_id)
if kwargs.get('kernel_id'):
kernel = self._get_image(context, kwargs['kernel_id'])
kwargs['kernel_id'] = ec2utils.id_to_glance_id(context,
kernel['id'])
if kwargs.get('ramdisk_id'):
ramdisk = self._get_image(context, kwargs['ramdisk_id'])
kwargs['ramdisk_id'] = ec2utils.id_to_glance_id(context,
ramdisk['id'])
for bdm in kwargs.get('block_device_mapping', []):
_parse_block_device_mapping(bdm)
image = self._get_image(context, kwargs['image_id'])
image_uuid = ec2utils.id_to_glance_id(context, image['id'])
if image:
image_state = self._get_image_state(image)
else:
raise exception.ImageNotFoundEC2(image_id=kwargs['image_id'])
if image_state != 'available':
msg = _('Image must be available')
raise exception.ImageNotActive(message=msg)
iisb = kwargs.get('instance_initiated_shutdown_behavior', 'stop')
shutdown_terminate = (iisb == 'terminate')
flavor = objects.Flavor.get_by_name(context,
kwargs.get('instance_type', None))
(instances, resv_id) = self.compute_api.create(context,
instance_type=flavor,
image_href=image_uuid,
max_count=int(kwargs.get('max_count', min_count)),
min_count=min_count,
kernel_id=kwargs.get('kernel_id'),
ramdisk_id=kwargs.get('ramdisk_id'),
key_name=kwargs.get('key_name'),
user_data=kwargs.get('user_data'),
security_group=kwargs.get('security_group'),
availability_zone=kwargs.get('placement', {}).get(
'availability_zone'),
block_device_mapping=kwargs.get('block_device_mapping', {}),
shutdown_terminate=shutdown_terminate)
instances = self._format_run_instances(context, resv_id)
if instances:
instance_ids = [i['instanceId'] for i in instances['instancesSet']]
self._add_client_token(context, client_token, instance_ids)
return instances
def _add_client_token(self, context, client_token, instance_ids):
"""Add client token to reservation ID mapping."""
if client_token:
for ec2_id in instance_ids:
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, ec2_id)
instance = objects.Instance.get_by_uuid(context,
instance_uuid, expected_attrs=['system_metadata'])
instance.system_metadata.update(
{'EC2_client_token': client_token})
instance.save()
def _get_client_token(self, context, instance_uuid):
"""Get client token for a given instance."""
instance = objects.Instance.get_by_uuid(context,
instance_uuid, expected_attrs=['system_metadata'])
return instance.system_metadata.get('EC2_client_token')
def _remove_client_token(self, context, instance_ids):
"""Remove client token to reservation ID mapping."""
for ec2_id in instance_ids:
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, ec2_id)
instance = objects.Instance.get_by_uuid(context,
instance_uuid, expected_attrs=['system_metadata'])
instance.system_metadata.pop('EC2_client_token', None)
instance.save()
def _resv_id_from_token(self, context, client_token):
"""Get reservation ID from db."""
resv_id = None
sys_metas = self.compute_api.get_all_system_metadata(
context, search_filts=[{'key': ['EC2_client_token']},
{'value': [client_token]}])
for sys_meta in sys_metas:
if sys_meta and sys_meta.get('value') == client_token:
instance = objects.Instance.get_by_uuid(
context, sys_meta['instance_id'], expected_attrs=None)
resv_id = instance.get('reservation_id')
break
return resv_id
def _ec2_ids_to_instances(self, context, instance_id):
"""Get all instances first, to prevent partial executions."""
instances = []
extra = ['system_metadata', 'metadata', 'info_cache']
for ec2_id in instance_id:
validate_instance_id(ec2_id)
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, ec2_id)
instance = objects.Instance.get_by_uuid(
context, instance_uuid, expected_attrs=extra)
instances.append(instance)
return instances
def terminate_instances(self, context, instance_id, **kwargs):
"""Terminate each instance in instance_id, which is a list of ec2 ids.
instance_id is a kwarg so its name cannot be modified.
"""
previous_states = self._ec2_ids_to_instances(context, instance_id)
self._remove_client_token(context, instance_id)
LOG.debug("Going to start terminating instances")
for instance in previous_states:
self.compute_api.delete(context, instance)
return self._format_terminate_instances(context,
instance_id,
previous_states)
def reboot_instances(self, context, instance_id, **kwargs):
"""instance_id is a list of instance ids."""
instances = self._ec2_ids_to_instances(context, instance_id)
LOG.info(_LI("Reboot instance %r"), instance_id, context=context)
for instance in instances:
self.compute_api.reboot(context, instance, 'HARD')
return True
def stop_instances(self, context, instance_id, **kwargs):
"""Stop each instances in instance_id.
Here instance_id is a list of instance ids
"""
instances = self._ec2_ids_to_instances(context, instance_id)
LOG.debug("Going to stop instances")
for instance in instances:
extensions.check_compute_policy(context, 'stop', instance)
self.compute_api.stop(context, instance)
return self._format_stop_instances(context, instance_id,
instances)
def start_instances(self, context, instance_id, **kwargs):
"""Start each instances in instance_id.
Here instance_id is a list of instance ids
"""
instances = self._ec2_ids_to_instances(context, instance_id)
LOG.debug("Going to start instances")
for instance in instances:
extensions.check_compute_policy(context, 'start', instance)
self.compute_api.start(context, instance)
return self._format_start_instances(context, instance_id,
instances)
def _get_image(self, context, ec2_id):
try:
internal_id = ec2utils.ec2_id_to_id(ec2_id)
image = self.image_service.show(context, internal_id)
except (exception.InvalidEc2Id, exception.ImageNotFound):
filters = {'name': ec2_id}
images = self.image_service.detail(context, filters=filters)
try:
return images[0]
except IndexError:
raise exception.ImageNotFound(image_id=ec2_id)
image_type = ec2_id.split('-')[0]
if ec2utils.image_type(image.get('container_format')) != image_type:
raise exception.ImageNotFound(image_id=ec2_id)
return image
def _format_image(self, image):
"""Convert from format defined by GlanceImageService to S3 format."""
i = {}
image_type = ec2utils.image_type(image.get('container_format'))
ec2_id = ec2utils.image_ec2_id(image.get('id'), image_type)
name = image.get('name')
i['imageId'] = ec2_id
kernel_id = image['properties'].get('kernel_id')
if kernel_id:
i['kernelId'] = ec2utils.image_ec2_id(kernel_id, 'aki')
ramdisk_id = image['properties'].get('ramdisk_id')
if ramdisk_id:
i['ramdiskId'] = ec2utils.image_ec2_id(ramdisk_id, 'ari')
i['imageOwnerId'] = image.get('owner')
img_loc = image['properties'].get('image_location')
if img_loc:
i['imageLocation'] = img_loc
else:
i['imageLocation'] = "%s (%s)" % (img_loc, name)
i['name'] = name
if not name and img_loc:
# This should only occur for images registered with ec2 api
# prior to that api populating the glance name
i['name'] = img_loc
i['imageState'] = self._get_image_state(image)
i['description'] = image.get('description')
display_mapping = {'aki': 'kernel',
'ari': 'ramdisk',
'ami': 'machine'}
i['imageType'] = display_mapping.get(image_type)
i['isPublic'] = not not image.get('is_public')
i['architecture'] = image['properties'].get('architecture')
properties = image['properties']
root_device_name = block_device.properties_root_device_name(properties)
root_device_type = 'instance-store'
for bdm in properties.get('block_device_mapping', []):
if (block_device.strip_dev(bdm.get('device_name')) ==
block_device.strip_dev(root_device_name) and
('snapshot_id' in bdm or 'volume_id' in bdm) and
not bdm.get('no_device')):
root_device_type = 'ebs'
i['rootDeviceName'] = (root_device_name or
block_device.DEFAULT_ROOT_DEV_NAME)
i['rootDeviceType'] = root_device_type
_format_mappings(properties, i)
return i
def describe_images(self, context, image_id=None, **kwargs):
# NOTE: image_id is a list!
if image_id:
images = []
for ec2_id in image_id:
try:
image = self._get_image(context, ec2_id)
except exception.NotFound:
raise exception.ImageNotFound(image_id=ec2_id)
images.append(image)
else:
images = self.image_service.detail(context)
images = [self._format_image(i) for i in images]
return {'imagesSet': images}
def deregister_image(self, context, image_id, **kwargs):
LOG.info(_LI("De-registering image %s"), image_id, context=context)
image = self._get_image(context, image_id)
internal_id = image['id']
self.image_service.delete(context, internal_id)
return True
def _register_image(self, context, metadata):
image = self.image_service.create(context, metadata)
image_type = ec2utils.image_type(image.get('container_format'))
image_id = ec2utils.image_ec2_id(image['id'], image_type)
return image_id
def register_image(self, context, image_location=None, **kwargs):
if image_location is None and kwargs.get('name'):
image_location = kwargs['name']
if image_location is None:
msg = _('imageLocation is required')
raise exception.MissingParameter(reason=msg)
metadata = {'properties': {'image_location': image_location}}
if kwargs.get('name'):
metadata['name'] = kwargs['name']
else:
metadata['name'] = image_location
if 'root_device_name' in kwargs:
metadata['properties']['root_device_name'] = kwargs.get(
'root_device_name')
mappings = [_parse_block_device_mapping(bdm) for bdm in
kwargs.get('block_device_mapping', [])]
if mappings:
metadata['properties']['block_device_mapping'] = mappings
image_id = self._register_image(context, metadata)
LOG.info(_LI('Registered image %(image_location)s with id '
'%(image_id)s'),
{'image_location': image_location, 'image_id': image_id},
context=context)
return {'imageId': image_id}
def describe_image_attribute(self, context, image_id, attribute, **kwargs):
def _block_device_mapping_attribute(image, result):
_format_mappings(image['properties'], result)
def _launch_permission_attribute(image, result):
result['launchPermission'] = []
if image['is_public']:
result['launchPermission'].append({'group': 'all'})
def _root_device_name_attribute(image, result):
_prop_root_dev_name = block_device.properties_root_device_name
result['rootDeviceName'] = _prop_root_dev_name(image['properties'])
if result['rootDeviceName'] is None:
result['rootDeviceName'] = block_device.DEFAULT_ROOT_DEV_NAME
def _kernel_attribute(image, result):
kernel_id = image['properties'].get('kernel_id')
if kernel_id:
result['kernel'] = {
'value': ec2utils.image_ec2_id(kernel_id, 'aki')
}
def _ramdisk_attribute(image, result):
ramdisk_id = image['properties'].get('ramdisk_id')
if ramdisk_id:
result['ramdisk'] = {
'value': ec2utils.image_ec2_id(ramdisk_id, 'ari')
}
supported_attributes = {
'blockDeviceMapping': _block_device_mapping_attribute,
'launchPermission': _launch_permission_attribute,
'rootDeviceName': _root_device_name_attribute,
'kernel': _kernel_attribute,
'ramdisk': _ramdisk_attribute, | fn = supported_attributes.get(attribute)
if fn is None:
raise exception.InvalidAttribute(attr=attribute)
try:
image = self._get_image(context, image_id)
except exception.NotFound:
raise exception.ImageNotFound(image_id=image_id)
result = {'imageId': image_id}
fn(image, result)
return result
def modify_image_attribute(self, context, image_id, attribute,
operation_type, **kwargs):
# TODO(devcamcar): Support users and groups other than 'all'.
if attribute != 'launchPermission':
raise exception.InvalidAttribute(attr=attribute)
if 'user_group' not in kwargs:
msg = _('user or group not specified')
raise exception.MissingParameter(reason=msg)
if len(kwargs['user_group']) != 1 and kwargs['user_group'][0] != 'all':
msg = _('only group "all" is supported')
raise exception.InvalidParameterValue(message=msg)
if operation_type not in ['add', 'remove']:
msg = _('operation_type must be add or remove')
raise exception.InvalidParameterValue(message=msg)
LOG.info(_LI("Updating image %s publicity"), image_id, context=context)
try:
image = self._get_image(context, image_id)
except exception.NotFound:
raise exception.ImageNotFound(image_id=image_id)
internal_id = image['id']
del(image['id'])
image['is_public'] = (operation_type == 'add')
try:
return self.image_service.update(context, internal_id, image)
except exception.ImageNotAuthorized:
msg = _('Not allowed to modify attributes for image %s') % image_id
raise exception.Forbidden(message=msg)
def update_image(self, context, image_id, **kwargs):
internal_id = ec2utils.ec2_id_to_id(image_id)
result = self.image_service.update(context, internal_id, dict(kwargs))
return result
# TODO(yamahata): race condition
# At the moment there is no way to prevent others from
# manipulating instances/volumes/snapshots.
# As other code doesn't take it into consideration, here we don't
# care of it for now. Ostrich algorithm
# TODO(mriedem): Consider auto-locking the instance when stopping it and
# doing the snapshot, then unlock it when that is done. Locking the
# instance in the database would prevent other APIs from changing the state
# of the instance during this operation for non-admin users.
def create_image(self, context, instance_id, **kwargs):
# NOTE(yamahata): name/description are ignored by register_image(),
# do so here
no_reboot = kwargs.get('no_reboot', False)
name = kwargs.get('name')
validate_instance_id(instance_id)
ec2_instance_id = instance_id
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, ec2_instance_id)
instance = self.compute_api.get(context, instance_uuid,
want_objects=True)
# CreateImage only supported for the analogue of EBS-backed instances
if not self.compute_api.is_volume_backed_instance(context, instance):
msg = _("Invalid value '%(ec2_instance_id)s' for instanceId. "
"Instance does not have a volume attached at root "
"(%(root)s)") % {'root': instance.root_device_name,
'ec2_instance_id': ec2_instance_id}
raise exception.InvalidParameterValue(err=msg)
# stop the instance if necessary
restart_instance = False
if not no_reboot:
vm_state = instance.vm_state
# if the instance is in subtle state, refuse to proceed.
if vm_state not in (vm_states.ACTIVE, vm_states.STOPPED):
raise exception.InstanceNotRunning(instance_id=ec2_instance_id)
if vm_state == vm_states.ACTIVE:
restart_instance = True
# NOTE(mriedem): We do a call here so that we're sure the
# stop request is complete before we begin polling the state.
self.compute_api.stop(context, instance, do_cast=False)
# wait instance for really stopped (and not transitioning tasks)
start_time = time.time()
while (vm_state != vm_states.STOPPED and
instance.task_state is not None):
time.sleep(1)
instance.refresh()
vm_state = instance.vm_state
# NOTE(yamahata): timeout and error. 1 hour for now for safety.
# Is it too short/long?
# Or is there any better way?
timeout = 1 * 60 * 60
if time.time() > start_time + timeout:
err = (_("Couldn't stop instance %(instance)s within "
"1 hour. Current vm_state: %(vm_state)s, "
"current task_state: %(task_state)s") %
{'instance': instance_uuid,
'vm_state': vm_state,
'task_state': instance.task_state})
raise exception.InternalError(message=err)
# meaningful image name
name_map = dict(instance=instance_uuid, now=utils.isotime())
name = name or _('image of %(instance)s at %(now)s') % name_map
new_image = self.compute_api.snapshot_volume_backed(context,
instance,
name)
ec2_id = ec2utils.glance_id_to_ec2_id(context, new_image['id'])
if restart_instance:
self.compute_api.start(context, instance)
return {'imageId': ec2_id}
def create_tags(self, context, **kwargs):
"""Add tags to a resource
Returns True on success, error on failure.
:param context: context under which the method is called
"""
resources = kwargs.get('resource_id', None)
tags = kwargs.get('tag', None)
if resources is None or tags is None:
msg = _('resource_id and tag are required')
raise exception.MissingParameter(reason=msg)
if not isinstance(resources, (tuple, list, set)):
msg = _('Expecting a list of resources')
raise exception.InvalidParameterValue(message=msg)
for r in resources:
if ec2utils.resource_type_from_id(context, r) != 'instance':
msg = _('Only instances implemented')
raise exception.InvalidParameterValue(message=msg)
if not isinstance(tags, (tuple, list, set)):
msg = _('Expecting a list of tagSets')
raise exception.InvalidParameterValue(message=msg)
metadata = {}
for tag in tags:
if not isinstance(tag, dict):
err = _('Expecting tagSet to be key/value pairs')
raise exception.InvalidParameterValue(message=err)
key = tag.get('key', None)
val = tag.get('value', None)
if key is None or val is None:
err = _('Expecting both key and value to be set')
raise exception.InvalidParameterValue(message=err)
metadata[key] = val
for ec2_id in resources:
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, ec2_id)
instance = self.compute_api.get(context, instance_uuid,
want_objects=True)
self.compute_api.update_instance_metadata(context,
instance, metadata)
return True
def delete_tags(self, context, **kwargs):
"""Delete tags
Returns True on success, error on failure.
:param context: context under which the method is called
"""
resources = kwargs.get('resource_id', None)
tags = kwargs.get('tag', None)
if resources is None or tags is None:
msg = _('resource_id and tag are required')
raise exception.MissingParameter(reason=msg)
if not isinstance(resources, (tuple, list, set)):
msg = _('Expecting a list of resources')
raise exception.InvalidParameterValue(message=msg)
for r in resources:
if ec2utils.resource_type_from_id(context, r) != 'instance':
msg = _('Only instances implemented')
raise exception.InvalidParameterValue(message=msg)
if not isinstance(tags, (tuple, list, set)):
msg = _('Expecting a list of tagSets')
raise exception.InvalidParameterValue(message=msg)
for ec2_id in resources:
instance_uuid = ec2utils.ec2_inst_id_to_uuid(context, ec2_id)
instance = self.compute_api.get(context, instance_uuid,
want_objects=True)
for tag in tags:
if not isinstance(tag, dict):
msg = _('Expecting tagSet to be key/value pairs')
raise exception.InvalidParameterValue(message=msg)
key = tag.get('key', None)
if key is None:
msg = _('Expecting key to be set')
raise exception.InvalidParameterValue(message=msg)
self.compute_api.delete_instance_metadata(context,
instance, key)
return True
def describe_tags(self, context, **kwargs):
"""List tags
Returns a dict with a single key 'tagSet' on success, error on failure.
:param context: context under which the method is called
"""
filters = kwargs.get('filter', None)
search_filts = []
if filters:
for filter_block in filters:
key_name = filter_block.get('name', None)
val = filter_block.get('value', None)
if val:
if isinstance(val, dict):
val = val.values()
if not isinstance(val, (tuple, list, set)):
val = (val,)
if key_name:
search_block = {}
if key_name in ('resource_id', 'resource-id'):
search_block['resource_id'] = []
for res_id in val:
search_block['resource_id'].append(
ec2utils.ec2_inst_id_to_uuid(context, res_id))
elif key_name in ['key', 'value']:
search_block[key_name] = \
[ec2utils.regex_from_ec2_regex(v) for v in val]
elif key_name in ('resource_type', 'resource-type'):
for res_type in val:
if res_type != 'instance':
raise exception.InvalidParameterValue(
message=_('Only instances implemented'))
search_block[key_name] = 'instance'
if len(search_block.keys()) > 0:
search_filts.append(search_block)
ts = []
for tag in self.compute_api.get_all_instance_metadata(context,
search_filts):
ts.append({
'resource_id': ec2utils.id_to_ec2_inst_id(tag['instance_id']),
'resource_type': 'instance',
'key': tag['key'],
'value': tag['value']
})
return {"tagSet": ts}
class EC2SecurityGroupExceptions(object):
@staticmethod
def raise_invalid_property(msg):
raise exception.InvalidParameterValue(message=msg)
@staticmethod
def raise_group_already_exists(msg):
raise exception.SecurityGroupExists(message=msg)
@staticmethod
def raise_invalid_group(msg):
raise exception.InvalidGroup(reason=msg)
@staticmethod
def raise_invalid_cidr(cidr, decoding_exception=None):
if decoding_exception:
raise decoding_exception
else:
raise exception.InvalidParameterValue(message=_("Invalid CIDR"))
@staticmethod
def raise_over_quota(msg):
raise exception.SecurityGroupLimitExceeded(msg)
@staticmethod
def raise_not_found(msg):
pass
class CloudSecurityGroupNovaAPI(EC2SecurityGroupExceptions,
compute_api.SecurityGroupAPI):
pass
class CloudSecurityGroupNeutronAPI(EC2SecurityGroupExceptions,
neutron_driver.SecurityGroupAPI):
pass
def get_cloud_security_group_api():
if cfg.CONF.security_group_api.lower() == 'nova':
return CloudSecurityGroupNovaAPI()
elif openstack_driver.is_neutron_security_groups():
return CloudSecurityGroupNeutronAPI()
else:
raise NotImplementedError() | }
|
locale-display-names.os.8c164beaa4dc932dc32e.js | (window.webpackJsonp=window.webpackJsonp||[]).push([["locale-display-names.os"],{"./node_modules/@formatjs/intl-displaynames/locale-data/os.js":function(a,M){Intl.DisplayNames&&"function"==typeof Intl.DisplayNames.__addLocaleData&&Intl.DisplayNames.__addLocaleData({data:{types:{language:{long:{ab:"абхазаг",ady:"адыгейаг",ae:"авестӕ",af:"африкаанс",agq:"agq",ak:"ak",am:"am",ang:"рагон англисаг",ar:"араббаг","ar-001":"араббаг (Дуне)",as:"as",asa:"asa",ast:"ast",av:"авайраг",az:"тӕтӕйраг",ba:"башкираг",bas:"bas",be:"be",bem:"bem",bez:"bez",bg:"болгайраг",bm:"bm",bn:"bn",bo:"bo",br:"br",brx:"brx",bs:"босниаг",bua:"бурятаг",ca:"каталайнаг",ccp:"ccp",ce:"цӕцӕйнаг",ceb:"ceb",cgg:"cgg",chr:"chr",ckb:"ckb",co:"co",cop:"коптаг",cs:"чехаг",cu:"cu",cv:"чувашаг",cy:"cy",da:"даниаг",dav:"dav",de:"немыцаг","de-AT":"австралиаг немыцаг","de-CH":"швйецариаг немыцаг",dje:"dje",doi:"doi",dsb:"dsb",dua:"dua",dyo:"dyo",dz:"dz",ebu:"ebu",ee:"ee",egy:"рагон египтаг",el:"бердзейнаг",en:"англисаг","en-AU":"австралиаг англисаг","en-CA":"канадӕйаг англисаг","en-GB":"бритайнаг англисаг","en-US":"америкаг англисаг",eo:"есперанто",es:"испайнаг","es-419":"латинаг америкаг англисаг","es-ES":"европӕйаг англисаг","es-MX":"испайнаг (MX)",et:"естойнаг",eu:"баскаг",ewo:"ewo",fa:"персайнаг","fa-AF":"персайнаг (AF)",ff:"ff",fi:"финнаг",fil:"филиппинаг",fj:"фиджи",fo:"фарераг",fr:"францаг","fr-CA":"канадӕйаг францаг","fr-CH":"швейцариаг францаг",frc:"frc",fro:"рагон францаг",fur:"fur",fy:"fy",ga:"ирландиаг",gd:"gd",gl:"gl",grc:"рагон бердзейнаг",gsw:"gsw",gu:"gu",guz:"guz",gv:"gv",ha:"ha",haw:"haw",he:"уираг",hi:"hi",hmn:"hmn",hr:"хорватаг",hsb:"hsb",ht:"ht",hu:"венгериаг",hy:"сомихаг",ia:"ia",id:"id",ig:"ig",ii:"ii",inh:"мӕхъӕлон",is:"is",it:"италиаг",ja:"япойнаг",jgo:"jgo",jmc:"jmc",jv:"jv",ka:"гуырдзиаг",kab:"kab",kam:"kam",kbd:"кӕсгон",kde:"kde",kea:"kea",kgp:"kgp",khq:"khq",ki:"ki",kk:"kk",kkj:"kkj",kl:"kl",kln:"kln",km:"km",kn:"kn",ko:"ko",kok:"kok",krc:"бӕлхъӕрон",ks:"ks",ksb:"ksb",ksf:"ksf",ksh:"ksh",ku:"курдаг",kum:"хъуымыхъхъаг",kw:"kw",ky:"ky",la:"латинаг",lag:"lag",lb:"lb",lez:"лекъаг",lg:"lg",lij:"lij",lkt:"lkt",ln:"ln",lo:"lo",lou:"lou",lrc:"lrc",lt:"lt",lu:"lu",luo:"luo",luy:"luy",lv:"lv",mai:"mai",mas:"mas",mer:"mer",mfe:"mfe",mg:"mg",mgh:"mgh",mgo:"mgo",mi:"mi",mk:"мӕчъидон",ml:"ml",mn:"mn",mni:"mni",mr:"mr",ms:"ms",mt:"mt",mua:"mua",mul:"mul",my:"my",mzn:"mzn",naq:"naq",nb:"nb",nd:"nd",nds:"nds","nds-NL":"nds (NL)",ne:"ne",nl:"nl","nl-BE":"nl (BE)",nmg:"nmg",nn:"nn",nnh:"nnh",no:"no",nus:"nus",nv:"nv",ny:"ny",nyn:"nyn",om:"om",or:"or",os:"ирон",pa:"pa",pcm:"pcm",pl:"pl",prg:"prg",ps:"ps",pt:"португалиаг","pt-BR":"бразилиаг португалиаг","pt-PT":"европӕйаг полтугалиаг",qu:"qu",rm:"rm",rn:"rn",ro:"ro","ro-MD":"ro (MD)",rof:"rof",rom:"цигайнаг",ru:"уырыссаг",rw:"rw",rwk:"rwk",sa:"sa",sah:"sah",saq:"saq",sat:"sat",sbp:"sbp",sd:"sd",se:"se",seh:"seh",ses:"ses",sg:"sg",shi:"shi",si:"si",sk:"sk",sl:"sl",sm:"sm",smn:"smn",sn:"sn",so:"so",sq:"sq",sr:"sr",st:"st",su:"su",sv:"sv",sw:"sw","sw-CD":"sw (CD)",ta:"ta",te:"te",teo:"teo",tg:"tg",th:"th",ti:"ti",tk:"tk",to:"to",tr:"tr",tt:"tt",twq:"twq",tzm:"tzm",ug:"ug",uk:"uk",und:"нӕзонгӕ ӕвзаг",ur:"ur",uz:"uz",vai:"vai",vi:"vi",vo:"vo",vun:"vun",wae:"wae",wo:"wo",xh:"xh",xog:"xog",yav:"yav",yi:"yi",yo:"yo",yue:"yue",zgh:"zgh",zh:"китайаг","zh-Hans":"ӕнцонгонд китайаг","zh-Hant":"традицион китайаг",zu:"zu",zxx:"zxx"},short:{az:"тӕтӕйраг","en-GB":"бритайнаг англисаг","en-US":"америкаг англисаг"},narrow:{}},region:{long:{142:"Ази",143:"143",145:"145",150:"Европӕ",151:"151",154:"154",155:"155",202:"202",419:"419","001":"Дуне","002":"Африкӕ","003":"003","005":"005","009":"Океани","011":"011","013":"013","014":"014","015":"015","017":"017","018":"018","019":"Америкӕ","021":"021","029":"029","030":"030","034":"034","035":"035","039":"039","053":"053","054":"054","057":"057","061":"061",AC:"AC",AD:"AD",AE:"AE",AF:"AF",AG:"AG",AI:"AI",AL:"AL",AM:"AM",AO:"AO",AQ:"AQ",AR:"AR",AS:"AS",AT:"AT",AU:"AU",AW:"AW",AX:"AX",AZ:"AZ",BA:"BA",BB:"BB",BD:"BD",BE:"BE",BF:"BF",BG:"BG",BH:"BH",BI:"BI",BJ:"BJ",BL:"BL",BM:"BM",BN:"BN",BO:"BO",BQ:"BQ",BR:"Бразили",BS:"BS",BT:"BT",BV:"BV",BW:"BW",BY:"BY",BZ:"BZ",CA:"CA",CC:"CC",CD:"CD",CF:"CF",CG:"CG",CH:"CH",CI:"CI",CK:"CK",CL:"CL",CM:"CM",CN:"Китай",CO:"CO",CP:"CP",CR:"CR",CU:"CU",CV:"CV",CW:"CW",CX:"CX",CY:"CY",CZ:"CZ",DE:"Герман",DG:"DG",DJ:"DJ",DK:"DK",DM:"DM",DO:"DO",DZ:"DZ",EA:"EA",EC:"EC",EE:"EE",EG:"EG",EH:"EH",ER:"ER",ES:"ES",ET:"ET",EU:"EU",EZ:"EZ",FI:"FI",FJ:"FJ",FK:"FK",FM:"FM",FO:"FO",FR:"Франц",GA:"GA",GB:"Стыр Британи",GD:"GD",GE:"Гуырдзыстон",GF:"GF",GG:"GG",GH:"GH",GI:"GI",GL:"GL",GM:"GM",GN:"GN",GP:"GP",GQ:"GQ",GR:"GR",GS:"GS",GT:"GT",GU:"GU",GW:"GW",GY:"GY",HK:"HK",HM:"HM",HN:"HN",HR:"HR",HT:"HT",HU:"HU",IC:"IC",ID:"ID",IE:"IE",IL:"IL",IM:"IM",IN:"Инди",IO:"IO",IQ:"IQ",IR:"IR",IS:"IS",IT:"Итали",JE:"JE",JM:"JM",JO:"JO",JP:"Япон",KE:"KE",KG:"KG",KH:"KH",KI:"KI",KM:"KM",KN:"KN",KP:"KP",KR:"KR",KW:"KW",KY:"KY",KZ:"KZ",LA:"LA",LB:"LB",LC:"LC",LI:"LI",LK:"LK",LR:"LR",LS:"LS",LT:"LT",LU:"LU",LV:"LV",LY:"LY",MA:"MA",MC:"MC",MD:"MD",ME:"ME",MF:"MF",MG:"MG",MH:"MH",MK:"MK",ML:"ML",MM:"MM",MN:"MN",MO:"MO",MP:"MP",MQ:"MQ",MR:"MR",MS:"MS",MT:"MT",MU:"MU",MV:"MV",MW:"MW",MX:"MX",MY:"MY",MZ:"MZ",NA:"NA",NC:"NC",NE:"NE",NF:"NF",NG:"NG",NI:"NI",NL:"NL",NO:"NO",NP:"NP",NR:"NR",NU:"NU",NZ:"NZ",OM:"OM",PA:"PA",PE:"PE",PF:"PF",PG:"PG",PH:"PH",PK:"PK",PL:"PL",PM:"PM",PN:"PN",PR:"PR",PS:"PS",PT:"PT",PW:"PW",PY:"PY",QA:"QA",QO:"QO",RE:"RE",RO:"RO",RS:"RS",RU:"Уӕрӕсе",RW:"RW",SA:"SA",SB:"SB",SC:"SC",SD:"SD",SE:"SE",SG:"SG",SH:"SH",SI:"SI",SJ:"SJ",SK:"SK",SL:"SL",SM:"SM",SN:"SN",SO:"SO",SR:"SR",SS:"SS",ST:"ST",SV:"SV",SX:"SX",SY:"SY",SZ:"SZ",TA:"TA",TC:"TC",TD:"TD",TF:"TF",TG:"TG",TH:"TH",TJ:"TJ",TK:"TK",TL:"TL",TM:"TM",TN:"TN",TO:"TO",TR:"TR",TT:"TT",TV:"TV",TW:"TW",TZ:"TZ",UA:"UA",UG:"UG",UM:"UM",UN:"UN",US:"АИШ",UY:"UY",UZ:"UZ",VA:"VA",VC:"VC",VE:"VE",VG:"VG",VI:"VI",VN:"VN",VU:"VU",WF:"WF",WS:"WS",XA:"XA",XB:"XB",XK:"XK",YE:"YE",YT:"YT",ZA:"ZA",ZM:"ZM",ZW:"ZW",ZZ:"Нӕзонгӕ бӕстӕ"},short:{GB:"Стыр Британи",HK:"HK",MO:"MO",PS:"PS",US:"АИШ"},narrow:{}},script:{long:{Adlm:"Adlm",Aghb:"Aghb",Ahom:"Ahom",Arab:"Араббаг",Aran:"Aran",Armi:"Armi",Armn:"Armn",Avst:"Avst",Bali:"Bali",Bamu:"Bamu",Bass:"Bass",Batk:"Batk",Beng:"Beng",Bhks:"Bhks",Bopo:"Bopo",Brah:"Brah",Brai:"Brai",Bugi:"Bugi",Buhd:"Buhd",Cakm:"Cakm",Cans:"Cans",Cari:"Cari",Cham:"Cham",Cher:"Cher",Chrs:"Chrs",Copt:"Copt",Cprt:"Cprt",Cyrl:"Киррилицӕ",Deva:"Deva",Diak:"Diak",Dogr:"Dogr",Dsrt:"Dsrt",Dupl:"Dupl",Egyp:"Egyp",Elba:"Elba",Elym:"Elym",Ethi:"Ethi",Geor:"Geor",Glag:"Glag",Gong:"Gong",Gonm:"Gonm",Goth:"Goth",Gran:"Gran",Grek:"Grek",Gujr:"Gujr",Guru:"Guru",Hanb:"Hanb",Hang:"Hang",Hani:"Hani",Hano:"Hano",Hans:"Ӕнцонгонд китайаг",Hant:"Традицион китайаг",Hatr:"Hatr",Hebr:"Hebr",Hira:"Hira",Hluw:"Hluw",Hmng:"Hmng",Hmnp:"Hmnp",Hrkt:"Hrkt",Hung:"Hung",Ital:"Ital",Jamo:"Jamo",Java:"Java",Jpan:"Jpan",Kali:"Kali",Kana:"Kana",Khar:"Khar",Khmr:"Khmr",Khoj:"Khoj",Kits:"Kits",Knda:"Knda",Kore:"Kore",Kthi:"Kthi",Lana:"Lana",Laoo:"Laoo",Latn:"Латинаг",Lepc:"Lepc",Limb:"Limb",Lina:"Lina",Linb:"Linb",Lisu:"Lisu",Lyci:"Lyci",Lydi:"Lydi",Mahj:"Mahj",Maka:"Maka",Mand:"Mand",Mani:"Mani",Marc:"Marc",Medf:"Medf",Mend:"Mend",Merc:"Merc",Mero:"Mero",Mlym:"Mlym",Modi:"Modi",Mong:"Mong",Mroo:"Mroo",Mtei:"Mtei",Mult:"Mult",Mymr:"Mymr",Nand:"Nand",Narb:"Narb",Nbat:"Nbat",Newa:"Newa",Nkoo:"Nkoo",Nshu:"Nshu",Ogam:"Ogam",Olck:"Olck",Orkh:"Orkh",Orya:"Orya",Osge:"Osge",Osma:"Osma",Palm:"Palm",Pauc:"Pauc",Perm:"Perm",Phag:"Phag",Phli:"Phli",Phlp:"Phlp",Phnx:"Phnx",Plrd:"Plrd",Prti:"Prti",Qaag:"Qaag",Rjng:"Rjng",Rohg:"Rohg",Runr:"Runr",Samr:"Samr",Sarb:"Sarb",Saur:"Saur",Sgnw:"Sgnw",Shaw:"Shaw",Shrd:"Shrd",Sidd:"Sidd",Sind:"Sind",Sinh:"Sinh",Sogd:"Sogd",Sogo:"Sogo",Sora:"Sora",Soyo:"Soyo",Sund:"Sund",Sylo:"Sylo",Syrc:"Syrc",Tagb:"Tagb",Takr:"Takr",Tale:"Tale",Talu:"Talu",Taml:"Taml",Tang:"Tang",Tavt:"Tavt",Telu:"Telu",Tfng:"Tfng",Tglg:"Tglg",Thaa:"Thaa",Thai:"Thai",Tibt:"Tibt",Tirh:"Tirh",Ugar:"Ugar",Vaii:"Vaii",Wara:"Wara",Wcho:"Wcho",Xpeo:"Xpeo",Xsux:"Xsux",Yezi:"Yezi",Yiii:"Yiii",Zanb:"Zanb",Zinh:"Zinh",Zmth:"Zmth",Zsye:"Zsye",Zsym:"Zsym",Zxxx:"Нӕфысгӕ",Zyyy:"Zyyy",Zzzz:"Нӕзонгӕ скрипт"},short:{},narrow:{}},currency:{long:{ADP:"ADP",AED:"AED",AFA:"AFA",AFN:"AFN",ALK:"ALK",ALL:"ALL",AMD:"AMD",ANG:"ANG",AOA:"AOA",AOK:"AOK",AON:"AON",AOR:"AOR",ARA:"ARA",ARL:"ARL",ARM:"ARM",ARP:"ARP",ARS:"ARS",ATS:"ATS",AUD:"AUD",AWG:"AWG",AZM:"AZM",AZN:"AZN",BAD:"BAD",BAM:"BAM",BAN:"BAN",BBD:"BBD",BDT:"BDT",BEC:"BEC",BEF:"BEF",BEL:"BEL",BGL:"BGL",BGM:"BGM",BGN:"BGN",BGO:"BGO",BHD:"BHD",BIF:"BIF",BMD:"BMD",BND:"BND",BOB:"BOB",BOL:"BOL",BOP:"BOP",BOV:"BOV",BRB:"BRB",BRC:"BRC",BRE:"BRE",BRL:"Бразилиаг реал",BRN:"BRN",BRR:"BRR",BRZ:"BRZ",BSD:"BSD",BTN:"BTN",BUK:"BUK",BWP:"BWP",BYB:"BYB",BYN:"BYN",BYR:"BYR",BZD:"BZD",CAD:"CAD",CDF:"CDF",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLE:"CLE",CLF:"CLF",CLP:"CLP",CNH:"CNH",CNX:"CNX",CNY:"CNY",COP:"COP",COU:"COU",CRC:"CRC",CSD:"CSD",CSK:"CSK",CUC:"CUC",CUP:"CUP",CVE:"CVE",CYP:"CYP",CZK:"CZK",DDM:"DDM",DEM:"DEM",DJF:"DJF",DKK:"DKK",DOP:"DOP",DZD:"DZD",ECS:"ECS",ECV:"ECV",EEK:"EEK",EGP:"EGP",ERN:"ERN",ESA:"ESA",ESB:"ESB",ESP:"ESP",ETB:"ETB",EUR:"Евро",FIM:"FIM",FJD:"FJD",FKP:"FKP",FRF:"FRF",GBP:"Бритайнаг Фунт",GEK:"GEK",GEL:"Лар",GHC:"GHC",GHS:"GHS",GIP:"GIP",GMD:"GMD",GNF:"GNF",GNS:"GNS",GQE:"GQE",GRD:"GRD",GTQ:"GTQ",GWE:"GWE",GWP:"GWP",GYD:"GYD",HKD:"HKD",HNL:"HNL",HRD:"HRD",HRK:"HRK",HTG:"HTG",HUF:"HUF",IDR:"IDR",IEP:"IEP",ILP:"ILP",ILR:"ILR",ILS:"ILS",INR:"INR",IQD:"IQD",IRR:"IRR",ISJ:"ISJ",ISK:"ISK",ITL:"ITL",JMD:"JMD",JOD:"JOD",JPY:"JPY",KES:"KES",KGS:"KGS",KHR:"KHR",KMF:"KMF",KPW:"KPW",KRH:"KRH",KRO:"KRO",KRW:"KRW",KWD:"KWD",KYD:"KYD",KZT:"KZT",LAK:"LAK",LBP:"LBP",LKR:"LKR",LRD:"LRD",LSL:"LSL",LTL:"LTL",LTT:"LTT",LUC:"LUC",LUF:"LUF",LUL:"LUL",LVL:"LVL",LVR:"LVR",LYD:"LYD",MAD:"MAD",MAF:"MAF",MCF:"MCF",MDC:"MDC",MDL:"MDL",MGA:"MGA",MGF:"MGF",MKD:"MKD",MKN:"MKN",MLF:"MLF",MMK:"MMK",MNT:"MNT",MOP:"MOP",MRO:"MRO",MRU:"MRU",MTL:"MTL",MTP:"MTP",MUR:"MUR",MVP:"MVP",MVR:"MVR",MWK:"MWK",MXN:"MXN",MXP:"MXP",MXV:"MXV",MYR:"MYR",MZE:"MZE",MZM:"MZM",MZN:"MZN",NAD:"NAD",NGN:"NGN",NIC:"NIC",NIO:"NIO",NLG:"NLG",NOK:"NOK",NPR:"NPR",NZD:"NZD",OMR:"OMR",PAB:"PAB",PEI:"PEI",PEN:"PEN",PES:"PES",PGK:"PGK",PHP:"PHP",PKR:"PKR",PLN:"PLN",PLZ:"PLZ",PTE:"PTE",PYG:"PYG",QAR:"QAR",RHD:"RHD",ROL:"ROL",RON:"RON",RSD:"RSD",RUB:"Сом",RUR:"RUR",RWF:"RWF",SAR:"SAR",SBD:"SBD",SCR:"SCR",SDD:"SDD",SDG:"SDG",SDP:"SDP",SEK:"SEK",SGD:"SGD",SHP:"SHP",SIT:"SIT",SKK:"SKK",SLL:"SLL",SOS:"SOS",SRD:"SRD",SRG:"SRG",SSP:"SSP",STD:"STD",STN:"STN",SUR:"SUR",SVC:"SVC",SYP:"SYP",SZL:"SZL",THB:"THB",TJR:"TJR",TJS:"TJS",TMM:"TMM",TMT:"TMT",TND:"TND",TOP:"TOP",TPE:"TPE",TRL:"TRL",TRY:"TRY",TTD:"TTD",TWD:"TWD",TZS:"TZS",UAH:"UAH",UAK:"UAK",UGS:"UGS",UGX:"UGX",USD:"АИШ-ы Доллар",USN:"USN",USS:"USS",UYI:"UYI",UYP:"UYP",UYU:"UYU",UYW:"UYW",UZS:"UZS",VEB:"VEB",VEF:"VEF",VES:"VES",VND:"VND",VNN:"VNN",VUV:"VUV",WST:"WST",XAF:"XAF",XAG:"XAG",XAU:"XAU",XBA:"XBA",XBB:"XBB",XBC:"XBC",XBD:"XBD",XCD:"XCD",XDR:"XDR",XEU:"XEU",XFO:"XFO",XFU:"XFU",XOF:"XOF",XPD:"XPD",XPF:"XPF",XPT:"XPT",XRE:"XRE",XSU:"XSU",XTS:"XTS",XUA:"XUA",XXX:"Нӕзонгӕ валютӕ",YDD:"YDD",YER:"YER",YUD:"YUD",YUM:"YUM",YUN:"YUN",YUR:"YUR",ZAL:"ZAL",ZAR:"ZAR",ZMK:"ZMK",ZMW:"ZMW",ZRN:"ZRN",ZRZ:"ZRZ",ZWD:"ZWD",ZWL:"ZWL",ZWR:"ZWR"},short:{},narrow:{}}},patterns:{locale:"{0} ({1})"}},locale:"os"})}}]); |
||
fire_test.py | # Copyright (C) 2017 Google Inc.
#
# 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.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import fire
from fire import test_components as tc
from fire import trace
import unittest
class FireTest(unittest.TestCase):
def testFire(self):
fire.Fire(tc.Empty)
fire.Fire(tc.OldStyleEmpty)
fire.Fire(tc.WithInit)
self.assertEqual(fire.Fire(tc.NoDefaults, 'double 2'), 4)
self.assertEqual(fire.Fire(tc.NoDefaults, 'triple 4'), 12)
self.assertEqual(fire.Fire(tc.WithDefaults, 'double 2'), 4)
self.assertEqual(fire.Fire(tc.WithDefaults, 'triple 4'), 12)
self.assertEqual(fire.Fire(tc.OldStyleWithDefaults, 'double 2'), 4)
self.assertEqual(fire.Fire(tc.OldStyleWithDefaults, 'triple 4'), 12)
def testFireNoArgs(self):
self.assertEqual(fire.Fire(tc.MixedDefaults, 'ten'), 10)
def testFireExceptions(self):
# Exceptions of Fire are printed to stderr and None is returned.
self.assertIsNone(fire.Fire(tc.Empty, 'nomethod')) # Member doesn't exist.
self.assertIsNone(fire.Fire(tc.NoDefaults, 'double')) # Missing argument.
self.assertIsNone(fire.Fire(tc.TypedProperties, 'delta x')) # Missing key.
# Exceptions of the target components are still raised.
with self.assertRaises(ZeroDivisionError):
fire.Fire(tc.NumberDefaults, 'reciprocal 0.0')
def testFireNamedArgs(self):
self.assertEqual(fire.Fire(tc.WithDefaults, 'double --count 5'), 10)
self.assertEqual(fire.Fire(tc.WithDefaults, 'triple --count 5'), 15)
self.assertEqual(fire.Fire(tc.OldStyleWithDefaults, 'double --count 5'), 10)
self.assertEqual(fire.Fire(tc.OldStyleWithDefaults, 'triple --count 5'), 15)
def testFireNamedArgsWithEquals(self):
self.assertEqual(fire.Fire(tc.WithDefaults, 'double --count=5'), 10)
self.assertEqual(fire.Fire(tc.WithDefaults, 'triple --count=5'), 15)
def testFireAllNamedArgs(self):
self.assertEqual(fire.Fire(tc.MixedDefaults, 'sum 1 2'), 5)
self.assertEqual(fire.Fire(tc.MixedDefaults, 'sum --alpha 1 2'), 5)
self.assertEqual(fire.Fire(tc.MixedDefaults, 'sum --beta 1 2'), 4)
self.assertEqual(fire.Fire(tc.MixedDefaults, 'sum 1 --alpha 2'), 4)
self.assertEqual(fire.Fire(tc.MixedDefaults, 'sum 1 --beta 2'), 5)
self.assertEqual(fire.Fire(tc.MixedDefaults, 'sum --alpha 1 --beta 2'), 5)
self.assertEqual(fire.Fire(tc.MixedDefaults, 'sum --beta 1 --alpha 2'), 4)
def testFireAllNamedArgsOneMissing(self):
self.assertEqual(fire.Fire(tc.MixedDefaults, 'sum'), 0)
self.assertEqual(fire.Fire(tc.MixedDefaults, 'sum 1'), 1)
self.assertEqual(fire.Fire(tc.MixedDefaults, 'sum --alpha 1'), 1)
self.assertEqual(fire.Fire(tc.MixedDefaults, 'sum --beta 2'), 4)
def testFirePartialNamedArgs(self):
self.assertEqual(fire.Fire(tc.MixedDefaults, 'identity 1 2'), (1, 2))
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity --alpha 1 2'), (1, 2))
self.assertEqual(fire.Fire(tc.MixedDefaults, 'identity --beta 1 2'), (2, 1))
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity 1 --alpha 2'), (2, 1))
self.assertEqual(fire.Fire(tc.MixedDefaults, 'identity 1 --beta 2'), (1, 2))
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity --alpha 1 --beta 2'), (1, 2))
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity --beta 1 --alpha 2'), (2, 1))
def testFirePartialNamedArgsOneMissing(self):
# By default, errors are written to standard out and None is returned.
self.assertIsNone( # Identity needs an arg.
fire.Fire(tc.MixedDefaults, 'identity'))
self.assertIsNone( # Identity needs a value for alpha.
fire.Fire(tc.MixedDefaults, 'identity --beta 2'))
self.assertEqual(fire.Fire(tc.MixedDefaults, 'identity 1'), (1, '0'))
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity --alpha 1'), (1, '0'))
def testFireProperties(self):
self.assertEqual(fire.Fire(tc.TypedProperties, 'alpha'), True)
self.assertEqual(fire.Fire(tc.TypedProperties, 'beta'), (1, 2, 3))
def testFireRecursion(self):
self.assertEqual(
fire.Fire(tc.TypedProperties, 'charlie double hello'), 'hellohello')
self.assertEqual(fire.Fire(tc.TypedProperties, 'charlie triple w'), 'www')
def testFireVarArgs(self):
self.assertEqual(
fire.Fire(tc.VarArgs, 'cumsums a b c d'), ['a', 'ab', 'abc', 'abcd'])
self.assertEqual(fire.Fire(tc.VarArgs, 'cumsums 1 2 3 4'), [1, 3, 6, 10])
def testFireVarArgsWithNamedArgs(self):
self.assertEqual(fire.Fire(tc.VarArgs, 'varchars 1 2 c d'), (1, 2, 'cd'))
self.assertEqual(fire.Fire(tc.VarArgs, 'varchars 3 4 c d e'), (3, 4, 'cde'))
def testFireKeywordArgs(self):
self.assertEqual(fire.Fire(tc.Kwargs, 'props --name David --age 24'),
{'name': 'David', 'age': 24})
self.assertEqual(
fire.Fire(tc.Kwargs,
'props --message "This is a message it has -- in it"'),
{'message': 'This is a message it has -- in it'})
self.assertEqual(fire.Fire(tc.Kwargs, 'upper --alpha A --beta B'),
'ALPHA BETA')
self.assertEqual(fire.Fire(tc.Kwargs, 'upper --alpha A --beta B - lower'),
'alpha beta')
def testFireKeywordArgsWithMissingPositionalArgs(self):
self.assertEqual(fire.Fire(tc.Kwargs, 'run Hello World --cell is'),
('Hello', 'World', {'cell': 'is'}))
self.assertEqual(fire.Fire(tc.Kwargs, 'run Hello --cell ok'),
('Hello', None, {'cell': 'ok'}))
def testFireObject(self):
self.assertEqual(fire.Fire(tc.WithDefaults(), 'double --count 5'), 10)
self.assertEqual(fire.Fire(tc.WithDefaults(), 'triple --count 5'), 15)
def testFireDict(self):
component = {
'double': lambda x=0: 2 * x,
'cheese': 'swiss',
}
self.assertEqual(fire.Fire(component, 'double 5'), 10)
self.assertEqual(fire.Fire(component, 'cheese'), 'swiss')
def testFireObjectWithDict(self):
self.assertEqual(fire.Fire(tc.TypedProperties, 'delta echo'), 'E')
self.assertEqual(fire.Fire(tc.TypedProperties, 'delta echo lower'), 'e')
self.assertIsInstance(fire.Fire(tc.TypedProperties, 'delta nest'), dict)
self.assertEqual(fire.Fire(tc.TypedProperties, 'delta nest 0'), 'a')
def testFireList(self):
component = ['zero', 'one', 'two', 'three']
self.assertEqual(fire.Fire(component, '2'), 'two')
self.assertEqual(fire.Fire(component, '3'), 'three')
self.assertEqual(fire.Fire(component, '-1'), 'three')
def testFireObjectWithList(self):
self.assertEqual(fire.Fire(tc.TypedProperties, 'echo 0'), 'alex')
self.assertEqual(fire.Fire(tc.TypedProperties, 'echo 1'), 'bethany')
def testFireObjectWithTuple(self):
self.assertEqual(fire.Fire(tc.TypedProperties, 'fox 0'), 'carry')
self.assertEqual(fire.Fire(tc.TypedProperties, 'fox 1'), 'divide')
def testFireNoComponent(self):
self.assertEqual(fire.Fire(command='tc WithDefaults double 10'), 20)
last_char = lambda text: text[-1] # pylint: disable=unused-variable
self.assertEqual(fire.Fire(command='last_char "Hello"'), 'o')
self.assertEqual(fire.Fire(command='last-char "World"'), 'd')
rset = lambda count=0: set(range(count)) # pylint: disable=unused-variable
self.assertEqual(fire.Fire(command='rset 5'), {0, 1, 2, 3, 4})
def testFireUnderscores(self):
self.assertEqual(
fire.Fire(tc.Underscores, 'underscore-example'), 'fish fingers')
self.assertEqual(
fire.Fire(tc.Underscores, 'underscore_example'), 'fish fingers')
def testFireUnderscoresInArg(self):
self.assertEqual(
fire.Fire(tc.Underscores, 'underscore-function example'), 'example')
self.assertEqual(
fire.Fire(tc.Underscores, 'underscore_function --underscore-arg=score'),
'score')
self.assertEqual(
fire.Fire(tc.Underscores, 'underscore_function --underscore_arg=score'),
'score')
def | (self):
self.assertEqual(fire.Fire(tc.BoolConverter, 'as-bool True'), True)
self.assertEqual(fire.Fire(tc.BoolConverter, 'as-bool False'), False)
self.assertEqual(fire.Fire(tc.BoolConverter, 'as-bool --arg=True'), True)
self.assertEqual(fire.Fire(tc.BoolConverter, 'as-bool --arg=False'), False)
self.assertEqual(fire.Fire(tc.BoolConverter, 'as-bool --arg'), True)
self.assertEqual(fire.Fire(tc.BoolConverter, 'as-bool --noarg'), False)
def testBoolParsingContinued(self):
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity True False'), (True, False))
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity --alpha=False 10'), (False, 10))
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity --alpha --beta 10'), (True, 10))
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity --alpha --beta=10'), (True, 10))
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity --noalpha --beta'), (False, True))
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity 10 --beta'), (10, True))
def testBoolParsingLessExpectedCases(self):
# Note: Does not return (True, 10).
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity --alpha 10'), (10, '0'))
# To get (True, 10), use one of the following:
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity --alpha --beta=10'), (True, 10))
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity True 10'), (True, 10))
# Note: Does not return ('--test', '0').
self.assertEqual(fire.Fire(tc.MixedDefaults, 'identity --alpha --test'),
(True, '--test'))
# To get ('--test', '0'), use one of the following:
self.assertEqual(fire.Fire(tc.MixedDefaults, 'identity --alpha=--test'),
('--test', '0'))
self.assertEqual(
fire.Fire(tc.MixedDefaults, r'identity --alpha \"--test\"'),
('--test', '0'))
def testBoolParsingWithNo(self):
# In these examples --nothing always refers to the nothing argument:
def fn1(thing, nothing):
return thing, nothing
self.assertEqual(fire.Fire(fn1, '--thing --nothing'), (True, True))
self.assertEqual(fire.Fire(fn1, '--thing --nonothing'), (True, False))
# In the next example nothing=False (since rightmost setting of a flag gets
# precedence), but it errors because thing has no value.
self.assertEqual(fire.Fire(fn1, '--nothing --nonothing'), None)
# In these examples, --nothing sets thing=False:
def fn2(thing, **kwargs):
return thing, kwargs
self.assertEqual(fire.Fire(fn2, '--thing'), (True, {}))
self.assertEqual(fire.Fire(fn2, '--nothing'), (False, {}))
# In the next one, nothing=True, but it errors because thing has no value.
self.assertEqual(fire.Fire(fn2, '--nothing=True'), None)
self.assertEqual(fire.Fire(fn2, '--nothing --nothing=True'),
(False, {'nothing': True}))
def fn3(arg, **kwargs):
return arg, kwargs
self.assertEqual(fire.Fire(fn3, '--arg=value --thing'),
('value', {'thing': True}))
self.assertEqual(fire.Fire(fn3, '--arg=value --nothing'),
('value', {'thing': False}))
self.assertEqual(fire.Fire(fn3, '--arg=value --nonothing'),
('value', {'nothing': False}))
def testTraceFlag(self):
self.assertIsInstance(
fire.Fire(tc.BoolConverter, 'as-bool True -- --trace'), trace.FireTrace)
self.assertIsInstance(
fire.Fire(tc.BoolConverter, 'as-bool True -- -t'), trace.FireTrace)
self.assertIsInstance(
fire.Fire(tc.BoolConverter, '-- --trace'), trace.FireTrace)
def testHelpFlag(self):
self.assertIsNone(fire.Fire(tc.BoolConverter, 'as-bool True -- --help'))
self.assertIsNone(fire.Fire(tc.BoolConverter, 'as-bool True -- -h'))
self.assertIsNone(fire.Fire(tc.BoolConverter, '-- --help'))
def testHelpFlagAndTraceFlag(self):
self.assertIsInstance(
fire.Fire(tc.BoolConverter, 'as-bool True -- --help --trace'),
trace.FireTrace)
self.assertIsInstance(
fire.Fire(tc.BoolConverter, 'as-bool True -- -h -t'), trace.FireTrace)
self.assertIsInstance(
fire.Fire(tc.BoolConverter, '-- -h --trace'), trace.FireTrace)
def testTabCompletionNoName(self):
with self.assertRaises(ValueError):
fire.Fire(tc.NoDefaults, '-- --completion')
def testTabCompletion(self):
completion_script = fire.Fire(tc.NoDefaults, '-- --completion', name='c')
self.assertIn('double', completion_script)
self.assertIn('triple', completion_script)
def testTabCompletionWithDict(self):
actions = {'multiply': lambda a, b: a * b}
completion_script = fire.Fire(actions, '-- --completion', name='actCLI')
self.assertIn('actCLI', completion_script)
self.assertIn('multiply', completion_script)
def testBasicSeparator(self):
# '-' is the default separator.
self.assertEqual(fire.Fire(tc.MixedDefaults, 'identity + _'), ('+', '_'))
self.assertEqual(fire.Fire(tc.MixedDefaults, 'identity _ + -'), ('_', '+'))
# If we change the separator we can use '-' as an argument.
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'identity - _ -- --separator &'),
('-', '_'))
# The separator triggers a function call, but there aren't enough arguments.
self.assertEqual(fire.Fire(tc.MixedDefaults, 'identity - _ +'), None)
def testExtraSeparators(self):
self.assertEqual(
fire.Fire(tc.ReturnsObj, 'get-obj arg1 arg2 - - as-bool True'), True)
self.assertEqual(
fire.Fire(tc.ReturnsObj, 'get-obj arg1 arg2 - - - as-bool True'), True)
def testSeparatorForChaining(self):
# Without a separator all args are consumed by get_obj.
self.assertIsInstance(
fire.Fire(tc.ReturnsObj, 'get-obj arg1 arg2 as-bool True'),
tc.BoolConverter)
# With a separator only the preceeding args are consumed by get_obj.
self.assertEqual(
fire.Fire(tc.ReturnsObj, 'get-obj arg1 arg2 - as-bool True'), True)
self.assertEqual(
fire.Fire(tc.ReturnsObj,
'get-obj arg1 arg2 & as-bool True -- --separator &'),
True)
self.assertEqual(
fire.Fire(tc.ReturnsObj,
'get-obj arg1 $$ as-bool True -- --separator $$'),
True)
def testFloatForExpectedInt(self):
self.assertEqual(
fire.Fire(tc.MixedDefaults, 'sum --alpha 2.2 --beta 3.0'), 8.2)
self.assertEqual(
fire.Fire(tc.NumberDefaults, 'integer_reciprocal --divisor 5.0'), 0.2)
self.assertEqual(
fire.Fire(tc.NumberDefaults, 'integer_reciprocal 4.0'), 0.25)
def testClassInstantiation(self):
self.assertIsInstance(fire.Fire(tc.InstanceVars, '--arg1=a1 --arg2=a2'),
tc.InstanceVars)
# Cannot instantiate a class with positional args by default.
self.assertIsNone(fire.Fire(tc.InstanceVars, 'a1 a2'))
def testTraceErrors(self):
# Class needs additional value but runs out of args.
self.assertIsNone(fire.Fire(tc.InstanceVars, 'a1'))
self.assertIsNone(fire.Fire(tc.InstanceVars, '--arg1=a1'))
# Routine needs additional value but runs out of args.
self.assertIsNone(fire.Fire(tc.InstanceVars, 'a1 a2 - run b1'))
self.assertIsNone(
fire.Fire(tc.InstanceVars, '--arg1=a1 --arg2=a2 - run b1'))
# Extra args cannot be consumed.
self.assertIsNone(fire.Fire(tc.InstanceVars, 'a1 a2 - run b1 b2 b3'))
self.assertIsNone(
fire.Fire(tc.InstanceVars, '--arg1=a1 --arg2=a2 - run b1 b2 b3'))
# Cannot find member to access.
self.assertIsNone(fire.Fire(tc.InstanceVars, 'a1 a2 - jog'))
self.assertIsNone(fire.Fire(tc.InstanceVars, '--arg1=a1 --arg2=a2 - jog'))
if __name__ == '__main__':
unittest.main()
| testBoolParsing |
exchange.go | package abcc
// Copyright (c) 2015-2019 Bitontop Technologies Inc.
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
import (
"fmt"
"log"
"sort"
"strconv"
"sync"
cmap "github.com/orcaman/concurrent-map"
"github.com/chz8494/gored/coin"
"github.com/chz8494/gored/exchange"
"github.com/chz8494/gored/pair"
"github.com/chz8494/gored/utils"
)
type Abcc struct {
ID int
Name string `bson:"name"`
Website string `bson:"website"`
API_KEY string
API_SECRET string
Source exchange.DataSource // / exchange API / microservicve api 1 / PSQL
SourceURI string
}
var pairConstraintMap cmap.ConcurrentMap
var coinConstraintMap cmap.ConcurrentMap
var balanceMap cmap.ConcurrentMap
var instance *Abcc
var once sync.Once
/***************************************************/
func CreateAbcc(config *exchange.Config) *Abcc {
once.Do(func() {
instance = &Abcc{
ID: DEFAULT_ID,
Name: "Abcc",
Website: "https://abcc.com/en",
API_KEY: config.API_KEY,
API_SECRET: config.API_SECRET,
Source: config.Source,
SourceURI: config.SourceURI,
}
balanceMap = cmap.New()
coinConstraintMap = cmap.New()
pairConstraintMap = cmap.New()
if err := instance.InitData(); err != nil {
log.Printf("%v", err)
instance = nil
}
})
return instance
}
func (e *Abcc) InitData() error {
switch e.Source {
case exchange.EXCHANGE_API:
if err := e.GetCoinsData(); err != nil {
return err
}
if err := e.GetPairsData(); err != nil {
return err
}
break
case exchange.MICROSERVICE_API:
break
case exchange.JSON_FILE:
exchangeData := utils.GetExchangeDataFromJSON(e.SourceURI, e.GetName())
if exchangeData == nil {
return fmt.Errorf("%s Initial Data Error.", e.GetName())
} else {
coinConstraintMap = exchangeData.CoinConstraint
pairConstraintMap = exchangeData.PairConstraint
}
break
case exchange.PSQL:
default:
return fmt.Errorf("%s Initial Coin: There is not selected data source.", e.GetName())
}
return nil
}
/**************** Exchange Information ****************/
func (e *Abcc) GetID() int {
return e.ID
}
func (e *Abcc) GetName() exchange.ExchangeName {
return exchange.ABCC
}
func (e *Abcc) GetBalance(coin *coin.Coin) float64 {
if tmp, ok := balanceMap.Get(coin.Code); ok {
return tmp.(float64)
} else {
return 0.0
}
}
func (e *Abcc) GetTradingWebURL(pair *pair.Pair) string {
return fmt.Sprintf("https://abcc.com/en/pro/markets/%v%v", e.GetSymbolByCoin(pair.Target), e.GetSymbolByCoin(pair.Base))
}
/*************** Coins on the Exchanges ***************/
func (e *Abcc) GetCoinConstraint(coin *coin.Coin) *exchange.CoinConstraint {
if tmp, ok := coinConstraintMap.Get(fmt.Sprintf("%d", coin.ID)); ok {
return tmp.(*exchange.CoinConstraint)
}
return nil
}
func (e *Abcc) SetCoinConstraint(coinConstraint *exchange.CoinConstraint) {
coinConstraintMap.Set(fmt.Sprintf("%d", coinConstraint.CoinID), coinConstraint)
}
func (e *Abcc) GetCoins() []*coin.Coin {
coinList := []*coin.Coin{}
keySort := []int{}
for _, key := range coinConstraintMap.Keys() {
id, _ := strconv.Atoi(key)
keySort = append(keySort, id)
}
sort.Ints(keySort)
for _, key := range keySort {
c := coin.GetCoinByID(key)
if c != nil {
coinList = append(coinList, c)
}
}
return coinList
}
func (e *Abcc) GetSymbolByCoin(coin *coin.Coin) string {
key := fmt.Sprintf("%d", coin.ID)
if tmp, ok := coinConstraintMap.Get(key); ok {
cc := tmp.(*exchange.CoinConstraint)
return cc.ExSymbol
}
return ""
}
func (e *Abcc) GetCoinBySymbol(symbol string) *coin.Coin {
for _, id := range coinConstraintMap.Keys() {
if tmp, ok := coinConstraintMap.Get(id); ok {
cc := tmp.(*exchange.CoinConstraint)
if cc.ExSymbol == symbol {
return cc.Coin
}
}
}
return nil
}
func (e *Abcc) DeleteCoin(coin *coin.Coin) {
coinConstraintMap.Remove(fmt.Sprintf("%d", coin.ID))
}
/*************** Pairs on the Exchanges ***************/
func (e *Abcc) GetPairConstraint(pair *pair.Pair) *exchange.PairConstraint {
if pair == nil{
return nil
}
if tmp, ok := pairConstraintMap.Get(fmt.Sprintf("%d", pair.ID)); ok {
return tmp.(*exchange.PairConstraint)
}
return nil
}
func (e *Abcc) SetPairConstraint(pairConstraint *exchange.PairConstraint) {
pairConstraintMap.Set(fmt.Sprintf("%d", pairConstraint.PairID), pairConstraint)
}
func (e *Abcc) GetPairs() []*pair.Pair {
pairList := []*pair.Pair{}
keySort := []int{}
for _, key := range pairConstraintMap.Keys() {
id, _ := strconv.Atoi(key)
keySort = append(keySort, id)
}
sort.Ints(keySort)
for _, key := range keySort {
p := pair.GetPairByID(key)
if p != nil {
pairList = append(pairList, p)
}
}
return pairList
}
func (e *Abcc) GetPairBySymbol(symbol string) *pair.Pair {
for _, id := range pairConstraintMap.Keys() {
if tmp, ok := pairConstraintMap.Get(id); ok {
pc := tmp.(*exchange.PairConstraint)
if pc.ExSymbol == symbol {
return pc.Pair
}
}
}
return nil
}
func (e *Abcc) GetSymbolByPair(pair *pair.Pair) string {
pairConstraint := e.GetPairConstraint(pair)
if pairConstraint != nil {
return pairConstraint.ExSymbol
}
return ""
}
func (e *Abcc) HasPair(pair *pair.Pair) bool {
return pairConstraintMap.Has(fmt.Sprintf("%d", pair.ID))
}
func (e *Abcc) DeletePair(pair *pair.Pair) {
pairConstraintMap.Remove(fmt.Sprintf("%d", pair.ID))
}
/**************** Exchange Constraint ****************/
func (e *Abcc) GetConstraintFetchMethod(pair *pair.Pair) *exchange.ConstrainFetchMethod {
constrainFetchMethod := &exchange.ConstrainFetchMethod{}
constrainFetchMethod.PublicAPI = true
constrainFetchMethod.PrivateAPI = false
constrainFetchMethod.HealthAPI = true
constrainFetchMethod.HasWithdraw = false
constrainFetchMethod.HasTransfer = false
constrainFetchMethod.Fee = true
constrainFetchMethod.LotSize = true
constrainFetchMethod.PriceFilter = true
constrainFetchMethod.TxFee = false
constrainFetchMethod.Withdraw = false
constrainFetchMethod.Deposit = false
constrainFetchMethod.Confirmation = false
constrainFetchMethod.ConstrainSource = 1
constrainFetchMethod.ApiRestrictIP = false
return constrainFetchMethod
}
func (e *Abcc) UpdateConstraint() {
e.GetCoinsData()
e.GetPairsData()
}
/**************** Coin Constraint ****************/
func (e *Abcc) GetTxFee(coin *coin.Coin) float64 {
coinConstraint := e.GetCoinConstraint(coin)
if coinConstraint == nil {
return 0.0
}
return coinConstraint.TxFee
}
func (e *Abcc) CanWithdraw(coin *coin.Coin) bool {
coinConstraint := e.GetCoinConstraint(coin)
if coinConstraint == nil {
return false
}
return coinConstraint.Withdraw
}
func (e *Abcc) CanDeposit(coin *coin.Coin) bool {
coinConstraint := e.GetCoinConstraint(coin)
if coinConstraint == nil {
return false
}
return coinConstraint.Deposit
}
func (e *Abcc) GetConfirmation(coin *coin.Coin) int {
coinConstraint := e.GetCoinConstraint(coin)
if coinConstraint == nil {
return 0
}
return coinConstraint.Confirmation
}
/**************** Pair Constraint ****************/
func (e *Abcc) GetFee(pair *pair.Pair) float64 {
pairConstraint := e.GetPairConstraint(pair)
if pairConstraint == nil {
return 0.0
}
return pairConstraint.TakerFee
}
func (e *Abcc) GetLotSize(pair *pair.Pair) float64 {
pairConstraint := e.GetPairConstraint(pair)
if pairConstraint == nil {
return 0.0
}
return pairConstraint.LotSize
}
func (e *Abcc) GetPriceFilter(pair *pair.Pair) float64 {
pairConstraint := e.GetPairConstraint(pair)
if pairConstraint == nil {
return 0.0
} | } | return pairConstraint.PriceFilter |
actions.js | import DICTIONARY from "../../dictionary.js";
import logger from "../../logger.js";
import utils from "../../utils.js";
import parseTemplateString from "../templateStrings.js";
import { fixFeatures, stripHtml, addFeatEffects } from "./special.js";
// get actions from ddb.character.customActions
function getCustomActions(ddb, displayedAsAttack) {
const customActions = ddb.character.customActions
.filter((action) => action.displayAsAttack === displayedAsAttack)
.map((action) => {
action.dice = {
diceString: action.diceCount && action.diceType ? `${action.diceCount}d${action.diceType}` : null,
fixedValue: action.fixedValue,
};
const range = {
aoeType: action.aoeType,
aoeSize: action.aoeSize,
range: action.range,
long: action.longRange,
};
action.range = range;
if (action.statId) action.abilityModifierStatId = action.statId;
action.activation = {
activationTime: action.activationTime,
activationType: action.activationType,
};
return action;
});
return customActions;
}
function isMartialArtists(classes) {
return classes.some((cls) => cls.classFeatures.some((feature) => feature.definition.name === "Martial Arts"));
}
function getDamage(action) {
let damage = {};
const damageType = action.damageTypeId
? DICTIONARY.actions.damageType.find((type) => type.id === action.damageTypeId).name
: null;
// when the action type is not set to melee or ranged we don't apply the mod to damage
const meleeOrRangedAction = action.attackTypeRange || action.rangeId;
const modBonus = (action.statId || action.abilityModifierStatId) && !action.isOffhand && meleeOrRangedAction ? " + @mod" : "";
const fixedBonus = action.dice?.fixedValue ? ` + ${action.dice.fixedValue}` : "";
const globalDamageHints = game.settings.get("ddb-importer", "use-damage-hints");
if (action.dice) {
if (action.dice.diceString) {
const damageTag = (globalDamageHints && damageType) ? `[${damageType}]` : "";
const damageString = utils.parseDiceString(action.dice.diceString, modBonus + fixedBonus, damageTag).diceString;
damage = {
parts: [[damageString, damageType]],
versatile: "",
};
} else if (fixedBonus) {
damage = {
parts: [[fixedBonus + modBonus, damageType]],
versatile: "",
};
}
}
return damage;
}
/**
* Some features have actions that use dice and mods that are defined on the character class feature
* this attempts to parse out the damage dice and any ability modifier.
* This relies on the parsing of templateStrings for the ability modifier detection.
* @param {*} ddb
* @param {*} character
* @param {*} action
* @param {*} feat
*/
function getLevelScaleDice(ddb, character, action, feat) {
let parts = ddb.character.classes
.filter((cls) => cls.classFeatures.some((feature) =>
feature.definition.id == action.componentId &&
feature.definition.entityTypeId == action.componentTypeId &&
feature.levelScale?.dice?.diceString
))
.map((cls) => {
const feature = cls.classFeatures.find((feature) =>
feature.definition.id == action.componentId &&
feature.definition.entityTypeId == action.componentTypeId
);
const parsedString = character.flags.ddbimporter.dndbeyond.templateStrings.find((templateString) =>
templateString.id == action.id &&
templateString.entityTypeId == action.entityTypeId
);
let part = feature.levelScale.dice.diceString;
if (parsedString) {
const modifier = parsedString.definitions.find((definition) => definition.type === "modifier");
if (modifier) {
feat.data.ability = modifier.subType;
part = `${part} + @mod`;
}
}
return [part, ""];
});
feat.data.damage = {
parts: parts,
versatile: "",
};
return feat;
}
function martialArtsDamage(ddb, action) {
const damageType = DICTIONARY.actions.damageType.find((type) => type.id === action.damageTypeId).name;
const globalDamageHints = game.settings.get("ddb-importer", "use-damage-hints");
// are we dealing with martial arts?
if (action.isMartialArts && isMartialArtists(ddb.character.classes)) {
const die = ddb.character.classes
.filter((cls) => isMartialArtists([cls]))
.map((cls) => {
const feature = cls.classFeatures.find((feature) => feature.definition.name === "Martial Arts");
if (feature && feature.levelScale && feature.levelScale.dice && feature.levelScale.dice.diceString) {
if (action.dice?.diceValue > feature.levelScale.dice.diceValue) {
return action.dice.diceString;
}
return feature.levelScale.dice.diceString;
} else if (action.dice !== null) {
// On some races bite is considered a martial art, damage
// is different and on the action itself
return action.dice.diceString;
} else {
return "1";
}
});
const damageTag = (globalDamageHints && damageType) ? `[${damageType}]` : "";
const damageString = utils.parseDiceString(die, " + @mod", damageTag).diceString;
// set the weapon damage
return {
parts: [[damageString, damageType]],
versatile: "",
};
} else if (action.dice !== null) {
// The Lizardfolk jaws have a different base damage, its' detailed in
// dice so lets capture that for actions if it exists
const damageTag = (globalDamageHints && damageType) ? `[${damageType}]` : "";
const damageString = utils.parseDiceString(action.dice.diceString, " + @mod", damageTag).diceString;
return {
parts: [[damageString, damageType]],
versatile: "",
};
} else {
// default to basics
return {
parts: [[`1 + @mod`, damageType]],
versatile: "",
};
}
}
function getLimitedUse(action, character) {
if (
action.limitedUse &&
(action.limitedUse.maxUses || action.limitedUse.statModifierUsesId || action.limitedUse.useProficiencyBonus)
) {
const resetType = DICTIONARY.resets.find((type) => type.id === action.limitedUse.resetType);
let maxUses = (action.limitedUse.maxUses && action.limitedUse.maxUses !== -1) ? action.limitedUse.maxUses : 0;
if (action.limitedUse.statModifierUsesId) {
const ability = DICTIONARY.character.abilities.find(
(ability) => ability.id === action.limitedUse.statModifierUsesId
).value;
switch (action.limitedUse.operator) {
case 2: {
maxUses *= character.flags.ddbimporter.dndbeyond.effectAbilities[ability].mod;
break;
}
case 1:
default:
maxUses += character.flags.ddbimporter.dndbeyond.effectAbilities[ability].mod;
}
}
if (action.limitedUse.useProficiencyBonus) {
switch (action.limitedUse.proficiencyBonusOperator) {
case 2: {
maxUses *= character.data.attributes.prof;
break;
}
case 1:
default:
maxUses += character.data.attributes.prof;
}
}
const finalMaxUses = (maxUses) ? parseInt(maxUses) : null;
return {
value: (finalMaxUses !== null && finalMaxUses != 0) ? maxUses - action.limitedUse.numberUsed : null,
max: (finalMaxUses != 0) ? finalMaxUses : null,
per: resetType ? resetType.value : "",
};
} else {
return {
value: null,
max: null,
per: "",
};
}
}
function getDescription(ddb, character, action) {
const useFull = game.settings.get("ddb-importer", "character-update-policy-use-full-description");
let snippet = action.snippet ? parseTemplateString(ddb, character, action.snippet, action).text : "";
const description = action.description ? parseTemplateString(ddb, character, action.description, action).text : "";
if (stripHtml(description) === snippet) snippet = "";
const fullDescription = description !== "" ? description + (snippet !== "" ? "<h3>Summary</h3>" + snippet : "") : snippet;
const value = !useFull && snippet.trim() !== "" ? snippet : fullDescription;
return {
value: value,
chat: snippet,
unidentified: "",
};
}
function getActivation(action) {
if (action.activation) {
const actionType = DICTIONARY.actions.activationTypes.find((type) => type.id === action.activation.activationType);
const activation = !actionType
? {}
: {
type: actionType.value,
cost: action.activation.activationTime || 1,
condition: "",
};
return activation;
}
return {};
}
function getResource(character, action) {
let consume = {
"type": "",
"target": "",
"amount": null
};
Object.keys(character.data.resources).forEach((resource) => {
const detail = character.data.resources[resource];
if (action.name === detail.label) {
consume = {
type: "attribute",
target: `resources.${resource}.value`,
amount: null,
};
}
});
return consume;
}
function getWeaponType(action) {
const entry = DICTIONARY.actions.attackTypes.find((type) => type.attackSubtype === action.attackSubtype);
const range = DICTIONARY.weapon.weaponRange.find((type) => type.attackType === action.attackTypeRange);
return entry ? entry.value : range ? `simple${range.value}` : "simpleM";
}
function calculateRange(action, weapon) {
if (action.range && action.range.aoeType && action.range.aoeSize) {
weapon.data.range = { value: null, units: "self", long: "" };
weapon.data.target = {
value: action.range.aoeSize,
type: DICTIONARY.actions.aoeType.find((type) => type.id === action.range.aoeType)?.value,
units: "ft",
};
} else if (action.range && action.range.range) {
weapon.data.range = {
value: action.range.range,
units: "ft.",
long: action.range.long || "",
};
} else {
weapon.data.range = { value: 5, units: "ft.", long: "" };
}
return weapon;
}
function calculateSaveAttack(action, weapon) {
weapon.data.actionType = "save";
weapon.data.damage = getDamage(action);
const fixedDC = (action.fixedSaveDc) ? action.fixedSaveDc : null;
const scaling = (fixedDC) ? fixedDC : (action.abilityModifierStatId) ? DICTIONARY.character.abilities.find((stat) => stat.id === action.abilityModifierStatId).value : "spell";
const saveAbility = (action.saveStatId)
? DICTIONARY.character.abilities.find((stat) => stat.id === action.saveStatId).value
: "";
weapon.data.save = {
ability: saveAbility,
dc: fixedDC,
scaling: scaling,
};
if (action.abilityModifierStatId) {
weapon.data.ability = DICTIONARY.character.abilities.find((stat) => stat.id === action.abilityModifierStatId).value;
}
return weapon;
}
function calculateActionAttackAbilities(ddb, character, action, weapon) {
let defaultAbility;
if (action.abilityModifierStatId && !([1, 2].includes(action.abilityModifierStatId) && action.isMartialArts)) {
defaultAbility = DICTIONARY.character.abilities.find(
(stat) => stat.id === action.abilityModifierStatId
).value;
weapon.data.ability = defaultAbility;
} else if (action.isMartialArts) {
weapon.data.ability =
action.isMartialArts && isMartialArtists(ddb.character.classes)
? character.flags.ddbimporter.dndbeyond.effectAbilities.dex.value >= character.flags.ddbimporter.dndbeyond.effectAbilities.str.value
? "dex"
: "str"
: "str";
} else {
weapon.data.ability = "";
}
if (action.isMartialArts) {
weapon.data.damage = martialArtsDamage(ddb, action);
} else { | }
return weapon;
}
function getAttackType(ddb, character, action, weapon) {
// lets see if we have a save stat for things like Dragon born Breath Weapon
if (action.saveStatId) {
weapon = calculateSaveAttack(action, weapon);
} else if (action.actionType === 1) {
weapon.data.actionType = "mwak";
weapon = calculateActionAttackAbilities(ddb, character, action, weapon);
} else {
if (action.rangeId && action.rangeId === 1) {
weapon.data.actionType = "mwak";
} else if (action.rangeId && action.rangeId === 2) {
weapon.data.actionType = "rwak";
} else {
weapon.data.actionType = "other";
}
weapon = calculateActionAttackAbilities(ddb, character, action, weapon);
}
return weapon;
}
function getAttackAction(ddb, character, action) {
let weapon = {
name: action.name,
type: "weapon",
data: JSON.parse(utils.getTemplate("weapon")),
flags: {
ddbimporter: {
id: action.id,
entityTypeId: action.entityTypeId,
action: true,
componentId: action.componentId,
componentTypeId: action.componentTypeId,
}
},
};
logger.debug(`Getting Attack Action ${action.name}`);
try {
if (action.isMartialArts) {
weapon.flags.ddbimporter.dndbeyond = {
type: "Martial Arts",
};
}
weapon.data.proficient = action.isProficient ? 1 : 0;
weapon.data.description = getDescription(ddb, character, action);
weapon.data.equipped = true;
weapon.data.rarity = "common";
weapon.data.identified = true;
weapon.data.activation = getActivation(action);
weapon = calculateRange(action, weapon);
weapon = getAttackType(ddb, character, action, weapon);
weapon.data.weaponType = getWeaponType(action);
weapon.data.uses = getLimitedUse(action, character);
weapon.data.consume = getResource(character, action);
// class action
const klassAction = utils.findComponentByComponentId(ddb, action.id);
if (klassAction) {
setProperty(weapon.flags, "ddbimporter.dndbeyond.levelScale", klassAction.levelScale);
setProperty(weapon.flags, "ddbimporter.dndbeyond.levelScales", klassAction.definition?.levelScales);
setProperty(weapon.flags, "ddbimporter.dndbeyond.limitedUse", klassAction.definition?.limitedUse);
}
weapon = addFeatEffects(ddb, character, action, weapon);
if (weapon.data.uses?.max) {
weapon.flags.betterRolls5e = {
"quickCharges": {
"value": {
"use": true,
"resource": true
},
"altValue": {
"use": true,
"resource": true
}
}
};
}
} catch (err) {
utils.log(
`Unable to Import Attack Action: ${action.name}, please log a bug report. Err: ${err.message}`,
"extension"
);
}
return weapon;
}
/**
* Everyone has an Unarmed Strike
* @param {*} ddb
*/
function getUnarmedStrike(ddb, character) {
const unarmedStrikeMock = {
limitedUse: null,
name: "Unarmed Strike",
description: null,
snippet:
"Instead of using a weapon to make a melee weapon attack, you can use an unarmed strike: a punch, kick, head-butt, or similar forceful blow (none of which count as weapons). On a hit, an unarmed strike deals bludgeoning damage equal to 1 + your Strength modifier. You are proficient with your unarmed strikes.",
abilityModifierStatId: null,
attackTypeRange: 1,
actionType: 1,
attackSubtype: 3,
dice: null,
value: 1,
damageTypeId: 1,
isMartialArts: true,
isProficient: true,
displayAsAttack: true,
range: {
range: null,
longRange: null,
aoeType: null,
aoeSize: null,
hasAoeSpecialDescription: false,
},
activation: {
activationTime: 1,
activationType: 1,
},
id: "unarmedStrike",
};
const unarmedStrike = getAttackAction(ddb, character, unarmedStrikeMock);
return unarmedStrike;
}
/**
* Try and parse attack actions - this will at the moment only really support basic melee attacks
* @param {*} ddb
* @param {*} character
*/
function getAttackActions(ddb, character) {
return [
// do class options here have a class id, needed for optional class features
ddb.character.actions.class.filter((action) => utils.findClassByFeatureId(ddb, action.componentId)),
ddb.character.actions.race,
ddb.character.actions.feat,
getCustomActions(ddb, true),
]
.flat()
.filter((action) => action.displayAsAttack)
.map((action) => {
return getAttackAction(ddb, character, action);
});
}
/**
* Lets Parse remaining actions
* @param {*} ddb
* @param {*} items
*/
function getOtherActions(ddb, character, items) {
const actions = [
// do class options here have a class id, needed for optional class features
ddb.character.actions.class.filter((action) => utils.findClassByFeatureId(ddb, action.componentId)),
ddb.character.actions.race,
ddb.character.actions.feat,
getCustomActions(ddb, false),
]
.flat()
.filter((action) => action.name && action.name !== "")
.filter(
(action) =>
// lets grab other actions and add, make sure we don't get attack based ones that haven't parsed
!action.displayAsAttack ||
(action.displayAsAttack === true && !items.some((attack) => attack.name === action.name))
)
.map((action) => {
logger.debug(`Getting Other Action ${action.name}`);
let feat = {
name: action.name,
type: "feat",
data: JSON.parse(utils.getTemplate("feat")),
flags: {
ddbimporter: {
id: action.id,
entityTypeId: action.entityTypeId,
componentId: action.componentId,
componentTypeId: action.componentTypeId,
}
},
};
feat.data.activation = getActivation(action);
feat.data.description = getDescription(ddb, character, action);
feat.data.uses = getLimitedUse(action, character);
feat.data.consume = getResource(character, action);
feat = calculateRange(action, feat);
feat = getAttackType(ddb, character, action, feat);
if (feat.data.uses?.max) {
feat.flags.betterRolls5e = {
quickCharges: {
value: {
use: true,
resource: true
},
altValue: {
use: true,
resource: true
}
}
};
}
if (!feat.data.damage?.parts) {
logger.debug("Running level scale parser");
feat = getLevelScaleDice(ddb, character, action, feat);
}
// class action
const klassAction = utils.findComponentByComponentId(ddb, action.id);
if (klassAction) {
setProperty(feat.flags, "ddbimporter.dndbeyond.levelScale", klassAction.levelScale);
setProperty(feat.flags, "ddbimporter.dndbeyond.levelScales", klassAction.definition?.levelScales);
setProperty(feat.flags, "ddbimporter.dndbeyond.limitedUse", klassAction.definition?.limitedUse);
} else {
const klassByComponentId = utils.findComponentByComponentId(ddb, action.componentId);
if (klassByComponentId) {
setProperty(feat.flags, "ddbimporter.dndbeyond.levelScale", klassByComponentId.levelScale);
setProperty(feat.flags, "ddbimporter.dndbeyond.levelScales", klassByComponentId.definition?.levelScales);
setProperty(feat.flags, "ddbimporter.dndbeyond.limitedUse", klassByComponentId.definition?.limitedUse);
}
}
feat = addFeatEffects(ddb, character, action, feat);
return feat;
});
// FUTURE ENHANCEMENT: We maybe able to look up other entities here to get details for things like Sneak Attack
return actions;
}
export default function parseActions(ddb, character) {
let actions = [
// Get Attack Actions that we know about, typically natural attacks etc
...getAttackActions(ddb, character),
// Everyone has an Unarmed Strike
getUnarmedStrike(ddb, character),
];
actions = [
...actions,
// Try and parse other relevant actions
...getOtherActions(ddb, character, actions),
];
// sort alphabetically, then by action type
actions.sort().sort((a, b) => {
if (!a.data.activation.activationType) {
return 1;
} else if (!b.data.activation.activationType) {
return -1;
} else {
const aActionTypeID = DICTIONARY.actions.activationTypes.find(
(type) => type.value === a.data.activation.activationType
).id;
const bActionTypeID = DICTIONARY.actions.activationTypes.find(
(type) => type.value === b.data.activation.activationType
).id;
if (aActionTypeID > bActionTypeID) {
return 1;
} else if (aActionTypeID < bActionTypeID) {
return -1;
} else {
return 0;
}
}
});
fixFeatures(actions);
return actions;
} | weapon.data.damage = getDamage(action); |
rng.rs | /// Wrapper forwarding all requests to Trussed. | impl<T> trussed::service::RngCore for TrussedRng<'_, T>
where
T: trussed::client::CryptoClient,
{
fn next_u32(&mut self) -> u32 {
let mut buf = [0u8; 4];
self.fill_bytes(&mut buf[..]);
u32::from_ne_bytes(buf)
}
fn next_u64(&mut self) -> u64 {
let mut buf = [0u8; 8];
self.fill_bytes(&mut buf[..]);
u64::from_ne_bytes(buf)
}
fn fill_bytes(&mut self, dest: &mut [u8]) {
self.try_fill_bytes(dest).unwrap()
}
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> core::result::Result<(), rand_core::Error> {
// We assume random_bytes() never fails
let random = trussed::syscall!(self.0.random_bytes(dest.len()));
dest.copy_from_slice(&random.bytes);
Ok(())
}
} | /// Will be gone when Trussed gains RSA support.
pub struct TrussedRng<'a, T>(pub &'a mut T); |
have_key_matcher.go | // untested sections: 6
package matchers
import (
"fmt"
"reflect"
"github.com/bsm/gomega/format"
)
type HaveKeyMatcher struct {
Key interface{}
}
func (matcher *HaveKeyMatcher) Match(actual interface{}) (success bool, err error) {
if !isMap(actual) {
return false, fmt.Errorf("HaveKey matcher expects a map. Got:%s", format.Object(actual, 1))
}
keyMatcher, keyIsMatcher := matcher.Key.(omegaMatcher)
if !keyIsMatcher |
keys := reflect.ValueOf(actual).MapKeys()
for i := 0; i < len(keys); i++ {
success, err := keyMatcher.Match(keys[i].Interface())
if err != nil {
return false, fmt.Errorf("HaveKey's key matcher failed with:\n%s%s", format.Indent, err.Error())
}
if success {
return true, nil
}
}
return false, nil
}
func (matcher *HaveKeyMatcher) FailureMessage(actual interface{}) (message string) {
switch matcher.Key.(type) {
case omegaMatcher:
return format.Message(actual, "to have key matching", matcher.Key)
default:
return format.Message(actual, "to have key", matcher.Key)
}
}
func (matcher *HaveKeyMatcher) NegatedFailureMessage(actual interface{}) (message string) {
switch matcher.Key.(type) {
case omegaMatcher:
return format.Message(actual, "not to have key matching", matcher.Key)
default:
return format.Message(actual, "not to have key", matcher.Key)
}
}
| {
keyMatcher = &EqualMatcher{Expected: matcher.Key}
} |
artifact.go | package azure
import (
"encoding/json"
"io/ioutil"
)
type Artifact struct {
path string
}
func NewArtifact(path string) Artifact |
func (a Artifact) Write(backups map[string]ContainerBackup) error {
filesContents, err := json.Marshal(backups)
if err != nil {
return err
}
return ioutil.WriteFile(a.path, filesContents, 0644)
}
| {
return Artifact{path: path}
} |
fileIngestModule.py | # Sample module in the public domain. Feel free to use this as a template
# for your modules (and you can remove this header and take complete credit
# and liability)
#
# Contact: Brian Carrier [carrier <at> sleuthkit [dot] org]
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
# of the public at large and to the detriment of our heirs and
# successors. We intend this dedication to be an overt act of
# relinquishment in perpetuity of all present and future rights to this
# software under copyright law.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# Simple file-level ingest module for Autopsy.
# Search for TODO for the things that you need to change
# See http://sleuthkit.org/autopsy/docs/api-docs/latest/index.html for documentation
import jarray
import inspect
from java.lang import System
from java.util.logging import Level
from org.sleuthkit.datamodel import Score
from org.sleuthkit.datamodel import SleuthkitCase
from org.sleuthkit.datamodel import AbstractFile
from org.sleuthkit.datamodel import ReadContentInputStream
from org.sleuthkit.datamodel import BlackboardArtifact
from org.sleuthkit.datamodel import BlackboardAttribute
from org.sleuthkit.datamodel import TskData
from org.sleuthkit.autopsy.ingest import IngestModule
from org.sleuthkit.autopsy.ingest.IngestModule import IngestModuleException
from org.sleuthkit.autopsy.ingest import DataSourceIngestModule
from org.sleuthkit.autopsy.ingest import FileIngestModule
from org.sleuthkit.autopsy.ingest import IngestModuleFactoryAdapter
from org.sleuthkit.autopsy.ingest import IngestMessage
from org.sleuthkit.autopsy.ingest import IngestServices
from org.sleuthkit.autopsy.ingest import ModuleDataEvent
from org.sleuthkit.autopsy.coreutils import Logger
from org.sleuthkit.autopsy.casemodule import Case
from org.sleuthkit.autopsy.casemodule.services import Services
from org.sleuthkit.autopsy.casemodule.services import FileManager
from org.sleuthkit.autopsy.casemodule.services import Blackboard
from java.util import Arrays
# Factory that defines the name and details of the module and allows Autopsy
# to create instances of the modules that will do the anlaysis.
# TODO: Rename this to something more specific. Search and replace for it because it is used a few times
class SampleJythonFileIngestModuleFactory(IngestModuleFactoryAdapter):
# TODO: give it a unique name. Will be shown in module list, logs, etc.
moduleName = "Sample file ingest Module"
def getModuleDisplayName(self):
return self.moduleName
# TODO: Give it a description
def getModuleDescription(self):
return "Sample module that does X, Y, and Z."
def getModuleVersionNumber(self):
return "1.0"
# Return true if module wants to get called for each file
def isFileIngestModuleFactory(self):
return True
# can return null if isFileIngestModuleFactory returns false
def createFileIngestModule(self, ingestOptions):
return SampleJythonFileIngestModule()
# File-level ingest module. One gets created per thread.
# TODO: Rename this to something more specific. Could just remove "Factory" from above name.
# Looks at the attributes of the passed in file.
class SampleJythonFileIngestModule(FileIngestModule):
_logger = Logger.getLogger(SampleJythonFileIngestModuleFactory.moduleName)
def log(self, level, msg):
self._logger.logp(level, self.__class__.__name__, inspect.stack()[1][3], msg)
# Where any setup and configuration is done
# 'context' is an instance of org.sleuthkit.autopsy.ingest.IngestJobContext.
# See: http://sleuthkit.org/autopsy/docs/api-docs/latest/classorg_1_1sleuthkit_1_1autopsy_1_1ingest_1_1_ingest_job_context.html
# TODO: Add any setup code that you need here.
def startUp(self, context):
self.filesFound = 0
# Throw an IngestModule.IngestModuleException exception if there was a problem setting up
# raise IngestModuleException("Oh No!")
pass
# Where the analysis is done. Each file will be passed into here.
# The 'file' object being passed in is of type org.sleuthkit.datamodel.AbstractFile.
# See: http://www.sleuthkit.org/sleuthkit/docs/jni-docs/latest/classorg_1_1sleuthkit_1_1datamodel_1_1_abstract_file.html
# TODO: Add your analysis code in here.
def process(self, file):
# Skip non-files
if ((file.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.UNALLOC_BLOCKS) or
(file.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.UNUSED_BLOCKS) or
(file.isFile() == False)):
return IngestModule.ProcessResult.OK
# Use blackboard class to index blackboard artifacts for keyword search
blackboard = Case.getCurrentCase().getSleuthkitCase().getBlackboard()
# For an example, we will flag files with .txt in the name and make a blackboard artifact.
if file.getName().lower().endswith(".txt"):
|
return IngestModule.ProcessResult.OK
# Where any shutdown code is run and resources are freed.
# TODO: Add any shutdown code that you need here.
def shutDown(self):
# As a final part of this example, we'll send a message to the ingest inbox with the number of files found (in this thread)
message = IngestMessage.createMessage(
IngestMessage.MessageType.DATA, SampleJythonFileIngestModuleFactory.moduleName,
str(self.filesFound) + " files found")
ingestServices = IngestServices.getInstance().postMessage(message) | self.log(Level.INFO, "Found a text file: " + file.getName())
self.filesFound+=1
# Make an artifact on the blackboard. TSK_INTERESTING_FILE_HIT is a generic type of
# artifact. Refer to the developer docs for other examples.
attrs = Arrays.asList(BlackboardAttribute(BlackboardAttribute.Type.TSK_SET_NAME,
SampleJythonFileIngestModuleFactory.moduleName, "Text Files"))
art = file.newAnalysisResult(BlackboardArtifact.Type.TSK_INTERESTING_FILE_HIT, Score.SCORE_LIKELY_NOTABLE,
None, "Text Files", None, attrs).getAnalysisResult()
try:
# post the artifact for listeners of artifact events
blackboard.postArtifact(art, SampleJythonFileIngestModuleFactory.moduleName)
except Blackboard.BlackboardException as e:
self.log(Level.SEVERE, "Error indexing artifact " + art.getDisplayName())
# For the example (this wouldn't be needed normally), we'll query the blackboard for data that was added
# by other modules. We then iterate over its attributes. We'll just print them, but you would probably
# want to do something with them.
artifactList = file.getArtifacts(BlackboardArtifact.ARTIFACT_TYPE.TSK_INTERESTING_FILE_HIT)
for artifact in artifactList:
attributeList = artifact.getAttributes()
for attrib in attributeList:
self.log(Level.INFO, attrib.toString())
# To further the example, this code will read the contents of the file and count the number of bytes
inputStream = ReadContentInputStream(file)
buffer = jarray.zeros(1024, "b")
totLen = 0
len = inputStream.read(buffer)
while (len != -1):
totLen = totLen + len
len = inputStream.read(buffer) |
asgi.py | # blog/asgi.py
import os
import django
| from django.conf import settings
django.setup()
from django.core.asgi import get_asgi_application
from channels.security.websocket import OriginValidator
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from django.urls import re_path
from app.website.consumers import ExampleConsumer
application = ProtocolTypeRouter(
{
# Django's ASGI application to handle traditional HTTP requests
"http": get_asgi_application(),
# WebSocket handler
"websocket": OriginValidator(AuthMiddlewareStack(
URLRouter(
[
re_path(r"^ws/example/$", ExampleConsumer.as_asgi()),
]
)
), settings.ALLOWED_HOSTS)
}
) | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "blog.settings") |
upstream.pb.hash.go | // Code generated by protoc-gen-ext. DO NOT EDIT.
// source: github.com/solo-io/gloo/projects/gloo/api/v1/upstream.proto
package v1
import (
"encoding/binary"
"errors"
"fmt"
"hash"
"hash/fnv"
"github.com/mitchellh/hashstructure"
safe_hasher "github.com/solo-io/protoc-gen-ext/pkg/hasher"
)
// ensure the imports are used
var (
_ = errors.New("")
_ = fmt.Print
_ = binary.LittleEndian
_ = new(hash.Hash64)
_ = fnv.New64
_ = hashstructure.Hash
_ = new(safe_hasher.SafeHasher)
)
// Hash function
func (m *Upstream) Hash(hasher hash.Hash64) (uint64, error) {
if m == nil {
return 0, nil
}
if hasher == nil {
hasher = fnv.New64()
}
var err error
if _, err = hasher.Write([]byte("gloo.solo.io.github.com/solo-io/gloo/projects/gloo/pkg/api/v1.Upstream")); err != nil {
return 0, err
}
if h, ok := interface{}(m.GetMetadata()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("Metadata")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetMetadata(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("Metadata")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
if h, ok := interface{}(m.GetDiscoveryMetadata()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("DiscoveryMetadata")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetDiscoveryMetadata(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("DiscoveryMetadata")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
if h, ok := interface{}(m.GetSslConfig()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("SslConfig")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetSslConfig(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("SslConfig")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
if h, ok := interface{}(m.GetCircuitBreakers()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("CircuitBreakers")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetCircuitBreakers(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("CircuitBreakers")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
if h, ok := interface{}(m.GetLoadBalancerConfig()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("LoadBalancerConfig")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetLoadBalancerConfig(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("LoadBalancerConfig")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
if h, ok := interface{}(m.GetConnectionConfig()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("ConnectionConfig")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetConnectionConfig(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("ConnectionConfig")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
for _, v := range m.GetHealthChecks() {
if h, ok := interface{}(v).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(v, nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
}
if h, ok := interface{}(m.GetOutlierDetection()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("OutlierDetection")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetOutlierDetection(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("OutlierDetection")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
if h, ok := interface{}(m.GetUseHttp2()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("UseHttp2")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetUseHttp2(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("UseHttp2")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
if h, ok := interface{}(m.GetFailover()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("Failover")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetFailover(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("Failover")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
if h, ok := interface{}(m.GetInitialStreamWindowSize()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("InitialStreamWindowSize")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetInitialStreamWindowSize(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("InitialStreamWindowSize")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
if h, ok := interface{}(m.GetInitialConnectionWindowSize()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("InitialConnectionWindowSize")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetInitialConnectionWindowSize(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("InitialConnectionWindowSize")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
if h, ok := interface{}(m.GetHttpProxyHostname()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("HttpProxyHostname")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetHttpProxyHostname(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("HttpProxyHostname")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
switch m.UpstreamType.(type) {
case *Upstream_Kube:
if h, ok := interface{}(m.GetKube()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("Kube")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetKube(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("Kube")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
case *Upstream_Static:
if h, ok := interface{}(m.GetStatic()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("Static")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
} | } else {
if _, err = hasher.Write([]byte("Static")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
case *Upstream_Pipe:
if h, ok := interface{}(m.GetPipe()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("Pipe")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetPipe(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("Pipe")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
case *Upstream_Aws:
if h, ok := interface{}(m.GetAws()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("Aws")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetAws(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("Aws")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
case *Upstream_Azure:
if h, ok := interface{}(m.GetAzure()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("Azure")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetAzure(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("Azure")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
case *Upstream_Consul:
if h, ok := interface{}(m.GetConsul()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("Consul")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetConsul(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("Consul")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
case *Upstream_AwsEc2:
if h, ok := interface{}(m.GetAwsEc2()).(safe_hasher.SafeHasher); ok {
if _, err = hasher.Write([]byte("AwsEc2")); err != nil {
return 0, err
}
if _, err = h.Hash(hasher); err != nil {
return 0, err
}
} else {
if fieldValue, err := hashstructure.Hash(m.GetAwsEc2(), nil); err != nil {
return 0, err
} else {
if _, err = hasher.Write([]byte("AwsEc2")); err != nil {
return 0, err
}
if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil {
return 0, err
}
}
}
}
return hasher.Sum64(), nil
}
// Hash function
func (m *DiscoveryMetadata) Hash(hasher hash.Hash64) (uint64, error) {
if m == nil {
return 0, nil
}
if hasher == nil {
hasher = fnv.New64()
}
var err error
if _, err = hasher.Write([]byte("gloo.solo.io.github.com/solo-io/gloo/projects/gloo/pkg/api/v1.DiscoveryMetadata")); err != nil {
return 0, err
}
{
var result uint64
innerHash := fnv.New64()
for k, v := range m.GetLabels() {
innerHash.Reset()
if _, err = innerHash.Write([]byte(v)); err != nil {
return 0, err
}
if _, err = innerHash.Write([]byte(k)); err != nil {
return 0, err
}
result = result ^ innerHash.Sum64()
}
err = binary.Write(hasher, binary.LittleEndian, result)
if err != nil {
return 0, err
}
}
return hasher.Sum64(), nil
} | } else {
if fieldValue, err := hashstructure.Hash(m.GetStatic(), nil); err != nil {
return 0, err |
space.ts | import { Space, SpaceScale } from '../types';
import { utils } from '../utils';
const { pxToRem } = utils;
const spacePalette: SpaceScale = {
0: 0,
4: 4,
8: 8,
12: 12,
16: 16,
24: 24,
32: 32,
48: 48,
64: 64,
80: 80,
96: 96,
128: 128,
160: 160,
240: 240,
320: 320,
480: 480,
640: 640,
800: 800,
960: 960,
1280: 1280,
1600: 1600,
};
function | (pixel: Space): string {
return pxToRem(spacePalette[pixel]);
}
export { space };
| space |
fleet.pb.go | // Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: infra/unifiedfleet/api/v1/rpc/fleet.proto
package ufspb
import prpc "go.chromium.org/luci/grpc/prpc"
import (
context "context"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
models "infra/unifiedfleet/api/v1/models"
lab "infra/unifiedfleet/api/v1/models/chromeos/lab"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type GetDeviceDataResponse_ResourceType int32
const (
GetDeviceDataResponse_RESOURCE_TYPE_UNSPECIFIED GetDeviceDataResponse_ResourceType = 0
GetDeviceDataResponse_RESOURCE_TYPE_SCHEDULING_UNIT GetDeviceDataResponse_ResourceType = 1
GetDeviceDataResponse_RESOURCE_TYPE_CHROMEOS_DEVICE GetDeviceDataResponse_ResourceType = 2
GetDeviceDataResponse_RESOURCE_TYPE_ATTACHED_DEVICE GetDeviceDataResponse_ResourceType = 3
GetDeviceDataResponse_RESOURCE_TYPE_BROWSER_DEVICE GetDeviceDataResponse_ResourceType = 4
)
// Enum value maps for GetDeviceDataResponse_ResourceType.
var (
GetDeviceDataResponse_ResourceType_name = map[int32]string{
0: "RESOURCE_TYPE_UNSPECIFIED",
1: "RESOURCE_TYPE_SCHEDULING_UNIT",
2: "RESOURCE_TYPE_CHROMEOS_DEVICE",
3: "RESOURCE_TYPE_ATTACHED_DEVICE",
4: "RESOURCE_TYPE_BROWSER_DEVICE",
}
GetDeviceDataResponse_ResourceType_value = map[string]int32{
"RESOURCE_TYPE_UNSPECIFIED": 0,
"RESOURCE_TYPE_SCHEDULING_UNIT": 1,
"RESOURCE_TYPE_CHROMEOS_DEVICE": 2,
"RESOURCE_TYPE_ATTACHED_DEVICE": 3,
"RESOURCE_TYPE_BROWSER_DEVICE": 4,
}
)
func (x GetDeviceDataResponse_ResourceType) Enum() *GetDeviceDataResponse_ResourceType {
p := new(GetDeviceDataResponse_ResourceType)
*p = x
return p
}
func (x GetDeviceDataResponse_ResourceType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GetDeviceDataResponse_ResourceType) Descriptor() protoreflect.EnumDescriptor {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_enumTypes[0].Descriptor()
}
func (GetDeviceDataResponse_ResourceType) Type() protoreflect.EnumType {
return &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_enumTypes[0]
}
func (x GetDeviceDataResponse_ResourceType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GetDeviceDataResponse_ResourceType.Descriptor instead.
func (GetDeviceDataResponse_ResourceType) EnumDescriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{174, 0}
}
type TestStatus_Code int32
const (
TestStatus_UNSPECIFIED TestStatus_Code = 0
TestStatus_OK TestStatus_Code = 1
TestStatus_NOT_A_PUBLIC_BOARD TestStatus_Code = 2
TestStatus_NOT_A_PUBLIC_MODEL TestStatus_Code = 3
TestStatus_NOT_A_PUBLIC_IMAGE TestStatus_Code = 4
TestStatus_NOT_A_PUBLIC_TEST TestStatus_Code = 5
)
// Enum value maps for TestStatus_Code.
var (
TestStatus_Code_name = map[int32]string{
0: "UNSPECIFIED",
1: "OK",
2: "NOT_A_PUBLIC_BOARD",
3: "NOT_A_PUBLIC_MODEL",
4: "NOT_A_PUBLIC_IMAGE",
5: "NOT_A_PUBLIC_TEST",
}
TestStatus_Code_value = map[string]int32{
"UNSPECIFIED": 0,
"OK": 1,
"NOT_A_PUBLIC_BOARD": 2,
"NOT_A_PUBLIC_MODEL": 3,
"NOT_A_PUBLIC_IMAGE": 4,
"NOT_A_PUBLIC_TEST": 5,
}
)
func (x TestStatus_Code) Enum() *TestStatus_Code {
p := new(TestStatus_Code)
*p = x
return p
}
func (x TestStatus_Code) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TestStatus_Code) Descriptor() protoreflect.EnumDescriptor {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_enumTypes[1].Descriptor()
}
func (TestStatus_Code) Type() protoreflect.EnumType {
return &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_enumTypes[1]
}
func (x TestStatus_Code) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TestStatus_Code.Descriptor instead.
func (TestStatus_Code) EnumDescriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{178, 0}
}
type UpdateMachineLSEDeploymentRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The MachineLSEDeployment to update.
MachineLseDeployment *models.MachineLSEDeployment `protobuf:"bytes,1,opt,name=machine_lse_deployment,json=machineLseDeployment,proto3" json:"machine_lse_deployment,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateMachineLSEDeploymentRequest) Reset() {
*x = UpdateMachineLSEDeploymentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateMachineLSEDeploymentRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateMachineLSEDeploymentRequest) ProtoMessage() {}
func (x *UpdateMachineLSEDeploymentRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateMachineLSEDeploymentRequest.ProtoReflect.Descriptor instead.
func (*UpdateMachineLSEDeploymentRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{0}
}
func (x *UpdateMachineLSEDeploymentRequest) GetMachineLseDeployment() *models.MachineLSEDeployment {
if x != nil {
return x.MachineLseDeployment
}
return nil
}
func (x *UpdateMachineLSEDeploymentRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type BatchUpdateMachineLSEDeploymentRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all deployment records being updated.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// A maximum of 1000 requests can be handled in one call.
Requests []*UpdateMachineLSEDeploymentRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
}
func (x *BatchUpdateMachineLSEDeploymentRequest) Reset() {
*x = BatchUpdateMachineLSEDeploymentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchUpdateMachineLSEDeploymentRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchUpdateMachineLSEDeploymentRequest) ProtoMessage() {}
func (x *BatchUpdateMachineLSEDeploymentRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchUpdateMachineLSEDeploymentRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateMachineLSEDeploymentRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{1}
}
func (x *BatchUpdateMachineLSEDeploymentRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchUpdateMachineLSEDeploymentRequest) GetRequests() []*UpdateMachineLSEDeploymentRequest {
if x != nil {
return x.Requests
}
return nil
}
type BatchUpdateMachineLSEDeploymentResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// deployment records updated.
MachineLseDeployments []*models.MachineLSEDeployment `protobuf:"bytes,1,rep,name=machine_lse_deployments,json=machineLseDeployments,proto3" json:"machine_lse_deployments,omitempty"`
}
func (x *BatchUpdateMachineLSEDeploymentResponse) Reset() {
*x = BatchUpdateMachineLSEDeploymentResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchUpdateMachineLSEDeploymentResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchUpdateMachineLSEDeploymentResponse) ProtoMessage() {}
func (x *BatchUpdateMachineLSEDeploymentResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchUpdateMachineLSEDeploymentResponse.ProtoReflect.Descriptor instead.
func (*BatchUpdateMachineLSEDeploymentResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{2}
}
func (x *BatchUpdateMachineLSEDeploymentResponse) GetMachineLseDeployments() []*models.MachineLSEDeployment {
if x != nil {
return x.MachineLseDeployments
}
return nil
}
type GetMachineLSEDeploymentRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The host identifier (e.g. serial number) to retrieve the deployment record.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetMachineLSEDeploymentRequest) Reset() {
*x = GetMachineLSEDeploymentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetMachineLSEDeploymentRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMachineLSEDeploymentRequest) ProtoMessage() {}
func (x *GetMachineLSEDeploymentRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetMachineLSEDeploymentRequest.ProtoReflect.Descriptor instead.
func (*GetMachineLSEDeploymentRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{3}
}
func (x *GetMachineLSEDeploymentRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type BatchGetMachineLSEDeploymentsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all machine lse deployment records being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names (e.g. serial number) of the machine lse deployment records to retrieve.
// Format: machineLSEDeployments/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetMachineLSEDeploymentsRequest) Reset() {
*x = BatchGetMachineLSEDeploymentsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetMachineLSEDeploymentsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetMachineLSEDeploymentsRequest) ProtoMessage() {}
func (x *BatchGetMachineLSEDeploymentsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetMachineLSEDeploymentsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetMachineLSEDeploymentsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{4}
}
func (x *BatchGetMachineLSEDeploymentsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetMachineLSEDeploymentsRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetMachineLSEDeploymentsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The Machine lses deployment records to retrieve.
MachineLseDeployments []*models.MachineLSEDeployment `protobuf:"bytes,1,rep,name=machine_lse_deployments,json=machineLseDeployments,proto3" json:"machine_lse_deployments,omitempty"`
}
func (x *BatchGetMachineLSEDeploymentsResponse) Reset() {
*x = BatchGetMachineLSEDeploymentsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetMachineLSEDeploymentsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetMachineLSEDeploymentsResponse) ProtoMessage() {}
func (x *BatchGetMachineLSEDeploymentsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetMachineLSEDeploymentsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetMachineLSEDeploymentsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{5}
}
func (x *BatchGetMachineLSEDeploymentsResponse) GetMachineLseDeployments() []*models.MachineLSEDeployment {
if x != nil {
return x.MachineLseDeployments
}
return nil
}
type ListMachineLSEDeploymentsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of deployment records to return.
// The service may return fewer than this value.
// If not specified, 100 deployment records will be returned by default.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListMachineLSEDeployments` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListMachineLSEDeployments` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition.
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListMachineLSEDeploymentsRequest) Reset() {
*x = ListMachineLSEDeploymentsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListMachineLSEDeploymentsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMachineLSEDeploymentsRequest) ProtoMessage() {}
func (x *ListMachineLSEDeploymentsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMachineLSEDeploymentsRequest.ProtoReflect.Descriptor instead.
func (*ListMachineLSEDeploymentsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{6}
}
func (x *ListMachineLSEDeploymentsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListMachineLSEDeploymentsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListMachineLSEDeploymentsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListMachineLSEDeploymentsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListMachineLSEDeploymentsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The deployment records from datastore.
MachineLseDeployments []*models.MachineLSEDeployment `protobuf:"bytes,1,rep,name=machine_lse_deployments,json=machineLseDeployments,proto3" json:"machine_lse_deployments,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListMachineLSEDeploymentsResponse) Reset() {
*x = ListMachineLSEDeploymentsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListMachineLSEDeploymentsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMachineLSEDeploymentsResponse) ProtoMessage() {}
func (x *ListMachineLSEDeploymentsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMachineLSEDeploymentsResponse.ProtoReflect.Descriptor instead.
func (*ListMachineLSEDeploymentsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{7}
}
func (x *ListMachineLSEDeploymentsResponse) GetMachineLseDeployments() []*models.MachineLSEDeployment {
if x != nil {
return x.MachineLseDeployments
}
return nil
}
func (x *ListMachineLSEDeploymentsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type CreateVMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The vm to create.
Vm *models.VM `protobuf:"bytes,1,opt,name=vm,proto3" json:"vm,omitempty"`
NetworkOption *NetworkOption `protobuf:"bytes,3,opt,name=network_option,json=networkOption,proto3" json:"network_option,omitempty"`
}
func (x *CreateVMRequest) Reset() {
*x = CreateVMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateVMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateVMRequest) ProtoMessage() {}
func (x *CreateVMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateVMRequest.ProtoReflect.Descriptor instead.
func (*CreateVMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{8}
}
func (x *CreateVMRequest) GetVm() *models.VM {
if x != nil {
return x.Vm
}
return nil
}
func (x *CreateVMRequest) GetNetworkOption() *NetworkOption {
if x != nil {
return x.NetworkOption
}
return nil
}
type UpdateVMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The VM to update.
Vm *models.VM `protobuf:"bytes,1,opt,name=vm,proto3" json:"vm,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// The network option to set the VM
NetworkOption *NetworkOption `protobuf:"bytes,4,opt,name=network_option,json=networkOption,proto3" json:"network_option,omitempty"`
}
func (x *UpdateVMRequest) Reset() {
*x = UpdateVMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateVMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateVMRequest) ProtoMessage() {}
func (x *UpdateVMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateVMRequest.ProtoReflect.Descriptor instead.
func (*UpdateVMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{9}
}
func (x *UpdateVMRequest) GetVm() *models.VM {
if x != nil {
return x.Vm
}
return nil
}
func (x *UpdateVMRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
func (x *UpdateVMRequest) GetNetworkOption() *NetworkOption {
if x != nil {
return x.NetworkOption
}
return nil
}
type GetVMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the VM to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetVMRequest) Reset() {
*x = GetVMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetVMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetVMRequest) ProtoMessage() {}
func (x *GetVMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetVMRequest.ProtoReflect.Descriptor instead.
func (*GetVMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{10}
}
func (x *GetVMRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type DeleteVMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the VM to delete.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteVMRequest) Reset() {
*x = DeleteVMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteVMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteVMRequest) ProtoMessage() {}
func (x *DeleteVMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteVMRequest.ProtoReflect.Descriptor instead.
func (*DeleteVMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{11}
}
func (x *DeleteVMRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListVMsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of vlans to return. The service may return fewer than
// this value.
// If unspecified, at most 100 vms will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListVMs` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListVlans` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListVMsRequest) Reset() {
*x = ListVMsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListVMsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListVMsRequest) ProtoMessage() {}
func (x *ListVMsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListVMsRequest.ProtoReflect.Descriptor instead.
func (*ListVMsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{12}
}
func (x *ListVMsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListVMsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListVMsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListVMsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListVMsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The vms from datastore.
Vms []*models.VM `protobuf:"bytes,1,rep,name=vms,proto3" json:"vms,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListVMsResponse) Reset() {
*x = ListVMsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListVMsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListVMsResponse) ProtoMessage() {}
func (x *ListVMsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListVMsResponse.ProtoReflect.Descriptor instead.
func (*ListVMsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{13}
}
func (x *ListVMsResponse) GetVms() []*models.VM {
if x != nil {
return x.Vms
}
return nil
}
func (x *ListVMsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type GetDHCPConfigRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The hostname to retrieve the dhcp config.
Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
}
func (x *GetDHCPConfigRequest) Reset() {
*x = GetDHCPConfigRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetDHCPConfigRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDHCPConfigRequest) ProtoMessage() {}
func (x *GetDHCPConfigRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetDHCPConfigRequest.ProtoReflect.Descriptor instead.
func (*GetDHCPConfigRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{14}
}
func (x *GetDHCPConfigRequest) GetHostname() string {
if x != nil {
return x.Hostname
}
return ""
}
// Contains the required information for creating a ChromePlatform represented in
// the database.
type CreateChromePlatformRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The chromePlatform to create.
ChromePlatform *models.ChromePlatform `protobuf:"bytes,1,opt,name=chromePlatform,proto3" json:"chromePlatform,omitempty"`
// The ID to use for the ChromePlatform, which will become the final component of
// the ChromePlatform's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
ChromePlatformId string `protobuf:"bytes,2,opt,name=chromePlatform_id,json=chromePlatformId,proto3" json:"chromePlatform_id,omitempty"`
}
func (x *CreateChromePlatformRequest) Reset() {
*x = CreateChromePlatformRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateChromePlatformRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateChromePlatformRequest) ProtoMessage() {}
func (x *CreateChromePlatformRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateChromePlatformRequest.ProtoReflect.Descriptor instead.
func (*CreateChromePlatformRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{15}
}
func (x *CreateChromePlatformRequest) GetChromePlatform() *models.ChromePlatform {
if x != nil {
return x.ChromePlatform
}
return nil
}
func (x *CreateChromePlatformRequest) GetChromePlatformId() string {
if x != nil {
return x.ChromePlatformId
}
return ""
}
type UpdateChromePlatformRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The chromePlatform to update.
ChromePlatform *models.ChromePlatform `protobuf:"bytes,1,opt,name=chromePlatform,proto3" json:"chromePlatform,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateChromePlatformRequest) Reset() {
*x = UpdateChromePlatformRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateChromePlatformRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateChromePlatformRequest) ProtoMessage() {}
func (x *UpdateChromePlatformRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateChromePlatformRequest.ProtoReflect.Descriptor instead.
func (*UpdateChromePlatformRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{16}
}
func (x *UpdateChromePlatformRequest) GetChromePlatform() *models.ChromePlatform {
if x != nil {
return x.ChromePlatform
}
return nil
}
func (x *UpdateChromePlatformRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetChromePlatformRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the chromePlatform to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetChromePlatformRequest) Reset() {
*x = GetChromePlatformRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetChromePlatformRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetChromePlatformRequest) ProtoMessage() {}
func (x *GetChromePlatformRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetChromePlatformRequest.ProtoReflect.Descriptor instead.
func (*GetChromePlatformRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{17}
}
func (x *GetChromePlatformRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListChromePlatformsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of chromePlatforms to return. The service may return fewer than
// this value.
// If unspecified, at most 100 chromePlatforms will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListChromePlatforms` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListChromePlatforms` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListChromePlatformsRequest) Reset() {
*x = ListChromePlatformsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListChromePlatformsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListChromePlatformsRequest) ProtoMessage() {}
func (x *ListChromePlatformsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[18]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListChromePlatformsRequest.ProtoReflect.Descriptor instead.
func (*ListChromePlatformsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{18}
}
func (x *ListChromePlatformsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListChromePlatformsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListChromePlatformsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListChromePlatformsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListChromePlatformsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The chromePlatforms from datastore.
ChromePlatforms []*models.ChromePlatform `protobuf:"bytes,1,rep,name=chromePlatforms,proto3" json:"chromePlatforms,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListChromePlatformsResponse) Reset() {
*x = ListChromePlatformsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListChromePlatformsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListChromePlatformsResponse) ProtoMessage() {}
func (x *ListChromePlatformsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[19]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListChromePlatformsResponse.ProtoReflect.Descriptor instead.
func (*ListChromePlatformsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{19}
}
func (x *ListChromePlatformsResponse) GetChromePlatforms() []*models.ChromePlatform {
if x != nil {
return x.ChromePlatforms
}
return nil
}
func (x *ListChromePlatformsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteChromePlatformRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the ChromePlatform to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteChromePlatformRequest) Reset() {
*x = DeleteChromePlatformRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteChromePlatformRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteChromePlatformRequest) ProtoMessage() {}
func (x *DeleteChromePlatformRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[20]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteChromePlatformRequest.ProtoReflect.Descriptor instead.
func (*DeleteChromePlatformRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{20}
}
func (x *DeleteChromePlatformRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ImportChromePlatformsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Source:
// *ImportChromePlatformsRequest_MachineDbSource
// *ImportChromePlatformsRequest_ConfigSource
Source isImportChromePlatformsRequest_Source `protobuf_oneof:"source"`
}
func (x *ImportChromePlatformsRequest) Reset() {
*x = ImportChromePlatformsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImportChromePlatformsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportChromePlatformsRequest) ProtoMessage() {}
func (x *ImportChromePlatformsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[21]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportChromePlatformsRequest.ProtoReflect.Descriptor instead.
func (*ImportChromePlatformsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{21}
}
func (m *ImportChromePlatformsRequest) GetSource() isImportChromePlatformsRequest_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *ImportChromePlatformsRequest) GetMachineDbSource() *MachineDBSource {
if x, ok := x.GetSource().(*ImportChromePlatformsRequest_MachineDbSource); ok {
return x.MachineDbSource
}
return nil
}
func (x *ImportChromePlatformsRequest) GetConfigSource() *ConfigSource {
if x, ok := x.GetSource().(*ImportChromePlatformsRequest_ConfigSource); ok {
return x.ConfigSource
}
return nil
}
type isImportChromePlatformsRequest_Source interface {
isImportChromePlatformsRequest_Source()
}
type ImportChromePlatformsRequest_MachineDbSource struct {
MachineDbSource *MachineDBSource `protobuf:"bytes,1,opt,name=machine_db_source,json=machineDbSource,proto3,oneof"`
}
type ImportChromePlatformsRequest_ConfigSource struct {
ConfigSource *ConfigSource `protobuf:"bytes,2,opt,name=config_source,json=configSource,proto3,oneof"`
}
func (*ImportChromePlatformsRequest_MachineDbSource) isImportChromePlatformsRequest_Source() {}
func (*ImportChromePlatformsRequest_ConfigSource) isImportChromePlatformsRequest_Source() {}
type ImportChromePlatformsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Passed []*ChromePlatformResult `protobuf:"bytes,1,rep,name=passed,proto3" json:"passed,omitempty"`
Failed []*ChromePlatformResult `protobuf:"bytes,2,rep,name=failed,proto3" json:"failed,omitempty"`
}
func (x *ImportChromePlatformsResponse) Reset() {
*x = ImportChromePlatformsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImportChromePlatformsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportChromePlatformsResponse) ProtoMessage() {}
func (x *ImportChromePlatformsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[22]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportChromePlatformsResponse.ProtoReflect.Descriptor instead.
func (*ImportChromePlatformsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{22}
}
func (x *ImportChromePlatformsResponse) GetPassed() []*ChromePlatformResult {
if x != nil {
return x.Passed
}
return nil
}
func (x *ImportChromePlatformsResponse) GetFailed() []*ChromePlatformResult {
if x != nil {
return x.Failed
}
return nil
}
type ChromePlatformResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Platform *models.ChromePlatform `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
}
func (x *ChromePlatformResult) Reset() {
*x = ChromePlatformResult{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ChromePlatformResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChromePlatformResult) ProtoMessage() {}
func (x *ChromePlatformResult) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[23]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChromePlatformResult.ProtoReflect.Descriptor instead.
func (*ChromePlatformResult) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{23}
}
func (x *ChromePlatformResult) GetPlatform() *models.ChromePlatform {
if x != nil {
return x.Platform
}
return nil
}
func (x *ChromePlatformResult) GetErrorMsg() string {
if x != nil {
return x.ErrorMsg
}
return ""
}
type ImportOSVersionsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Source:
// *ImportOSVersionsRequest_MachineDbSource
// *ImportOSVersionsRequest_ConfigSource
Source isImportOSVersionsRequest_Source `protobuf_oneof:"source"`
}
func (x *ImportOSVersionsRequest) Reset() {
*x = ImportOSVersionsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImportOSVersionsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportOSVersionsRequest) ProtoMessage() {}
func (x *ImportOSVersionsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[24]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportOSVersionsRequest.ProtoReflect.Descriptor instead.
func (*ImportOSVersionsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{24}
}
func (m *ImportOSVersionsRequest) GetSource() isImportOSVersionsRequest_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *ImportOSVersionsRequest) GetMachineDbSource() *MachineDBSource {
if x, ok := x.GetSource().(*ImportOSVersionsRequest_MachineDbSource); ok {
return x.MachineDbSource
}
return nil
}
func (x *ImportOSVersionsRequest) GetConfigSource() *ConfigSource {
if x, ok := x.GetSource().(*ImportOSVersionsRequest_ConfigSource); ok {
return x.ConfigSource
}
return nil
}
type isImportOSVersionsRequest_Source interface {
isImportOSVersionsRequest_Source()
}
type ImportOSVersionsRequest_MachineDbSource struct {
MachineDbSource *MachineDBSource `protobuf:"bytes,1,opt,name=machine_db_source,json=machineDbSource,proto3,oneof"`
}
type ImportOSVersionsRequest_ConfigSource struct {
ConfigSource *ConfigSource `protobuf:"bytes,2,opt,name=config_source,json=configSource,proto3,oneof"`
}
func (*ImportOSVersionsRequest_MachineDbSource) isImportOSVersionsRequest_Source() {}
func (*ImportOSVersionsRequest_ConfigSource) isImportOSVersionsRequest_Source() {}
type ListOSVersionsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of OSVersion to return. The service may return fewer than
// this value.
// If unspecified, at most 100 OSVersion will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListOSVersion` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListOSVersion` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListOSVersionsRequest) Reset() {
*x = ListOSVersionsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListOSVersionsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListOSVersionsRequest) ProtoMessage() {}
func (x *ListOSVersionsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[25]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListOSVersionsRequest.ProtoReflect.Descriptor instead.
func (*ListOSVersionsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{25}
}
func (x *ListOSVersionsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListOSVersionsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListOSVersionsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListOSVersionsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListOSVersionsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The os versions for browser lab from datastore.
OsVersion []*models.OSVersion `protobuf:"bytes,1,rep,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListOSVersionsResponse) Reset() {
*x = ListOSVersionsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListOSVersionsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListOSVersionsResponse) ProtoMessage() {}
func (x *ListOSVersionsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[26]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListOSVersionsResponse.ProtoReflect.Descriptor instead.
func (*ListOSVersionsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{26}
}
func (x *ListOSVersionsResponse) GetOsVersion() []*models.OSVersion {
if x != nil {
return x.OsVersion
}
return nil
}
func (x *ListOSVersionsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// Contains the required information for creating a MachineLSEPrototype represented in
// the database.
type CreateMachineLSEPrototypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The MachineLSEPrototype to create.
MachineLSEPrototype *models.MachineLSEPrototype `protobuf:"bytes,1,opt,name=machineLSEPrototype,proto3" json:"machineLSEPrototype,omitempty"`
// The ID to use for the MachineLSEPrototype, which will become the final component of
// the MachineLSEPrototype's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
MachineLSEPrototypeId string `protobuf:"bytes,2,opt,name=machineLSEPrototype_id,json=machineLSEPrototypeId,proto3" json:"machineLSEPrototype_id,omitempty"`
}
func (x *CreateMachineLSEPrototypeRequest) Reset() {
*x = CreateMachineLSEPrototypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateMachineLSEPrototypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateMachineLSEPrototypeRequest) ProtoMessage() {}
func (x *CreateMachineLSEPrototypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[27]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateMachineLSEPrototypeRequest.ProtoReflect.Descriptor instead.
func (*CreateMachineLSEPrototypeRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{27}
}
func (x *CreateMachineLSEPrototypeRequest) GetMachineLSEPrototype() *models.MachineLSEPrototype {
if x != nil {
return x.MachineLSEPrototype
}
return nil
}
func (x *CreateMachineLSEPrototypeRequest) GetMachineLSEPrototypeId() string {
if x != nil {
return x.MachineLSEPrototypeId
}
return ""
}
type UpdateMachineLSEPrototypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The MachineLSEPrototype to update.
MachineLSEPrototype *models.MachineLSEPrototype `protobuf:"bytes,1,opt,name=machineLSEPrototype,proto3" json:"machineLSEPrototype,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateMachineLSEPrototypeRequest) Reset() {
*x = UpdateMachineLSEPrototypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateMachineLSEPrototypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateMachineLSEPrototypeRequest) ProtoMessage() {}
func (x *UpdateMachineLSEPrototypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[28]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateMachineLSEPrototypeRequest.ProtoReflect.Descriptor instead.
func (*UpdateMachineLSEPrototypeRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{28}
}
func (x *UpdateMachineLSEPrototypeRequest) GetMachineLSEPrototype() *models.MachineLSEPrototype {
if x != nil {
return x.MachineLSEPrototype
}
return nil
}
func (x *UpdateMachineLSEPrototypeRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetMachineLSEPrototypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the MachineLSEPrototype to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetMachineLSEPrototypeRequest) Reset() {
*x = GetMachineLSEPrototypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetMachineLSEPrototypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMachineLSEPrototypeRequest) ProtoMessage() {}
func (x *GetMachineLSEPrototypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[29]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetMachineLSEPrototypeRequest.ProtoReflect.Descriptor instead.
func (*GetMachineLSEPrototypeRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{29}
}
func (x *GetMachineLSEPrototypeRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListMachineLSEPrototypesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of MachineLSEPrototypes to return. The service may return fewer than
// this value.
// If unspecified, at most 100 MachineLSEPrototypes will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListMachineLSEPrototypes` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListMachineLSEPrototypes` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListMachineLSEPrototypesRequest) Reset() {
*x = ListMachineLSEPrototypesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListMachineLSEPrototypesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMachineLSEPrototypesRequest) ProtoMessage() {}
func (x *ListMachineLSEPrototypesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[30]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMachineLSEPrototypesRequest.ProtoReflect.Descriptor instead.
func (*ListMachineLSEPrototypesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{30}
}
func (x *ListMachineLSEPrototypesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListMachineLSEPrototypesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListMachineLSEPrototypesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListMachineLSEPrototypesRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListMachineLSEPrototypesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The MachineLSEPrototypes from datastore.
MachineLSEPrototypes []*models.MachineLSEPrototype `protobuf:"bytes,1,rep,name=machineLSEPrototypes,proto3" json:"machineLSEPrototypes,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListMachineLSEPrototypesResponse) Reset() {
*x = ListMachineLSEPrototypesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListMachineLSEPrototypesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMachineLSEPrototypesResponse) ProtoMessage() {}
func (x *ListMachineLSEPrototypesResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[31]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMachineLSEPrototypesResponse.ProtoReflect.Descriptor instead.
func (*ListMachineLSEPrototypesResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{31}
}
func (x *ListMachineLSEPrototypesResponse) GetMachineLSEPrototypes() []*models.MachineLSEPrototype {
if x != nil {
return x.MachineLSEPrototypes
}
return nil
}
func (x *ListMachineLSEPrototypesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteMachineLSEPrototypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the MachineLSEPrototype to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteMachineLSEPrototypeRequest) Reset() {
*x = DeleteMachineLSEPrototypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteMachineLSEPrototypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteMachineLSEPrototypeRequest) ProtoMessage() {}
func (x *DeleteMachineLSEPrototypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[32]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteMachineLSEPrototypeRequest.ProtoReflect.Descriptor instead.
func (*DeleteMachineLSEPrototypeRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{32}
}
func (x *DeleteMachineLSEPrototypeRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Contains the required information for creating a RackLSEPrototype represented in
// the database.
type CreateRackLSEPrototypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The RackLSEPrototype to create.
RackLSEPrototype *models.RackLSEPrototype `protobuf:"bytes,1,opt,name=rackLSEPrototype,proto3" json:"rackLSEPrototype,omitempty"`
// The ID to use for the RackLSEPrototype, which will become the final component of
// the RackLSEPrototype's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
RackLSEPrototypeId string `protobuf:"bytes,2,opt,name=rackLSEPrototype_id,json=rackLSEPrototypeId,proto3" json:"rackLSEPrototype_id,omitempty"`
}
func (x *CreateRackLSEPrototypeRequest) Reset() {
*x = CreateRackLSEPrototypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateRackLSEPrototypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateRackLSEPrototypeRequest) ProtoMessage() {}
func (x *CreateRackLSEPrototypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[33]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateRackLSEPrototypeRequest.ProtoReflect.Descriptor instead.
func (*CreateRackLSEPrototypeRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{33}
}
func (x *CreateRackLSEPrototypeRequest) GetRackLSEPrototype() *models.RackLSEPrototype {
if x != nil {
return x.RackLSEPrototype
}
return nil
}
func (x *CreateRackLSEPrototypeRequest) GetRackLSEPrototypeId() string {
if x != nil {
return x.RackLSEPrototypeId
}
return ""
}
type UpdateRackLSEPrototypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The RackLSEPrototype to update.
RackLSEPrototype *models.RackLSEPrototype `protobuf:"bytes,1,opt,name=rackLSEPrototype,proto3" json:"rackLSEPrototype,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateRackLSEPrototypeRequest) Reset() {
*x = UpdateRackLSEPrototypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateRackLSEPrototypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateRackLSEPrototypeRequest) ProtoMessage() {}
func (x *UpdateRackLSEPrototypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[34]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateRackLSEPrototypeRequest.ProtoReflect.Descriptor instead.
func (*UpdateRackLSEPrototypeRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{34}
}
func (x *UpdateRackLSEPrototypeRequest) GetRackLSEPrototype() *models.RackLSEPrototype {
if x != nil {
return x.RackLSEPrototype
}
return nil
}
func (x *UpdateRackLSEPrototypeRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetRackLSEPrototypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the RackLSEPrototype to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetRackLSEPrototypeRequest) Reset() {
*x = GetRackLSEPrototypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRackLSEPrototypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRackLSEPrototypeRequest) ProtoMessage() {}
func (x *GetRackLSEPrototypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[35]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRackLSEPrototypeRequest.ProtoReflect.Descriptor instead.
func (*GetRackLSEPrototypeRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{35}
}
func (x *GetRackLSEPrototypeRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListRackLSEPrototypesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of RackLSEPrototypes to return. The service may return fewer than
// this value.
// If unspecified, at most 100 RackLSEPrototypes will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListRackLSEPrototypes` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListRackLSEPrototypes` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListRackLSEPrototypesRequest) Reset() {
*x = ListRackLSEPrototypesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRackLSEPrototypesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRackLSEPrototypesRequest) ProtoMessage() {}
func (x *ListRackLSEPrototypesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[36]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRackLSEPrototypesRequest.ProtoReflect.Descriptor instead.
func (*ListRackLSEPrototypesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{36}
}
func (x *ListRackLSEPrototypesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListRackLSEPrototypesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListRackLSEPrototypesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListRackLSEPrototypesRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListRackLSEPrototypesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The RackLSEPrototypes from datastore.
RackLSEPrototypes []*models.RackLSEPrototype `protobuf:"bytes,1,rep,name=rackLSEPrototypes,proto3" json:"rackLSEPrototypes,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListRackLSEPrototypesResponse) Reset() {
*x = ListRackLSEPrototypesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRackLSEPrototypesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRackLSEPrototypesResponse) ProtoMessage() {}
func (x *ListRackLSEPrototypesResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[37]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRackLSEPrototypesResponse.ProtoReflect.Descriptor instead.
func (*ListRackLSEPrototypesResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{37}
}
func (x *ListRackLSEPrototypesResponse) GetRackLSEPrototypes() []*models.RackLSEPrototype {
if x != nil {
return x.RackLSEPrototypes
}
return nil
}
func (x *ListRackLSEPrototypesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteRackLSEPrototypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the RackLSEPrototype to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteRackLSEPrototypeRequest) Reset() {
*x = DeleteRackLSEPrototypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteRackLSEPrototypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteRackLSEPrototypeRequest) ProtoMessage() {}
func (x *DeleteRackLSEPrototypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[38]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteRackLSEPrototypeRequest.ProtoReflect.Descriptor instead.
func (*DeleteRackLSEPrototypeRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{38}
}
func (x *DeleteRackLSEPrototypeRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Contains the required information for creating machine/nics/drac represented in
// the database.
type MachineRegistrationRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The machine to create.
Machine *models.Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"`
}
func (x *MachineRegistrationRequest) Reset() {
*x = MachineRegistrationRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MachineRegistrationRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MachineRegistrationRequest) ProtoMessage() {}
func (x *MachineRegistrationRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[39]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MachineRegistrationRequest.ProtoReflect.Descriptor instead.
func (*MachineRegistrationRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{39}
}
func (x *MachineRegistrationRequest) GetMachine() *models.Machine {
if x != nil {
return x.Machine
}
return nil
}
type UpdateMachineRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The machine to update.
Machine *models.Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateMachineRequest) Reset() {
*x = UpdateMachineRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateMachineRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateMachineRequest) ProtoMessage() {}
func (x *UpdateMachineRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[40]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateMachineRequest.ProtoReflect.Descriptor instead.
func (*UpdateMachineRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{40}
}
func (x *UpdateMachineRequest) GetMachine() *models.Machine {
if x != nil {
return x.Machine
}
return nil
}
func (x *UpdateMachineRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetMachineRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the machine to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetMachineRequest) Reset() {
*x = GetMachineRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[41]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetMachineRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMachineRequest) ProtoMessage() {}
func (x *GetMachineRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[41]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetMachineRequest.ProtoReflect.Descriptor instead.
func (*GetMachineRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{41}
}
func (x *GetMachineRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListMachinesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of machines to return. The service may return fewer than
// this value.
// If unspecified, at most 100 machines will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListMachines` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListMachines` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
// if this is true, machine will contain the full information of Nic/Drac.
// By setting this to true, the list call will be slower as the server
// needs to query and populate the Nic/Drac for each machine.
Full bool `protobuf:"varint,5,opt,name=full,proto3" json:"full,omitempty"`
}
func (x *ListMachinesRequest) Reset() {
*x = ListMachinesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[42]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListMachinesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMachinesRequest) ProtoMessage() {}
func (x *ListMachinesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[42]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMachinesRequest.ProtoReflect.Descriptor instead.
func (*ListMachinesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{42}
}
func (x *ListMachinesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListMachinesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListMachinesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListMachinesRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
func (x *ListMachinesRequest) GetFull() bool {
if x != nil {
return x.Full
}
return false
}
type ListMachinesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The machines from datastore.
Machines []*models.Machine `protobuf:"bytes,1,rep,name=machines,proto3" json:"machines,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListMachinesResponse) Reset() {
*x = ListMachinesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[43]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListMachinesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMachinesResponse) ProtoMessage() {}
func (x *ListMachinesResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[43]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMachinesResponse.ProtoReflect.Descriptor instead.
func (*ListMachinesResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{43}
}
func (x *ListMachinesResponse) GetMachines() []*models.Machine {
if x != nil {
return x.Machines
}
return nil
}
func (x *ListMachinesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteMachineRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the Machine to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteMachineRequest) Reset() {
*x = DeleteMachineRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[44]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteMachineRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteMachineRequest) ProtoMessage() {}
func (x *DeleteMachineRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[44]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteMachineRequest.ProtoReflect.Descriptor instead.
func (*DeleteMachineRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{44}
}
func (x *DeleteMachineRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ImportMachinesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Source:
// *ImportMachinesRequest_MachineDbSource
// *ImportMachinesRequest_ConfigSource
Source isImportMachinesRequest_Source `protobuf_oneof:"source"`
}
func (x *ImportMachinesRequest) Reset() {
*x = ImportMachinesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[45]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImportMachinesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportMachinesRequest) ProtoMessage() {}
func (x *ImportMachinesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[45]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportMachinesRequest.ProtoReflect.Descriptor instead.
func (*ImportMachinesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{45}
}
func (m *ImportMachinesRequest) GetSource() isImportMachinesRequest_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *ImportMachinesRequest) GetMachineDbSource() *MachineDBSource {
if x, ok := x.GetSource().(*ImportMachinesRequest_MachineDbSource); ok {
return x.MachineDbSource
}
return nil
}
func (x *ImportMachinesRequest) GetConfigSource() *ConfigSource {
if x, ok := x.GetSource().(*ImportMachinesRequest_ConfigSource); ok {
return x.ConfigSource
}
return nil
}
type isImportMachinesRequest_Source interface {
isImportMachinesRequest_Source()
}
type ImportMachinesRequest_MachineDbSource struct {
MachineDbSource *MachineDBSource `protobuf:"bytes,1,opt,name=machine_db_source,json=machineDbSource,proto3,oneof"`
}
type ImportMachinesRequest_ConfigSource struct {
ConfigSource *ConfigSource `protobuf:"bytes,2,opt,name=config_source,json=configSource,proto3,oneof"`
}
func (*ImportMachinesRequest_MachineDbSource) isImportMachinesRequest_Source() {}
func (*ImportMachinesRequest_ConfigSource) isImportMachinesRequest_Source() {}
type RenameMachineRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the Machine to rename
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The new name of the Machine
NewName string `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
}
func (x *RenameMachineRequest) Reset() {
*x = RenameMachineRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[46]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RenameMachineRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RenameMachineRequest) ProtoMessage() {}
func (x *RenameMachineRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[46]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RenameMachineRequest.ProtoReflect.Descriptor instead.
func (*RenameMachineRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{46}
}
func (x *RenameMachineRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *RenameMachineRequest) GetNewName() string {
if x != nil {
return x.NewName
}
return ""
}
type MachineDBSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
}
func (x *MachineDBSource) Reset() {
*x = MachineDBSource{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[47]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MachineDBSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MachineDBSource) ProtoMessage() {}
func (x *MachineDBSource) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[47]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MachineDBSource.ProtoReflect.Descriptor instead.
func (*MachineDBSource) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{47}
}
func (x *MachineDBSource) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
type ConfigSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Empty config_service means it's local file.
ConfigServiceName string `protobuf:"bytes,1,opt,name=config_service_name,json=configServiceName,proto3" json:"config_service_name,omitempty"`
FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
}
func (x *ConfigSource) Reset() {
*x = ConfigSource{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[48]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ConfigSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConfigSource) ProtoMessage() {}
func (x *ConfigSource) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[48]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ConfigSource.ProtoReflect.Descriptor instead.
func (*ConfigSource) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{48}
}
func (x *ConfigSource) GetConfigServiceName() string {
if x != nil {
return x.ConfigServiceName
}
return ""
}
func (x *ConfigSource) GetFileName() string {
if x != nil {
return x.FileName
}
return ""
}
// Contains the required information for creating a Rack represented in
// the database.
type CreateRackRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The rack to create.
Rack *models.Rack `protobuf:"bytes,1,opt,name=rack,proto3" json:"rack,omitempty"`
// The ID to use for the Rack, which will become the final component of
// the Rack's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
RackId string `protobuf:"bytes,2,opt,name=rack_id,json=rackId,proto3" json:"rack_id,omitempty"`
}
func (x *CreateRackRequest) Reset() {
*x = CreateRackRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[49]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateRackRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateRackRequest) ProtoMessage() {}
func (x *CreateRackRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[49]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateRackRequest.ProtoReflect.Descriptor instead.
func (*CreateRackRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{49}
}
func (x *CreateRackRequest) GetRack() *models.Rack {
if x != nil {
return x.Rack
}
return nil
}
func (x *CreateRackRequest) GetRackId() string {
if x != nil {
return x.RackId
}
return ""
}
type UpdateRackRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The rack to update.
Rack *models.Rack `protobuf:"bytes,1,opt,name=rack,proto3" json:"rack,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateRackRequest) Reset() {
*x = UpdateRackRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[50]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateRackRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateRackRequest) ProtoMessage() {}
func (x *UpdateRackRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[50]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateRackRequest.ProtoReflect.Descriptor instead.
func (*UpdateRackRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{50}
}
func (x *UpdateRackRequest) GetRack() *models.Rack {
if x != nil {
return x.Rack
}
return nil
}
func (x *UpdateRackRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetRackRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the rack to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetRackRequest) Reset() {
*x = GetRackRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[51]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRackRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRackRequest) ProtoMessage() {}
func (x *GetRackRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[51]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRackRequest.ProtoReflect.Descriptor instead.
func (*GetRackRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{51}
}
func (x *GetRackRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListRacksRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of racks to return. The service may return fewer than
// this value.
// If unspecified, at most 100 racks will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListRacks` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListRacks` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
// if this is true, rack will contain the full information of KVM/RPM/Switch.
// By setting this to true, the list call will be slower as the server
// needs to query and populate the KVM/RPM/Switch for each rack.
Full bool `protobuf:"varint,5,opt,name=full,proto3" json:"full,omitempty"`
}
func (x *ListRacksRequest) Reset() {
*x = ListRacksRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[52]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRacksRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRacksRequest) ProtoMessage() {}
func (x *ListRacksRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[52]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRacksRequest.ProtoReflect.Descriptor instead.
func (*ListRacksRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{52}
}
func (x *ListRacksRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListRacksRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListRacksRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListRacksRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
func (x *ListRacksRequest) GetFull() bool {
if x != nil {
return x.Full
}
return false
}
type ListRacksResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The racks from datastore.
Racks []*models.Rack `protobuf:"bytes,1,rep,name=racks,proto3" json:"racks,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListRacksResponse) Reset() {
*x = ListRacksResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[53]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRacksResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRacksResponse) ProtoMessage() {}
func (x *ListRacksResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[53]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRacksResponse.ProtoReflect.Descriptor instead.
func (*ListRacksResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{53}
}
func (x *ListRacksResponse) GetRacks() []*models.Rack {
if x != nil {
return x.Racks
}
return nil
}
func (x *ListRacksResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteRackRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the Rack to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteRackRequest) Reset() {
*x = DeleteRackRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[54]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteRackRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteRackRequest) ProtoMessage() {}
func (x *DeleteRackRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[54]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteRackRequest.ProtoReflect.Descriptor instead.
func (*DeleteRackRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{54}
}
func (x *DeleteRackRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Contains the required information for creating a MachineLSE represented in
// the database.
type CreateMachineLSERequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The machineLSE to create.
MachineLSE *models.MachineLSE `protobuf:"bytes,1,opt,name=machineLSE,proto3" json:"machineLSE,omitempty"`
// The ID to use for the MachineLSE, which will become the final component of
// the MachineLSE's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
MachineLSEId string `protobuf:"bytes,2,opt,name=machineLSE_id,json=machineLSEId,proto3" json:"machineLSE_id,omitempty"`
NetworkOption *NetworkOption `protobuf:"bytes,4,opt,name=network_option,json=networkOption,proto3" json:"network_option,omitempty"`
}
func (x *CreateMachineLSERequest) Reset() {
*x = CreateMachineLSERequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[55]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateMachineLSERequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateMachineLSERequest) ProtoMessage() {}
func (x *CreateMachineLSERequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[55]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateMachineLSERequest.ProtoReflect.Descriptor instead.
func (*CreateMachineLSERequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{55}
}
func (x *CreateMachineLSERequest) GetMachineLSE() *models.MachineLSE {
if x != nil {
return x.MachineLSE
}
return nil
}
func (x *CreateMachineLSERequest) GetMachineLSEId() string {
if x != nil {
return x.MachineLSEId
}
return ""
}
func (x *CreateMachineLSERequest) GetNetworkOption() *NetworkOption {
if x != nil {
return x.NetworkOption
}
return nil
}
type UpdateMachineLSERequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The machineLSE to update.
MachineLSE *models.MachineLSE `protobuf:"bytes,1,opt,name=machineLSE,proto3" json:"machineLSE,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// mapping of the name to the corresponding network options.
NetworkOptions map[string]*NetworkOption `protobuf:"bytes,4,rep,name=network_options,json=networkOptions,proto3" json:"network_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *UpdateMachineLSERequest) Reset() {
*x = UpdateMachineLSERequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[56]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateMachineLSERequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateMachineLSERequest) ProtoMessage() {}
func (x *UpdateMachineLSERequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[56]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateMachineLSERequest.ProtoReflect.Descriptor instead.
func (*UpdateMachineLSERequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{56}
}
func (x *UpdateMachineLSERequest) GetMachineLSE() *models.MachineLSE {
if x != nil {
return x.MachineLSE
}
return nil
}
func (x *UpdateMachineLSERequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
func (x *UpdateMachineLSERequest) GetNetworkOptions() map[string]*NetworkOption {
if x != nil {
return x.NetworkOptions
}
return nil
}
type GetMachineLSERequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the machineLSE to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetMachineLSERequest) Reset() {
*x = GetMachineLSERequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[57]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetMachineLSERequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMachineLSERequest) ProtoMessage() {}
func (x *GetMachineLSERequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[57]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetMachineLSERequest.ProtoReflect.Descriptor instead.
func (*GetMachineLSERequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{57}
}
func (x *GetMachineLSERequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListMachineLSEsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of machineLSEs to return. The service may return fewer than
// this value.
// If unspecified, at most 100 machineLSEs will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListMachineLSEs` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListMachineLSEs` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
// if this is true, machinelse will contain the full information of VMs.
// By setting this to true, the list call will be slower as the server
// needs to query and populate the VM for each machinelse.
Full bool `protobuf:"varint,5,opt,name=full,proto3" json:"full,omitempty"`
}
func (x *ListMachineLSEsRequest) Reset() {
*x = ListMachineLSEsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[58]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListMachineLSEsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMachineLSEsRequest) ProtoMessage() {}
func (x *ListMachineLSEsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[58]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMachineLSEsRequest.ProtoReflect.Descriptor instead.
func (*ListMachineLSEsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{58}
}
func (x *ListMachineLSEsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListMachineLSEsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListMachineLSEsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListMachineLSEsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
func (x *ListMachineLSEsRequest) GetFull() bool {
if x != nil {
return x.Full
}
return false
}
type ListMachineLSEsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The machineLSEs from datastore.
MachineLSEs []*models.MachineLSE `protobuf:"bytes,1,rep,name=machineLSEs,proto3" json:"machineLSEs,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListMachineLSEsResponse) Reset() {
*x = ListMachineLSEsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[59]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListMachineLSEsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMachineLSEsResponse) ProtoMessage() {}
func (x *ListMachineLSEsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[59]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMachineLSEsResponse.ProtoReflect.Descriptor instead.
func (*ListMachineLSEsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{59}
}
func (x *ListMachineLSEsResponse) GetMachineLSEs() []*models.MachineLSE {
if x != nil {
return x.MachineLSEs
}
return nil
}
func (x *ListMachineLSEsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteMachineLSERequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the MachineLSE to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteMachineLSERequest) Reset() {
*x = DeleteMachineLSERequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[60]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteMachineLSERequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteMachineLSERequest) ProtoMessage() {}
func (x *DeleteMachineLSERequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[60]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteMachineLSERequest.ProtoReflect.Descriptor instead.
func (*DeleteMachineLSERequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{60}
}
func (x *DeleteMachineLSERequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type RenameMachineLSERequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the MachineLSE to rename
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The new name of the MachineLSE
NewName string `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
}
func (x *RenameMachineLSERequest) Reset() {
*x = RenameMachineLSERequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[61]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RenameMachineLSERequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RenameMachineLSERequest) ProtoMessage() {}
func (x *RenameMachineLSERequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[61]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RenameMachineLSERequest.ProtoReflect.Descriptor instead.
func (*RenameMachineLSERequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{61}
}
func (x *RenameMachineLSERequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *RenameMachineLSERequest) GetNewName() string {
if x != nil {
return x.NewName
}
return ""
}
type ImportMachineLSEsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Source:
// *ImportMachineLSEsRequest_MachineDbSource
// *ImportMachineLSEsRequest_ConfigSource
Source isImportMachineLSEsRequest_Source `protobuf_oneof:"source"`
}
func (x *ImportMachineLSEsRequest) Reset() {
*x = ImportMachineLSEsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[62]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImportMachineLSEsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportMachineLSEsRequest) ProtoMessage() {}
func (x *ImportMachineLSEsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[62]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportMachineLSEsRequest.ProtoReflect.Descriptor instead.
func (*ImportMachineLSEsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{62}
}
func (m *ImportMachineLSEsRequest) GetSource() isImportMachineLSEsRequest_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *ImportMachineLSEsRequest) GetMachineDbSource() *MachineDBSource {
if x, ok := x.GetSource().(*ImportMachineLSEsRequest_MachineDbSource); ok {
return x.MachineDbSource
}
return nil
}
func (x *ImportMachineLSEsRequest) GetConfigSource() *ConfigSource {
if x, ok := x.GetSource().(*ImportMachineLSEsRequest_ConfigSource); ok {
return x.ConfigSource
}
return nil
}
type isImportMachineLSEsRequest_Source interface {
isImportMachineLSEsRequest_Source()
}
type ImportMachineLSEsRequest_MachineDbSource struct {
MachineDbSource *MachineDBSource `protobuf:"bytes,1,opt,name=machine_db_source,json=machineDbSource,proto3,oneof"`
}
type ImportMachineLSEsRequest_ConfigSource struct {
ConfigSource *ConfigSource `protobuf:"bytes,2,opt,name=config_source,json=configSource,proto3,oneof"`
}
func (*ImportMachineLSEsRequest_MachineDbSource) isImportMachineLSEsRequest_Source() {}
func (*ImportMachineLSEsRequest_ConfigSource) isImportMachineLSEsRequest_Source() {}
type ImportOSMachineLSEsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Source:
// *ImportOSMachineLSEsRequest_MachineDbSource
// *ImportOSMachineLSEsRequest_ConfigSource
Source isImportOSMachineLSEsRequest_Source `protobuf_oneof:"source"`
}
func (x *ImportOSMachineLSEsRequest) Reset() {
*x = ImportOSMachineLSEsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[63]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImportOSMachineLSEsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportOSMachineLSEsRequest) ProtoMessage() {}
func (x *ImportOSMachineLSEsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[63]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportOSMachineLSEsRequest.ProtoReflect.Descriptor instead.
func (*ImportOSMachineLSEsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{63}
}
func (m *ImportOSMachineLSEsRequest) GetSource() isImportOSMachineLSEsRequest_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *ImportOSMachineLSEsRequest) GetMachineDbSource() *MachineDBSource {
if x, ok := x.GetSource().(*ImportOSMachineLSEsRequest_MachineDbSource); ok {
return x.MachineDbSource
}
return nil
}
func (x *ImportOSMachineLSEsRequest) GetConfigSource() *ConfigSource {
if x, ok := x.GetSource().(*ImportOSMachineLSEsRequest_ConfigSource); ok {
return x.ConfigSource
}
return nil
}
type isImportOSMachineLSEsRequest_Source interface {
isImportOSMachineLSEsRequest_Source()
}
type ImportOSMachineLSEsRequest_MachineDbSource struct {
// Continue to use machine_db_source to specify any service host for consistency
MachineDbSource *MachineDBSource `protobuf:"bytes,1,opt,name=machine_db_source,json=machineDbSource,proto3,oneof"`
}
type ImportOSMachineLSEsRequest_ConfigSource struct {
ConfigSource *ConfigSource `protobuf:"bytes,2,opt,name=config_source,json=configSource,proto3,oneof"`
}
func (*ImportOSMachineLSEsRequest_MachineDbSource) isImportOSMachineLSEsRequest_Source() {}
func (*ImportOSMachineLSEsRequest_ConfigSource) isImportOSMachineLSEsRequest_Source() {}
// Contains the required information for creating a RackLSE represented in
// the database.
type CreateRackLSERequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The rackLSE to create.
RackLSE *models.RackLSE `protobuf:"bytes,1,opt,name=rackLSE,proto3" json:"rackLSE,omitempty"`
// The ID to use for the RackLSE, which will become the final component of
// the RackLSE's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
RackLSEId string `protobuf:"bytes,2,opt,name=rackLSE_id,json=rackLSEId,proto3" json:"rackLSE_id,omitempty"`
}
func (x *CreateRackLSERequest) Reset() {
*x = CreateRackLSERequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[64]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateRackLSERequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateRackLSERequest) ProtoMessage() {}
func (x *CreateRackLSERequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[64]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateRackLSERequest.ProtoReflect.Descriptor instead.
func (*CreateRackLSERequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{64}
}
func (x *CreateRackLSERequest) GetRackLSE() *models.RackLSE {
if x != nil {
return x.RackLSE
}
return nil
}
func (x *CreateRackLSERequest) GetRackLSEId() string {
if x != nil {
return x.RackLSEId
}
return ""
}
type UpdateRackLSERequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The rackLSE to update.
RackLSE *models.RackLSE `protobuf:"bytes,1,opt,name=rackLSE,proto3" json:"rackLSE,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateRackLSERequest) Reset() {
*x = UpdateRackLSERequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[65]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateRackLSERequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateRackLSERequest) ProtoMessage() {}
func (x *UpdateRackLSERequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[65]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateRackLSERequest.ProtoReflect.Descriptor instead.
func (*UpdateRackLSERequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{65}
}
func (x *UpdateRackLSERequest) GetRackLSE() *models.RackLSE {
if x != nil {
return x.RackLSE
}
return nil
}
func (x *UpdateRackLSERequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetRackLSERequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the rackLSE to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetRackLSERequest) Reset() {
*x = GetRackLSERequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[66]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRackLSERequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRackLSERequest) ProtoMessage() {}
func (x *GetRackLSERequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[66]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRackLSERequest.ProtoReflect.Descriptor instead.
func (*GetRackLSERequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{66}
}
func (x *GetRackLSERequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListRackLSEsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of rackLSEs to return. The service may return fewer than
// this value.
// If unspecified, at most 100 rackLSEs will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListRackLSEs` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListRackLSEs` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListRackLSEsRequest) Reset() {
*x = ListRackLSEsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[67]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRackLSEsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRackLSEsRequest) ProtoMessage() {}
func (x *ListRackLSEsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[67]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRackLSEsRequest.ProtoReflect.Descriptor instead.
func (*ListRackLSEsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{67}
}
func (x *ListRackLSEsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListRackLSEsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListRackLSEsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListRackLSEsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListRackLSEsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The rackLSEs from datastore.
RackLSEs []*models.RackLSE `protobuf:"bytes,1,rep,name=rackLSEs,proto3" json:"rackLSEs,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListRackLSEsResponse) Reset() {
*x = ListRackLSEsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[68]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRackLSEsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRackLSEsResponse) ProtoMessage() {}
func (x *ListRackLSEsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[68]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRackLSEsResponse.ProtoReflect.Descriptor instead.
func (*ListRackLSEsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{68}
}
func (x *ListRackLSEsResponse) GetRackLSEs() []*models.RackLSE {
if x != nil {
return x.RackLSEs
}
return nil
}
func (x *ListRackLSEsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteRackLSERequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the RackLSE to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteRackLSERequest) Reset() {
*x = DeleteRackLSERequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[69]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteRackLSERequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteRackLSERequest) ProtoMessage() {}
func (x *DeleteRackLSERequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[69]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteRackLSERequest.ProtoReflect.Descriptor instead.
func (*DeleteRackLSERequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{69}
}
func (x *DeleteRackLSERequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Contains the required information for creating a Nic represented in
// the database.
type CreateNicRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The nic to create.
Nic *models.Nic `protobuf:"bytes,1,opt,name=nic,proto3" json:"nic,omitempty"`
// The ID to use for the Nic, which will become the final component of
// the Nic's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
NicId string `protobuf:"bytes,2,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"`
}
func (x *CreateNicRequest) Reset() {
*x = CreateNicRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[70]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateNicRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateNicRequest) ProtoMessage() {}
func (x *CreateNicRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[70]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateNicRequest.ProtoReflect.Descriptor instead.
func (*CreateNicRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{70}
}
func (x *CreateNicRequest) GetNic() *models.Nic {
if x != nil {
return x.Nic
}
return nil
}
func (x *CreateNicRequest) GetNicId() string {
if x != nil {
return x.NicId
}
return ""
}
type UpdateNicRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The nic to update.
Nic *models.Nic `protobuf:"bytes,1,opt,name=nic,proto3" json:"nic,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateNicRequest) Reset() {
*x = UpdateNicRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[71]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNicRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNicRequest) ProtoMessage() {}
func (x *UpdateNicRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[71]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateNicRequest.ProtoReflect.Descriptor instead.
func (*UpdateNicRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{71}
}
func (x *UpdateNicRequest) GetNic() *models.Nic {
if x != nil {
return x.Nic
}
return nil
}
func (x *UpdateNicRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetNicRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the nic to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetNicRequest) Reset() {
*x = GetNicRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[72]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetNicRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetNicRequest) ProtoMessage() {}
func (x *GetNicRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[72]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetNicRequest.ProtoReflect.Descriptor instead.
func (*GetNicRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{72}
}
func (x *GetNicRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListNicsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of nics to return. The service may return fewer than
// this value.
// If unspecified, at most 100 nics will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListNics` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListNics` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListNicsRequest) Reset() {
*x = ListNicsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[73]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListNicsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListNicsRequest) ProtoMessage() {}
func (x *ListNicsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[73]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListNicsRequest.ProtoReflect.Descriptor instead.
func (*ListNicsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{73}
}
func (x *ListNicsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListNicsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListNicsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListNicsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListNicsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The nics from datastore.
Nics []*models.Nic `protobuf:"bytes,1,rep,name=nics,proto3" json:"nics,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListNicsResponse) Reset() {
*x = ListNicsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[74]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListNicsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListNicsResponse) ProtoMessage() {}
func (x *ListNicsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[74]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListNicsResponse.ProtoReflect.Descriptor instead.
func (*ListNicsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{74}
}
func (x *ListNicsResponse) GetNics() []*models.Nic {
if x != nil {
return x.Nics
}
return nil
}
func (x *ListNicsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteNicRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the Nic to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteNicRequest) Reset() {
*x = DeleteNicRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[75]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteNicRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteNicRequest) ProtoMessage() {}
func (x *DeleteNicRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[75]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteNicRequest.ProtoReflect.Descriptor instead.
func (*DeleteNicRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{75}
}
func (x *DeleteNicRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ImportNicsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Source:
// *ImportNicsRequest_MachineDbSource
// *ImportNicsRequest_ConfigSource
Source isImportNicsRequest_Source `protobuf_oneof:"source"`
}
func (x *ImportNicsRequest) Reset() {
*x = ImportNicsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[76]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImportNicsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportNicsRequest) ProtoMessage() {}
func (x *ImportNicsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[76]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportNicsRequest.ProtoReflect.Descriptor instead.
func (*ImportNicsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{76}
}
func (m *ImportNicsRequest) GetSource() isImportNicsRequest_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *ImportNicsRequest) GetMachineDbSource() *MachineDBSource {
if x, ok := x.GetSource().(*ImportNicsRequest_MachineDbSource); ok {
return x.MachineDbSource
}
return nil
}
func (x *ImportNicsRequest) GetConfigSource() *ConfigSource {
if x, ok := x.GetSource().(*ImportNicsRequest_ConfigSource); ok {
return x.ConfigSource
}
return nil
}
type isImportNicsRequest_Source interface {
isImportNicsRequest_Source()
}
type ImportNicsRequest_MachineDbSource struct {
MachineDbSource *MachineDBSource `protobuf:"bytes,1,opt,name=machine_db_source,json=machineDbSource,proto3,oneof"`
}
type ImportNicsRequest_ConfigSource struct {
ConfigSource *ConfigSource `protobuf:"bytes,2,opt,name=config_source,json=configSource,proto3,oneof"`
}
func (*ImportNicsRequest_MachineDbSource) isImportNicsRequest_Source() {}
func (*ImportNicsRequest_ConfigSource) isImportNicsRequest_Source() {}
type RenameNicRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the Nic to rename
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The new name of the Nic
NewName string `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
}
func (x *RenameNicRequest) Reset() {
*x = RenameNicRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[77]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RenameNicRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RenameNicRequest) ProtoMessage() {}
func (x *RenameNicRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[77]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RenameNicRequest.ProtoReflect.Descriptor instead.
func (*RenameNicRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{77}
}
func (x *RenameNicRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *RenameNicRequest) GetNewName() string {
if x != nil {
return x.NewName
}
return ""
}
type RenameSwitchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the Switch to rename
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The new name of the Switch
NewName string `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
}
func (x *RenameSwitchRequest) Reset() {
*x = RenameSwitchRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[78]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RenameSwitchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RenameSwitchRequest) ProtoMessage() {}
func (x *RenameSwitchRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[78]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RenameSwitchRequest.ProtoReflect.Descriptor instead.
func (*RenameSwitchRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{78}
}
func (x *RenameSwitchRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *RenameSwitchRequest) GetNewName() string {
if x != nil {
return x.NewName
}
return ""
}
type ImportDatacentersRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Source:
// *ImportDatacentersRequest_MachineDbSource
// *ImportDatacentersRequest_ConfigSource
Source isImportDatacentersRequest_Source `protobuf_oneof:"source"`
}
func (x *ImportDatacentersRequest) Reset() {
*x = ImportDatacentersRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[79]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImportDatacentersRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportDatacentersRequest) ProtoMessage() {}
func (x *ImportDatacentersRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[79]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportDatacentersRequest.ProtoReflect.Descriptor instead.
func (*ImportDatacentersRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{79}
}
func (m *ImportDatacentersRequest) GetSource() isImportDatacentersRequest_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *ImportDatacentersRequest) GetMachineDbSource() *MachineDBSource {
if x, ok := x.GetSource().(*ImportDatacentersRequest_MachineDbSource); ok {
return x.MachineDbSource
}
return nil
}
func (x *ImportDatacentersRequest) GetConfigSource() *ConfigSource {
if x, ok := x.GetSource().(*ImportDatacentersRequest_ConfigSource); ok {
return x.ConfigSource
}
return nil
}
type isImportDatacentersRequest_Source interface {
isImportDatacentersRequest_Source()
}
type ImportDatacentersRequest_MachineDbSource struct {
MachineDbSource *MachineDBSource `protobuf:"bytes,1,opt,name=machine_db_source,json=machineDbSource,proto3,oneof"`
}
type ImportDatacentersRequest_ConfigSource struct {
ConfigSource *ConfigSource `protobuf:"bytes,2,opt,name=config_source,json=configSource,proto3,oneof"`
}
func (*ImportDatacentersRequest_MachineDbSource) isImportDatacentersRequest_Source() {}
func (*ImportDatacentersRequest_ConfigSource) isImportDatacentersRequest_Source() {}
// Contains the required information for creating a KVM represented in
// the database.
type CreateKVMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The KVM to create.
KVM *models.KVM `protobuf:"bytes,1,opt,name=KVM,proto3" json:"KVM,omitempty"`
// The ID to use for the KVM, which will become the final component of
// the KVM's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
KVMId string `protobuf:"bytes,2,opt,name=KVM_id,json=KVMId,proto3" json:"KVM_id,omitempty"`
}
func (x *CreateKVMRequest) Reset() {
*x = CreateKVMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[80]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateKVMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateKVMRequest) ProtoMessage() {}
func (x *CreateKVMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[80]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateKVMRequest.ProtoReflect.Descriptor instead.
func (*CreateKVMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{80}
}
func (x *CreateKVMRequest) GetKVM() *models.KVM {
if x != nil {
return x.KVM
}
return nil
}
func (x *CreateKVMRequest) GetKVMId() string {
if x != nil {
return x.KVMId
}
return ""
}
type UpdateKVMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The KVM to update.
KVM *models.KVM `protobuf:"bytes,1,opt,name=KVM,proto3" json:"KVM,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
NetworkOption *NetworkOption `protobuf:"bytes,4,opt,name=network_option,json=networkOption,proto3" json:"network_option,omitempty"`
}
func (x *UpdateKVMRequest) Reset() {
*x = UpdateKVMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[81]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateKVMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateKVMRequest) ProtoMessage() {}
func (x *UpdateKVMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[81]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateKVMRequest.ProtoReflect.Descriptor instead.
func (*UpdateKVMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{81}
}
func (x *UpdateKVMRequest) GetKVM() *models.KVM {
if x != nil {
return x.KVM
}
return nil
}
func (x *UpdateKVMRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
func (x *UpdateKVMRequest) GetNetworkOption() *NetworkOption {
if x != nil {
return x.NetworkOption
}
return nil
}
type GetKVMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the KVM to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetKVMRequest) Reset() {
*x = GetKVMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[82]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetKVMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetKVMRequest) ProtoMessage() {}
func (x *GetKVMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[82]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetKVMRequest.ProtoReflect.Descriptor instead.
func (*GetKVMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{82}
}
func (x *GetKVMRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListKVMsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of KVMs to return. The service may return fewer than
// this value.
// If unspecified, at most 100 KVMs will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListKVMs` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListKVMs` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListKVMsRequest) Reset() {
*x = ListKVMsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[83]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListKVMsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListKVMsRequest) ProtoMessage() {}
func (x *ListKVMsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[83]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListKVMsRequest.ProtoReflect.Descriptor instead.
func (*ListKVMsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{83}
}
func (x *ListKVMsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListKVMsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListKVMsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListKVMsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListKVMsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The KVMs from datastore.
KVMs []*models.KVM `protobuf:"bytes,1,rep,name=KVMs,proto3" json:"KVMs,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListKVMsResponse) Reset() {
*x = ListKVMsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[84]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListKVMsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListKVMsResponse) ProtoMessage() {}
func (x *ListKVMsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[84]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListKVMsResponse.ProtoReflect.Descriptor instead.
func (*ListKVMsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{84}
}
func (x *ListKVMsResponse) GetKVMs() []*models.KVM {
if x != nil {
return x.KVMs
}
return nil
}
func (x *ListKVMsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteKVMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the KVM to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteKVMRequest) Reset() {
*x = DeleteKVMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[85]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteKVMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteKVMRequest) ProtoMessage() {}
func (x *DeleteKVMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[85]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteKVMRequest.ProtoReflect.Descriptor instead.
func (*DeleteKVMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{85}
}
func (x *DeleteKVMRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Contains the required information for creating a RPM represented in
// the database.
type CreateRPMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The RPM to create.
RPM *models.RPM `protobuf:"bytes,1,opt,name=RPM,proto3" json:"RPM,omitempty"`
// The ID to use for the RPM, which will become the final component of
// the RPM's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
RPMId string `protobuf:"bytes,2,opt,name=RPM_id,json=RPMId,proto3" json:"RPM_id,omitempty"`
}
func (x *CreateRPMRequest) Reset() {
*x = CreateRPMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[86]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateRPMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateRPMRequest) ProtoMessage() {}
func (x *CreateRPMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[86]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateRPMRequest.ProtoReflect.Descriptor instead.
func (*CreateRPMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{86}
}
func (x *CreateRPMRequest) GetRPM() *models.RPM {
if x != nil {
return x.RPM
}
return nil
}
func (x *CreateRPMRequest) GetRPMId() string {
if x != nil {
return x.RPMId
}
return ""
}
type UpdateRPMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The RPM to update.
RPM *models.RPM `protobuf:"bytes,1,opt,name=RPM,proto3" json:"RPM,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
NetworkOption *NetworkOption `protobuf:"bytes,3,opt,name=network_option,json=networkOption,proto3" json:"network_option,omitempty"`
}
func (x *UpdateRPMRequest) Reset() {
*x = UpdateRPMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[87]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateRPMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateRPMRequest) ProtoMessage() {}
func (x *UpdateRPMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[87]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateRPMRequest.ProtoReflect.Descriptor instead.
func (*UpdateRPMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{87}
}
func (x *UpdateRPMRequest) GetRPM() *models.RPM {
if x != nil {
return x.RPM
}
return nil
}
func (x *UpdateRPMRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
func (x *UpdateRPMRequest) GetNetworkOption() *NetworkOption {
if x != nil {
return x.NetworkOption
}
return nil
}
type GetRPMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the RPM to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetRPMRequest) Reset() {
*x = GetRPMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[88]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRPMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRPMRequest) ProtoMessage() {}
func (x *GetRPMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[88]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRPMRequest.ProtoReflect.Descriptor instead.
func (*GetRPMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{88}
}
func (x *GetRPMRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListRPMsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of RPMs to return. The service may return fewer than
// this value.
// If unspecified, at most 100 RPMs will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListRPMs` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListRPMs` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListRPMsRequest) Reset() {
*x = ListRPMsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[89]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRPMsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRPMsRequest) ProtoMessage() {}
func (x *ListRPMsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[89]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRPMsRequest.ProtoReflect.Descriptor instead.
func (*ListRPMsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{89}
}
func (x *ListRPMsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListRPMsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListRPMsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListRPMsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListRPMsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The RPMs from datastore.
RPMs []*models.RPM `protobuf:"bytes,1,rep,name=RPMs,proto3" json:"RPMs,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListRPMsResponse) Reset() {
*x = ListRPMsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[90]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRPMsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRPMsResponse) ProtoMessage() {}
func (x *ListRPMsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[90]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRPMsResponse.ProtoReflect.Descriptor instead.
func (*ListRPMsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{90}
}
func (x *ListRPMsResponse) GetRPMs() []*models.RPM {
if x != nil {
return x.RPMs
}
return nil
}
func (x *ListRPMsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteRPMRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the RPM to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteRPMRequest) Reset() {
*x = DeleteRPMRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[91]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteRPMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteRPMRequest) ProtoMessage() {}
func (x *DeleteRPMRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[91]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteRPMRequest.ProtoReflect.Descriptor instead.
func (*DeleteRPMRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{91}
}
func (x *DeleteRPMRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Contains the required information for creating a Drac represented in
// the database.
type CreateDracRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The drac to create.
Drac *models.Drac `protobuf:"bytes,1,opt,name=drac,proto3" json:"drac,omitempty"`
// The ID to use for the Drac, which will become the final component of
// the Drac's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
DracId string `protobuf:"bytes,2,opt,name=drac_id,json=dracId,proto3" json:"drac_id,omitempty"`
NetworkOption *NetworkOption `protobuf:"bytes,4,opt,name=network_option,json=networkOption,proto3" json:"network_option,omitempty"`
}
func (x *CreateDracRequest) Reset() {
*x = CreateDracRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[92]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateDracRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateDracRequest) ProtoMessage() {}
func (x *CreateDracRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[92]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateDracRequest.ProtoReflect.Descriptor instead.
func (*CreateDracRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{92}
}
func (x *CreateDracRequest) GetDrac() *models.Drac {
if x != nil {
return x.Drac
}
return nil
}
func (x *CreateDracRequest) GetDracId() string {
if x != nil {
return x.DracId
}
return ""
}
func (x *CreateDracRequest) GetNetworkOption() *NetworkOption {
if x != nil {
return x.NetworkOption
}
return nil
}
type UpdateDracRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The drac to update.
Drac *models.Drac `protobuf:"bytes,1,opt,name=drac,proto3" json:"drac,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
NetworkOption *NetworkOption `protobuf:"bytes,4,opt,name=network_option,json=networkOption,proto3" json:"network_option,omitempty"`
}
func (x *UpdateDracRequest) Reset() {
*x = UpdateDracRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[93]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateDracRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDracRequest) ProtoMessage() {}
func (x *UpdateDracRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[93]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateDracRequest.ProtoReflect.Descriptor instead.
func (*UpdateDracRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{93}
}
func (x *UpdateDracRequest) GetDrac() *models.Drac {
if x != nil {
return x.Drac
}
return nil
}
func (x *UpdateDracRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
func (x *UpdateDracRequest) GetNetworkOption() *NetworkOption {
if x != nil {
return x.NetworkOption
}
return nil
}
type GetDracRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the drac to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetDracRequest) Reset() {
*x = GetDracRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[94]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetDracRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDracRequest) ProtoMessage() {}
func (x *GetDracRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[94]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetDracRequest.ProtoReflect.Descriptor instead.
func (*GetDracRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{94}
}
func (x *GetDracRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListDracsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of dracs to return. The service may return fewer than
// this value.
// If unspecified, at most 100 dracs will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListDracs` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListDracs` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListDracsRequest) Reset() {
*x = ListDracsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[95]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListDracsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListDracsRequest) ProtoMessage() {}
func (x *ListDracsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[95]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListDracsRequest.ProtoReflect.Descriptor instead.
func (*ListDracsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{95}
}
func (x *ListDracsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListDracsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListDracsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListDracsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListDracsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The dracs from datastore.
Dracs []*models.Drac `protobuf:"bytes,1,rep,name=dracs,proto3" json:"dracs,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListDracsResponse) Reset() {
*x = ListDracsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[96]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListDracsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListDracsResponse) ProtoMessage() {}
func (x *ListDracsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[96]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListDracsResponse.ProtoReflect.Descriptor instead.
func (*ListDracsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{96}
}
func (x *ListDracsResponse) GetDracs() []*models.Drac {
if x != nil {
return x.Dracs
}
return nil
}
func (x *ListDracsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteDracRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the Drac to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteDracRequest) Reset() {
*x = DeleteDracRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[97]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteDracRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteDracRequest) ProtoMessage() {}
func (x *DeleteDracRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[97]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteDracRequest.ProtoReflect.Descriptor instead.
func (*DeleteDracRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{97}
}
func (x *DeleteDracRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Contains the required information for creating a Switch represented in
// the database.
type CreateSwitchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The switch to create.
Switch *models.Switch `protobuf:"bytes,1,opt,name=switch,proto3" json:"switch,omitempty"`
// The ID to use for the Switch, which will become the final component of
// the Switch's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
SwitchId string `protobuf:"bytes,2,opt,name=switch_id,json=switchId,proto3" json:"switch_id,omitempty"`
}
func (x *CreateSwitchRequest) Reset() {
*x = CreateSwitchRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[98]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateSwitchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateSwitchRequest) ProtoMessage() {}
func (x *CreateSwitchRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[98]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateSwitchRequest.ProtoReflect.Descriptor instead.
func (*CreateSwitchRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{98}
}
func (x *CreateSwitchRequest) GetSwitch() *models.Switch {
if x != nil {
return x.Switch
}
return nil
}
func (x *CreateSwitchRequest) GetSwitchId() string {
if x != nil {
return x.SwitchId
}
return ""
}
type UpdateSwitchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The switch to update.
Switch *models.Switch `protobuf:"bytes,1,opt,name=switch,proto3" json:"switch,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateSwitchRequest) Reset() {
*x = UpdateSwitchRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[99]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateSwitchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateSwitchRequest) ProtoMessage() {}
func (x *UpdateSwitchRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[99]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateSwitchRequest.ProtoReflect.Descriptor instead.
func (*UpdateSwitchRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{99}
}
func (x *UpdateSwitchRequest) GetSwitch() *models.Switch {
if x != nil {
return x.Switch
}
return nil
}
func (x *UpdateSwitchRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetSwitchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the switch to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetSwitchRequest) Reset() {
*x = GetSwitchRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[100]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetSwitchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetSwitchRequest) ProtoMessage() {}
func (x *GetSwitchRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[100]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetSwitchRequest.ProtoReflect.Descriptor instead.
func (*GetSwitchRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{100}
}
func (x *GetSwitchRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListSwitchesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of switches to return. The service may return fewer than
// this value.
// If unspecified, at most 100 switches will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListSwitches` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListSwitches` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListSwitchesRequest) Reset() {
*x = ListSwitchesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[101]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListSwitchesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListSwitchesRequest) ProtoMessage() {}
func (x *ListSwitchesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[101]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListSwitchesRequest.ProtoReflect.Descriptor instead.
func (*ListSwitchesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{101}
}
func (x *ListSwitchesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListSwitchesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListSwitchesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListSwitchesRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListSwitchesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The switches from datastore.
Switches []*models.Switch `protobuf:"bytes,1,rep,name=switches,proto3" json:"switches,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListSwitchesResponse) Reset() {
*x = ListSwitchesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[102]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListSwitchesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListSwitchesResponse) ProtoMessage() {}
func (x *ListSwitchesResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[102]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListSwitchesResponse.ProtoReflect.Descriptor instead.
func (*ListSwitchesResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{102}
}
func (x *ListSwitchesResponse) GetSwitches() []*models.Switch {
if x != nil {
return x.Switches
}
return nil
}
func (x *ListSwitchesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteSwitchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the Switch to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteSwitchRequest) Reset() {
*x = DeleteSwitchRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[103]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteSwitchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteSwitchRequest) ProtoMessage() {}
func (x *DeleteSwitchRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[103]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteSwitchRequest.ProtoReflect.Descriptor instead.
func (*DeleteSwitchRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{103}
}
func (x *DeleteSwitchRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Contains the required information for creating a Vlan represented in
// the database.
type CreateVlanRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The vlan to create.
Vlan *models.Vlan `protobuf:"bytes,1,opt,name=vlan,proto3" json:"vlan,omitempty"`
// The ID to use for the Vlan, which will become the final component of
// the Vlan's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
VlanId string `protobuf:"bytes,2,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"`
}
func (x *CreateVlanRequest) Reset() {
*x = CreateVlanRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[104]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateVlanRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateVlanRequest) ProtoMessage() {}
func (x *CreateVlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[104]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateVlanRequest.ProtoReflect.Descriptor instead.
func (*CreateVlanRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{104}
}
func (x *CreateVlanRequest) GetVlan() *models.Vlan {
if x != nil {
return x.Vlan
}
return nil
}
func (x *CreateVlanRequest) GetVlanId() string {
if x != nil {
return x.VlanId
}
return ""
}
type UpdateVlanRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The vlan to update.
Vlan *models.Vlan `protobuf:"bytes,1,opt,name=vlan,proto3" json:"vlan,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateVlanRequest) Reset() {
*x = UpdateVlanRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[105]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateVlanRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateVlanRequest) ProtoMessage() {}
func (x *UpdateVlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[105]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateVlanRequest.ProtoReflect.Descriptor instead.
func (*UpdateVlanRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{105}
}
func (x *UpdateVlanRequest) GetVlan() *models.Vlan {
if x != nil {
return x.Vlan
}
return nil
}
func (x *UpdateVlanRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetVlanRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the vlan to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetVlanRequest) Reset() {
*x = GetVlanRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[106]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetVlanRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetVlanRequest) ProtoMessage() {}
func (x *GetVlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[106]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetVlanRequest.ProtoReflect.Descriptor instead.
func (*GetVlanRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{106}
}
func (x *GetVlanRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListVlansRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of vlans to return. The service may return fewer than
// this value.
// If unspecified, at most 100 vlans will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListVlans` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListVlans` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListVlansRequest) Reset() {
*x = ListVlansRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[107]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListVlansRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListVlansRequest) ProtoMessage() {}
func (x *ListVlansRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[107]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListVlansRequest.ProtoReflect.Descriptor instead.
func (*ListVlansRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{107}
}
func (x *ListVlansRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListVlansRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListVlansRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListVlansRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListVlansResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The vlans from datastore.
Vlans []*models.Vlan `protobuf:"bytes,1,rep,name=vlans,proto3" json:"vlans,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListVlansResponse) Reset() {
*x = ListVlansResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[108]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListVlansResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListVlansResponse) ProtoMessage() {}
func (x *ListVlansResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[108]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListVlansResponse.ProtoReflect.Descriptor instead.
func (*ListVlansResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{108}
}
func (x *ListVlansResponse) GetVlans() []*models.Vlan {
if x != nil {
return x.Vlans
}
return nil
}
func (x *ListVlansResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteVlanRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the Vlan to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteVlanRequest) Reset() {
*x = DeleteVlanRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[109]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteVlanRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteVlanRequest) ProtoMessage() {}
func (x *DeleteVlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[109]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteVlanRequest.ProtoReflect.Descriptor instead.
func (*DeleteVlanRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{109}
}
func (x *DeleteVlanRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ImportVlansRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Source:
// *ImportVlansRequest_MachineDbSource
// *ImportVlansRequest_ConfigSource
Source isImportVlansRequest_Source `protobuf_oneof:"source"`
}
func (x *ImportVlansRequest) Reset() {
*x = ImportVlansRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[110]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImportVlansRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportVlansRequest) ProtoMessage() {}
func (x *ImportVlansRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[110]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportVlansRequest.ProtoReflect.Descriptor instead.
func (*ImportVlansRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{110}
}
func (m *ImportVlansRequest) GetSource() isImportVlansRequest_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *ImportVlansRequest) GetMachineDbSource() *MachineDBSource {
if x, ok := x.GetSource().(*ImportVlansRequest_MachineDbSource); ok {
return x.MachineDbSource
}
return nil
}
func (x *ImportVlansRequest) GetConfigSource() *ConfigSource {
if x, ok := x.GetSource().(*ImportVlansRequest_ConfigSource); ok {
return x.ConfigSource
}
return nil
}
type isImportVlansRequest_Source interface {
isImportVlansRequest_Source()
}
type ImportVlansRequest_MachineDbSource struct {
MachineDbSource *MachineDBSource `protobuf:"bytes,1,opt,name=machine_db_source,json=machineDbSource,proto3,oneof"`
}
type ImportVlansRequest_ConfigSource struct {
ConfigSource *ConfigSource `protobuf:"bytes,2,opt,name=config_source,json=configSource,proto3,oneof"`
}
func (*ImportVlansRequest_MachineDbSource) isImportVlansRequest_Source() {}
func (*ImportVlansRequest_ConfigSource) isImportVlansRequest_Source() {}
type ImportOSVlansRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Source:
// *ImportOSVlansRequest_MachineDbSource
// *ImportOSVlansRequest_ConfigSource
Source isImportOSVlansRequest_Source `protobuf_oneof:"source"`
}
func (x *ImportOSVlansRequest) Reset() {
*x = ImportOSVlansRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[111]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImportOSVlansRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportOSVlansRequest) ProtoMessage() {}
func (x *ImportOSVlansRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[111]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportOSVlansRequest.ProtoReflect.Descriptor instead.
func (*ImportOSVlansRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{111}
}
func (m *ImportOSVlansRequest) GetSource() isImportOSVlansRequest_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *ImportOSVlansRequest) GetMachineDbSource() *MachineDBSource {
if x, ok := x.GetSource().(*ImportOSVlansRequest_MachineDbSource); ok {
return x.MachineDbSource
}
return nil
}
func (x *ImportOSVlansRequest) GetConfigSource() *ConfigSource {
if x, ok := x.GetSource().(*ImportOSVlansRequest_ConfigSource); ok {
return x.ConfigSource
}
return nil
}
type isImportOSVlansRequest_Source interface {
isImportOSVlansRequest_Source()
}
type ImportOSVlansRequest_MachineDbSource struct {
MachineDbSource *MachineDBSource `protobuf:"bytes,1,opt,name=machine_db_source,json=machineDbSource,proto3,oneof"`
}
type ImportOSVlansRequest_ConfigSource struct {
ConfigSource *ConfigSource `protobuf:"bytes,2,opt,name=config_source,json=configSource,proto3,oneof"`
}
func (*ImportOSVlansRequest_MachineDbSource) isImportOSVlansRequest_Source() {}
func (*ImportOSVlansRequest_ConfigSource) isImportOSVlansRequest_Source() {}
type ImportStatesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Source:
// *ImportStatesRequest_MachineDbSource
// *ImportStatesRequest_ConfigSource
Source isImportStatesRequest_Source `protobuf_oneof:"source"`
}
func (x *ImportStatesRequest) Reset() {
*x = ImportStatesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[112]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImportStatesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportStatesRequest) ProtoMessage() {}
func (x *ImportStatesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[112]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportStatesRequest.ProtoReflect.Descriptor instead.
func (*ImportStatesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{112}
}
func (m *ImportStatesRequest) GetSource() isImportStatesRequest_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *ImportStatesRequest) GetMachineDbSource() *MachineDBSource {
if x, ok := x.GetSource().(*ImportStatesRequest_MachineDbSource); ok {
return x.MachineDbSource
}
return nil
}
func (x *ImportStatesRequest) GetConfigSource() *ConfigSource {
if x, ok := x.GetSource().(*ImportStatesRequest_ConfigSource); ok {
return x.ConfigSource
}
return nil
}
type isImportStatesRequest_Source interface {
isImportStatesRequest_Source()
}
type ImportStatesRequest_MachineDbSource struct {
MachineDbSource *MachineDBSource `protobuf:"bytes,1,opt,name=machine_db_source,json=machineDbSource,proto3,oneof"`
}
type ImportStatesRequest_ConfigSource struct {
ConfigSource *ConfigSource `protobuf:"bytes,2,opt,name=config_source,json=configSource,proto3,oneof"`
}
func (*ImportStatesRequest_MachineDbSource) isImportStatesRequest_Source() {}
func (*ImportStatesRequest_ConfigSource) isImportStatesRequest_Source() {}
type GetStateRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the resource to retrieve the state.
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
}
func (x *GetStateRequest) Reset() {
*x = GetStateRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[113]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetStateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetStateRequest) ProtoMessage() {}
func (x *GetStateRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[113]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetStateRequest.ProtoReflect.Descriptor instead.
func (*GetStateRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{113}
}
func (x *GetStateRequest) GetResourceName() string {
if x != nil {
return x.ResourceName
}
return ""
}
type GetDutStateRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Machine/Asset id.
ChromeosDeviceId string `protobuf:"bytes,1,opt,name=chromeos_device_id,json=chromeosDeviceId,proto3" json:"chromeos_device_id,omitempty"`
// Hostname of the DUT/MachineLSE.
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
}
func (x *GetDutStateRequest) Reset() {
*x = GetDutStateRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[114]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetDutStateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDutStateRequest) ProtoMessage() {}
func (x *GetDutStateRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[114]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetDutStateRequest.ProtoReflect.Descriptor instead.
func (*GetDutStateRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{114}
}
func (x *GetDutStateRequest) GetChromeosDeviceId() string {
if x != nil {
return x.ChromeosDeviceId
}
return ""
}
func (x *GetDutStateRequest) GetHostname() string {
if x != nil {
return x.Hostname
}
return ""
}
type ListDutStatesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of DutStates to return. The service may return fewer than
// this value.
// If unspecified, at most 100 DutStates will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListDutStates` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListDutStates` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListDutStatesRequest) Reset() {
*x = ListDutStatesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[115]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListDutStatesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListDutStatesRequest) ProtoMessage() {}
func (x *ListDutStatesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[115]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListDutStatesRequest.ProtoReflect.Descriptor instead.
func (*ListDutStatesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{115}
}
func (x *ListDutStatesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListDutStatesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListDutStatesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListDutStatesRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListDutStatesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The DutStates from datastore.
DutStates []*lab.DutState `protobuf:"bytes,1,rep,name=dut_states,json=dutStates,proto3" json:"dut_states,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListDutStatesResponse) Reset() {
*x = ListDutStatesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[116]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListDutStatesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListDutStatesResponse) ProtoMessage() {}
func (x *ListDutStatesResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[116]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListDutStatesResponse.ProtoReflect.Descriptor instead.
func (*ListDutStatesResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{116}
}
func (x *ListDutStatesResponse) GetDutStates() []*lab.DutState {
if x != nil {
return x.DutStates
}
return nil
}
func (x *ListDutStatesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type UpdateStateRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The state record to update.
State *models.StateRecord `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateStateRequest) Reset() {
*x = UpdateStateRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[117]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateStateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateStateRequest) ProtoMessage() {}
func (x *UpdateStateRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[117]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateStateRequest.ProtoReflect.Descriptor instead.
func (*UpdateStateRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{117}
}
func (x *UpdateStateRequest) GetState() *models.StateRecord {
if x != nil {
return x.State
}
return nil
}
func (x *UpdateStateRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type UpdateDutStateRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The state record to update.
DutState *lab.DutState `protobuf:"bytes,1,opt,name=dut_state,json=dutState,proto3" json:"dut_state,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Used for updating back essential configs from repair/deploy task.
DutMeta *models.DutMeta `protobuf:"bytes,3,opt,name=dut_meta,json=dutMeta,proto3" json:"dut_meta,omitempty"`
LabMeta *models.LabMeta `protobuf:"bytes,4,opt,name=lab_meta,json=labMeta,proto3" json:"lab_meta,omitempty"`
}
func (x *UpdateDutStateRequest) Reset() {
*x = UpdateDutStateRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[118]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateDutStateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDutStateRequest) ProtoMessage() {}
func (x *UpdateDutStateRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[118]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateDutStateRequest.ProtoReflect.Descriptor instead.
func (*UpdateDutStateRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{118}
}
func (x *UpdateDutStateRequest) GetDutState() *lab.DutState {
if x != nil {
return x.DutState
}
return nil
}
func (x *UpdateDutStateRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
func (x *UpdateDutStateRequest) GetDutMeta() *models.DutMeta {
if x != nil {
return x.DutMeta
}
return nil
}
func (x *UpdateDutStateRequest) GetLabMeta() *models.LabMeta {
if x != nil {
return x.LabMeta
}
return nil
}
type UpdateDeviceRecoveryDataRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The id or asset tag for chromeos device.
ChromeosDeviceId string `protobuf:"bytes,1,opt,name=chromeos_device_id,json=chromeosDeviceId,proto3" json:"chromeos_device_id,omitempty"`
// The hostname of the device.
// Optional field but strongly recommended. If empty, hostname will be derived from chromeos_device_id.
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
// The DUT state to update.
ResourceState models.State `protobuf:"varint,3,opt,name=resource_state,json=resourceState,proto3,enum=unifiedfleet.api.v1.models.State" json:"resource_state,omitempty"`
// The state record to update.
// DutState.id is required and its value should be equal to chromeos_device_id(tag 1)
// DutState.hostname is optional, if not empty it should be equal to hostname(tag 2)
DutState *lab.DutState `protobuf:"bytes,4,opt,name=dut_state,json=dutState,proto3" json:"dut_state,omitempty"`
// Used for updating back essential configs from repair/deploy task.
DutData *UpdateDeviceRecoveryDataRequest_DutData `protobuf:"bytes,5,opt,name=dut_data,json=dutData,proto3" json:"dut_data,omitempty"`
// Used for updating back essential configs from repair/deploy task.
LabData *UpdateDeviceRecoveryDataRequest_LabData `protobuf:"bytes,6,opt,name=lab_data,json=labData,proto3" json:"lab_data,omitempty"`
}
func (x *UpdateDeviceRecoveryDataRequest) Reset() {
*x = UpdateDeviceRecoveryDataRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[119]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateDeviceRecoveryDataRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDeviceRecoveryDataRequest) ProtoMessage() {}
func (x *UpdateDeviceRecoveryDataRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[119]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateDeviceRecoveryDataRequest.ProtoReflect.Descriptor instead.
func (*UpdateDeviceRecoveryDataRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{119}
}
func (x *UpdateDeviceRecoveryDataRequest) GetChromeosDeviceId() string {
if x != nil {
return x.ChromeosDeviceId
}
return ""
}
func (x *UpdateDeviceRecoveryDataRequest) GetHostname() string {
if x != nil {
return x.Hostname
}
return ""
}
func (x *UpdateDeviceRecoveryDataRequest) GetResourceState() models.State {
if x != nil {
return x.ResourceState
}
return models.State(0)
}
func (x *UpdateDeviceRecoveryDataRequest) GetDutState() *lab.DutState {
if x != nil {
return x.DutState
}
return nil
}
func (x *UpdateDeviceRecoveryDataRequest) GetDutData() *UpdateDeviceRecoveryDataRequest_DutData {
if x != nil {
return x.DutData
}
return nil
}
func (x *UpdateDeviceRecoveryDataRequest) GetLabData() *UpdateDeviceRecoveryDataRequest_LabData {
if x != nil {
return x.LabData
}
return nil
}
type UpdateDeviceRecoveryDataResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *UpdateDeviceRecoveryDataResponse) Reset() {
*x = UpdateDeviceRecoveryDataResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[120]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateDeviceRecoveryDataResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDeviceRecoveryDataResponse) ProtoMessage() {}
func (x *UpdateDeviceRecoveryDataResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[120]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateDeviceRecoveryDataResponse.ProtoReflect.Descriptor instead.
func (*UpdateDeviceRecoveryDataResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{120}
}
type RackRegistrationRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The rack to create.
Rack *models.Rack `protobuf:"bytes,1,opt,name=rack,proto3" json:"rack,omitempty"`
}
func (x *RackRegistrationRequest) Reset() {
*x = RackRegistrationRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[121]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RackRegistrationRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RackRegistrationRequest) ProtoMessage() {}
func (x *RackRegistrationRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[121]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RackRegistrationRequest.ProtoReflect.Descriptor instead.
func (*RackRegistrationRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{121}
}
func (x *RackRegistrationRequest) GetRack() *models.Rack {
if x != nil {
return x.Rack
}
return nil
}
type NetworkOption struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The vlan to setup the network configurations
Vlan string `protobuf:"bytes,1,opt,name=vlan,proto3" json:"vlan,omitempty"`
// Specifying nic name for automatically assign IP
Nic string `protobuf:"bytes,2,opt,name=nic,proto3" json:"nic,omitempty"`
// Delete the existing network configurations if existing
Delete bool `protobuf:"varint,3,opt,name=delete,proto3" json:"delete,omitempty"`
// The user-specified ip, if it's setup, other options will be ignored.
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
}
func (x *NetworkOption) Reset() {
*x = NetworkOption{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[122]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NetworkOption) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NetworkOption) ProtoMessage() {}
func (x *NetworkOption) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[122]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NetworkOption.ProtoReflect.Descriptor instead.
func (*NetworkOption) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{122}
}
func (x *NetworkOption) GetVlan() string {
if x != nil {
return x.Vlan
}
return ""
}
func (x *NetworkOption) GetNic() string {
if x != nil {
return x.Nic
}
return ""
}
func (x *NetworkOption) GetDelete() bool {
if x != nil {
return x.Delete
}
return false
}
func (x *NetworkOption) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
type CreateAssetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The asset to register
Asset *models.Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
}
func (x *CreateAssetRequest) Reset() {
*x = CreateAssetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[123]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateAssetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateAssetRequest) ProtoMessage() {}
func (x *CreateAssetRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[123]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateAssetRequest.ProtoReflect.Descriptor instead.
func (*CreateAssetRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{123}
}
func (x *CreateAssetRequest) GetAsset() *models.Asset {
if x != nil {
return x.Asset
}
return nil
}
type UpdateAssetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The asset to update.
Asset *models.Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateAssetRequest) Reset() {
*x = UpdateAssetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[124]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateAssetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateAssetRequest) ProtoMessage() {}
func (x *UpdateAssetRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[124]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateAssetRequest.ProtoReflect.Descriptor instead.
func (*UpdateAssetRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{124}
}
func (x *UpdateAssetRequest) GetAsset() *models.Asset {
if x != nil {
return x.Asset
}
return nil
}
func (x *UpdateAssetRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetAssetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the asset to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetAssetRequest) Reset() {
*x = GetAssetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[125]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAssetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAssetRequest) ProtoMessage() {}
func (x *GetAssetRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[125]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAssetRequest.ProtoReflect.Descriptor instead.
func (*GetAssetRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{125}
}
func (x *GetAssetRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListAssetsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of assets to return. The service may return fewer than
// this value.
// If unspecified, at most 100 assets will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListAssets` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListAssets` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListAssetsRequest) Reset() {
*x = ListAssetsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[126]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListAssetsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListAssetsRequest) ProtoMessage() {}
func (x *ListAssetsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[126]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListAssetsRequest.ProtoReflect.Descriptor instead.
func (*ListAssetsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{126}
}
func (x *ListAssetsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListAssetsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListAssetsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListAssetsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListAssetsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The assets from datastore.
Assets []*models.Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListAssetsResponse) Reset() {
*x = ListAssetsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[127]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListAssetsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListAssetsResponse) ProtoMessage() {}
func (x *ListAssetsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[127]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListAssetsResponse.ProtoReflect.Descriptor instead.
func (*ListAssetsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{127}
}
func (x *ListAssetsResponse) GetAssets() []*models.Asset {
if x != nil {
return x.Assets
}
return nil
}
func (x *ListAssetsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteAssetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the asset to delete
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteAssetRequest) Reset() {
*x = DeleteAssetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[128]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteAssetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteAssetRequest) ProtoMessage() {}
func (x *DeleteAssetRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[128]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteAssetRequest.ProtoReflect.Descriptor instead.
func (*DeleteAssetRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{128}
}
func (x *DeleteAssetRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type RenameAssetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the Asset to rename
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The new name of the Asset.
NewName string `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
}
func (x *RenameAssetRequest) Reset() {
*x = RenameAssetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[129]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RenameAssetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RenameAssetRequest) ProtoMessage() {}
func (x *RenameAssetRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[129]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RenameAssetRequest.ProtoReflect.Descriptor instead.
func (*RenameAssetRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{129}
}
func (x *RenameAssetRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *RenameAssetRequest) GetNewName() string {
if x != nil {
return x.NewName
}
return ""
}
type BatchGetKVMsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all kvms being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the kvms to retrieve.
// Format: kvms/{kvm}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetKVMsRequest) Reset() {
*x = BatchGetKVMsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[130]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetKVMsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetKVMsRequest) ProtoMessage() {}
func (x *BatchGetKVMsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[130]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetKVMsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetKVMsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{130}
}
func (x *BatchGetKVMsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetKVMsRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetKVMsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The KVMs from datastore.
KVMs []*models.KVM `protobuf:"bytes,1,rep,name=KVMs,proto3" json:"KVMs,omitempty"`
}
func (x *BatchGetKVMsResponse) Reset() {
*x = BatchGetKVMsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[131]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetKVMsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetKVMsResponse) ProtoMessage() {}
func (x *BatchGetKVMsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[131]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetKVMsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetKVMsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{131}
}
func (x *BatchGetKVMsResponse) GetKVMs() []*models.KVM {
if x != nil {
return x.KVMs
}
return nil
}
type BatchGetDHCPConfigsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all dhcp configs being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The hostnames of the dhcp configs to retrieve.
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetDHCPConfigsRequest) Reset() {
*x = BatchGetDHCPConfigsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[132]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetDHCPConfigsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetDHCPConfigsRequest) ProtoMessage() {}
func (x *BatchGetDHCPConfigsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[132]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetDHCPConfigsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetDHCPConfigsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{132}
}
func (x *BatchGetDHCPConfigsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetDHCPConfigsRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetDHCPConfigsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The KVMs from datastore.
DhcpConfigs []*models.DHCPConfig `protobuf:"bytes,1,rep,name=dhcp_configs,json=dhcpConfigs,proto3" json:"dhcp_configs,omitempty"`
}
func (x *BatchGetDHCPConfigsResponse) Reset() {
*x = BatchGetDHCPConfigsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[133]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetDHCPConfigsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetDHCPConfigsResponse) ProtoMessage() {}
func (x *BatchGetDHCPConfigsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[133]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetDHCPConfigsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetDHCPConfigsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{133}
}
func (x *BatchGetDHCPConfigsResponse) GetDhcpConfigs() []*models.DHCPConfig {
if x != nil {
return x.DhcpConfigs
}
return nil
}
type BatchGetMachineLSEsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all machine lses being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the machine lses to retrieve.
// Format: machineLSEs/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetMachineLSEsRequest) Reset() {
*x = BatchGetMachineLSEsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[134]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetMachineLSEsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetMachineLSEsRequest) ProtoMessage() {}
func (x *BatchGetMachineLSEsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[134]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetMachineLSEsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetMachineLSEsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{134}
}
func (x *BatchGetMachineLSEsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetMachineLSEsRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetMachineLSEsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The Machine lses from datastore.
MachineLses []*models.MachineLSE `protobuf:"bytes,1,rep,name=machine_lses,json=machineLses,proto3" json:"machine_lses,omitempty"`
}
func (x *BatchGetMachineLSEsResponse) Reset() {
*x = BatchGetMachineLSEsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[135]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetMachineLSEsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetMachineLSEsResponse) ProtoMessage() {}
func (x *BatchGetMachineLSEsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[135]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetMachineLSEsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetMachineLSEsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{135}
}
func (x *BatchGetMachineLSEsResponse) GetMachineLses() []*models.MachineLSE {
if x != nil {
return x.MachineLses
}
return nil
}
type BatchGetMachinesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all machines being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the machines to retrieve.
// Format: machines/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetMachinesRequest) Reset() {
*x = BatchGetMachinesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[136]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetMachinesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetMachinesRequest) ProtoMessage() {}
func (x *BatchGetMachinesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[136]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetMachinesRequest.ProtoReflect.Descriptor instead.
func (*BatchGetMachinesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{136}
}
func (x *BatchGetMachinesRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetMachinesRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetMachinesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The machines from datastore.
Machines []*models.Machine `protobuf:"bytes,1,rep,name=machines,proto3" json:"machines,omitempty"`
}
func (x *BatchGetMachinesResponse) Reset() {
*x = BatchGetMachinesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[137]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetMachinesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetMachinesResponse) ProtoMessage() {}
func (x *BatchGetMachinesResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[137]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetMachinesResponse.ProtoReflect.Descriptor instead.
func (*BatchGetMachinesResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{137}
}
func (x *BatchGetMachinesResponse) GetMachines() []*models.Machine {
if x != nil {
return x.Machines
}
return nil
}
type BatchGetSwitchesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all switches being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the switches to retrieve.
// Format: switches/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetSwitchesRequest) Reset() {
*x = BatchGetSwitchesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[138]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetSwitchesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetSwitchesRequest) ProtoMessage() {}
func (x *BatchGetSwitchesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[138]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetSwitchesRequest.ProtoReflect.Descriptor instead.
func (*BatchGetSwitchesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{138}
}
func (x *BatchGetSwitchesRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetSwitchesRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetSwitchesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The switches from datastore.
Switches []*models.Switch `protobuf:"bytes,1,rep,name=switches,proto3" json:"switches,omitempty"`
}
func (x *BatchGetSwitchesResponse) Reset() {
*x = BatchGetSwitchesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[139]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetSwitchesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetSwitchesResponse) ProtoMessage() {}
func (x *BatchGetSwitchesResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[139]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetSwitchesResponse.ProtoReflect.Descriptor instead.
func (*BatchGetSwitchesResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{139}
}
func (x *BatchGetSwitchesResponse) GetSwitches() []*models.Switch {
if x != nil {
return x.Switches
}
return nil
}
type BatchGetRPMsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all rpms being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the rpms to retrieve.
// Format: rpms/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetRPMsRequest) Reset() {
*x = BatchGetRPMsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[140]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetRPMsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetRPMsRequest) ProtoMessage() {}
func (x *BatchGetRPMsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[140]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetRPMsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetRPMsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{140}
}
func (x *BatchGetRPMsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetRPMsRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetRPMsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The rpms from datastore.
Rpms []*models.RPM `protobuf:"bytes,1,rep,name=rpms,proto3" json:"rpms,omitempty"`
}
func (x *BatchGetRPMsResponse) Reset() {
*x = BatchGetRPMsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[141]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetRPMsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetRPMsResponse) ProtoMessage() {}
func (x *BatchGetRPMsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[141]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetRPMsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetRPMsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{141}
}
func (x *BatchGetRPMsResponse) GetRpms() []*models.RPM {
if x != nil {
return x.Rpms
}
return nil
}
type BatchGetDracsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all dracs being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the dracs to retrieve.
// Format: dracs/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetDracsRequest) Reset() {
*x = BatchGetDracsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[142]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetDracsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetDracsRequest) ProtoMessage() {}
func (x *BatchGetDracsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[142]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetDracsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetDracsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{142}
}
func (x *BatchGetDracsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetDracsRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetDracsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The dracs from datastore.
Dracs []*models.Drac `protobuf:"bytes,1,rep,name=dracs,proto3" json:"dracs,omitempty"`
}
func (x *BatchGetDracsResponse) Reset() {
*x = BatchGetDracsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[143]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetDracsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetDracsResponse) ProtoMessage() {}
func (x *BatchGetDracsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[143]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetDracsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetDracsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{143}
}
func (x *BatchGetDracsResponse) GetDracs() []*models.Drac {
if x != nil {
return x.Dracs
}
return nil
}
type BatchGetNicsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all nics being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the nics to retrieve.
// Format: nics/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetNicsRequest) Reset() {
*x = BatchGetNicsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[144]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetNicsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetNicsRequest) ProtoMessage() {}
func (x *BatchGetNicsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[144]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetNicsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetNicsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{144}
}
func (x *BatchGetNicsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetNicsRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetNicsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The nics from datastore.
Nics []*models.Nic `protobuf:"bytes,1,rep,name=nics,proto3" json:"nics,omitempty"`
}
func (x *BatchGetNicsResponse) Reset() {
*x = BatchGetNicsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[145]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetNicsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetNicsResponse) ProtoMessage() {}
func (x *BatchGetNicsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[145]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetNicsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetNicsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{145}
}
func (x *BatchGetNicsResponse) GetNics() []*models.Nic {
if x != nil {
return x.Nics
}
return nil
}
type BatchGetVMsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all vms being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the vms to retrieve.
// Format: vms/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetVMsRequest) Reset() {
*x = BatchGetVMsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[146]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetVMsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetVMsRequest) ProtoMessage() {}
func (x *BatchGetVMsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[146]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetVMsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetVMsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{146}
}
func (x *BatchGetVMsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetVMsRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetVMsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The vms from datastore.
Vms []*models.VM `protobuf:"bytes,1,rep,name=vms,proto3" json:"vms,omitempty"`
}
func (x *BatchGetVMsResponse) Reset() {
*x = BatchGetVMsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[147]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetVMsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetVMsResponse) ProtoMessage() {}
func (x *BatchGetVMsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[147]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetVMsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetVMsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{147}
}
func (x *BatchGetVMsResponse) GetVms() []*models.VM {
if x != nil {
return x.Vms
}
return nil
}
type BatchGetVlansRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all vlans being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the vlans to retrieve.
// Format: vlans/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetVlansRequest) Reset() {
*x = BatchGetVlansRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[148]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetVlansRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetVlansRequest) ProtoMessage() {}
func (x *BatchGetVlansRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[148]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetVlansRequest.ProtoReflect.Descriptor instead.
func (*BatchGetVlansRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{148}
}
func (x *BatchGetVlansRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetVlansRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetVlansResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The vlans from datastore.
Vlans []*models.Vlan `protobuf:"bytes,1,rep,name=vlans,proto3" json:"vlans,omitempty"`
}
func (x *BatchGetVlansResponse) Reset() {
*x = BatchGetVlansResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[149]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetVlansResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetVlansResponse) ProtoMessage() {}
func (x *BatchGetVlansResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[149]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetVlansResponse.ProtoReflect.Descriptor instead.
func (*BatchGetVlansResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{149}
}
func (x *BatchGetVlansResponse) GetVlans() []*models.Vlan {
if x != nil {
return x.Vlans
}
return nil
}
type BatchGetRacksRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all racks being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the racks to retrieve.
// Format: racks/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetRacksRequest) Reset() {
*x = BatchGetRacksRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[150]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetRacksRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetRacksRequest) ProtoMessage() {}
func (x *BatchGetRacksRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[150]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetRacksRequest.ProtoReflect.Descriptor instead.
func (*BatchGetRacksRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{150}
}
func (x *BatchGetRacksRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetRacksRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetRacksResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The racks from datastore.
Racks []*models.Rack `protobuf:"bytes,1,rep,name=racks,proto3" json:"racks,omitempty"`
}
func (x *BatchGetRacksResponse) Reset() {
*x = BatchGetRacksResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[151]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetRacksResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetRacksResponse) ProtoMessage() {}
func (x *BatchGetRacksResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[151]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetRacksResponse.ProtoReflect.Descriptor instead.
func (*BatchGetRacksResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{151}
}
func (x *BatchGetRacksResponse) GetRacks() []*models.Rack {
if x != nil {
return x.Racks
}
return nil
}
type BatchGetChromePlatformsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all chrome platforms being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the chrome platforms to retrieve.
// Format: chromeplatforms/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetChromePlatformsRequest) Reset() {
*x = BatchGetChromePlatformsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[152]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetChromePlatformsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetChromePlatformsRequest) ProtoMessage() {}
func (x *BatchGetChromePlatformsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[152]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetChromePlatformsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetChromePlatformsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{152}
}
func (x *BatchGetChromePlatformsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetChromePlatformsRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetChromePlatformsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The chrome platforms from datastore.
ChromePlatforms []*models.ChromePlatform `protobuf:"bytes,1,rep,name=chrome_platforms,json=chromePlatforms,proto3" json:"chrome_platforms,omitempty"`
}
func (x *BatchGetChromePlatformsResponse) Reset() {
*x = BatchGetChromePlatformsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[153]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetChromePlatformsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetChromePlatformsResponse) ProtoMessage() {}
func (x *BatchGetChromePlatformsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[153]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetChromePlatformsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetChromePlatformsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{153}
}
func (x *BatchGetChromePlatformsResponse) GetChromePlatforms() []*models.ChromePlatform {
if x != nil {
return x.ChromePlatforms
}
return nil
}
type BatchGetMachineLSEPrototypesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all machine lse prototypes being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the machine lse prototypes to retrieve.
// Format: machineLSEPrototypes/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetMachineLSEPrototypesRequest) Reset() {
*x = BatchGetMachineLSEPrototypesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[154]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetMachineLSEPrototypesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetMachineLSEPrototypesRequest) ProtoMessage() {}
func (x *BatchGetMachineLSEPrototypesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[154]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetMachineLSEPrototypesRequest.ProtoReflect.Descriptor instead.
func (*BatchGetMachineLSEPrototypesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{154}
}
func (x *BatchGetMachineLSEPrototypesRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetMachineLSEPrototypesRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetMachineLSEPrototypesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The machine lse prototypes from datastore.
MachineLsePrototypes []*models.MachineLSEPrototype `protobuf:"bytes,1,rep,name=machine_lse_prototypes,json=machineLsePrototypes,proto3" json:"machine_lse_prototypes,omitempty"`
}
func (x *BatchGetMachineLSEPrototypesResponse) Reset() {
*x = BatchGetMachineLSEPrototypesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[155]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetMachineLSEPrototypesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetMachineLSEPrototypesResponse) ProtoMessage() {}
func (x *BatchGetMachineLSEPrototypesResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[155]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetMachineLSEPrototypesResponse.ProtoReflect.Descriptor instead.
func (*BatchGetMachineLSEPrototypesResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{155}
}
func (x *BatchGetMachineLSEPrototypesResponse) GetMachineLsePrototypes() []*models.MachineLSEPrototype {
if x != nil {
return x.MachineLsePrototypes
}
return nil
}
type BatchGetRackLSEPrototypesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The parent resource shared by all rack lse prototypes being retrieved.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The names of the rack lse prototypes to retrieve.
// Format: rackLSEPrototypes/{name}
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
}
func (x *BatchGetRackLSEPrototypesRequest) Reset() {
*x = BatchGetRackLSEPrototypesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[156]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetRackLSEPrototypesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetRackLSEPrototypesRequest) ProtoMessage() {}
func (x *BatchGetRackLSEPrototypesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[156]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetRackLSEPrototypesRequest.ProtoReflect.Descriptor instead.
func (*BatchGetRackLSEPrototypesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{156}
}
func (x *BatchGetRackLSEPrototypesRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *BatchGetRackLSEPrototypesRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
type BatchGetRackLSEPrototypesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The rack lse prototypes from datastore.
RackLsePrototypes []*models.RackLSEPrototype `protobuf:"bytes,1,rep,name=rack_lse_prototypes,json=rackLsePrototypes,proto3" json:"rack_lse_prototypes,omitempty"`
}
func (x *BatchGetRackLSEPrototypesResponse) Reset() {
*x = BatchGetRackLSEPrototypesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[157]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchGetRackLSEPrototypesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetRackLSEPrototypesResponse) ProtoMessage() {}
func (x *BatchGetRackLSEPrototypesResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[157]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchGetRackLSEPrototypesResponse.ProtoReflect.Descriptor instead.
func (*BatchGetRackLSEPrototypesResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{157}
}
func (x *BatchGetRackLSEPrototypesResponse) GetRackLsePrototypes() []*models.RackLSEPrototype {
if x != nil {
return x.RackLsePrototypes
}
return nil
}
type GetChromeOSDeviceDataRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Machine/Asset id.
ChromeosDeviceId string `protobuf:"bytes,1,opt,name=chromeos_device_id,json=chromeosDeviceId,proto3" json:"chromeos_device_id,omitempty"`
// Hostname of the DUT/MachineLSE.
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
}
func (x *GetChromeOSDeviceDataRequest) Reset() {
*x = GetChromeOSDeviceDataRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[158]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetChromeOSDeviceDataRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetChromeOSDeviceDataRequest) ProtoMessage() {}
func (x *GetChromeOSDeviceDataRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[158]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetChromeOSDeviceDataRequest.ProtoReflect.Descriptor instead.
func (*GetChromeOSDeviceDataRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{158}
}
func (x *GetChromeOSDeviceDataRequest) GetChromeosDeviceId() string {
if x != nil {
return x.ChromeosDeviceId
}
return ""
}
func (x *GetChromeOSDeviceDataRequest) GetHostname() string {
if x != nil {
return x.Hostname
}
return ""
}
// Contains the required information for creating a CachingService represented in
// the database.
type CreateCachingServiceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The CachingService to create.
CachingService *models.CachingService `protobuf:"bytes,1,opt,name=cachingService,proto3" json:"cachingService,omitempty"`
// The ID to use for the CachingService, which will become the final component of
// the CachingService's resource name.
//
// Pattern is {hostname or ipv4}.
CachingServiceId string `protobuf:"bytes,2,opt,name=cachingService_id,json=cachingServiceId,proto3" json:"cachingService_id,omitempty"`
}
func (x *CreateCachingServiceRequest) Reset() {
*x = CreateCachingServiceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[159]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateCachingServiceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateCachingServiceRequest) ProtoMessage() {}
func (x *CreateCachingServiceRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[159]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateCachingServiceRequest.ProtoReflect.Descriptor instead.
func (*CreateCachingServiceRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{159}
}
func (x *CreateCachingServiceRequest) GetCachingService() *models.CachingService {
if x != nil {
return x.CachingService
}
return nil
}
func (x *CreateCachingServiceRequest) GetCachingServiceId() string {
if x != nil {
return x.CachingServiceId
}
return ""
}
type UpdateCachingServiceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The CachingService to update.
CachingService *models.CachingService `protobuf:"bytes,1,opt,name=cachingService,proto3" json:"cachingService,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateCachingServiceRequest) Reset() {
*x = UpdateCachingServiceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[160]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateCachingServiceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateCachingServiceRequest) ProtoMessage() {}
func (x *UpdateCachingServiceRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[160]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateCachingServiceRequest.ProtoReflect.Descriptor instead.
func (*UpdateCachingServiceRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{160}
}
func (x *UpdateCachingServiceRequest) GetCachingService() *models.CachingService {
if x != nil {
return x.CachingService
}
return nil
}
func (x *UpdateCachingServiceRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetCachingServiceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the CachingService to retrieve.
// Pattern is 'cachingservices/{hostname or ipv4}'
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetCachingServiceRequest) Reset() {
*x = GetCachingServiceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[161]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetCachingServiceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetCachingServiceRequest) ProtoMessage() {}
func (x *GetCachingServiceRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[161]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetCachingServiceRequest.ProtoReflect.Descriptor instead.
func (*GetCachingServiceRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{161}
}
func (x *GetCachingServiceRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListCachingServicesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of CachingServices to return. The service may return fewer than
// this value.
// If unspecified, at most 100 CachingServices will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListCachingServices` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListCachingServices` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition.
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keysOnly,proto3" json:"keysOnly,omitempty"`
}
func (x *ListCachingServicesRequest) Reset() {
*x = ListCachingServicesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[162]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListCachingServicesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListCachingServicesRequest) ProtoMessage() {}
func (x *ListCachingServicesRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[162]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListCachingServicesRequest.ProtoReflect.Descriptor instead.
func (*ListCachingServicesRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{162}
}
func (x *ListCachingServicesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListCachingServicesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListCachingServicesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListCachingServicesRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListCachingServicesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The CachingServices from datastore.
CachingServices []*models.CachingService `protobuf:"bytes,1,rep,name=cachingServices,proto3" json:"cachingServices,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListCachingServicesResponse) Reset() {
*x = ListCachingServicesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[163]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListCachingServicesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListCachingServicesResponse) ProtoMessage() {}
func (x *ListCachingServicesResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[163]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListCachingServicesResponse.ProtoReflect.Descriptor instead.
func (*ListCachingServicesResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{163}
}
func (x *ListCachingServicesResponse) GetCachingServices() []*models.CachingService {
if x != nil {
return x.CachingServices
}
return nil
}
func (x *ListCachingServicesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteCachingServiceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the CachingService to delete.
// Pattern is 'cachingservices/{hostname or ipv4}'
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteCachingServiceRequest) Reset() {
*x = DeleteCachingServiceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[164]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteCachingServiceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteCachingServiceRequest) ProtoMessage() {}
func (x *DeleteCachingServiceRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[164]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteCachingServiceRequest.ProtoReflect.Descriptor instead.
func (*DeleteCachingServiceRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{164}
}
func (x *DeleteCachingServiceRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Contains the required information for creating a SchedulingUnit represented in
// the database.
type CreateSchedulingUnitRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The SchedulingUnit to create.
SchedulingUnit *models.SchedulingUnit `protobuf:"bytes,1,opt,name=scheduling_unit,json=schedulingUnit,proto3" json:"scheduling_unit,omitempty"`
// The ID to use for the SchedulingUnit, which will become the final component of
// the SchedulingUnit's resource name.
//
// This value should follow the regex "^[a-zA-Z0-9-)(_:.]{3,63}$" (3-63 characters,
// contains only ASCII letters, numbers, dash and underscore.
SchedulingUnitId string `protobuf:"bytes,2,opt,name=scheduling_unit_id,json=schedulingUnitId,proto3" json:"scheduling_unit_id,omitempty"`
}
func (x *CreateSchedulingUnitRequest) Reset() {
*x = CreateSchedulingUnitRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[165]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateSchedulingUnitRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateSchedulingUnitRequest) ProtoMessage() {}
func (x *CreateSchedulingUnitRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[165]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateSchedulingUnitRequest.ProtoReflect.Descriptor instead.
func (*CreateSchedulingUnitRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{165}
}
func (x *CreateSchedulingUnitRequest) GetSchedulingUnit() *models.SchedulingUnit {
if x != nil {
return x.SchedulingUnit
}
return nil
}
func (x *CreateSchedulingUnitRequest) GetSchedulingUnitId() string {
if x != nil {
return x.SchedulingUnitId
}
return ""
}
type UpdateSchedulingUnitRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The SchedulingUnit to update.
SchedulingUnit *models.SchedulingUnit `protobuf:"bytes,1,opt,name=scheduling_unit,json=schedulingUnit,proto3" json:"scheduling_unit,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateSchedulingUnitRequest) Reset() {
*x = UpdateSchedulingUnitRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[166]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateSchedulingUnitRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateSchedulingUnitRequest) ProtoMessage() {}
func (x *UpdateSchedulingUnitRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[166]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateSchedulingUnitRequest.ProtoReflect.Descriptor instead.
func (*UpdateSchedulingUnitRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{166}
}
func (x *UpdateSchedulingUnitRequest) GetSchedulingUnit() *models.SchedulingUnit {
if x != nil {
return x.SchedulingUnit
}
return nil
}
func (x *UpdateSchedulingUnitRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
type GetSchedulingUnitRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the SchedulingUnit to retrieve.
// Pattern is 'schedulingunits/{ipv4}'
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetSchedulingUnitRequest) Reset() {
*x = GetSchedulingUnitRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[167]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetSchedulingUnitRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetSchedulingUnitRequest) ProtoMessage() {}
func (x *GetSchedulingUnitRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[167]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetSchedulingUnitRequest.ProtoReflect.Descriptor instead.
func (*GetSchedulingUnitRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{167}
}
func (x *GetSchedulingUnitRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type ListSchedulingUnitsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of SchedulingUnits to return. The service may return fewer than
// this value.
// If unspecified, at most 100 SchedulingUnits will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListSchedulingUnits` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListSchedulingUnits` must match
// the call that provided the page token.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// filter takes the filtering condition.
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// if this is true, only keys will be returned else the entire object
// will be returned. By setting this to true, the list call be will faster.
KeysOnly bool `protobuf:"varint,4,opt,name=keys_only,json=keysOnly,proto3" json:"keys_only,omitempty"`
}
func (x *ListSchedulingUnitsRequest) Reset() {
*x = ListSchedulingUnitsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[168]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListSchedulingUnitsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListSchedulingUnitsRequest) ProtoMessage() {}
func (x *ListSchedulingUnitsRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[168]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListSchedulingUnitsRequest.ProtoReflect.Descriptor instead.
func (*ListSchedulingUnitsRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{168}
}
func (x *ListSchedulingUnitsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListSchedulingUnitsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListSchedulingUnitsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListSchedulingUnitsRequest) GetKeysOnly() bool {
if x != nil {
return x.KeysOnly
}
return false
}
type ListSchedulingUnitsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The SchedulingUnits from datastore.
SchedulingUnits []*models.SchedulingUnit `protobuf:"bytes,1,rep,name=scheduling_units,json=schedulingUnits,proto3" json:"scheduling_units,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListSchedulingUnitsResponse) Reset() {
*x = ListSchedulingUnitsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[169]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListSchedulingUnitsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListSchedulingUnitsResponse) ProtoMessage() {}
func (x *ListSchedulingUnitsResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[169]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListSchedulingUnitsResponse.ProtoReflect.Descriptor instead.
func (*ListSchedulingUnitsResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{169}
}
func (x *ListSchedulingUnitsResponse) GetSchedulingUnits() []*models.SchedulingUnit {
if x != nil {
return x.SchedulingUnits
}
return nil
}
func (x *ListSchedulingUnitsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type DeleteSchedulingUnitRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the SchedulingUnit to delete.
// Pattern is 'schedulingunits/{schedulingunit}'
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteSchedulingUnitRequest) Reset() {
*x = DeleteSchedulingUnitRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[170]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteSchedulingUnitRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteSchedulingUnitRequest) ProtoMessage() {}
func (x *DeleteSchedulingUnitRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[170]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteSchedulingUnitRequest.ProtoReflect.Descriptor instead.
func (*DeleteSchedulingUnitRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{170}
}
func (x *DeleteSchedulingUnitRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type UpdateConfigBundleRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The ConfigBundle to update.
// The ConfigBundle's ID composed of `${program}-${design}-${designconfig}` is
// used to identify the ConfigBundle to be updated.
// Pattern is 'config_bundles/{config_bundle}'
// Proto path:
// go.chromium.org/chromiumos/config/proto/chromiumos/config/payload/config_bundle.proto
ConfigBundle []byte `protobuf:"bytes,1,opt,name=config_bundle,json=configBundle,proto3" json:"config_bundle,omitempty"`
// OPTIONAL: The list of fields to be updated. If omitted, the whole
// config_bundle will be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// If set to true, and the ConfigBundle is not found, a new ConfigBundle will
// be created. In this situation, `update_mask` is ignored.
AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
}
func (x *UpdateConfigBundleRequest) Reset() {
*x = UpdateConfigBundleRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[171]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateConfigBundleRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateConfigBundleRequest) ProtoMessage() {}
func (x *UpdateConfigBundleRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[171]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateConfigBundleRequest.ProtoReflect.Descriptor instead.
func (*UpdateConfigBundleRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{171}
}
func (x *UpdateConfigBundleRequest) GetConfigBundle() []byte {
if x != nil {
return x.ConfigBundle
}
return nil
}
func (x *UpdateConfigBundleRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
func (x *UpdateConfigBundleRequest) GetAllowMissing() bool {
if x != nil {
return x.AllowMissing
}
return false
}
type UpdateConfigBundleResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Return value of UpdateConfigBundle.
// NOTE: bytes is returned to avoid import errors for protos in
// go.chromium.org. This should ideally be the ConfigBundle proto.
// Proto path:
// go.chromium.org/chromiumos/config/proto/chromiumos/config/payload/config_bundle.proto
ConfigBundle []byte `protobuf:"bytes,1,opt,name=config_bundle,json=configBundle,proto3" json:"config_bundle,omitempty"`
}
func (x *UpdateConfigBundleResponse) Reset() {
*x = UpdateConfigBundleResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[172]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateConfigBundleResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateConfigBundleResponse) ProtoMessage() {}
func (x *UpdateConfigBundleResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[172]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateConfigBundleResponse.ProtoReflect.Descriptor instead.
func (*UpdateConfigBundleResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{172}
}
func (x *UpdateConfigBundleResponse) GetConfigBundle() []byte {
if x != nil {
return x.ConfigBundle
}
return nil
}
type GetDeviceDataRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Machine/Asset ID.
DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
// Hostname of the DUT/MachineLSE.
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
}
func (x *GetDeviceDataRequest) Reset() {
*x = GetDeviceDataRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[173]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetDeviceDataRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDeviceDataRequest) ProtoMessage() {}
func (x *GetDeviceDataRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[173]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetDeviceDataRequest.ProtoReflect.Descriptor instead.
func (*GetDeviceDataRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{173}
}
func (x *GetDeviceDataRequest) GetDeviceId() string {
if x != nil {
return x.DeviceId
}
return ""
}
func (x *GetDeviceDataRequest) GetHostname() string {
if x != nil {
return x.Hostname
}
return ""
}
type GetDeviceDataResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Resource:
// *GetDeviceDataResponse_SchedulingUnit
// *GetDeviceDataResponse_ChromeOsDeviceData
// *GetDeviceDataResponse_AttachedDeviceData
// *GetDeviceDataResponse_BrowserDeviceData
Resource isGetDeviceDataResponse_Resource `protobuf_oneof:"resource"`
ResourceType GetDeviceDataResponse_ResourceType `protobuf:"varint,4,opt,name=resource_type,json=resourceType,proto3,enum=unifiedfleet.api.v1.rpc.GetDeviceDataResponse_ResourceType" json:"resource_type,omitempty"`
}
func (x *GetDeviceDataResponse) Reset() {
*x = GetDeviceDataResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[174]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetDeviceDataResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDeviceDataResponse) ProtoMessage() {}
func (x *GetDeviceDataResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[174]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetDeviceDataResponse.ProtoReflect.Descriptor instead.
func (*GetDeviceDataResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{174}
}
func (m *GetDeviceDataResponse) GetResource() isGetDeviceDataResponse_Resource {
if m != nil {
return m.Resource
}
return nil
}
func (x *GetDeviceDataResponse) GetSchedulingUnit() *models.SchedulingUnit {
if x, ok := x.GetResource().(*GetDeviceDataResponse_SchedulingUnit); ok {
return x.SchedulingUnit
}
return nil
}
func (x *GetDeviceDataResponse) GetChromeOsDeviceData() *models.ChromeOSDeviceData {
if x, ok := x.GetResource().(*GetDeviceDataResponse_ChromeOsDeviceData); ok {
return x.ChromeOsDeviceData
}
return nil
}
func (x *GetDeviceDataResponse) GetAttachedDeviceData() *AttachedDeviceData {
if x, ok := x.GetResource().(*GetDeviceDataResponse_AttachedDeviceData); ok {
return x.AttachedDeviceData
}
return nil
}
func (x *GetDeviceDataResponse) GetBrowserDeviceData() *BrowserDeviceData {
if x, ok := x.GetResource().(*GetDeviceDataResponse_BrowserDeviceData); ok {
return x.BrowserDeviceData
}
return nil
}
func (x *GetDeviceDataResponse) GetResourceType() GetDeviceDataResponse_ResourceType {
if x != nil {
return x.ResourceType
}
return GetDeviceDataResponse_RESOURCE_TYPE_UNSPECIFIED
}
type isGetDeviceDataResponse_Resource interface {
isGetDeviceDataResponse_Resource()
}
type GetDeviceDataResponse_SchedulingUnit struct {
SchedulingUnit *models.SchedulingUnit `protobuf:"bytes,1,opt,name=scheduling_unit,json=schedulingUnit,proto3,oneof"`
}
type GetDeviceDataResponse_ChromeOsDeviceData struct {
ChromeOsDeviceData *models.ChromeOSDeviceData `protobuf:"bytes,2,opt,name=chrome_os_device_data,json=chromeOsDeviceData,proto3,oneof"`
}
type GetDeviceDataResponse_AttachedDeviceData struct {
AttachedDeviceData *AttachedDeviceData `protobuf:"bytes,3,opt,name=attached_device_data,json=attachedDeviceData,proto3,oneof"`
}
type GetDeviceDataResponse_BrowserDeviceData struct {
BrowserDeviceData *BrowserDeviceData `protobuf:"bytes,5,opt,name=browser_device_data,json=browserDeviceData,proto3,oneof"`
}
func (*GetDeviceDataResponse_SchedulingUnit) isGetDeviceDataResponse_Resource() {}
func (*GetDeviceDataResponse_ChromeOsDeviceData) isGetDeviceDataResponse_Resource() {}
func (*GetDeviceDataResponse_AttachedDeviceData) isGetDeviceDataResponse_Resource() {}
func (*GetDeviceDataResponse_BrowserDeviceData) isGetDeviceDataResponse_Resource() {}
// Next Tag: 4
type AttachedDeviceData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
LabConfig *models.MachineLSE `protobuf:"bytes,1,opt,name=lab_config,json=labConfig,proto3" json:"lab_config,omitempty"`
Machine *models.Machine `protobuf:"bytes,2,opt,name=machine,proto3" json:"machine,omitempty"`
DutState *lab.DutState `protobuf:"bytes,3,opt,name=dut_state,json=dutState,proto3" json:"dut_state,omitempty"`
}
func (x *AttachedDeviceData) Reset() {
*x = AttachedDeviceData{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[175]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AttachedDeviceData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AttachedDeviceData) ProtoMessage() {}
func (x *AttachedDeviceData) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[175]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AttachedDeviceData.ProtoReflect.Descriptor instead.
func (*AttachedDeviceData) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{175}
}
func (x *AttachedDeviceData) GetLabConfig() *models.MachineLSE {
if x != nil {
return x.LabConfig
}
return nil
}
func (x *AttachedDeviceData) GetMachine() *models.Machine {
if x != nil {
return x.Machine
}
return nil
}
func (x *AttachedDeviceData) GetDutState() *lab.DutState {
if x != nil {
return x.DutState
}
return nil
}
// Next Tag: 2
type BrowserDeviceData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Host *models.MachineLSE `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Vm *models.VM `protobuf:"bytes,2,opt,name=vm,proto3" json:"vm,omitempty"`
}
func (x *BrowserDeviceData) Reset() {
*x = BrowserDeviceData{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[176]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BrowserDeviceData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BrowserDeviceData) ProtoMessage() {}
func (x *BrowserDeviceData) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[176]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BrowserDeviceData.ProtoReflect.Descriptor instead.
func (*BrowserDeviceData) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{176}
}
func (x *BrowserDeviceData) GetHost() *models.MachineLSE {
if x != nil {
return x.Host
}
return nil
}
func (x *BrowserDeviceData) GetVm() *models.VM {
if x != nil {
return x.Vm
}
return nil
}
type CheckFleetTestsPolicyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Test parameters to validate to see if the test is a valid test.
TestName string `protobuf:"bytes,1,opt,name=test_name,json=testName,proto3" json:"test_name,omitempty"`
Board string `protobuf:"bytes,2,opt,name=board,proto3" json:"board,omitempty"`
Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
}
func (x *CheckFleetTestsPolicyRequest) Reset() {
*x = CheckFleetTestsPolicyRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[177]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CheckFleetTestsPolicyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CheckFleetTestsPolicyRequest) ProtoMessage() {}
func (x *CheckFleetTestsPolicyRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[177]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CheckFleetTestsPolicyRequest.ProtoReflect.Descriptor instead.
func (*CheckFleetTestsPolicyRequest) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{177}
}
func (x *CheckFleetTestsPolicyRequest) GetTestName() string {
if x != nil {
return x.TestName
}
return ""
}
func (x *CheckFleetTestsPolicyRequest) GetBoard() string {
if x != nil {
return x.Board
}
return ""
}
func (x *CheckFleetTestsPolicyRequest) GetModel() string {
if x != nil {
return x.Model
}
return ""
}
func (x *CheckFleetTestsPolicyRequest) GetImage() string {
if x != nil {
return x.Image
}
return ""
}
type TestStatus struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// TestStatus Code will provide information about the validity or invalidity of the test
Code TestStatus_Code `protobuf:"varint,1,opt,name=code,proto3,enum=unifiedfleet.api.v1.rpc.TestStatus_Code" json:"code,omitempty"`
// message contains a description of the Status
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}
func (x *TestStatus) Reset() {
*x = TestStatus{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[178]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestStatus) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestStatus) ProtoMessage() {}
func (x *TestStatus) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[178]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestStatus.ProtoReflect.Descriptor instead.
func (*TestStatus) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{178}
}
func (x *TestStatus) GetCode() TestStatus_Code {
if x != nil {
return x.Code
}
return TestStatus_UNSPECIFIED
}
func (x *TestStatus) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type CheckFleetTestsPolicyResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Indicates whether the test parameters are valid for a test.
//
// Deprecated: Do not use.
IsTestValid bool `protobuf:"varint,1,opt,name=is_test_valid,json=isTestValid,proto3" json:"is_test_valid,omitempty"`
// Status of the test with a code and an optional message
TestStatus *TestStatus `protobuf:"bytes,2,opt,name=testStatus,proto3" json:"testStatus,omitempty"`
}
func (x *CheckFleetTestsPolicyResponse) Reset() {
*x = CheckFleetTestsPolicyResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[179]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CheckFleetTestsPolicyResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CheckFleetTestsPolicyResponse) ProtoMessage() {}
func (x *CheckFleetTestsPolicyResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[179]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CheckFleetTestsPolicyResponse.ProtoReflect.Descriptor instead.
func (*CheckFleetTestsPolicyResponse) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{179}
}
// Deprecated: Do not use.
func (x *CheckFleetTestsPolicyResponse) GetIsTestValid() bool {
if x != nil {
return x.IsTestValid
}
return false
}
func (x *CheckFleetTestsPolicyResponse) GetTestStatus() *TestStatus {
if x != nil {
return x.TestStatus
}
return nil
}
type UpdateDeviceRecoveryDataRequest_DutData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SerialNumber string `protobuf:"bytes,1,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
HwID string `protobuf:"bytes,2,opt,name=hwID,proto3" json:"hwID,omitempty"`
DeviceSku string `protobuf:"bytes,3,opt,name=device_sku,json=deviceSku,proto3" json:"device_sku,omitempty"`
}
func (x *UpdateDeviceRecoveryDataRequest_DutData) Reset() {
*x = UpdateDeviceRecoveryDataRequest_DutData{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[181]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateDeviceRecoveryDataRequest_DutData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDeviceRecoveryDataRequest_DutData) ProtoMessage() {}
func (x *UpdateDeviceRecoveryDataRequest_DutData) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[181]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateDeviceRecoveryDataRequest_DutData.ProtoReflect.Descriptor instead.
func (*UpdateDeviceRecoveryDataRequest_DutData) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{119, 0}
}
func (x *UpdateDeviceRecoveryDataRequest_DutData) GetSerialNumber() string {
if x != nil {
return x.SerialNumber
}
return ""
}
func (x *UpdateDeviceRecoveryDataRequest_DutData) GetHwID() string {
if x != nil {
return x.HwID
}
return ""
}
func (x *UpdateDeviceRecoveryDataRequest_DutData) GetDeviceSku() string {
if x != nil {
return x.DeviceSku
}
return ""
}
type UpdateDeviceRecoveryDataRequest_WifiRouter struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
State lab.PeripheralState `protobuf:"varint,2,opt,name=state,proto3,enum=unifiedfleet.api.v1.models.chromeos.lab.PeripheralState" json:"state,omitempty"`
}
func (x *UpdateDeviceRecoveryDataRequest_WifiRouter) Reset() {
*x = UpdateDeviceRecoveryDataRequest_WifiRouter{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[182]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateDeviceRecoveryDataRequest_WifiRouter) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDeviceRecoveryDataRequest_WifiRouter) ProtoMessage() {}
func (x *UpdateDeviceRecoveryDataRequest_WifiRouter) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[182]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateDeviceRecoveryDataRequest_WifiRouter.ProtoReflect.Descriptor instead.
func (*UpdateDeviceRecoveryDataRequest_WifiRouter) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{119, 1}
}
func (x *UpdateDeviceRecoveryDataRequest_WifiRouter) GetHostname() string {
if x != nil {
return x.Hostname
}
return ""
}
func (x *UpdateDeviceRecoveryDataRequest_WifiRouter) GetState() lab.PeripheralState {
if x != nil {
return x.State
}
return lab.PeripheralState(0)
}
type UpdateDeviceRecoveryDataRequest_BluetoothPeer struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
State lab.PeripheralState `protobuf:"varint,2,opt,name=state,proto3,enum=unifiedfleet.api.v1.models.chromeos.lab.PeripheralState" json:"state,omitempty"`
}
func (x *UpdateDeviceRecoveryDataRequest_BluetoothPeer) Reset() {
*x = UpdateDeviceRecoveryDataRequest_BluetoothPeer{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[183]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateDeviceRecoveryDataRequest_BluetoothPeer) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDeviceRecoveryDataRequest_BluetoothPeer) ProtoMessage() {}
func (x *UpdateDeviceRecoveryDataRequest_BluetoothPeer) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[183]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateDeviceRecoveryDataRequest_BluetoothPeer.ProtoReflect.Descriptor instead.
func (*UpdateDeviceRecoveryDataRequest_BluetoothPeer) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{119, 2}
}
func (x *UpdateDeviceRecoveryDataRequest_BluetoothPeer) GetHostname() string {
if x != nil {
return x.Hostname
}
return ""
}
func (x *UpdateDeviceRecoveryDataRequest_BluetoothPeer) GetState() lab.PeripheralState {
if x != nil {
return x.State
}
return lab.PeripheralState(0)
}
type UpdateDeviceRecoveryDataRequest_LabData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServoType string `protobuf:"bytes,1,opt,name=servo_type,json=servoType,proto3" json:"servo_type,omitempty"`
SmartUsbhub bool `protobuf:"varint,2,opt,name=smart_usbhub,json=smartUsbhub,proto3" json:"smart_usbhub,omitempty"`
ServoTopology *lab.ServoTopology `protobuf:"bytes,3,opt,name=servo_topology,json=servoTopology,proto3" json:"servo_topology,omitempty"`
ServoComponent string `protobuf:"bytes,4,opt,name=servo_component,json=servoComponent,proto3" json:"servo_component,omitempty"`
WifiRouters []*UpdateDeviceRecoveryDataRequest_WifiRouter `protobuf:"bytes,5,rep,name=wifi_routers,json=wifiRouters,proto3" json:"wifi_routers,omitempty"`
BlueoothPeers []*UpdateDeviceRecoveryDataRequest_BluetoothPeer `protobuf:"bytes,6,rep,name=blueooth_peers,json=blueoothPeers,proto3" json:"blueooth_peers,omitempty"`
}
func (x *UpdateDeviceRecoveryDataRequest_LabData) Reset() {
*x = UpdateDeviceRecoveryDataRequest_LabData{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[184]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateDeviceRecoveryDataRequest_LabData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDeviceRecoveryDataRequest_LabData) ProtoMessage() {}
func (x *UpdateDeviceRecoveryDataRequest_LabData) ProtoReflect() protoreflect.Message {
mi := &file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[184]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateDeviceRecoveryDataRequest_LabData.ProtoReflect.Descriptor instead.
func (*UpdateDeviceRecoveryDataRequest_LabData) Descriptor() ([]byte, []int) {
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP(), []int{119, 3}
}
func (x *UpdateDeviceRecoveryDataRequest_LabData) GetServoType() string {
if x != nil {
return x.ServoType
}
return ""
}
func (x *UpdateDeviceRecoveryDataRequest_LabData) GetSmartUsbhub() bool {
if x != nil {
return x.SmartUsbhub
}
return false
}
func (x *UpdateDeviceRecoveryDataRequest_LabData) GetServoTopology() *lab.ServoTopology {
if x != nil {
return x.ServoTopology
}
return nil
}
func (x *UpdateDeviceRecoveryDataRequest_LabData) GetServoComponent() string {
if x != nil {
return x.ServoComponent
}
return ""
}
func (x *UpdateDeviceRecoveryDataRequest_LabData) GetWifiRouters() []*UpdateDeviceRecoveryDataRequest_WifiRouter {
if x != nil {
return x.WifiRouters
}
return nil
}
func (x *UpdateDeviceRecoveryDataRequest_LabData) GetBlueoothPeers() []*UpdateDeviceRecoveryDataRequest_BluetoothPeer {
if x != nil {
return x.BlueoothPeers
}
return nil
}
var File_infra_unifiedfleet_api_v1_rpc_fleet_proto protoreflect.FileDescriptor
var file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDesc = []byte{
0x0a, 0x29, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x70, 0x63, 0x2f,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74,
0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69,
0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x36, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x63, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67,
0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b,
0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2f, 0x72, 0x61, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x36, 0x69, 0x6e, 0x66,
0x72, 0x61, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f,
0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x63, 0x68,
0x72, 0x6f, 0x6d, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x6c, 0x73,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x61, 0x63, 0x6b, 0x5f, 0x6c,
0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69,
0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f,
0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69,
0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x70, 0x65, 0x72, 0x69, 0x70,
0x68, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x69, 0x6e,
0x66, 0x72, 0x61, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6c,
0x73, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x2c, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x3d, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x73, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2f, 0x6c, 0x61, 0x62, 0x2f,
0x64, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x39, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x73, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2f, 0x6c, 0x61, 0x62, 0x2f, 0x73,
0x65, 0x72, 0x76, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3d, 0x69, 0x6e, 0x66, 0x72,
0x61, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x61, 0x63,
0x68, 0x69, 0x6e, 0x65, 0x5f, 0x6c, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,
0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x36, 0x69, 0x6e, 0x66, 0x72, 0x61,
0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65,
0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0xcd, 0x01, 0x0a, 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6b, 0x0a, 0x16, 0x6d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x5f, 0x6c, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44,
0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14,
0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x73, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79,
0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,
0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c,
0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73,
0x6b, 0x22, 0x9d, 0x01, 0x0a, 0x26, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f,
0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06,
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61,
0x72, 0x65, 0x6e, 0x74, 0x12, 0x5b, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73,
0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53,
0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x73, 0x22, 0x93, 0x01, 0x0a, 0x27, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f,
0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a,
0x17, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x6c, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x70,
0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,
0x52, 0x15, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x73, 0x65, 0x44, 0x65, 0x70, 0x6c,
0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x73, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x4d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65,
0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x3d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x37, 0x0a,
0x35, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73,
0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c,
0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x54, 0x0a, 0x24,
0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c,
0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05,
0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d,
0x65, 0x73, 0x22, 0x91, 0x01, 0x0a, 0x25, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,
0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x17,
0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x6c, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x70, 0x6c,
0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52,
0x15, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x73, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f,
0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x92, 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,
0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70,
0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,
0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65,
0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61,
0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,
0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,
0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28,
0x08, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xb5, 0x01, 0x0a, 0x21,
0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65,
0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x68, 0x0a, 0x17, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x6c, 0x73, 0x65,
0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x30, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79,
0x6d, 0x65, 0x6e, 0x74, 0x52, 0x15, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x73, 0x65,
0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,
0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x22, 0xaa, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x4d,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x02, 0x76, 0x6d, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x56, 0x4d, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x02, 0x76, 0x6d, 0x12, 0x4d, 0x0a, 0x0e,
0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4e,
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x65,
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x02, 0x10,
0x03, 0x52, 0x0d, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x5f, 0x69, 0x64,
0x22, 0xf4, 0x01, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x4d, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x02, 0x76, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x56, 0x4d,
0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x02, 0x76, 0x6d, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64,
0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,
0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x4d, 0x0a, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
0x6b, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x05, 0x10,
0x06, 0x52, 0x0d, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x5f, 0x69, 0x64,
0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x4f, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x56, 0x4d,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x25, 0x0a, 0x23, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73,
0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x56, 0x4d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x52, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, 0xfa, 0x41,
0x25, 0x0a, 0x23, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x56, 0x4d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x80, 0x01, 0x0a,
0x0e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66,
0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c,
0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18,
0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22,
0x6b, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x30, 0x0a, 0x03, 0x76, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x1e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x56, 0x4d, 0x52,
0x03, 0x76, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67,
0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e,
0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x37, 0x0a, 0x14,
0x47, 0x65, 0x74, 0x44, 0x48, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x68, 0x6f, 0x73,
0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x57, 0x0a, 0x0e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50,
0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43, 0x68, 0x72, 0x6f, 0x6d,
0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e,
0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x2b,
0x0a, 0x11, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x68, 0x72, 0x6f, 0x6d,
0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x64, 0x22, 0xb3, 0x01, 0x0a, 0x1b,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74,
0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x57, 0x0a, 0x0e, 0x63,
0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42,
0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74,
0x66, 0x6f, 0x72, 0x6d, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,
0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c,
0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73,
0x6b, 0x22, 0x67, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c,
0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02,
0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f,
0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74,
0x66, 0x6f, 0x72, 0x6d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x1a, 0x4c,
0x69, 0x73, 0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67,
0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61,
0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a,
0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x9b, 0x01, 0x0a, 0x1b, 0x4c, 0x69,
0x73, 0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x0f, 0x63, 0x68, 0x72,
0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x0f,
0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x12,
0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61,
0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6a, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74,
0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43,
0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x22, 0xce, 0x01, 0x0a, 0x1c, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x68,
0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x11, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f,
0x64, 0x62, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x44, 0x42, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x61, 0x63,
0x68, 0x69, 0x6e, 0x65, 0x44, 0x62, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x0d,
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f,
0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f,
0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x22, 0xad, 0x01, 0x0a, 0x1d, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x43,
0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x70, 0x61, 0x73, 0x73, 0x65, 0x64,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52,
0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x70, 0x61, 0x73, 0x73, 0x65, 0x64, 0x12, 0x45, 0x0a,
0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c,
0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x66, 0x61,
0x69, 0x6c, 0x65, 0x64, 0x22, 0x7b, 0x0a, 0x14, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c,
0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x46, 0x0a, 0x08,
0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43, 0x68, 0x72, 0x6f,
0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74,
0x66, 0x6f, 0x72, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73,
0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73,
0x67, 0x22, 0xc9, 0x01, 0x0a, 0x17, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x53, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a,
0x11, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x62, 0x5f, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x42, 0x53, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x62, 0x53,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x87, 0x01,
0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f,
0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65,
0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b,
0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b,
0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x86, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74,
0x4f, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x6f, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x4f, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6f,
0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74,
0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x22, 0xc1, 0x01, 0x0a, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x66, 0x0a, 0x13, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74,
0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a,
0x16, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x6d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79,
0x70, 0x65, 0x49, 0x64, 0x22, 0xc7, 0x01, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79,
0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x66, 0x0a, 0x13, 0x6d, 0x61, 0x63,
0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x6d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70,
0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61,
0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x71,
0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x50, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x3c, 0xe0,
0x41, 0x02, 0xfa, 0x41, 0x36, 0x0a, 0x34, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73,
0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c,
0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x22, 0x91, 0x01, 0x0a, 0x1f, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69,
0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69,
0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79,
0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x79,
0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xaf, 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70,
0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x14, 0x6d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70,
0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x14, 0x6d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12,
0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61,
0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x74, 0x0a, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x3c, 0xe0, 0x41, 0x02, 0xfa, 0x41,
0x36, 0x0a, 0x34, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xaf, 0x01,
0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x5d, 0x0a, 0x10, 0x72, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74,
0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x72, 0x61,
0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2f,
0x0a, 0x13, 0x72, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79,
0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, 0x61, 0x63,
0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x49, 0x64, 0x22,
0xbb, 0x01, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53,
0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x5d, 0x0a, 0x10, 0x72, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74,
0x6f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10,
0x72, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65,
0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73,
0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x6b, 0x0a,
0x1a, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x39, 0xe0, 0x41, 0x02, 0xfa, 0x41,
0x33, 0x0a, 0x31, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x1c, 0x4c,
0x69, 0x73, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74,
0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70,
0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,
0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65,
0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61,
0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,
0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,
0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28,
0x08, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xa3, 0x01, 0x0a, 0x1d,
0x4c, 0x69, 0x73, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a,
0x11, 0x72, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70,
0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x11, 0x72, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78,
0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x22, 0x6e, 0x0a, 0x1d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c,
0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x4d, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x42, 0x39, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x33, 0x0a, 0x31, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61,
0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x61, 0x63, 0x6b, 0x4c,
0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x22, 0x60, 0x0a, 0x1a, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x42, 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x07,
0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73,
0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x59, 0x0a,
0x11, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61,
0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x99, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73,
0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a,
0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06,
0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69,
0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79,
0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79,
0x12, 0x12, 0x0a, 0x04, 0x66, 0x75, 0x6c, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04,
0x66, 0x75, 0x6c, 0x6c, 0x22, 0x7f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08,
0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x52, 0x08, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x26, 0x0a,
0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5c, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02,
0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f,
0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x22, 0xc7, 0x01, 0x0a, 0x15, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a,
0x11, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x62, 0x5f, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x42, 0x53, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x62, 0x53,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xa9, 0x01,
0x0a, 0x14, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74,
0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x08,
0x6e, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30,
0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70,
0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x52, 0x07, 0x6e, 0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x25, 0x0a, 0x0f, 0x4d, 0x61, 0x63,
0x68, 0x69, 0x6e, 0x65, 0x44, 0x42, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04,
0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74,
0x22, 0x5b, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x12, 0x2e, 0x0a, 0x13, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63,
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65,
0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x67, 0x0a,
0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x39, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61,
0x63, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x72, 0x61, 0x63, 0x6b, 0x12, 0x17, 0x0a,
0x07, 0x72, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
0x72, 0x61, 0x63, 0x6b, 0x49, 0x64, 0x22, 0x8b, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x52, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x04,
0x72, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x42, 0x03, 0xe0, 0x41,
0x02, 0x52, 0x04, 0x72, 0x61, 0x63, 0x6b, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74,
0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46,
0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
0x4d, 0x61, 0x73, 0x6b, 0x22, 0x53, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74,
0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52,
0x61, 0x63, 0x6b, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x10, 0x4c, 0x69,
0x73, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b,
0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69,
0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74,
0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04,
0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x12,
0x0a, 0x04, 0x66, 0x75, 0x6c, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x66, 0x75,
0x6c, 0x6c, 0x22, 0x73, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x72, 0x61, 0x63, 0x6b, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x52, 0x05, 0x72, 0x61, 0x63, 0x6b, 0x73, 0x12,
0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61,
0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x56, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x52, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa,
0x41, 0x27, 0x0a, 0x25, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x61, 0x63, 0x6b, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
0xea, 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x0a, 0x6d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63,
0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x6d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0c, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x49, 0x64, 0x12, 0x4d, 0x0a,
0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e,
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x03,
0x10, 0x04, 0x52, 0x08, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x9b, 0x03, 0x0a,
0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53,
0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x0a, 0x6d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x4c, 0x53, 0x45, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x6d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65,
0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61,
0x73, 0x6b, 0x12, 0x6d, 0x0a, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6f, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4e, 0x65,
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x1a, 0x69, 0x0a, 0x13, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3c, 0x0a, 0x05, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x70, 0x63, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x03,
0x10, 0x04, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x52, 0x08, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x22, 0x5f, 0x0a, 0x14, 0x47, 0x65,
0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x47, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x42, 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61,
0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9c, 0x01, 0x0a, 0x16,
0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,
0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,
0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65,
0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65,
0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x75, 0x6c, 0x6c, 0x18, 0x05,
0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x66, 0x75, 0x6c, 0x6c, 0x22, 0x8b, 0x01, 0x0a, 0x17, 0x4c,
0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x4c, 0x53, 0x45, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x4c, 0x53, 0x45, 0x52, 0x0b, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x73,
0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,
0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50,
0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x62, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e,
0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb2, 0x01, 0x0a,
0x17, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53,
0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79,
0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x12, 0x4e, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65,
0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x4e, 0x61, 0x6d,
0x65, 0x22, 0xca, 0x01, 0x0a, 0x18, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x56,
0x0a, 0x11, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x62, 0x5f, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x70, 0x63, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x42, 0x53, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x62,
0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xcc,
0x01, 0x0a, 0x1a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x53, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a,
0x11, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x62, 0x5f, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x42, 0x53, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x62, 0x53,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x79, 0x0a,
0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x07, 0x72, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x42, 0x03, 0xe0, 0x41, 0x02,
0x52, 0x07, 0x72, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x61, 0x63,
0x6b, 0x4c, 0x53, 0x45, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72,
0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x49, 0x64, 0x22, 0x97, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x42, 0x0a, 0x07, 0x72, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x72, 0x61,
0x63, 0x6b, 0x4c, 0x53, 0x45, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65,
0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61,
0x73, 0x6b, 0x22, 0x59, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73,
0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x85, 0x01,
0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69,
0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69,
0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79,
0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x79,
0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x7f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x61, 0x63,
0x6b, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a,
0x08, 0x72, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63,
0x6b, 0x4c, 0x53, 0x45, 0x52, 0x08, 0x72, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x73, 0x12, 0x26,
0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67,
0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5c, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44,
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41,
0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70,
0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x52, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x22, 0x70, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x69,
0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x03, 0x6e, 0x69, 0x63, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x73, 0x2e, 0x4e, 0x69, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x6e, 0x69, 0x63,
0x12, 0x15, 0x0a, 0x06, 0x6e, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x05, 0x6e, 0x69, 0x63, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x52, 0x07, 0x6d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4e, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x03, 0x6e,
0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4e, 0x69, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03,
0x6e, 0x69, 0x63, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,
0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,
0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b,
0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x22,
0x51, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4e, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x40, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c,
0xe0, 0x41, 0x02, 0xfa, 0x41, 0x26, 0x0a, 0x24, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70,
0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4e, 0x69, 0x63, 0x52, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x22, 0x81, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x69, 0x63, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,
0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,
0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65,
0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65,
0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x6f, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x69,
0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x6e, 0x69,
0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4e, 0x69, 0x63, 0x52, 0x04, 0x6e, 0x69, 0x63, 0x73, 0x12,
0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61,
0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x54, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x4e, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41, 0x02, 0xfa, 0x41,
0x26, 0x0a, 0x24, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x4e, 0x69, 0x63, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc3, 0x01,
0x0a, 0x11, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x11, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x64,
0x62, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x44, 0x42, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x44, 0x62, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x63,
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4e, 0x69,
0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x26, 0x0a, 0x24,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79,
0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x4e, 0x69, 0x63, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x08, 0x6e, 0x65,
0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41,
0x02, 0xfa, 0x41, 0x26, 0x0a, 0x24, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70,
0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4e, 0x69, 0x63, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x4e,
0x61, 0x6d, 0x65, 0x22, 0xa6, 0x01, 0x0a, 0x13, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x77,
0x69, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2f, 0xe0, 0x41, 0x02, 0xfa, 0x41,
0x29, 0x0a, 0x27, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x12, 0x4a, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x42, 0x2f, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x29, 0x0a, 0x27, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x77, 0x69,
0x74, 0x63, 0x68, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xca, 0x01, 0x0a,
0x18, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65,
0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x11, 0x6d, 0x61, 0x63,
0x68, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x62, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x42, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00,
0x52, 0x0f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x62, 0x53, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48,
0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42,
0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x6d, 0x0a, 0x10, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x4b, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a,
0x03, 0x4b, 0x56, 0x4d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4b, 0x56, 0x4d, 0x42, 0x03, 0xe0, 0x41, 0x02,
0x52, 0x03, 0x4b, 0x56, 0x4d, 0x12, 0x15, 0x0a, 0x06, 0x4b, 0x56, 0x4d, 0x5f, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4b, 0x56, 0x4d, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x03,
0x10, 0x04, 0x52, 0x04, 0x72, 0x61, 0x63, 0x6b, 0x22, 0xe2, 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4b, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a,
0x03, 0x4b, 0x56, 0x4d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4b, 0x56, 0x4d, 0x42, 0x03, 0xe0, 0x41, 0x02,
0x52, 0x03, 0x4b, 0x56, 0x4d, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65,
0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61,
0x73, 0x6b, 0x12, 0x4d, 0x0a, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6f, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x52, 0x04, 0x72, 0x61, 0x63, 0x6b, 0x22, 0x51, 0x0a,
0x0d, 0x47, 0x65, 0x74, 0x4b, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40,
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41,
0x02, 0xfa, 0x41, 0x26, 0x0a, 0x24, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70,
0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4b, 0x56, 0x4d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x22, 0x81, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73,
0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73,
0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x6f, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x56, 0x4d, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x4b, 0x56, 0x4d, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x4b, 0x56, 0x4d, 0x52, 0x04, 0x4b, 0x56, 0x4d, 0x73, 0x12, 0x26, 0x0a,
0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x54, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b,
0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x26, 0x0a,
0x24, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73,
0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x4b, 0x56, 0x4d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x61, 0x0a, 0x10, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x50, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x36, 0x0a, 0x03, 0x52, 0x50, 0x4d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x50, 0x4d, 0x42, 0x03, 0xe0,
0x41, 0x02, 0x52, 0x03, 0x52, 0x50, 0x4d, 0x12, 0x15, 0x0a, 0x06, 0x52, 0x50, 0x4d, 0x5f, 0x69,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x52, 0x50, 0x4d, 0x49, 0x64, 0x22, 0xd6,
0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x50, 0x4d, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x03, 0x52, 0x50, 0x4d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x50,
0x4d, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x52, 0x50, 0x4d, 0x12, 0x3b, 0x0a, 0x0b, 0x75,
0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70,
0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x4d, 0x0a, 0x0e, 0x6e, 0x65, 0x74, 0x77,
0x6f, 0x72, 0x6b, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f,
0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x51, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x52, 0x50,
0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x26, 0x0a, 0x24,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79,
0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x52, 0x50, 0x4d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x81, 0x01, 0x0a, 0x0f, 0x4c,
0x69, 0x73, 0x74, 0x52, 0x50, 0x4d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b,
0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69,
0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74,
0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04,
0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x6f,
0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x50, 0x4d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x52, 0x50, 0x4d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x50,
0x4d, 0x52, 0x04, 0x52, 0x50, 0x4d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f,
0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22,
0x54, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x50, 0x4d, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x42, 0x2c, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x26, 0x0a, 0x24, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e,
0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x50, 0x4d, 0x52,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc5, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x44, 0x72, 0x61, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x04, 0x64,
0x72, 0x61, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x44, 0x72, 0x61, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02,
0x52, 0x04, 0x64, 0x72, 0x61, 0x63, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x72, 0x61, 0x63, 0x5f, 0x69,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x72, 0x61, 0x63, 0x49, 0x64, 0x12,
0x4d, 0x0a, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52,
0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x04,
0x08, 0x03, 0x10, 0x04, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x22, 0xe9, 0x01,
0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x72, 0x61, 0x63, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x04, 0x64, 0x72, 0x61, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x44,
0x72, 0x61, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x64, 0x72, 0x61, 0x63, 0x12, 0x3b,
0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52,
0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x4d, 0x0a, 0x0e, 0x6e,
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4e, 0x65,
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x65, 0x74,
0x77, 0x6f, 0x72, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04,
0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x22, 0x53, 0x0a, 0x0e, 0x47, 0x65, 0x74,
0x44, 0x72, 0x61, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41,
0x27, 0x0a, 0x25, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x72, 0x61, 0x63, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x82,
0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x72, 0x61, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f,
0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f,
0x6e, 0x6c, 0x79, 0x22, 0x73, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x72, 0x61, 0x63, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x64, 0x72, 0x61, 0x63,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x73, 0x2e, 0x44, 0x72, 0x61, 0x63, 0x52, 0x05, 0x64, 0x72, 0x61, 0x63, 0x73,
0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,
0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50,
0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x56, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x44, 0x72, 0x61, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02,
0xfa, 0x41, 0x27, 0x0a, 0x25, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f,
0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x72, 0x61, 0x63, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x22, 0x7f, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x77, 0x69, 0x74, 0x63,
0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x73, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x42, 0x03, 0xe0, 0x41, 0x02,
0x52, 0x06, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x77, 0x69, 0x74,
0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x77, 0x69,
0x74, 0x63, 0x68, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x52, 0x04, 0x72, 0x61, 0x63,
0x6b, 0x22, 0x9f, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74,
0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x77, 0x69,
0x74, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x42, 0x03, 0xe0,
0x41, 0x02, 0x52, 0x06, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70,
0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x52, 0x04, 0x72,
0x61, 0x63, 0x6b, 0x22, 0x57, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2f, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x29, 0x0a, 0x27, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73,
0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x85, 0x01, 0x0a,
0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73,
0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73,
0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x7e, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x69, 0x74,
0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x08,
0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x53, 0x77, 0x69, 0x74,
0x63, 0x68, 0x52, 0x08, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f,
0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5a, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x77,
0x69, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2f, 0xe0, 0x41, 0x02, 0xfa, 0x41,
0x29, 0x0a, 0x27, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x22, 0x67, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x56, 0x6c, 0x61, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x76, 0x6c, 0x61, 0x6e,
0x12, 0x17, 0x0a, 0x07, 0x76, 0x6c, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x76, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x98, 0x01, 0x0a, 0x11, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x39, 0x0a, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x56, 0x6c, 0x61, 0x6e, 0x42,
0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70,
0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x52, 0x05, 0x73,
0x74, 0x61, 0x74, 0x65, 0x22, 0x53, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74,
0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x56,
0x6c, 0x61, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x82, 0x01, 0x0a, 0x10, 0x4c, 0x69,
0x73, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b,
0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69,
0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74,
0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04,
0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x73,
0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x56, 0x6c, 0x61, 0x6e, 0x52, 0x05, 0x76, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,
0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x22, 0x56, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6c, 0x61,
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79,
0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x56, 0x6c, 0x61, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc4, 0x01, 0x0a, 0x12,
0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x56, 0x0a, 0x11, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x62,
0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44,
0x42, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x44, 0x62, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x63, 0x6f,
0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x25, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x14, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x53, 0x56,
0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x11, 0x6d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x62, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x42, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x48, 0x00, 0x52, 0x0f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x44, 0x62, 0x53, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xc5, 0x01, 0x0a, 0x13,
0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x11, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x64,
0x62, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x44, 0x42, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x44, 0x62, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x63,
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x22, 0x3b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
0x41, 0x02, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65,
0x22, 0x5e, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65,
0x6f, 0x73, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x10, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x44, 0x65, 0x76, 0x69,
0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65,
0x22, 0x86, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67,
0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61,
0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a,
0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x91, 0x01, 0x0a, 0x15, 0x4c, 0x69,
0x73, 0x74, 0x44, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0a, 0x64, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x6c, 0x61,
0x62, 0x2e, 0x44, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x09, 0x64, 0x75, 0x74, 0x53,
0x74, 0x61, 0x74, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61,
0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x95, 0x01,
0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x03, 0xe0, 0x41,
0x02, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,
0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa9, 0x02, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x44, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x53, 0x0a, 0x09, 0x64, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x6c, 0x61, 0x62, 0x2e, 0x44, 0x75, 0x74,
0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x64, 0x75, 0x74, 0x53,
0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,
0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c,
0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73,
0x6b, 0x12, 0x3e, 0x0a, 0x08, 0x64, 0x75, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x44, 0x75, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x07, 0x64, 0x75, 0x74, 0x4d, 0x65, 0x74,
0x61, 0x12, 0x3e, 0x0a, 0x08, 0x6c, 0x61, 0x62, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x4c, 0x61, 0x62, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x07, 0x6c, 0x61, 0x62, 0x4d, 0x65, 0x74,
0x61, 0x22, 0xd5, 0x09, 0x0a, 0x1f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69,
0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x12, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f,
0x73, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73,
0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74,
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42,
0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74,
0x61, 0x74, 0x65, 0x12, 0x53, 0x0a, 0x09, 0x64, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65,
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x6c, 0x61, 0x62,
0x2e, 0x44, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08,
0x64, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x5b, 0x0a, 0x08, 0x64, 0x75, 0x74, 0x5f,
0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63,
0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x07, 0x64, 0x75,
0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x5b, 0x0a, 0x08, 0x6c, 0x61, 0x62, 0x5f, 0x64, 0x61, 0x74,
0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65,
0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x2e, 0x4c, 0x61, 0x62, 0x44, 0x61, 0x74, 0x61, 0x52, 0x07, 0x6c, 0x61, 0x62, 0x44, 0x61,
0x74, 0x61, 0x1a, 0x61, 0x0a, 0x07, 0x44, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a,
0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x62,
0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x77, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x68, 0x77, 0x49, 0x44, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
0x5f, 0x73, 0x6b, 0x75, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x76, 0x69,
0x63, 0x65, 0x53, 0x6b, 0x75, 0x1a, 0x78, 0x0a, 0x0a, 0x57, 0x69, 0x66, 0x69, 0x52, 0x6f, 0x75,
0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12,
0x4e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x68, 0x72, 0x6f,
0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x6c, 0x61, 0x62, 0x2e, 0x50, 0x65, 0x72, 0x69, 0x70, 0x68, 0x65,
0x72, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x1a,
0x7b, 0x0a, 0x0d, 0x42, 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x50, 0x65, 0x65, 0x72,
0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x05,
0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f,
0x73, 0x2e, 0x6c, 0x61, 0x62, 0x2e, 0x50, 0x65, 0x72, 0x69, 0x70, 0x68, 0x65, 0x72, 0x61, 0x6c,
0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x1a, 0xaa, 0x03, 0x0a,
0x07, 0x4c, 0x61, 0x62, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76,
0x6f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65,
0x72, 0x76, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6d, 0x61, 0x72, 0x74,
0x5f, 0x75, 0x73, 0x62, 0x68, 0x75, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73,
0x6d, 0x61, 0x72, 0x74, 0x55, 0x73, 0x62, 0x68, 0x75, 0x62, 0x12, 0x5d, 0x0a, 0x0e, 0x73, 0x65,
0x72, 0x76, 0x6f, 0x5f, 0x74, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x36, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x6c, 0x61, 0x62, 0x2e, 0x53, 0x65, 0x72,
0x76, 0x6f, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76,
0x6f, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72,
0x76, 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x6f, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65,
0x6e, 0x74, 0x12, 0x66, 0x0a, 0x0c, 0x77, 0x69, 0x66, 0x69, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65,
0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52,
0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x2e, 0x57, 0x69, 0x66, 0x69, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x77,
0x69, 0x66, 0x69, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x73, 0x12, 0x6d, 0x0a, 0x0e, 0x62, 0x6c,
0x75, 0x65, 0x6f, 0x6f, 0x74, 0x68, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x46, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72,
0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x6c, 0x75,
0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x50, 0x65, 0x65, 0x72, 0x52, 0x0d, 0x62, 0x6c, 0x75, 0x65,
0x6f, 0x6f, 0x74, 0x68, 0x50, 0x65, 0x65, 0x72, 0x73, 0x22, 0x22, 0x0a, 0x20, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72,
0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x0a,
0x17, 0x52, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x6b,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x72,
0x61, 0x63, 0x6b, 0x22, 0xb4, 0x01, 0x0a, 0x0d, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x42, 0x2a, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61,
0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x56, 0x6c, 0x61, 0x6e, 0x52,
0x04, 0x76, 0x6c, 0x61, 0x6e, 0x12, 0x3b, 0x0a, 0x03, 0x6e, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x42, 0x29, 0xfa, 0x41, 0x26, 0x0a, 0x24, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70,
0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4e, 0x69, 0x63, 0x52, 0x03, 0x6e,
0x69, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01,
0x28, 0x08, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70,
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x52, 0x0a, 0x12, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x3c, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x21, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x61, 0x73, 0x73,
0x65, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x22, 0x8f,
0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x73, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x61, 0x73,
0x73, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,
0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,
0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b,
0x22, 0x55, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e,
0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x73, 0x73, 0x65,
0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74,
0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a,
0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61,
0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c,
0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,
0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20,
0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x77, 0x0a,
0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x26,
0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67,
0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x58, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa,
0x41, 0x28, 0x0a, 0x26, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x22, 0xa3, 0x01, 0x0a, 0x12, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73,
0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x08, 0x6e,
0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0,
0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73,
0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x07, 0x6e,
0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x43, 0x0a, 0x13, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47,
0x65, 0x74, 0x4b, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a,
0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70,
0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02,
0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4b, 0x0a, 0x14, 0x42,
0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4b, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x4b, 0x56, 0x4d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4b,
0x56, 0x4d, 0x52, 0x04, 0x4b, 0x56, 0x4d, 0x73, 0x22, 0x4a, 0x0a, 0x1a, 0x42, 0x61, 0x74, 0x63,
0x68, 0x47, 0x65, 0x74, 0x44, 0x48, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14,
0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e,
0x61, 0x6d, 0x65, 0x73, 0x22, 0x68, 0x0a, 0x1b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74,
0x44, 0x48, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x64, 0x68, 0x63, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x44, 0x48, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69,
0x67, 0x52, 0x0b, 0x64, 0x68, 0x63, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0x4a,
0x0a, 0x1a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06,
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61,
0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20,
0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x68, 0x0a, 0x1b, 0x42, 0x61,
0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x6d, 0x61, 0x63,
0x68, 0x69, 0x6e, 0x65, 0x5f, 0x6c, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63,
0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x0b, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x4c, 0x73, 0x65, 0x73, 0x22, 0x47, 0x0a, 0x17, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74,
0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73,
0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x5b, 0x0a,
0x18, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x6d, 0x61, 0x63,
0x68, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x52, 0x08, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x47, 0x0a, 0x17, 0x42, 0x61,
0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a,
0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61,
0x6d, 0x65, 0x73, 0x22, 0x5a, 0x0a, 0x18, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x53,
0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x3e, 0x0a, 0x08, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x22, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x53,
0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x08, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x22,
0x43, 0x0a, 0x13, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x50, 0x4d, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14,
0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e,
0x61, 0x6d, 0x65, 0x73, 0x22, 0x4b, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74,
0x52, 0x50, 0x4d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04,
0x72, 0x70, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x50, 0x4d, 0x52, 0x04, 0x72, 0x70, 0x6d,
0x73, 0x22, 0x44, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x44, 0x72, 0x61,
0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72,
0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4f, 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68,
0x47, 0x65, 0x74, 0x44, 0x72, 0x61, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x36, 0x0a, 0x05, 0x64, 0x72, 0x61, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x44, 0x72, 0x61,
0x63, 0x52, 0x05, 0x64, 0x72, 0x61, 0x63, 0x73, 0x22, 0x43, 0x0a, 0x13, 0x42, 0x61, 0x74, 0x63,
0x68, 0x47, 0x65, 0x74, 0x4e, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73,
0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4b, 0x0a,
0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4e, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x6e, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x4e, 0x69, 0x63, 0x52, 0x04, 0x6e, 0x69, 0x63, 0x73, 0x22, 0x42, 0x0a, 0x12, 0x42, 0x61,
0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65,
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x47,
0x0a, 0x13, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x03, 0x76, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x56, 0x4d, 0x52, 0x03, 0x76, 0x6d, 0x73, 0x22, 0x44, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68,
0x47, 0x65, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73,
0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4f, 0x0a,
0x15, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x6c, 0x61, 0x6e, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x73, 0x2e, 0x56, 0x6c, 0x61, 0x6e, 0x52, 0x05, 0x76, 0x6c, 0x61, 0x6e, 0x73, 0x22, 0x44,
0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14,
0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e,
0x61, 0x6d, 0x65, 0x73, 0x22, 0x4f, 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74,
0x52, 0x61, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a,
0x05, 0x72, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x52, 0x05,
0x72, 0x61, 0x63, 0x6b, 0x73, 0x22, 0x4e, 0x0a, 0x1e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65,
0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12,
0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05,
0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x78, 0x0a, 0x1f, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65,
0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x63, 0x68, 0x72, 0x6f,
0x6d, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x0f,
0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x22,
0x53, 0x0a, 0x23, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14,
0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e,
0x61, 0x6d, 0x65, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x24, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65,
0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a,
0x16, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x6c, 0x73, 0x65, 0x5f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x14,
0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74,
0x79, 0x70, 0x65, 0x73, 0x22, 0x50, 0x0a, 0x20, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74,
0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65,
0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52,
0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x21, 0x42, 0x61, 0x74, 0x63, 0x68,
0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74,
0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x13,
0x72, 0x61, 0x63, 0x6b, 0x5f, 0x6c, 0x73, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79,
0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x11, 0x72, 0x61, 0x63, 0x6b, 0x4c, 0x73, 0x65,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x68, 0x0a, 0x1c, 0x47, 0x65,
0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x4f, 0x53, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44,
0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x68,
0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73,
0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74,
0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x57, 0x0a, 0x0e, 0x63, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x63,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x2b, 0x0a,
0x11, 0x63, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x22, 0xb3, 0x01, 0x0a, 0x1b, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x57, 0x0a, 0x0e, 0x63, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x03,
0xe0, 0x41, 0x02, 0x52, 0x0e, 0x63, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,
0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,
0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b,
0x22, 0x67, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa,
0x41, 0x31, 0x0a, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x1a, 0x4c, 0x69,
0x73, 0x74, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,
0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67,
0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,
0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08,
0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08,
0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x9b, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73,
0x74, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x0f, 0x63, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x0f, 0x63,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x26,
0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67,
0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6a, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65,
0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68,
0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x58, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67,
0x5f, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c,
0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x73, 0x63,
0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x2c, 0x0a, 0x12,
0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x5f,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x49, 0x64, 0x22, 0xb4, 0x01, 0x0a, 0x1b, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55,
0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x58, 0x0a, 0x0f, 0x73, 0x63,
0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x42,
0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67,
0x55, 0x6e, 0x69, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,
0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c,
0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73,
0x6b, 0x22, 0x67, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69,
0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02,
0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f,
0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67,
0x55, 0x6e, 0x69, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8d, 0x01, 0x0a, 0x1a, 0x4c,
0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69,
0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67,
0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61,
0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a,
0x09, 0x6b, 0x65, 0x79, 0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08,
0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x9c, 0x01, 0x0a, 0x1b, 0x4c,
0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69,
0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x73, 0x63,
0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74,
0x52, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74,
0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74,
0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6a, 0x0a, 0x1b, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2d, 0x73, 0x79,
0x73, 0x74, 0x65, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x70, 0x6f, 0x74, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x52,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x62, 0x75,
0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x3b, 0x0a,
0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a,
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c,
0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28,
0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22,
0x41, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42,
0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a,
0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x75, 0x6e, 0x64,
0x6c, 0x65, 0x22, 0x4f, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44,
0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65,
0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64,
0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e,
0x61, 0x6d, 0x65, 0x22, 0xbb, 0x05, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63,
0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a,
0x0f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x75, 0x6e, 0x69, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e,
0x69, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67,
0x55, 0x6e, 0x69, 0x74, 0x12, 0x63, 0x0a, 0x15, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x5f, 0x6f,
0x73, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x4f, 0x53, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44,
0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x12, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x4f, 0x73, 0x44,
0x65, 0x76, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x5f, 0x0a, 0x14, 0x61, 0x74, 0x74,
0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74,
0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65,
0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x12, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64,
0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x5c, 0x0a, 0x13, 0x62, 0x72,
0x6f, 0x77, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74,
0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x42, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44,
0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x11, 0x62, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x44, 0x65,
0x76, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x60, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32,
0x3b, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76,
0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e,
0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x0c, 0x52,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x52,
0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53,
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45,
0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45,
0x44, 0x55, 0x4c, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x49, 0x54, 0x10, 0x01, 0x12, 0x21, 0x0a,
0x1d, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43,
0x48, 0x52, 0x4f, 0x4d, 0x45, 0x4f, 0x53, 0x5f, 0x44, 0x45, 0x56, 0x49, 0x43, 0x45, 0x10, 0x02,
0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50,
0x45, 0x5f, 0x41, 0x54, 0x54, 0x41, 0x43, 0x48, 0x45, 0x44, 0x5f, 0x44, 0x45, 0x56, 0x49, 0x43,
0x45, 0x10, 0x03, 0x12, 0x20, 0x0a, 0x1c, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f,
0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x52, 0x4f, 0x57, 0x53, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x56,
0x49, 0x43, 0x45, 0x10, 0x04, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x22, 0xea, 0x01, 0x0a, 0x12, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x44, 0x65,
0x76, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x45, 0x0a, 0x0a, 0x6c, 0x61, 0x62, 0x5f,
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x4c, 0x53, 0x45, 0x52, 0x09, 0x6c, 0x61, 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
0x3d, 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x4e,
0x0a, 0x09, 0x64, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x63,
0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x6c, 0x61, 0x62, 0x2e, 0x44, 0x75, 0x74, 0x53,
0x74, 0x61, 0x74, 0x65, 0x52, 0x08, 0x64, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x7f,
0x0a, 0x11, 0x42, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44,
0x61, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12,
0x2e, 0x0a, 0x02, 0x76, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x56, 0x4d, 0x52, 0x02, 0x76, 0x6d, 0x22,
0x7d, 0x0a, 0x1c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x54, 0x65, 0x73,
0x74, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1b, 0x0a, 0x09, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
0x62, 0x6f, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x6f, 0x61,
0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67,
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0xe4,
0x01, 0x0a, 0x0a, 0x54, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3c, 0x0a,
0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x7e, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a,
0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06,
0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x5f,
0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x42, 0x4f, 0x41, 0x52, 0x44, 0x10, 0x02, 0x12, 0x16,
0x0a, 0x12, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x4d,
0x4f, 0x44, 0x45, 0x4c, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x5f,
0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x04, 0x12, 0x15,
0x0a, 0x11, 0x4e, 0x4f, 0x54, 0x5f, 0x41, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x54,
0x45, 0x53, 0x54, 0x10, 0x05, 0x22, 0x8c, 0x01, 0x0a, 0x1d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x46,
0x6c, 0x65, 0x65, 0x74, 0x54, 0x65, 0x73, 0x74, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x74, 0x65,
0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02,
0x18, 0x01, 0x52, 0x0b, 0x69, 0x73, 0x54, 0x65, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x12,
0x43, 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x54, 0x65,
0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x53, 0x74,
0x61, 0x74, 0x75, 0x73, 0x32, 0xde, 0x6c, 0x0a, 0x05, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x12, 0x78,
0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c,
0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x34, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61,
0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65,
0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x78, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
0x12, 0x34, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f,
0x72, 0x6d, 0x12, 0x72, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50,
0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66,
0x6f, 0x72, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c,
0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x80, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43,
0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x12, 0x33,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x72,
0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69,
0x73, 0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x14, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
0x6d, 0x12, 0x34, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12,
0x62, 0x0a, 0x15, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50,
0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x12, 0x35, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50,
0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61,
0x74, 0x75, 0x73, 0x12, 0x71, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x53, 0x56, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x4f, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x4f, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x10, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74,
0x4f, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x53, 0x56, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
0x12, 0x87, 0x01, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x39,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79,
0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53,
0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x19, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x39, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x12,
0x36, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63,
0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x8f, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73,
0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x38, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x39, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70,
0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x19, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x39, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c,
0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x7e, 0x0a, 0x16, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x12, 0x36, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74,
0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53,
0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x7e, 0x0a, 0x16, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x12, 0x36, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74,
0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53,
0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x78, 0x0a, 0x13, 0x47, 0x65,
0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70,
0x65, 0x12, 0x33, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x52,
0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x61, 0x63,
0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x35,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x61, 0x63,
0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x74, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a,
0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x36, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x6f, 0x0a, 0x13, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x63, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x5d, 0x0a,
0x0a, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x2a, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x6b, 0x0a, 0x0c,
0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0d, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x2d, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
0x79, 0x12, 0x54, 0x0a, 0x0e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6d,
0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x63, 0x0a, 0x0d, 0x52, 0x65, 0x6e, 0x61, 0x6d,
0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x66, 0x0a, 0x10,
0x52, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x12, 0x30, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x52,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x52, 0x61, 0x63, 0x6b, 0x12, 0x5a, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x61,
0x63, 0x6b, 0x12, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b,
0x12, 0x54, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x12, 0x27, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b, 0x12, 0x62, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x61,
0x63, 0x6b, 0x73, 0x12, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69,
0x73, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x61, 0x63,
0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0a, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x12, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x6c, 0x0a, 0x10,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45,
0x12, 0x30, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x12, 0x6c, 0x0a, 0x10, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x12, 0x30,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x12, 0x66, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x12, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53,
0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45,
0x12, 0x74, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c,
0x53, 0x45, 0x73, 0x12, 0x2f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69,
0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c,
0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x12, 0x30, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45,
0x6d, 0x70, 0x74, 0x79, 0x12, 0x6c, 0x0a, 0x10, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x12, 0x30, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c,
0x53, 0x45, 0x12, 0x5a, 0x0a, 0x11, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x73, 0x12, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c,
0x53, 0x45, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x5e,
0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x53, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x4c, 0x53, 0x45, 0x73, 0x12, 0x33, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x53, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c,
0x53, 0x45, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x63,
0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x12,
0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x61, 0x63, 0x6b,
0x4c, 0x53, 0x45, 0x12, 0x63, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x61, 0x63,
0x6b, 0x4c, 0x53, 0x45, 0x12, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x12, 0x5d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52,
0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x12, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x23, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x12, 0x6b, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52,
0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x73, 0x12, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61,
0x63, 0x6b, 0x4c, 0x53, 0x45, 0x12, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x57, 0x0a, 0x09,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x69, 0x63, 0x12, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x70, 0x63, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x69, 0x63, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x73, 0x2e, 0x4e, 0x69, 0x63, 0x12, 0x57, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
0x69, 0x63, 0x12, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4e, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4e, 0x69, 0x63, 0x12, 0x51,
0x0a, 0x06, 0x47, 0x65, 0x74, 0x4e, 0x69, 0x63, 0x12, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4e, 0x69,
0x63, 0x12, 0x5f, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x69, 0x63, 0x73, 0x12, 0x28, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x69, 0x63, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x4e, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x69, 0x63, 0x12,
0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x4e, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
0x74, 0x79, 0x12, 0x4c, 0x0a, 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x69, 0x63, 0x73,
0x12, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72,
0x74, 0x4e, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
0x12, 0x57, 0x0a, 0x09, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4e, 0x69, 0x63, 0x12, 0x29, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4e, 0x69,
0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4e, 0x69, 0x63, 0x12, 0x5a, 0x0a, 0x11, 0x49, 0x6d, 0x70,
0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x31,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44,
0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x57, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b,
0x56, 0x4d, 0x12, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x4b, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4b, 0x56, 0x4d, 0x12, 0x57,
0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x56, 0x4d, 0x12, 0x29, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x56, 0x4d, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x4b, 0x56, 0x4d, 0x12, 0x51, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x4b, 0x56,
0x4d, 0x12, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x4b,
0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x4b, 0x56, 0x4d, 0x12, 0x5f, 0x0a, 0x08, 0x4c, 0x69,
0x73, 0x74, 0x4b, 0x56, 0x4d, 0x73, 0x12, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4b,
0x56, 0x4d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x09, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x56, 0x4d, 0x12, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x57, 0x0a, 0x09, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x50, 0x4d, 0x12, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x50, 0x4d, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x52, 0x50, 0x4d, 0x12, 0x57, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x50,
0x4d, 0x12, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x52, 0x50, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x50, 0x4d, 0x12, 0x51, 0x0a,
0x06, 0x47, 0x65, 0x74, 0x52, 0x50, 0x4d, 0x12, 0x26, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x50, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1f, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x52, 0x50, 0x4d,
0x12, 0x5f, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x50, 0x4d, 0x73, 0x12, 0x28, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x50, 0x4d, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x50, 0x4d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x4e, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x50, 0x4d, 0x12, 0x29,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52,
0x50, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
0x79, 0x12, 0x5a, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x72, 0x61, 0x63, 0x12,
0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x44, 0x72, 0x61, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x44, 0x72, 0x61, 0x63, 0x12, 0x5a, 0x0a,
0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x72, 0x61, 0x63, 0x12, 0x2a, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x72, 0x61, 0x63,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x73, 0x2e, 0x44, 0x72, 0x61, 0x63, 0x12, 0x54, 0x0a, 0x07, 0x47, 0x65, 0x74,
0x44, 0x72, 0x61, 0x63, 0x12, 0x27, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47,
0x65, 0x74, 0x44, 0x72, 0x61, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x44, 0x72, 0x61, 0x63, 0x12,
0x62, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x72, 0x61, 0x63, 0x73, 0x12, 0x29, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x72, 0x61, 0x63, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x72, 0x61, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x72, 0x61,
0x63, 0x12, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x44, 0x72, 0x61, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x60, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53,
0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x60, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x73, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x5a, 0x0a, 0x09, 0x47, 0x65, 0x74,
0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x47, 0x65, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x22, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x53,
0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x6b, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x69,
0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69,
0x73, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x54, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74,
0x63, 0x68, 0x12, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x60, 0x0a, 0x0c, 0x52, 0x65, 0x6e, 0x61,
0x6d, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x5a, 0x0a, 0x0a, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x12, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x73, 0x2e, 0x56, 0x6c, 0x61, 0x6e, 0x12, 0x5a, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x56, 0x6c, 0x61, 0x6e, 0x12, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x56, 0x6c,
0x61, 0x6e, 0x12, 0x54, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x12, 0x27, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x56, 0x6c, 0x61, 0x6e, 0x12, 0x62, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74,
0x56, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56,
0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0a,
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x12, 0x2a, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4e,
0x0a, 0x0b, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x2b, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x56, 0x6c,
0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x52,
0x0a, 0x0d, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x53, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x12,
0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74,
0x4f, 0x53, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x12, 0x50, 0x0a, 0x0c, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74,
0x65, 0x73, 0x12, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6d, 0x70,
0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74,
0x61, 0x74, 0x75, 0x73, 0x12, 0x63, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74,
0x61, 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x27, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x53, 0x74,
0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x5d, 0x0a, 0x08, 0x47, 0x65, 0x74,
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x27, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x53, 0x74, 0x61,
0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x6d, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44,
0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x73, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x6c, 0x61, 0x62, 0x2e, 0x44,
0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x6e, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44,
0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x44, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x75, 0x74, 0x53, 0x74, 0x61,
0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2e,
0x6c, 0x61, 0x62, 0x2e, 0x44, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x8f, 0x01, 0x0a,
0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63,
0x6f, 0x76, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x38, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65,
0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65,
0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66,
0x0a, 0x0d, 0x47, 0x65, 0x74, 0x44, 0x48, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x48, 0x43,
0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x44, 0x48, 0x43, 0x50,
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x54, 0x0a, 0x08, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x56, 0x4d, 0x12, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x56, 0x4d, 0x12, 0x54, 0x0a, 0x08,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x4d, 0x12, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x56, 0x4d, 0x12, 0x4c, 0x0a, 0x08, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x4d, 0x12, 0x28,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56,
0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x12, 0x4e, 0x0a, 0x05, 0x47, 0x65, 0x74, 0x56, 0x4d, 0x12, 0x25, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x56, 0x4d,
0x12, 0x5c, 0x0a, 0x07, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x4d, 0x73, 0x12, 0x27, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c,
0x69, 0x73, 0x74, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d,
0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2b, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x73,
0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x5d, 0x0a,
0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2b, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x73, 0x73,
0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x57, 0x0a, 0x08,
0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x28, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x21, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x65, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x73, 0x73,
0x65, 0x74, 0x73, 0x12, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69,
0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x2b, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x73,
0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0b,
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2b, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x12, 0x5d, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12,
0x2b, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65,
0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12,
0x6b, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4b, 0x56, 0x4d, 0x73, 0x12,
0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47,
0x65, 0x74, 0x4b, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74,
0x4b, 0x56, 0x4d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a,
0x13, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x44, 0x48, 0x43, 0x50, 0x43, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x73, 0x12, 0x33, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42,
0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x44, 0x48, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69,
0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x44, 0x48, 0x43, 0x50,
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x80, 0x01, 0x0a, 0x13, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68,
0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x73, 0x12, 0x33, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x77, 0x0a, 0x10, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x30, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x10, 0x42,
0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12,
0x30, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47,
0x65, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63,
0x68, 0x47, 0x65, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74,
0x52, 0x50, 0x4d, 0x73, 0x12, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42,
0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x50, 0x4d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74,
0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x50, 0x4d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x6e, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x44, 0x72, 0x61,
0x63, 0x73, 0x12, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74,
0x63, 0x68, 0x47, 0x65, 0x74, 0x44, 0x72, 0x61, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x2e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63,
0x68, 0x47, 0x65, 0x74, 0x44, 0x72, 0x61, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x6b, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4e, 0x69, 0x63,
0x73, 0x12, 0x2c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63,
0x68, 0x47, 0x65, 0x74, 0x4e, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47,
0x65, 0x74, 0x4e, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68,
0x0a, 0x0b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x56, 0x4d, 0x73, 0x12, 0x2b, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74,
0x56, 0x4d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x56, 0x4d, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63,
0x68, 0x47, 0x65, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x56, 0x6c, 0x61, 0x6e,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63,
0x68, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x73, 0x12, 0x2d, 0x2e, 0x75, 0x6e, 0x69, 0x66,
0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8c, 0x01, 0x0a, 0x17, 0x42, 0x61, 0x74,
0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66,
0x6f, 0x72, 0x6d, 0x73, 0x12, 0x37, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42,
0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61,
0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74,
0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9b, 0x01, 0x0a, 0x1c, 0x42, 0x61, 0x74, 0x63,
0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x3c, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x19, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47,
0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79,
0x70, 0x65, 0x73, 0x12, 0x39, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61,
0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65,
0x74, 0x52, 0x61, 0x63, 0x6b, 0x4c, 0x53, 0x45, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70,
0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x15, 0x47, 0x65,
0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x4f, 0x53, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44,
0x61, 0x74, 0x61, 0x12, 0x35, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65,
0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x4f, 0x53, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44,
0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x4f, 0x53,
0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x78, 0x0a, 0x14, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x34, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x34, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61, 0x63,
0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e,
0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x72,
0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x12, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65,
0x74, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x33, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67,
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x34, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x34, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61,
0x63, 0x68, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x8a, 0x01, 0x0a, 0x1a,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45,
0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65,
0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0xa4, 0x01, 0x0a, 0x1f, 0x42, 0x61, 0x74,
0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c,
0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3f, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c,
0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70,
0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x84, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53,
0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x2e, 0x75, 0x6e,
0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c,
0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x9e, 0x01, 0x0a, 0x1d, 0x42, 0x61, 0x74, 0x63, 0x68,
0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70,
0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3d, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74,
0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79,
0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x39, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65,
0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x3a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x53, 0x45, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,
0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x14,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67,
0x55, 0x6e, 0x69, 0x74, 0x12, 0x34, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55,
0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x75, 0x6e, 0x69,
0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69,
0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x78, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x34,
0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53,
0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c,
0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74,
0x12, 0x72, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e,
0x67, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x31, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66,
0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69,
0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67,
0x55, 0x6e, 0x69, 0x74, 0x12, 0x80, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68,
0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x33, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64,
0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x34, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74,
0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x12,
0x34, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x69, 0x74, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x7d, 0x0a,
0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x75, 0x6e,
0x64, 0x6c, 0x65, 0x12, 0x32, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65,
0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65,
0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70,
0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x75,
0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0d,
0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63,
0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65,
0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a,
0x15, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x54, 0x65, 0x73, 0x74, 0x73,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x35, 0x2e, 0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64,
0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63,
0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x54, 0x65, 0x73, 0x74, 0x73,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e,
0x75, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x46, 0x6c, 0x65,
0x65, 0x74, 0x54, 0x65, 0x73, 0x74, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x25, 0x5a, 0x23, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x75,
0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x76, 0x31, 0x2f, 0x72, 0x70, 0x63, 0x3b, 0x75, 0x66, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescOnce sync.Once
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescData = file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDesc
)
func file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescGZIP() []byte {
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescOnce.Do(func() {
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescData = protoimpl.X.CompressGZIP(file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescData)
})
return file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDescData
}
var file_infra_unifiedfleet_api_v1_rpc_fleet_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes = make([]protoimpl.MessageInfo, 185)
var file_infra_unifiedfleet_api_v1_rpc_fleet_proto_goTypes = []interface{}{
(GetDeviceDataResponse_ResourceType)(0), // 0: unifiedfleet.api.v1.rpc.GetDeviceDataResponse.ResourceType
(TestStatus_Code)(0), // 1: unifiedfleet.api.v1.rpc.TestStatus.Code
(*UpdateMachineLSEDeploymentRequest)(nil), // 2: unifiedfleet.api.v1.rpc.UpdateMachineLSEDeploymentRequest
(*BatchUpdateMachineLSEDeploymentRequest)(nil), // 3: unifiedfleet.api.v1.rpc.BatchUpdateMachineLSEDeploymentRequest
(*BatchUpdateMachineLSEDeploymentResponse)(nil), // 4: unifiedfleet.api.v1.rpc.BatchUpdateMachineLSEDeploymentResponse
(*GetMachineLSEDeploymentRequest)(nil), // 5: unifiedfleet.api.v1.rpc.GetMachineLSEDeploymentRequest
(*BatchGetMachineLSEDeploymentsRequest)(nil), // 6: unifiedfleet.api.v1.rpc.BatchGetMachineLSEDeploymentsRequest
(*BatchGetMachineLSEDeploymentsResponse)(nil), // 7: unifiedfleet.api.v1.rpc.BatchGetMachineLSEDeploymentsResponse
(*ListMachineLSEDeploymentsRequest)(nil), // 8: unifiedfleet.api.v1.rpc.ListMachineLSEDeploymentsRequest
(*ListMachineLSEDeploymentsResponse)(nil), // 9: unifiedfleet.api.v1.rpc.ListMachineLSEDeploymentsResponse
(*CreateVMRequest)(nil), // 10: unifiedfleet.api.v1.rpc.CreateVMRequest
(*UpdateVMRequest)(nil), // 11: unifiedfleet.api.v1.rpc.UpdateVMRequest
(*GetVMRequest)(nil), // 12: unifiedfleet.api.v1.rpc.GetVMRequest
(*DeleteVMRequest)(nil), // 13: unifiedfleet.api.v1.rpc.DeleteVMRequest
(*ListVMsRequest)(nil), // 14: unifiedfleet.api.v1.rpc.ListVMsRequest
(*ListVMsResponse)(nil), // 15: unifiedfleet.api.v1.rpc.ListVMsResponse
(*GetDHCPConfigRequest)(nil), // 16: unifiedfleet.api.v1.rpc.GetDHCPConfigRequest
(*CreateChromePlatformRequest)(nil), // 17: unifiedfleet.api.v1.rpc.CreateChromePlatformRequest
(*UpdateChromePlatformRequest)(nil), // 18: unifiedfleet.api.v1.rpc.UpdateChromePlatformRequest
(*GetChromePlatformRequest)(nil), // 19: unifiedfleet.api.v1.rpc.GetChromePlatformRequest
(*ListChromePlatformsRequest)(nil), // 20: unifiedfleet.api.v1.rpc.ListChromePlatformsRequest
(*ListChromePlatformsResponse)(nil), // 21: unifiedfleet.api.v1.rpc.ListChromePlatformsResponse
(*DeleteChromePlatformRequest)(nil), // 22: unifiedfleet.api.v1.rpc.DeleteChromePlatformRequest
(*ImportChromePlatformsRequest)(nil), // 23: unifiedfleet.api.v1.rpc.ImportChromePlatformsRequest
(*ImportChromePlatformsResponse)(nil), // 24: unifiedfleet.api.v1.rpc.ImportChromePlatformsResponse
(*ChromePlatformResult)(nil), // 25: unifiedfleet.api.v1.rpc.ChromePlatformResult
(*ImportOSVersionsRequest)(nil), // 26: unifiedfleet.api.v1.rpc.ImportOSVersionsRequest
(*ListOSVersionsRequest)(nil), // 27: unifiedfleet.api.v1.rpc.ListOSVersionsRequest
(*ListOSVersionsResponse)(nil), // 28: unifiedfleet.api.v1.rpc.ListOSVersionsResponse
(*CreateMachineLSEPrototypeRequest)(nil), // 29: unifiedfleet.api.v1.rpc.CreateMachineLSEPrototypeRequest
(*UpdateMachineLSEPrototypeRequest)(nil), // 30: unifiedfleet.api.v1.rpc.UpdateMachineLSEPrototypeRequest
(*GetMachineLSEPrototypeRequest)(nil), // 31: unifiedfleet.api.v1.rpc.GetMachineLSEPrototypeRequest
(*ListMachineLSEPrototypesRequest)(nil), // 32: unifiedfleet.api.v1.rpc.ListMachineLSEPrototypesRequest
(*ListMachineLSEPrototypesResponse)(nil), // 33: unifiedfleet.api.v1.rpc.ListMachineLSEPrototypesResponse
(*DeleteMachineLSEPrototypeRequest)(nil), // 34: unifiedfleet.api.v1.rpc.DeleteMachineLSEPrototypeRequest
(*CreateRackLSEPrototypeRequest)(nil), // 35: unifiedfleet.api.v1.rpc.CreateRackLSEPrototypeRequest
(*UpdateRackLSEPrototypeRequest)(nil), // 36: unifiedfleet.api.v1.rpc.UpdateRackLSEPrototypeRequest
(*GetRackLSEPrototypeRequest)(nil), // 37: unifiedfleet.api.v1.rpc.GetRackLSEPrototypeRequest
(*ListRackLSEPrototypesRequest)(nil), // 38: unifiedfleet.api.v1.rpc.ListRackLSEPrototypesRequest
(*ListRackLSEPrototypesResponse)(nil), // 39: unifiedfleet.api.v1.rpc.ListRackLSEPrototypesResponse
(*DeleteRackLSEPrototypeRequest)(nil), // 40: unifiedfleet.api.v1.rpc.DeleteRackLSEPrototypeRequest
(*MachineRegistrationRequest)(nil), // 41: unifiedfleet.api.v1.rpc.MachineRegistrationRequest
(*UpdateMachineRequest)(nil), // 42: unifiedfleet.api.v1.rpc.UpdateMachineRequest
(*GetMachineRequest)(nil), // 43: unifiedfleet.api.v1.rpc.GetMachineRequest
(*ListMachinesRequest)(nil), // 44: unifiedfleet.api.v1.rpc.ListMachinesRequest
(*ListMachinesResponse)(nil), // 45: unifiedfleet.api.v1.rpc.ListMachinesResponse
(*DeleteMachineRequest)(nil), // 46: unifiedfleet.api.v1.rpc.DeleteMachineRequest
(*ImportMachinesRequest)(nil), // 47: unifiedfleet.api.v1.rpc.ImportMachinesRequest
(*RenameMachineRequest)(nil), // 48: unifiedfleet.api.v1.rpc.RenameMachineRequest
(*MachineDBSource)(nil), // 49: unifiedfleet.api.v1.rpc.MachineDBSource
(*ConfigSource)(nil), // 50: unifiedfleet.api.v1.rpc.ConfigSource
(*CreateRackRequest)(nil), // 51: unifiedfleet.api.v1.rpc.CreateRackRequest
(*UpdateRackRequest)(nil), // 52: unifiedfleet.api.v1.rpc.UpdateRackRequest
(*GetRackRequest)(nil), // 53: unifiedfleet.api.v1.rpc.GetRackRequest
(*ListRacksRequest)(nil), // 54: unifiedfleet.api.v1.rpc.ListRacksRequest
(*ListRacksResponse)(nil), // 55: unifiedfleet.api.v1.rpc.ListRacksResponse
(*DeleteRackRequest)(nil), // 56: unifiedfleet.api.v1.rpc.DeleteRackRequest
(*CreateMachineLSERequest)(nil), // 57: unifiedfleet.api.v1.rpc.CreateMachineLSERequest
(*UpdateMachineLSERequest)(nil), // 58: unifiedfleet.api.v1.rpc.UpdateMachineLSERequest
(*GetMachineLSERequest)(nil), // 59: unifiedfleet.api.v1.rpc.GetMachineLSERequest
(*ListMachineLSEsRequest)(nil), // 60: unifiedfleet.api.v1.rpc.ListMachineLSEsRequest
(*ListMachineLSEsResponse)(nil), // 61: unifiedfleet.api.v1.rpc.ListMachineLSEsResponse
(*DeleteMachineLSERequest)(nil), // 62: unifiedfleet.api.v1.rpc.DeleteMachineLSERequest
(*RenameMachineLSERequest)(nil), // 63: unifiedfleet.api.v1.rpc.RenameMachineLSERequest
(*ImportMachineLSEsRequest)(nil), // 64: unifiedfleet.api.v1.rpc.ImportMachineLSEsRequest
(*ImportOSMachineLSEsRequest)(nil), // 65: unifiedfleet.api.v1.rpc.ImportOSMachineLSEsRequest
(*CreateRackLSERequest)(nil), // 66: unifiedfleet.api.v1.rpc.CreateRackLSERequest
(*UpdateRackLSERequest)(nil), // 67: unifiedfleet.api.v1.rpc.UpdateRackLSERequest
(*GetRackLSERequest)(nil), // 68: unifiedfleet.api.v1.rpc.GetRackLSERequest
(*ListRackLSEsRequest)(nil), // 69: unifiedfleet.api.v1.rpc.ListRackLSEsRequest
(*ListRackLSEsResponse)(nil), // 70: unifiedfleet.api.v1.rpc.ListRackLSEsResponse
(*DeleteRackLSERequest)(nil), // 71: unifiedfleet.api.v1.rpc.DeleteRackLSERequest
(*CreateNicRequest)(nil), // 72: unifiedfleet.api.v1.rpc.CreateNicRequest
(*UpdateNicRequest)(nil), // 73: unifiedfleet.api.v1.rpc.UpdateNicRequest
(*GetNicRequest)(nil), // 74: unifiedfleet.api.v1.rpc.GetNicRequest
(*ListNicsRequest)(nil), // 75: unifiedfleet.api.v1.rpc.ListNicsRequest
(*ListNicsResponse)(nil), // 76: unifiedfleet.api.v1.rpc.ListNicsResponse
(*DeleteNicRequest)(nil), // 77: unifiedfleet.api.v1.rpc.DeleteNicRequest
(*ImportNicsRequest)(nil), // 78: unifiedfleet.api.v1.rpc.ImportNicsRequest
(*RenameNicRequest)(nil), // 79: unifiedfleet.api.v1.rpc.RenameNicRequest
(*RenameSwitchRequest)(nil), // 80: unifiedfleet.api.v1.rpc.RenameSwitchRequest
(*ImportDatacentersRequest)(nil), // 81: unifiedfleet.api.v1.rpc.ImportDatacentersRequest
(*CreateKVMRequest)(nil), // 82: unifiedfleet.api.v1.rpc.CreateKVMRequest
(*UpdateKVMRequest)(nil), // 83: unifiedfleet.api.v1.rpc.UpdateKVMRequest
(*GetKVMRequest)(nil), // 84: unifiedfleet.api.v1.rpc.GetKVMRequest
(*ListKVMsRequest)(nil), // 85: unifiedfleet.api.v1.rpc.ListKVMsRequest
(*ListKVMsResponse)(nil), // 86: unifiedfleet.api.v1.rpc.ListKVMsResponse
(*DeleteKVMRequest)(nil), // 87: unifiedfleet.api.v1.rpc.DeleteKVMRequest
(*CreateRPMRequest)(nil), // 88: unifiedfleet.api.v1.rpc.CreateRPMRequest
(*UpdateRPMRequest)(nil), // 89: unifiedfleet.api.v1.rpc.UpdateRPMRequest
(*GetRPMRequest)(nil), // 90: unifiedfleet.api.v1.rpc.GetRPMRequest
(*ListRPMsRequest)(nil), // 91: unifiedfleet.api.v1.rpc.ListRPMsRequest
(*ListRPMsResponse)(nil), // 92: unifiedfleet.api.v1.rpc.ListRPMsResponse
(*DeleteRPMRequest)(nil), // 93: unifiedfleet.api.v1.rpc.DeleteRPMRequest
(*CreateDracRequest)(nil), // 94: unifiedfleet.api.v1.rpc.CreateDracRequest
(*UpdateDracRequest)(nil), // 95: unifiedfleet.api.v1.rpc.UpdateDracRequest
(*GetDracRequest)(nil), // 96: unifiedfleet.api.v1.rpc.GetDracRequest
(*ListDracsRequest)(nil), // 97: unifiedfleet.api.v1.rpc.ListDracsRequest
(*ListDracsResponse)(nil), // 98: unifiedfleet.api.v1.rpc.ListDracsResponse
(*DeleteDracRequest)(nil), // 99: unifiedfleet.api.v1.rpc.DeleteDracRequest
(*CreateSwitchRequest)(nil), // 100: unifiedfleet.api.v1.rpc.CreateSwitchRequest
(*UpdateSwitchRequest)(nil), // 101: unifiedfleet.api.v1.rpc.UpdateSwitchRequest
(*GetSwitchRequest)(nil), // 102: unifiedfleet.api.v1.rpc.GetSwitchRequest
(*ListSwitchesRequest)(nil), // 103: unifiedfleet.api.v1.rpc.ListSwitchesRequest
(*ListSwitchesResponse)(nil), // 104: unifiedfleet.api.v1.rpc.ListSwitchesResponse
(*DeleteSwitchRequest)(nil), // 105: unifiedfleet.api.v1.rpc.DeleteSwitchRequest
(*CreateVlanRequest)(nil), // 106: unifiedfleet.api.v1.rpc.CreateVlanRequest
(*UpdateVlanRequest)(nil), // 107: unifiedfleet.api.v1.rpc.UpdateVlanRequest
(*GetVlanRequest)(nil), // 108: unifiedfleet.api.v1.rpc.GetVlanRequest
(*ListVlansRequest)(nil), // 109: unifiedfleet.api.v1.rpc.ListVlansRequest
(*ListVlansResponse)(nil), // 110: unifiedfleet.api.v1.rpc.ListVlansResponse
(*DeleteVlanRequest)(nil), // 111: unifiedfleet.api.v1.rpc.DeleteVlanRequest
(*ImportVlansRequest)(nil), // 112: unifiedfleet.api.v1.rpc.ImportVlansRequest
(*ImportOSVlansRequest)(nil), // 113: unifiedfleet.api.v1.rpc.ImportOSVlansRequest
(*ImportStatesRequest)(nil), // 114: unifiedfleet.api.v1.rpc.ImportStatesRequest
(*GetStateRequest)(nil), // 115: unifiedfleet.api.v1.rpc.GetStateRequest
(*GetDutStateRequest)(nil), // 116: unifiedfleet.api.v1.rpc.GetDutStateRequest
(*ListDutStatesRequest)(nil), // 117: unifiedfleet.api.v1.rpc.ListDutStatesRequest
(*ListDutStatesResponse)(nil), // 118: unifiedfleet.api.v1.rpc.ListDutStatesResponse
(*UpdateStateRequest)(nil), // 119: unifiedfleet.api.v1.rpc.UpdateStateRequest
(*UpdateDutStateRequest)(nil), // 120: unifiedfleet.api.v1.rpc.UpdateDutStateRequest
(*UpdateDeviceRecoveryDataRequest)(nil), // 121: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest
(*UpdateDeviceRecoveryDataResponse)(nil), // 122: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataResponse
(*RackRegistrationRequest)(nil), // 123: unifiedfleet.api.v1.rpc.RackRegistrationRequest
(*NetworkOption)(nil), // 124: unifiedfleet.api.v1.rpc.NetworkOption
(*CreateAssetRequest)(nil), // 125: unifiedfleet.api.v1.rpc.CreateAssetRequest
(*UpdateAssetRequest)(nil), // 126: unifiedfleet.api.v1.rpc.UpdateAssetRequest
(*GetAssetRequest)(nil), // 127: unifiedfleet.api.v1.rpc.GetAssetRequest
(*ListAssetsRequest)(nil), // 128: unifiedfleet.api.v1.rpc.ListAssetsRequest
(*ListAssetsResponse)(nil), // 129: unifiedfleet.api.v1.rpc.ListAssetsResponse
(*DeleteAssetRequest)(nil), // 130: unifiedfleet.api.v1.rpc.DeleteAssetRequest
(*RenameAssetRequest)(nil), // 131: unifiedfleet.api.v1.rpc.RenameAssetRequest
(*BatchGetKVMsRequest)(nil), // 132: unifiedfleet.api.v1.rpc.BatchGetKVMsRequest
(*BatchGetKVMsResponse)(nil), // 133: unifiedfleet.api.v1.rpc.BatchGetKVMsResponse
(*BatchGetDHCPConfigsRequest)(nil), // 134: unifiedfleet.api.v1.rpc.BatchGetDHCPConfigsRequest
(*BatchGetDHCPConfigsResponse)(nil), // 135: unifiedfleet.api.v1.rpc.BatchGetDHCPConfigsResponse
(*BatchGetMachineLSEsRequest)(nil), // 136: unifiedfleet.api.v1.rpc.BatchGetMachineLSEsRequest
(*BatchGetMachineLSEsResponse)(nil), // 137: unifiedfleet.api.v1.rpc.BatchGetMachineLSEsResponse
(*BatchGetMachinesRequest)(nil), // 138: unifiedfleet.api.v1.rpc.BatchGetMachinesRequest
(*BatchGetMachinesResponse)(nil), // 139: unifiedfleet.api.v1.rpc.BatchGetMachinesResponse
(*BatchGetSwitchesRequest)(nil), // 140: unifiedfleet.api.v1.rpc.BatchGetSwitchesRequest
(*BatchGetSwitchesResponse)(nil), // 141: unifiedfleet.api.v1.rpc.BatchGetSwitchesResponse
(*BatchGetRPMsRequest)(nil), // 142: unifiedfleet.api.v1.rpc.BatchGetRPMsRequest
(*BatchGetRPMsResponse)(nil), // 143: unifiedfleet.api.v1.rpc.BatchGetRPMsResponse
(*BatchGetDracsRequest)(nil), // 144: unifiedfleet.api.v1.rpc.BatchGetDracsRequest
(*BatchGetDracsResponse)(nil), // 145: unifiedfleet.api.v1.rpc.BatchGetDracsResponse
(*BatchGetNicsRequest)(nil), // 146: unifiedfleet.api.v1.rpc.BatchGetNicsRequest
(*BatchGetNicsResponse)(nil), // 147: unifiedfleet.api.v1.rpc.BatchGetNicsResponse
(*BatchGetVMsRequest)(nil), // 148: unifiedfleet.api.v1.rpc.BatchGetVMsRequest
(*BatchGetVMsResponse)(nil), // 149: unifiedfleet.api.v1.rpc.BatchGetVMsResponse
(*BatchGetVlansRequest)(nil), // 150: unifiedfleet.api.v1.rpc.BatchGetVlansRequest
(*BatchGetVlansResponse)(nil), // 151: unifiedfleet.api.v1.rpc.BatchGetVlansResponse
(*BatchGetRacksRequest)(nil), // 152: unifiedfleet.api.v1.rpc.BatchGetRacksRequest
(*BatchGetRacksResponse)(nil), // 153: unifiedfleet.api.v1.rpc.BatchGetRacksResponse
(*BatchGetChromePlatformsRequest)(nil), // 154: unifiedfleet.api.v1.rpc.BatchGetChromePlatformsRequest
(*BatchGetChromePlatformsResponse)(nil), // 155: unifiedfleet.api.v1.rpc.BatchGetChromePlatformsResponse
(*BatchGetMachineLSEPrototypesRequest)(nil), // 156: unifiedfleet.api.v1.rpc.BatchGetMachineLSEPrototypesRequest
(*BatchGetMachineLSEPrototypesResponse)(nil), // 157: unifiedfleet.api.v1.rpc.BatchGetMachineLSEPrototypesResponse
(*BatchGetRackLSEPrototypesRequest)(nil), // 158: unifiedfleet.api.v1.rpc.BatchGetRackLSEPrototypesRequest
(*BatchGetRackLSEPrototypesResponse)(nil), // 159: unifiedfleet.api.v1.rpc.BatchGetRackLSEPrototypesResponse
(*GetChromeOSDeviceDataRequest)(nil), // 160: unifiedfleet.api.v1.rpc.GetChromeOSDeviceDataRequest
(*CreateCachingServiceRequest)(nil), // 161: unifiedfleet.api.v1.rpc.CreateCachingServiceRequest
(*UpdateCachingServiceRequest)(nil), // 162: unifiedfleet.api.v1.rpc.UpdateCachingServiceRequest
(*GetCachingServiceRequest)(nil), // 163: unifiedfleet.api.v1.rpc.GetCachingServiceRequest
(*ListCachingServicesRequest)(nil), // 164: unifiedfleet.api.v1.rpc.ListCachingServicesRequest
(*ListCachingServicesResponse)(nil), // 165: unifiedfleet.api.v1.rpc.ListCachingServicesResponse
(*DeleteCachingServiceRequest)(nil), // 166: unifiedfleet.api.v1.rpc.DeleteCachingServiceRequest
(*CreateSchedulingUnitRequest)(nil), // 167: unifiedfleet.api.v1.rpc.CreateSchedulingUnitRequest
(*UpdateSchedulingUnitRequest)(nil), // 168: unifiedfleet.api.v1.rpc.UpdateSchedulingUnitRequest
(*GetSchedulingUnitRequest)(nil), // 169: unifiedfleet.api.v1.rpc.GetSchedulingUnitRequest
(*ListSchedulingUnitsRequest)(nil), // 170: unifiedfleet.api.v1.rpc.ListSchedulingUnitsRequest
(*ListSchedulingUnitsResponse)(nil), // 171: unifiedfleet.api.v1.rpc.ListSchedulingUnitsResponse
(*DeleteSchedulingUnitRequest)(nil), // 172: unifiedfleet.api.v1.rpc.DeleteSchedulingUnitRequest
(*UpdateConfigBundleRequest)(nil), // 173: unifiedfleet.api.v1.rpc.UpdateConfigBundleRequest
(*UpdateConfigBundleResponse)(nil), // 174: unifiedfleet.api.v1.rpc.UpdateConfigBundleResponse
(*GetDeviceDataRequest)(nil), // 175: unifiedfleet.api.v1.rpc.GetDeviceDataRequest
(*GetDeviceDataResponse)(nil), // 176: unifiedfleet.api.v1.rpc.GetDeviceDataResponse
(*AttachedDeviceData)(nil), // 177: unifiedfleet.api.v1.rpc.AttachedDeviceData
(*BrowserDeviceData)(nil), // 178: unifiedfleet.api.v1.rpc.BrowserDeviceData
(*CheckFleetTestsPolicyRequest)(nil), // 179: unifiedfleet.api.v1.rpc.CheckFleetTestsPolicyRequest
(*TestStatus)(nil), // 180: unifiedfleet.api.v1.rpc.TestStatus
(*CheckFleetTestsPolicyResponse)(nil), // 181: unifiedfleet.api.v1.rpc.CheckFleetTestsPolicyResponse
nil, // 182: unifiedfleet.api.v1.rpc.UpdateMachineLSERequest.NetworkOptionsEntry
(*UpdateDeviceRecoveryDataRequest_DutData)(nil), // 183: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.DutData
(*UpdateDeviceRecoveryDataRequest_WifiRouter)(nil), // 184: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.WifiRouter
(*UpdateDeviceRecoveryDataRequest_BluetoothPeer)(nil), // 185: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.BluetoothPeer
(*UpdateDeviceRecoveryDataRequest_LabData)(nil), // 186: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.LabData
(*models.MachineLSEDeployment)(nil), // 187: unifiedfleet.api.v1.models.MachineLSEDeployment
(*fieldmaskpb.FieldMask)(nil), // 188: google.protobuf.FieldMask
(*models.VM)(nil), // 189: unifiedfleet.api.v1.models.VM
(*models.ChromePlatform)(nil), // 190: unifiedfleet.api.v1.models.ChromePlatform
(*models.OSVersion)(nil), // 191: unifiedfleet.api.v1.models.OSVersion
(*models.MachineLSEPrototype)(nil), // 192: unifiedfleet.api.v1.models.MachineLSEPrototype
(*models.RackLSEPrototype)(nil), // 193: unifiedfleet.api.v1.models.RackLSEPrototype
(*models.Machine)(nil), // 194: unifiedfleet.api.v1.models.Machine
(*models.Rack)(nil), // 195: unifiedfleet.api.v1.models.Rack
(*models.MachineLSE)(nil), // 196: unifiedfleet.api.v1.models.MachineLSE
(*models.RackLSE)(nil), // 197: unifiedfleet.api.v1.models.RackLSE
(*models.Nic)(nil), // 198: unifiedfleet.api.v1.models.Nic
(*models.KVM)(nil), // 199: unifiedfleet.api.v1.models.KVM
(*models.RPM)(nil), // 200: unifiedfleet.api.v1.models.RPM
(*models.Drac)(nil), // 201: unifiedfleet.api.v1.models.Drac
(*models.Switch)(nil), // 202: unifiedfleet.api.v1.models.Switch
(*models.Vlan)(nil), // 203: unifiedfleet.api.v1.models.Vlan
(*lab.DutState)(nil), // 204: unifiedfleet.api.v1.models.chromeos.lab.DutState
(*models.StateRecord)(nil), // 205: unifiedfleet.api.v1.models.StateRecord
(*models.DutMeta)(nil), // 206: unifiedfleet.api.v1.models.DutMeta
(*models.LabMeta)(nil), // 207: unifiedfleet.api.v1.models.LabMeta
(models.State)(0), // 208: unifiedfleet.api.v1.models.State
(*models.Asset)(nil), // 209: unifiedfleet.api.v1.models.asset
(*models.DHCPConfig)(nil), // 210: unifiedfleet.api.v1.models.DHCPConfig
(*models.CachingService)(nil), // 211: unifiedfleet.api.v1.models.CachingService
(*models.SchedulingUnit)(nil), // 212: unifiedfleet.api.v1.models.SchedulingUnit
(*models.ChromeOSDeviceData)(nil), // 213: unifiedfleet.api.v1.models.ChromeOSDeviceData
(lab.PeripheralState)(0), // 214: unifiedfleet.api.v1.models.chromeos.lab.PeripheralState
(*lab.ServoTopology)(nil), // 215: unifiedfleet.api.v1.models.chromeos.lab.ServoTopology
(*emptypb.Empty)(nil), // 216: google.protobuf.Empty
(*status.Status)(nil), // 217: google.rpc.Status
}
var file_infra_unifiedfleet_api_v1_rpc_fleet_proto_depIdxs = []int32{
187, // 0: unifiedfleet.api.v1.rpc.UpdateMachineLSEDeploymentRequest.machine_lse_deployment:type_name -> unifiedfleet.api.v1.models.MachineLSEDeployment
188, // 1: unifiedfleet.api.v1.rpc.UpdateMachineLSEDeploymentRequest.update_mask:type_name -> google.protobuf.FieldMask
2, // 2: unifiedfleet.api.v1.rpc.BatchUpdateMachineLSEDeploymentRequest.requests:type_name -> unifiedfleet.api.v1.rpc.UpdateMachineLSEDeploymentRequest
187, // 3: unifiedfleet.api.v1.rpc.BatchUpdateMachineLSEDeploymentResponse.machine_lse_deployments:type_name -> unifiedfleet.api.v1.models.MachineLSEDeployment
187, // 4: unifiedfleet.api.v1.rpc.BatchGetMachineLSEDeploymentsResponse.machine_lse_deployments:type_name -> unifiedfleet.api.v1.models.MachineLSEDeployment
187, // 5: unifiedfleet.api.v1.rpc.ListMachineLSEDeploymentsResponse.machine_lse_deployments:type_name -> unifiedfleet.api.v1.models.MachineLSEDeployment
189, // 6: unifiedfleet.api.v1.rpc.CreateVMRequest.vm:type_name -> unifiedfleet.api.v1.models.VM
124, // 7: unifiedfleet.api.v1.rpc.CreateVMRequest.network_option:type_name -> unifiedfleet.api.v1.rpc.NetworkOption
189, // 8: unifiedfleet.api.v1.rpc.UpdateVMRequest.vm:type_name -> unifiedfleet.api.v1.models.VM
188, // 9: unifiedfleet.api.v1.rpc.UpdateVMRequest.update_mask:type_name -> google.protobuf.FieldMask
124, // 10: unifiedfleet.api.v1.rpc.UpdateVMRequest.network_option:type_name -> unifiedfleet.api.v1.rpc.NetworkOption
189, // 11: unifiedfleet.api.v1.rpc.ListVMsResponse.vms:type_name -> unifiedfleet.api.v1.models.VM
190, // 12: unifiedfleet.api.v1.rpc.CreateChromePlatformRequest.chromePlatform:type_name -> unifiedfleet.api.v1.models.ChromePlatform
190, // 13: unifiedfleet.api.v1.rpc.UpdateChromePlatformRequest.chromePlatform:type_name -> unifiedfleet.api.v1.models.ChromePlatform
188, // 14: unifiedfleet.api.v1.rpc.UpdateChromePlatformRequest.update_mask:type_name -> google.protobuf.FieldMask
190, // 15: unifiedfleet.api.v1.rpc.ListChromePlatformsResponse.chromePlatforms:type_name -> unifiedfleet.api.v1.models.ChromePlatform
49, // 16: unifiedfleet.api.v1.rpc.ImportChromePlatformsRequest.machine_db_source:type_name -> unifiedfleet.api.v1.rpc.MachineDBSource
50, // 17: unifiedfleet.api.v1.rpc.ImportChromePlatformsRequest.config_source:type_name -> unifiedfleet.api.v1.rpc.ConfigSource
25, // 18: unifiedfleet.api.v1.rpc.ImportChromePlatformsResponse.passed:type_name -> unifiedfleet.api.v1.rpc.ChromePlatformResult
25, // 19: unifiedfleet.api.v1.rpc.ImportChromePlatformsResponse.failed:type_name -> unifiedfleet.api.v1.rpc.ChromePlatformResult
190, // 20: unifiedfleet.api.v1.rpc.ChromePlatformResult.platform:type_name -> unifiedfleet.api.v1.models.ChromePlatform
49, // 21: unifiedfleet.api.v1.rpc.ImportOSVersionsRequest.machine_db_source:type_name -> unifiedfleet.api.v1.rpc.MachineDBSource
50, // 22: unifiedfleet.api.v1.rpc.ImportOSVersionsRequest.config_source:type_name -> unifiedfleet.api.v1.rpc.ConfigSource
191, // 23: unifiedfleet.api.v1.rpc.ListOSVersionsResponse.os_version:type_name -> unifiedfleet.api.v1.models.OSVersion
192, // 24: unifiedfleet.api.v1.rpc.CreateMachineLSEPrototypeRequest.machineLSEPrototype:type_name -> unifiedfleet.api.v1.models.MachineLSEPrototype
192, // 25: unifiedfleet.api.v1.rpc.UpdateMachineLSEPrototypeRequest.machineLSEPrototype:type_name -> unifiedfleet.api.v1.models.MachineLSEPrototype
188, // 26: unifiedfleet.api.v1.rpc.UpdateMachineLSEPrototypeRequest.update_mask:type_name -> google.protobuf.FieldMask
192, // 27: unifiedfleet.api.v1.rpc.ListMachineLSEPrototypesResponse.machineLSEPrototypes:type_name -> unifiedfleet.api.v1.models.MachineLSEPrototype
193, // 28: unifiedfleet.api.v1.rpc.CreateRackLSEPrototypeRequest.rackLSEPrototype:type_name -> unifiedfleet.api.v1.models.RackLSEPrototype
193, // 29: unifiedfleet.api.v1.rpc.UpdateRackLSEPrototypeRequest.rackLSEPrototype:type_name -> unifiedfleet.api.v1.models.RackLSEPrototype
188, // 30: unifiedfleet.api.v1.rpc.UpdateRackLSEPrototypeRequest.update_mask:type_name -> google.protobuf.FieldMask
193, // 31: unifiedfleet.api.v1.rpc.ListRackLSEPrototypesResponse.rackLSEPrototypes:type_name -> unifiedfleet.api.v1.models.RackLSEPrototype
194, // 32: unifiedfleet.api.v1.rpc.MachineRegistrationRequest.machine:type_name -> unifiedfleet.api.v1.models.Machine
194, // 33: unifiedfleet.api.v1.rpc.UpdateMachineRequest.machine:type_name -> unifiedfleet.api.v1.models.Machine
188, // 34: unifiedfleet.api.v1.rpc.UpdateMachineRequest.update_mask:type_name -> google.protobuf.FieldMask
194, // 35: unifiedfleet.api.v1.rpc.ListMachinesResponse.machines:type_name -> unifiedfleet.api.v1.models.Machine
49, // 36: unifiedfleet.api.v1.rpc.ImportMachinesRequest.machine_db_source:type_name -> unifiedfleet.api.v1.rpc.MachineDBSource
50, // 37: unifiedfleet.api.v1.rpc.ImportMachinesRequest.config_source:type_name -> unifiedfleet.api.v1.rpc.ConfigSource
195, // 38: unifiedfleet.api.v1.rpc.CreateRackRequest.rack:type_name -> unifiedfleet.api.v1.models.Rack
195, // 39: unifiedfleet.api.v1.rpc.UpdateRackRequest.rack:type_name -> unifiedfleet.api.v1.models.Rack
188, // 40: unifiedfleet.api.v1.rpc.UpdateRackRequest.update_mask:type_name -> google.protobuf.FieldMask
195, // 41: unifiedfleet.api.v1.rpc.ListRacksResponse.racks:type_name -> unifiedfleet.api.v1.models.Rack
196, // 42: unifiedfleet.api.v1.rpc.CreateMachineLSERequest.machineLSE:type_name -> unifiedfleet.api.v1.models.MachineLSE
124, // 43: unifiedfleet.api.v1.rpc.CreateMachineLSERequest.network_option:type_name -> unifiedfleet.api.v1.rpc.NetworkOption
196, // 44: unifiedfleet.api.v1.rpc.UpdateMachineLSERequest.machineLSE:type_name -> unifiedfleet.api.v1.models.MachineLSE
188, // 45: unifiedfleet.api.v1.rpc.UpdateMachineLSERequest.update_mask:type_name -> google.protobuf.FieldMask
182, // 46: unifiedfleet.api.v1.rpc.UpdateMachineLSERequest.network_options:type_name -> unifiedfleet.api.v1.rpc.UpdateMachineLSERequest.NetworkOptionsEntry
196, // 47: unifiedfleet.api.v1.rpc.ListMachineLSEsResponse.machineLSEs:type_name -> unifiedfleet.api.v1.models.MachineLSE
49, // 48: unifiedfleet.api.v1.rpc.ImportMachineLSEsRequest.machine_db_source:type_name -> unifiedfleet.api.v1.rpc.MachineDBSource
50, // 49: unifiedfleet.api.v1.rpc.ImportMachineLSEsRequest.config_source:type_name -> unifiedfleet.api.v1.rpc.ConfigSource
49, // 50: unifiedfleet.api.v1.rpc.ImportOSMachineLSEsRequest.machine_db_source:type_name -> unifiedfleet.api.v1.rpc.MachineDBSource
50, // 51: unifiedfleet.api.v1.rpc.ImportOSMachineLSEsRequest.config_source:type_name -> unifiedfleet.api.v1.rpc.ConfigSource
197, // 52: unifiedfleet.api.v1.rpc.CreateRackLSERequest.rackLSE:type_name -> unifiedfleet.api.v1.models.RackLSE
197, // 53: unifiedfleet.api.v1.rpc.UpdateRackLSERequest.rackLSE:type_name -> unifiedfleet.api.v1.models.RackLSE
188, // 54: unifiedfleet.api.v1.rpc.UpdateRackLSERequest.update_mask:type_name -> google.protobuf.FieldMask
197, // 55: unifiedfleet.api.v1.rpc.ListRackLSEsResponse.rackLSEs:type_name -> unifiedfleet.api.v1.models.RackLSE
198, // 56: unifiedfleet.api.v1.rpc.CreateNicRequest.nic:type_name -> unifiedfleet.api.v1.models.Nic
198, // 57: unifiedfleet.api.v1.rpc.UpdateNicRequest.nic:type_name -> unifiedfleet.api.v1.models.Nic
188, // 58: unifiedfleet.api.v1.rpc.UpdateNicRequest.update_mask:type_name -> google.protobuf.FieldMask
198, // 59: unifiedfleet.api.v1.rpc.ListNicsResponse.nics:type_name -> unifiedfleet.api.v1.models.Nic
49, // 60: unifiedfleet.api.v1.rpc.ImportNicsRequest.machine_db_source:type_name -> unifiedfleet.api.v1.rpc.MachineDBSource
50, // 61: unifiedfleet.api.v1.rpc.ImportNicsRequest.config_source:type_name -> unifiedfleet.api.v1.rpc.ConfigSource
49, // 62: unifiedfleet.api.v1.rpc.ImportDatacentersRequest.machine_db_source:type_name -> unifiedfleet.api.v1.rpc.MachineDBSource
50, // 63: unifiedfleet.api.v1.rpc.ImportDatacentersRequest.config_source:type_name -> unifiedfleet.api.v1.rpc.ConfigSource
199, // 64: unifiedfleet.api.v1.rpc.CreateKVMRequest.KVM:type_name -> unifiedfleet.api.v1.models.KVM
199, // 65: unifiedfleet.api.v1.rpc.UpdateKVMRequest.KVM:type_name -> unifiedfleet.api.v1.models.KVM
188, // 66: unifiedfleet.api.v1.rpc.UpdateKVMRequest.update_mask:type_name -> google.protobuf.FieldMask
124, // 67: unifiedfleet.api.v1.rpc.UpdateKVMRequest.network_option:type_name -> unifiedfleet.api.v1.rpc.NetworkOption
199, // 68: unifiedfleet.api.v1.rpc.ListKVMsResponse.KVMs:type_name -> unifiedfleet.api.v1.models.KVM
200, // 69: unifiedfleet.api.v1.rpc.CreateRPMRequest.RPM:type_name -> unifiedfleet.api.v1.models.RPM
200, // 70: unifiedfleet.api.v1.rpc.UpdateRPMRequest.RPM:type_name -> unifiedfleet.api.v1.models.RPM
188, // 71: unifiedfleet.api.v1.rpc.UpdateRPMRequest.update_mask:type_name -> google.protobuf.FieldMask
124, // 72: unifiedfleet.api.v1.rpc.UpdateRPMRequest.network_option:type_name -> unifiedfleet.api.v1.rpc.NetworkOption
200, // 73: unifiedfleet.api.v1.rpc.ListRPMsResponse.RPMs:type_name -> unifiedfleet.api.v1.models.RPM
201, // 74: unifiedfleet.api.v1.rpc.CreateDracRequest.drac:type_name -> unifiedfleet.api.v1.models.Drac
124, // 75: unifiedfleet.api.v1.rpc.CreateDracRequest.network_option:type_name -> unifiedfleet.api.v1.rpc.NetworkOption
201, // 76: unifiedfleet.api.v1.rpc.UpdateDracRequest.drac:type_name -> unifiedfleet.api.v1.models.Drac
188, // 77: unifiedfleet.api.v1.rpc.UpdateDracRequest.update_mask:type_name -> google.protobuf.FieldMask
124, // 78: unifiedfleet.api.v1.rpc.UpdateDracRequest.network_option:type_name -> unifiedfleet.api.v1.rpc.NetworkOption
201, // 79: unifiedfleet.api.v1.rpc.ListDracsResponse.dracs:type_name -> unifiedfleet.api.v1.models.Drac
202, // 80: unifiedfleet.api.v1.rpc.CreateSwitchRequest.switch:type_name -> unifiedfleet.api.v1.models.Switch
202, // 81: unifiedfleet.api.v1.rpc.UpdateSwitchRequest.switch:type_name -> unifiedfleet.api.v1.models.Switch
188, // 82: unifiedfleet.api.v1.rpc.UpdateSwitchRequest.update_mask:type_name -> google.protobuf.FieldMask
202, // 83: unifiedfleet.api.v1.rpc.ListSwitchesResponse.switches:type_name -> unifiedfleet.api.v1.models.Switch
203, // 84: unifiedfleet.api.v1.rpc.CreateVlanRequest.vlan:type_name -> unifiedfleet.api.v1.models.Vlan
203, // 85: unifiedfleet.api.v1.rpc.UpdateVlanRequest.vlan:type_name -> unifiedfleet.api.v1.models.Vlan
188, // 86: unifiedfleet.api.v1.rpc.UpdateVlanRequest.update_mask:type_name -> google.protobuf.FieldMask
203, // 87: unifiedfleet.api.v1.rpc.ListVlansResponse.vlans:type_name -> unifiedfleet.api.v1.models.Vlan
49, // 88: unifiedfleet.api.v1.rpc.ImportVlansRequest.machine_db_source:type_name -> unifiedfleet.api.v1.rpc.MachineDBSource
50, // 89: unifiedfleet.api.v1.rpc.ImportVlansRequest.config_source:type_name -> unifiedfleet.api.v1.rpc.ConfigSource
49, // 90: unifiedfleet.api.v1.rpc.ImportOSVlansRequest.machine_db_source:type_name -> unifiedfleet.api.v1.rpc.MachineDBSource
50, // 91: unifiedfleet.api.v1.rpc.ImportOSVlansRequest.config_source:type_name -> unifiedfleet.api.v1.rpc.ConfigSource
49, // 92: unifiedfleet.api.v1.rpc.ImportStatesRequest.machine_db_source:type_name -> unifiedfleet.api.v1.rpc.MachineDBSource
50, // 93: unifiedfleet.api.v1.rpc.ImportStatesRequest.config_source:type_name -> unifiedfleet.api.v1.rpc.ConfigSource
204, // 94: unifiedfleet.api.v1.rpc.ListDutStatesResponse.dut_states:type_name -> unifiedfleet.api.v1.models.chromeos.lab.DutState
205, // 95: unifiedfleet.api.v1.rpc.UpdateStateRequest.state:type_name -> unifiedfleet.api.v1.models.StateRecord
188, // 96: unifiedfleet.api.v1.rpc.UpdateStateRequest.update_mask:type_name -> google.protobuf.FieldMask
204, // 97: unifiedfleet.api.v1.rpc.UpdateDutStateRequest.dut_state:type_name -> unifiedfleet.api.v1.models.chromeos.lab.DutState
188, // 98: unifiedfleet.api.v1.rpc.UpdateDutStateRequest.update_mask:type_name -> google.protobuf.FieldMask
206, // 99: unifiedfleet.api.v1.rpc.UpdateDutStateRequest.dut_meta:type_name -> unifiedfleet.api.v1.models.DutMeta
207, // 100: unifiedfleet.api.v1.rpc.UpdateDutStateRequest.lab_meta:type_name -> unifiedfleet.api.v1.models.LabMeta
208, // 101: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.resource_state:type_name -> unifiedfleet.api.v1.models.State
204, // 102: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.dut_state:type_name -> unifiedfleet.api.v1.models.chromeos.lab.DutState
183, // 103: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.dut_data:type_name -> unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.DutData
186, // 104: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.lab_data:type_name -> unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.LabData
195, // 105: unifiedfleet.api.v1.rpc.RackRegistrationRequest.rack:type_name -> unifiedfleet.api.v1.models.Rack
209, // 106: unifiedfleet.api.v1.rpc.CreateAssetRequest.asset:type_name -> unifiedfleet.api.v1.models.asset
209, // 107: unifiedfleet.api.v1.rpc.UpdateAssetRequest.asset:type_name -> unifiedfleet.api.v1.models.asset
188, // 108: unifiedfleet.api.v1.rpc.UpdateAssetRequest.update_mask:type_name -> google.protobuf.FieldMask
209, // 109: unifiedfleet.api.v1.rpc.ListAssetsResponse.assets:type_name -> unifiedfleet.api.v1.models.asset
199, // 110: unifiedfleet.api.v1.rpc.BatchGetKVMsResponse.KVMs:type_name -> unifiedfleet.api.v1.models.KVM
210, // 111: unifiedfleet.api.v1.rpc.BatchGetDHCPConfigsResponse.dhcp_configs:type_name -> unifiedfleet.api.v1.models.DHCPConfig
196, // 112: unifiedfleet.api.v1.rpc.BatchGetMachineLSEsResponse.machine_lses:type_name -> unifiedfleet.api.v1.models.MachineLSE
194, // 113: unifiedfleet.api.v1.rpc.BatchGetMachinesResponse.machines:type_name -> unifiedfleet.api.v1.models.Machine
202, // 114: unifiedfleet.api.v1.rpc.BatchGetSwitchesResponse.switches:type_name -> unifiedfleet.api.v1.models.Switch
200, // 115: unifiedfleet.api.v1.rpc.BatchGetRPMsResponse.rpms:type_name -> unifiedfleet.api.v1.models.RPM
201, // 116: unifiedfleet.api.v1.rpc.BatchGetDracsResponse.dracs:type_name -> unifiedfleet.api.v1.models.Drac
198, // 117: unifiedfleet.api.v1.rpc.BatchGetNicsResponse.nics:type_name -> unifiedfleet.api.v1.models.Nic
189, // 118: unifiedfleet.api.v1.rpc.BatchGetVMsResponse.vms:type_name -> unifiedfleet.api.v1.models.VM
203, // 119: unifiedfleet.api.v1.rpc.BatchGetVlansResponse.vlans:type_name -> unifiedfleet.api.v1.models.Vlan
195, // 120: unifiedfleet.api.v1.rpc.BatchGetRacksResponse.racks:type_name -> unifiedfleet.api.v1.models.Rack
190, // 121: unifiedfleet.api.v1.rpc.BatchGetChromePlatformsResponse.chrome_platforms:type_name -> unifiedfleet.api.v1.models.ChromePlatform
192, // 122: unifiedfleet.api.v1.rpc.BatchGetMachineLSEPrototypesResponse.machine_lse_prototypes:type_name -> unifiedfleet.api.v1.models.MachineLSEPrototype
193, // 123: unifiedfleet.api.v1.rpc.BatchGetRackLSEPrototypesResponse.rack_lse_prototypes:type_name -> unifiedfleet.api.v1.models.RackLSEPrototype
211, // 124: unifiedfleet.api.v1.rpc.CreateCachingServiceRequest.cachingService:type_name -> unifiedfleet.api.v1.models.CachingService
211, // 125: unifiedfleet.api.v1.rpc.UpdateCachingServiceRequest.cachingService:type_name -> unifiedfleet.api.v1.models.CachingService
188, // 126: unifiedfleet.api.v1.rpc.UpdateCachingServiceRequest.update_mask:type_name -> google.protobuf.FieldMask
211, // 127: unifiedfleet.api.v1.rpc.ListCachingServicesResponse.cachingServices:type_name -> unifiedfleet.api.v1.models.CachingService
212, // 128: unifiedfleet.api.v1.rpc.CreateSchedulingUnitRequest.scheduling_unit:type_name -> unifiedfleet.api.v1.models.SchedulingUnit
212, // 129: unifiedfleet.api.v1.rpc.UpdateSchedulingUnitRequest.scheduling_unit:type_name -> unifiedfleet.api.v1.models.SchedulingUnit
188, // 130: unifiedfleet.api.v1.rpc.UpdateSchedulingUnitRequest.update_mask:type_name -> google.protobuf.FieldMask
212, // 131: unifiedfleet.api.v1.rpc.ListSchedulingUnitsResponse.scheduling_units:type_name -> unifiedfleet.api.v1.models.SchedulingUnit
188, // 132: unifiedfleet.api.v1.rpc.UpdateConfigBundleRequest.update_mask:type_name -> google.protobuf.FieldMask
212, // 133: unifiedfleet.api.v1.rpc.GetDeviceDataResponse.scheduling_unit:type_name -> unifiedfleet.api.v1.models.SchedulingUnit
213, // 134: unifiedfleet.api.v1.rpc.GetDeviceDataResponse.chrome_os_device_data:type_name -> unifiedfleet.api.v1.models.ChromeOSDeviceData
177, // 135: unifiedfleet.api.v1.rpc.GetDeviceDataResponse.attached_device_data:type_name -> unifiedfleet.api.v1.rpc.AttachedDeviceData
178, // 136: unifiedfleet.api.v1.rpc.GetDeviceDataResponse.browser_device_data:type_name -> unifiedfleet.api.v1.rpc.BrowserDeviceData
0, // 137: unifiedfleet.api.v1.rpc.GetDeviceDataResponse.resource_type:type_name -> unifiedfleet.api.v1.rpc.GetDeviceDataResponse.ResourceType
196, // 138: unifiedfleet.api.v1.rpc.AttachedDeviceData.lab_config:type_name -> unifiedfleet.api.v1.models.MachineLSE
194, // 139: unifiedfleet.api.v1.rpc.AttachedDeviceData.machine:type_name -> unifiedfleet.api.v1.models.Machine
204, // 140: unifiedfleet.api.v1.rpc.AttachedDeviceData.dut_state:type_name -> unifiedfleet.api.v1.models.chromeos.lab.DutState
196, // 141: unifiedfleet.api.v1.rpc.BrowserDeviceData.host:type_name -> unifiedfleet.api.v1.models.MachineLSE
189, // 142: unifiedfleet.api.v1.rpc.BrowserDeviceData.vm:type_name -> unifiedfleet.api.v1.models.VM
1, // 143: unifiedfleet.api.v1.rpc.TestStatus.code:type_name -> unifiedfleet.api.v1.rpc.TestStatus.Code
180, // 144: unifiedfleet.api.v1.rpc.CheckFleetTestsPolicyResponse.testStatus:type_name -> unifiedfleet.api.v1.rpc.TestStatus
124, // 145: unifiedfleet.api.v1.rpc.UpdateMachineLSERequest.NetworkOptionsEntry.value:type_name -> unifiedfleet.api.v1.rpc.NetworkOption
214, // 146: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.WifiRouter.state:type_name -> unifiedfleet.api.v1.models.chromeos.lab.PeripheralState
214, // 147: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.BluetoothPeer.state:type_name -> unifiedfleet.api.v1.models.chromeos.lab.PeripheralState
215, // 148: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.LabData.servo_topology:type_name -> unifiedfleet.api.v1.models.chromeos.lab.ServoTopology
184, // 149: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.LabData.wifi_routers:type_name -> unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.WifiRouter
185, // 150: unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.LabData.blueooth_peers:type_name -> unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest.BluetoothPeer
17, // 151: unifiedfleet.api.v1.rpc.Fleet.CreateChromePlatform:input_type -> unifiedfleet.api.v1.rpc.CreateChromePlatformRequest
18, // 152: unifiedfleet.api.v1.rpc.Fleet.UpdateChromePlatform:input_type -> unifiedfleet.api.v1.rpc.UpdateChromePlatformRequest
19, // 153: unifiedfleet.api.v1.rpc.Fleet.GetChromePlatform:input_type -> unifiedfleet.api.v1.rpc.GetChromePlatformRequest
20, // 154: unifiedfleet.api.v1.rpc.Fleet.ListChromePlatforms:input_type -> unifiedfleet.api.v1.rpc.ListChromePlatformsRequest
22, // 155: unifiedfleet.api.v1.rpc.Fleet.DeleteChromePlatform:input_type -> unifiedfleet.api.v1.rpc.DeleteChromePlatformRequest
23, // 156: unifiedfleet.api.v1.rpc.Fleet.ImportChromePlatforms:input_type -> unifiedfleet.api.v1.rpc.ImportChromePlatformsRequest
27, // 157: unifiedfleet.api.v1.rpc.Fleet.ListOSVersions:input_type -> unifiedfleet.api.v1.rpc.ListOSVersionsRequest
26, // 158: unifiedfleet.api.v1.rpc.Fleet.ImportOSVersions:input_type -> unifiedfleet.api.v1.rpc.ImportOSVersionsRequest
29, // 159: unifiedfleet.api.v1.rpc.Fleet.CreateMachineLSEPrototype:input_type -> unifiedfleet.api.v1.rpc.CreateMachineLSEPrototypeRequest
30, // 160: unifiedfleet.api.v1.rpc.Fleet.UpdateMachineLSEPrototype:input_type -> unifiedfleet.api.v1.rpc.UpdateMachineLSEPrototypeRequest
31, // 161: unifiedfleet.api.v1.rpc.Fleet.GetMachineLSEPrototype:input_type -> unifiedfleet.api.v1.rpc.GetMachineLSEPrototypeRequest
32, // 162: unifiedfleet.api.v1.rpc.Fleet.ListMachineLSEPrototypes:input_type -> unifiedfleet.api.v1.rpc.ListMachineLSEPrototypesRequest
34, // 163: unifiedfleet.api.v1.rpc.Fleet.DeleteMachineLSEPrototype:input_type -> unifiedfleet.api.v1.rpc.DeleteMachineLSEPrototypeRequest
35, // 164: unifiedfleet.api.v1.rpc.Fleet.CreateRackLSEPrototype:input_type -> unifiedfleet.api.v1.rpc.CreateRackLSEPrototypeRequest
36, // 165: unifiedfleet.api.v1.rpc.Fleet.UpdateRackLSEPrototype:input_type -> unifiedfleet.api.v1.rpc.UpdateRackLSEPrototypeRequest
37, // 166: unifiedfleet.api.v1.rpc.Fleet.GetRackLSEPrototype:input_type -> unifiedfleet.api.v1.rpc.GetRackLSEPrototypeRequest
38, // 167: unifiedfleet.api.v1.rpc.Fleet.ListRackLSEPrototypes:input_type -> unifiedfleet.api.v1.rpc.ListRackLSEPrototypesRequest
40, // 168: unifiedfleet.api.v1.rpc.Fleet.DeleteRackLSEPrototype:input_type -> unifiedfleet.api.v1.rpc.DeleteRackLSEPrototypeRequest
41, // 169: unifiedfleet.api.v1.rpc.Fleet.MachineRegistration:input_type -> unifiedfleet.api.v1.rpc.MachineRegistrationRequest
42, // 170: unifiedfleet.api.v1.rpc.Fleet.UpdateMachine:input_type -> unifiedfleet.api.v1.rpc.UpdateMachineRequest
43, // 171: unifiedfleet.api.v1.rpc.Fleet.GetMachine:input_type -> unifiedfleet.api.v1.rpc.GetMachineRequest
44, // 172: unifiedfleet.api.v1.rpc.Fleet.ListMachines:input_type -> unifiedfleet.api.v1.rpc.ListMachinesRequest
46, // 173: unifiedfleet.api.v1.rpc.Fleet.DeleteMachine:input_type -> unifiedfleet.api.v1.rpc.DeleteMachineRequest
47, // 174: unifiedfleet.api.v1.rpc.Fleet.ImportMachines:input_type -> unifiedfleet.api.v1.rpc.ImportMachinesRequest
48, // 175: unifiedfleet.api.v1.rpc.Fleet.RenameMachine:input_type -> unifiedfleet.api.v1.rpc.RenameMachineRequest
123, // 176: unifiedfleet.api.v1.rpc.Fleet.RackRegistration:input_type -> unifiedfleet.api.v1.rpc.RackRegistrationRequest
52, // 177: unifiedfleet.api.v1.rpc.Fleet.UpdateRack:input_type -> unifiedfleet.api.v1.rpc.UpdateRackRequest
53, // 178: unifiedfleet.api.v1.rpc.Fleet.GetRack:input_type -> unifiedfleet.api.v1.rpc.GetRackRequest
54, // 179: unifiedfleet.api.v1.rpc.Fleet.ListRacks:input_type -> unifiedfleet.api.v1.rpc.ListRacksRequest
56, // 180: unifiedfleet.api.v1.rpc.Fleet.DeleteRack:input_type -> unifiedfleet.api.v1.rpc.DeleteRackRequest
57, // 181: unifiedfleet.api.v1.rpc.Fleet.CreateMachineLSE:input_type -> unifiedfleet.api.v1.rpc.CreateMachineLSERequest
58, // 182: unifiedfleet.api.v1.rpc.Fleet.UpdateMachineLSE:input_type -> unifiedfleet.api.v1.rpc.UpdateMachineLSERequest
59, // 183: unifiedfleet.api.v1.rpc.Fleet.GetMachineLSE:input_type -> unifiedfleet.api.v1.rpc.GetMachineLSERequest
60, // 184: unifiedfleet.api.v1.rpc.Fleet.ListMachineLSEs:input_type -> unifiedfleet.api.v1.rpc.ListMachineLSEsRequest
62, // 185: unifiedfleet.api.v1.rpc.Fleet.DeleteMachineLSE:input_type -> unifiedfleet.api.v1.rpc.DeleteMachineLSERequest
63, // 186: unifiedfleet.api.v1.rpc.Fleet.RenameMachineLSE:input_type -> unifiedfleet.api.v1.rpc.RenameMachineLSERequest
64, // 187: unifiedfleet.api.v1.rpc.Fleet.ImportMachineLSEs:input_type -> unifiedfleet.api.v1.rpc.ImportMachineLSEsRequest
65, // 188: unifiedfleet.api.v1.rpc.Fleet.ImportOSMachineLSEs:input_type -> unifiedfleet.api.v1.rpc.ImportOSMachineLSEsRequest
66, // 189: unifiedfleet.api.v1.rpc.Fleet.CreateRackLSE:input_type -> unifiedfleet.api.v1.rpc.CreateRackLSERequest
67, // 190: unifiedfleet.api.v1.rpc.Fleet.UpdateRackLSE:input_type -> unifiedfleet.api.v1.rpc.UpdateRackLSERequest
68, // 191: unifiedfleet.api.v1.rpc.Fleet.GetRackLSE:input_type -> unifiedfleet.api.v1.rpc.GetRackLSERequest
69, // 192: unifiedfleet.api.v1.rpc.Fleet.ListRackLSEs:input_type -> unifiedfleet.api.v1.rpc.ListRackLSEsRequest
71, // 193: unifiedfleet.api.v1.rpc.Fleet.DeleteRackLSE:input_type -> unifiedfleet.api.v1.rpc.DeleteRackLSERequest
72, // 194: unifiedfleet.api.v1.rpc.Fleet.CreateNic:input_type -> unifiedfleet.api.v1.rpc.CreateNicRequest
73, // 195: unifiedfleet.api.v1.rpc.Fleet.UpdateNic:input_type -> unifiedfleet.api.v1.rpc.UpdateNicRequest
74, // 196: unifiedfleet.api.v1.rpc.Fleet.GetNic:input_type -> unifiedfleet.api.v1.rpc.GetNicRequest
75, // 197: unifiedfleet.api.v1.rpc.Fleet.ListNics:input_type -> unifiedfleet.api.v1.rpc.ListNicsRequest
77, // 198: unifiedfleet.api.v1.rpc.Fleet.DeleteNic:input_type -> unifiedfleet.api.v1.rpc.DeleteNicRequest
78, // 199: unifiedfleet.api.v1.rpc.Fleet.ImportNics:input_type -> unifiedfleet.api.v1.rpc.ImportNicsRequest
79, // 200: unifiedfleet.api.v1.rpc.Fleet.RenameNic:input_type -> unifiedfleet.api.v1.rpc.RenameNicRequest
81, // 201: unifiedfleet.api.v1.rpc.Fleet.ImportDatacenters:input_type -> unifiedfleet.api.v1.rpc.ImportDatacentersRequest
82, // 202: unifiedfleet.api.v1.rpc.Fleet.CreateKVM:input_type -> unifiedfleet.api.v1.rpc.CreateKVMRequest
83, // 203: unifiedfleet.api.v1.rpc.Fleet.UpdateKVM:input_type -> unifiedfleet.api.v1.rpc.UpdateKVMRequest
84, // 204: unifiedfleet.api.v1.rpc.Fleet.GetKVM:input_type -> unifiedfleet.api.v1.rpc.GetKVMRequest
85, // 205: unifiedfleet.api.v1.rpc.Fleet.ListKVMs:input_type -> unifiedfleet.api.v1.rpc.ListKVMsRequest
87, // 206: unifiedfleet.api.v1.rpc.Fleet.DeleteKVM:input_type -> unifiedfleet.api.v1.rpc.DeleteKVMRequest
88, // 207: unifiedfleet.api.v1.rpc.Fleet.CreateRPM:input_type -> unifiedfleet.api.v1.rpc.CreateRPMRequest
89, // 208: unifiedfleet.api.v1.rpc.Fleet.UpdateRPM:input_type -> unifiedfleet.api.v1.rpc.UpdateRPMRequest
90, // 209: unifiedfleet.api.v1.rpc.Fleet.GetRPM:input_type -> unifiedfleet.api.v1.rpc.GetRPMRequest
91, // 210: unifiedfleet.api.v1.rpc.Fleet.ListRPMs:input_type -> unifiedfleet.api.v1.rpc.ListRPMsRequest
93, // 211: unifiedfleet.api.v1.rpc.Fleet.DeleteRPM:input_type -> unifiedfleet.api.v1.rpc.DeleteRPMRequest
94, // 212: unifiedfleet.api.v1.rpc.Fleet.CreateDrac:input_type -> unifiedfleet.api.v1.rpc.CreateDracRequest
95, // 213: unifiedfleet.api.v1.rpc.Fleet.UpdateDrac:input_type -> unifiedfleet.api.v1.rpc.UpdateDracRequest
96, // 214: unifiedfleet.api.v1.rpc.Fleet.GetDrac:input_type -> unifiedfleet.api.v1.rpc.GetDracRequest
97, // 215: unifiedfleet.api.v1.rpc.Fleet.ListDracs:input_type -> unifiedfleet.api.v1.rpc.ListDracsRequest
99, // 216: unifiedfleet.api.v1.rpc.Fleet.DeleteDrac:input_type -> unifiedfleet.api.v1.rpc.DeleteDracRequest
100, // 217: unifiedfleet.api.v1.rpc.Fleet.CreateSwitch:input_type -> unifiedfleet.api.v1.rpc.CreateSwitchRequest
101, // 218: unifiedfleet.api.v1.rpc.Fleet.UpdateSwitch:input_type -> unifiedfleet.api.v1.rpc.UpdateSwitchRequest
102, // 219: unifiedfleet.api.v1.rpc.Fleet.GetSwitch:input_type -> unifiedfleet.api.v1.rpc.GetSwitchRequest
103, // 220: unifiedfleet.api.v1.rpc.Fleet.ListSwitches:input_type -> unifiedfleet.api.v1.rpc.ListSwitchesRequest
105, // 221: unifiedfleet.api.v1.rpc.Fleet.DeleteSwitch:input_type -> unifiedfleet.api.v1.rpc.DeleteSwitchRequest
80, // 222: unifiedfleet.api.v1.rpc.Fleet.RenameSwitch:input_type -> unifiedfleet.api.v1.rpc.RenameSwitchRequest
106, // 223: unifiedfleet.api.v1.rpc.Fleet.CreateVlan:input_type -> unifiedfleet.api.v1.rpc.CreateVlanRequest
107, // 224: unifiedfleet.api.v1.rpc.Fleet.UpdateVlan:input_type -> unifiedfleet.api.v1.rpc.UpdateVlanRequest
108, // 225: unifiedfleet.api.v1.rpc.Fleet.GetVlan:input_type -> unifiedfleet.api.v1.rpc.GetVlanRequest
109, // 226: unifiedfleet.api.v1.rpc.Fleet.ListVlans:input_type -> unifiedfleet.api.v1.rpc.ListVlansRequest
111, // 227: unifiedfleet.api.v1.rpc.Fleet.DeleteVlan:input_type -> unifiedfleet.api.v1.rpc.DeleteVlanRequest
112, // 228: unifiedfleet.api.v1.rpc.Fleet.ImportVlans:input_type -> unifiedfleet.api.v1.rpc.ImportVlansRequest
113, // 229: unifiedfleet.api.v1.rpc.Fleet.ImportOSVlans:input_type -> unifiedfleet.api.v1.rpc.ImportOSVlansRequest
114, // 230: unifiedfleet.api.v1.rpc.Fleet.ImportStates:input_type -> unifiedfleet.api.v1.rpc.ImportStatesRequest
119, // 231: unifiedfleet.api.v1.rpc.Fleet.UpdateState:input_type -> unifiedfleet.api.v1.rpc.UpdateStateRequest
115, // 232: unifiedfleet.api.v1.rpc.Fleet.GetState:input_type -> unifiedfleet.api.v1.rpc.GetStateRequest
116, // 233: unifiedfleet.api.v1.rpc.Fleet.GetDutState:input_type -> unifiedfleet.api.v1.rpc.GetDutStateRequest
117, // 234: unifiedfleet.api.v1.rpc.Fleet.ListDutStates:input_type -> unifiedfleet.api.v1.rpc.ListDutStatesRequest
120, // 235: unifiedfleet.api.v1.rpc.Fleet.UpdateDutState:input_type -> unifiedfleet.api.v1.rpc.UpdateDutStateRequest
121, // 236: unifiedfleet.api.v1.rpc.Fleet.UpdateDeviceRecoveryData:input_type -> unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataRequest
16, // 237: unifiedfleet.api.v1.rpc.Fleet.GetDHCPConfig:input_type -> unifiedfleet.api.v1.rpc.GetDHCPConfigRequest
10, // 238: unifiedfleet.api.v1.rpc.Fleet.CreateVM:input_type -> unifiedfleet.api.v1.rpc.CreateVMRequest
11, // 239: unifiedfleet.api.v1.rpc.Fleet.UpdateVM:input_type -> unifiedfleet.api.v1.rpc.UpdateVMRequest
13, // 240: unifiedfleet.api.v1.rpc.Fleet.DeleteVM:input_type -> unifiedfleet.api.v1.rpc.DeleteVMRequest
12, // 241: unifiedfleet.api.v1.rpc.Fleet.GetVM:input_type -> unifiedfleet.api.v1.rpc.GetVMRequest
14, // 242: unifiedfleet.api.v1.rpc.Fleet.ListVMs:input_type -> unifiedfleet.api.v1.rpc.ListVMsRequest
125, // 243: unifiedfleet.api.v1.rpc.Fleet.CreateAsset:input_type -> unifiedfleet.api.v1.rpc.CreateAssetRequest
126, // 244: unifiedfleet.api.v1.rpc.Fleet.UpdateAsset:input_type -> unifiedfleet.api.v1.rpc.UpdateAssetRequest
127, // 245: unifiedfleet.api.v1.rpc.Fleet.GetAsset:input_type -> unifiedfleet.api.v1.rpc.GetAssetRequest
128, // 246: unifiedfleet.api.v1.rpc.Fleet.ListAssets:input_type -> unifiedfleet.api.v1.rpc.ListAssetsRequest
130, // 247: unifiedfleet.api.v1.rpc.Fleet.DeleteAsset:input_type -> unifiedfleet.api.v1.rpc.DeleteAssetRequest
131, // 248: unifiedfleet.api.v1.rpc.Fleet.RenameAsset:input_type -> unifiedfleet.api.v1.rpc.RenameAssetRequest
132, // 249: unifiedfleet.api.v1.rpc.Fleet.BatchGetKVMs:input_type -> unifiedfleet.api.v1.rpc.BatchGetKVMsRequest
134, // 250: unifiedfleet.api.v1.rpc.Fleet.BatchGetDHCPConfigs:input_type -> unifiedfleet.api.v1.rpc.BatchGetDHCPConfigsRequest
136, // 251: unifiedfleet.api.v1.rpc.Fleet.BatchGetMachineLSEs:input_type -> unifiedfleet.api.v1.rpc.BatchGetMachineLSEsRequest
138, // 252: unifiedfleet.api.v1.rpc.Fleet.BatchGetMachines:input_type -> unifiedfleet.api.v1.rpc.BatchGetMachinesRequest
140, // 253: unifiedfleet.api.v1.rpc.Fleet.BatchGetSwitches:input_type -> unifiedfleet.api.v1.rpc.BatchGetSwitchesRequest
142, // 254: unifiedfleet.api.v1.rpc.Fleet.BatchGetRPMs:input_type -> unifiedfleet.api.v1.rpc.BatchGetRPMsRequest
144, // 255: unifiedfleet.api.v1.rpc.Fleet.BatchGetDracs:input_type -> unifiedfleet.api.v1.rpc.BatchGetDracsRequest
146, // 256: unifiedfleet.api.v1.rpc.Fleet.BatchGetNics:input_type -> unifiedfleet.api.v1.rpc.BatchGetNicsRequest
148, // 257: unifiedfleet.api.v1.rpc.Fleet.BatchGetVMs:input_type -> unifiedfleet.api.v1.rpc.BatchGetVMsRequest
150, // 258: unifiedfleet.api.v1.rpc.Fleet.BatchGetVlans:input_type -> unifiedfleet.api.v1.rpc.BatchGetVlansRequest
152, // 259: unifiedfleet.api.v1.rpc.Fleet.BatchGetRacks:input_type -> unifiedfleet.api.v1.rpc.BatchGetRacksRequest
154, // 260: unifiedfleet.api.v1.rpc.Fleet.BatchGetChromePlatforms:input_type -> unifiedfleet.api.v1.rpc.BatchGetChromePlatformsRequest
156, // 261: unifiedfleet.api.v1.rpc.Fleet.BatchGetMachineLSEPrototypes:input_type -> unifiedfleet.api.v1.rpc.BatchGetMachineLSEPrototypesRequest
158, // 262: unifiedfleet.api.v1.rpc.Fleet.BatchGetRackLSEPrototypes:input_type -> unifiedfleet.api.v1.rpc.BatchGetRackLSEPrototypesRequest
160, // 263: unifiedfleet.api.v1.rpc.Fleet.GetChromeOSDeviceData:input_type -> unifiedfleet.api.v1.rpc.GetChromeOSDeviceDataRequest
161, // 264: unifiedfleet.api.v1.rpc.Fleet.CreateCachingService:input_type -> unifiedfleet.api.v1.rpc.CreateCachingServiceRequest
162, // 265: unifiedfleet.api.v1.rpc.Fleet.UpdateCachingService:input_type -> unifiedfleet.api.v1.rpc.UpdateCachingServiceRequest
163, // 266: unifiedfleet.api.v1.rpc.Fleet.GetCachingService:input_type -> unifiedfleet.api.v1.rpc.GetCachingServiceRequest
164, // 267: unifiedfleet.api.v1.rpc.Fleet.ListCachingServices:input_type -> unifiedfleet.api.v1.rpc.ListCachingServicesRequest
166, // 268: unifiedfleet.api.v1.rpc.Fleet.DeleteCachingService:input_type -> unifiedfleet.api.v1.rpc.DeleteCachingServiceRequest
2, // 269: unifiedfleet.api.v1.rpc.Fleet.UpdateMachineLSEDeployment:input_type -> unifiedfleet.api.v1.rpc.UpdateMachineLSEDeploymentRequest
3, // 270: unifiedfleet.api.v1.rpc.Fleet.BatchUpdateMachineLSEDeployment:input_type -> unifiedfleet.api.v1.rpc.BatchUpdateMachineLSEDeploymentRequest
5, // 271: unifiedfleet.api.v1.rpc.Fleet.GetMachineLSEDeployment:input_type -> unifiedfleet.api.v1.rpc.GetMachineLSEDeploymentRequest
6, // 272: unifiedfleet.api.v1.rpc.Fleet.BatchGetMachineLSEDeployments:input_type -> unifiedfleet.api.v1.rpc.BatchGetMachineLSEDeploymentsRequest
8, // 273: unifiedfleet.api.v1.rpc.Fleet.ListMachineLSEDeployments:input_type -> unifiedfleet.api.v1.rpc.ListMachineLSEDeploymentsRequest
167, // 274: unifiedfleet.api.v1.rpc.Fleet.CreateSchedulingUnit:input_type -> unifiedfleet.api.v1.rpc.CreateSchedulingUnitRequest
168, // 275: unifiedfleet.api.v1.rpc.Fleet.UpdateSchedulingUnit:input_type -> unifiedfleet.api.v1.rpc.UpdateSchedulingUnitRequest
169, // 276: unifiedfleet.api.v1.rpc.Fleet.GetSchedulingUnit:input_type -> unifiedfleet.api.v1.rpc.GetSchedulingUnitRequest
170, // 277: unifiedfleet.api.v1.rpc.Fleet.ListSchedulingUnits:input_type -> unifiedfleet.api.v1.rpc.ListSchedulingUnitsRequest
172, // 278: unifiedfleet.api.v1.rpc.Fleet.DeleteSchedulingUnit:input_type -> unifiedfleet.api.v1.rpc.DeleteSchedulingUnitRequest
173, // 279: unifiedfleet.api.v1.rpc.Fleet.UpdateConfigBundle:input_type -> unifiedfleet.api.v1.rpc.UpdateConfigBundleRequest
175, // 280: unifiedfleet.api.v1.rpc.Fleet.GetDeviceData:input_type -> unifiedfleet.api.v1.rpc.GetDeviceDataRequest
179, // 281: unifiedfleet.api.v1.rpc.Fleet.CheckFleetTestsPolicy:input_type -> unifiedfleet.api.v1.rpc.CheckFleetTestsPolicyRequest
190, // 282: unifiedfleet.api.v1.rpc.Fleet.CreateChromePlatform:output_type -> unifiedfleet.api.v1.models.ChromePlatform
190, // 283: unifiedfleet.api.v1.rpc.Fleet.UpdateChromePlatform:output_type -> unifiedfleet.api.v1.models.ChromePlatform
190, // 284: unifiedfleet.api.v1.rpc.Fleet.GetChromePlatform:output_type -> unifiedfleet.api.v1.models.ChromePlatform
21, // 285: unifiedfleet.api.v1.rpc.Fleet.ListChromePlatforms:output_type -> unifiedfleet.api.v1.rpc.ListChromePlatformsResponse
216, // 286: unifiedfleet.api.v1.rpc.Fleet.DeleteChromePlatform:output_type -> google.protobuf.Empty
217, // 287: unifiedfleet.api.v1.rpc.Fleet.ImportChromePlatforms:output_type -> google.rpc.Status
28, // 288: unifiedfleet.api.v1.rpc.Fleet.ListOSVersions:output_type -> unifiedfleet.api.v1.rpc.ListOSVersionsResponse
217, // 289: unifiedfleet.api.v1.rpc.Fleet.ImportOSVersions:output_type -> google.rpc.Status
192, // 290: unifiedfleet.api.v1.rpc.Fleet.CreateMachineLSEPrototype:output_type -> unifiedfleet.api.v1.models.MachineLSEPrototype
192, // 291: unifiedfleet.api.v1.rpc.Fleet.UpdateMachineLSEPrototype:output_type -> unifiedfleet.api.v1.models.MachineLSEPrototype
192, // 292: unifiedfleet.api.v1.rpc.Fleet.GetMachineLSEPrototype:output_type -> unifiedfleet.api.v1.models.MachineLSEPrototype
33, // 293: unifiedfleet.api.v1.rpc.Fleet.ListMachineLSEPrototypes:output_type -> unifiedfleet.api.v1.rpc.ListMachineLSEPrototypesResponse
216, // 294: unifiedfleet.api.v1.rpc.Fleet.DeleteMachineLSEPrototype:output_type -> google.protobuf.Empty
193, // 295: unifiedfleet.api.v1.rpc.Fleet.CreateRackLSEPrototype:output_type -> unifiedfleet.api.v1.models.RackLSEPrototype
193, // 296: unifiedfleet.api.v1.rpc.Fleet.UpdateRackLSEPrototype:output_type -> unifiedfleet.api.v1.models.RackLSEPrototype
193, // 297: unifiedfleet.api.v1.rpc.Fleet.GetRackLSEPrototype:output_type -> unifiedfleet.api.v1.models.RackLSEPrototype
39, // 298: unifiedfleet.api.v1.rpc.Fleet.ListRackLSEPrototypes:output_type -> unifiedfleet.api.v1.rpc.ListRackLSEPrototypesResponse
216, // 299: unifiedfleet.api.v1.rpc.Fleet.DeleteRackLSEPrototype:output_type -> google.protobuf.Empty
194, // 300: unifiedfleet.api.v1.rpc.Fleet.MachineRegistration:output_type -> unifiedfleet.api.v1.models.Machine
194, // 301: unifiedfleet.api.v1.rpc.Fleet.UpdateMachine:output_type -> unifiedfleet.api.v1.models.Machine
194, // 302: unifiedfleet.api.v1.rpc.Fleet.GetMachine:output_type -> unifiedfleet.api.v1.models.Machine
45, // 303: unifiedfleet.api.v1.rpc.Fleet.ListMachines:output_type -> unifiedfleet.api.v1.rpc.ListMachinesResponse
216, // 304: unifiedfleet.api.v1.rpc.Fleet.DeleteMachine:output_type -> google.protobuf.Empty
217, // 305: unifiedfleet.api.v1.rpc.Fleet.ImportMachines:output_type -> google.rpc.Status
194, // 306: unifiedfleet.api.v1.rpc.Fleet.RenameMachine:output_type -> unifiedfleet.api.v1.models.Machine
195, // 307: unifiedfleet.api.v1.rpc.Fleet.RackRegistration:output_type -> unifiedfleet.api.v1.models.Rack
195, // 308: unifiedfleet.api.v1.rpc.Fleet.UpdateRack:output_type -> unifiedfleet.api.v1.models.Rack
195, // 309: unifiedfleet.api.v1.rpc.Fleet.GetRack:output_type -> unifiedfleet.api.v1.models.Rack
55, // 310: unifiedfleet.api.v1.rpc.Fleet.ListRacks:output_type -> unifiedfleet.api.v1.rpc.ListRacksResponse
216, // 311: unifiedfleet.api.v1.rpc.Fleet.DeleteRack:output_type -> google.protobuf.Empty
196, // 312: unifiedfleet.api.v1.rpc.Fleet.CreateMachineLSE:output_type -> unifiedfleet.api.v1.models.MachineLSE
196, // 313: unifiedfleet.api.v1.rpc.Fleet.UpdateMachineLSE:output_type -> unifiedfleet.api.v1.models.MachineLSE
196, // 314: unifiedfleet.api.v1.rpc.Fleet.GetMachineLSE:output_type -> unifiedfleet.api.v1.models.MachineLSE
61, // 315: unifiedfleet.api.v1.rpc.Fleet.ListMachineLSEs:output_type -> unifiedfleet.api.v1.rpc.ListMachineLSEsResponse
216, // 316: unifiedfleet.api.v1.rpc.Fleet.DeleteMachineLSE:output_type -> google.protobuf.Empty
196, // 317: unifiedfleet.api.v1.rpc.Fleet.RenameMachineLSE:output_type -> unifiedfleet.api.v1.models.MachineLSE
217, // 318: unifiedfleet.api.v1.rpc.Fleet.ImportMachineLSEs:output_type -> google.rpc.Status
217, // 319: unifiedfleet.api.v1.rpc.Fleet.ImportOSMachineLSEs:output_type -> google.rpc.Status
197, // 320: unifiedfleet.api.v1.rpc.Fleet.CreateRackLSE:output_type -> unifiedfleet.api.v1.models.RackLSE
197, // 321: unifiedfleet.api.v1.rpc.Fleet.UpdateRackLSE:output_type -> unifiedfleet.api.v1.models.RackLSE
197, // 322: unifiedfleet.api.v1.rpc.Fleet.GetRackLSE:output_type -> unifiedfleet.api.v1.models.RackLSE
70, // 323: unifiedfleet.api.v1.rpc.Fleet.ListRackLSEs:output_type -> unifiedfleet.api.v1.rpc.ListRackLSEsResponse
216, // 324: unifiedfleet.api.v1.rpc.Fleet.DeleteRackLSE:output_type -> google.protobuf.Empty
198, // 325: unifiedfleet.api.v1.rpc.Fleet.CreateNic:output_type -> unifiedfleet.api.v1.models.Nic
198, // 326: unifiedfleet.api.v1.rpc.Fleet.UpdateNic:output_type -> unifiedfleet.api.v1.models.Nic
198, // 327: unifiedfleet.api.v1.rpc.Fleet.GetNic:output_type -> unifiedfleet.api.v1.models.Nic
76, // 328: unifiedfleet.api.v1.rpc.Fleet.ListNics:output_type -> unifiedfleet.api.v1.rpc.ListNicsResponse
216, // 329: unifiedfleet.api.v1.rpc.Fleet.DeleteNic:output_type -> google.protobuf.Empty
217, // 330: unifiedfleet.api.v1.rpc.Fleet.ImportNics:output_type -> google.rpc.Status
198, // 331: unifiedfleet.api.v1.rpc.Fleet.RenameNic:output_type -> unifiedfleet.api.v1.models.Nic
217, // 332: unifiedfleet.api.v1.rpc.Fleet.ImportDatacenters:output_type -> google.rpc.Status
199, // 333: unifiedfleet.api.v1.rpc.Fleet.CreateKVM:output_type -> unifiedfleet.api.v1.models.KVM
199, // 334: unifiedfleet.api.v1.rpc.Fleet.UpdateKVM:output_type -> unifiedfleet.api.v1.models.KVM
199, // 335: unifiedfleet.api.v1.rpc.Fleet.GetKVM:output_type -> unifiedfleet.api.v1.models.KVM
86, // 336: unifiedfleet.api.v1.rpc.Fleet.ListKVMs:output_type -> unifiedfleet.api.v1.rpc.ListKVMsResponse
216, // 337: unifiedfleet.api.v1.rpc.Fleet.DeleteKVM:output_type -> google.protobuf.Empty
200, // 338: unifiedfleet.api.v1.rpc.Fleet.CreateRPM:output_type -> unifiedfleet.api.v1.models.RPM
200, // 339: unifiedfleet.api.v1.rpc.Fleet.UpdateRPM:output_type -> unifiedfleet.api.v1.models.RPM
200, // 340: unifiedfleet.api.v1.rpc.Fleet.GetRPM:output_type -> unifiedfleet.api.v1.models.RPM
92, // 341: unifiedfleet.api.v1.rpc.Fleet.ListRPMs:output_type -> unifiedfleet.api.v1.rpc.ListRPMsResponse
216, // 342: unifiedfleet.api.v1.rpc.Fleet.DeleteRPM:output_type -> google.protobuf.Empty
201, // 343: unifiedfleet.api.v1.rpc.Fleet.CreateDrac:output_type -> unifiedfleet.api.v1.models.Drac
201, // 344: unifiedfleet.api.v1.rpc.Fleet.UpdateDrac:output_type -> unifiedfleet.api.v1.models.Drac
201, // 345: unifiedfleet.api.v1.rpc.Fleet.GetDrac:output_type -> unifiedfleet.api.v1.models.Drac
98, // 346: unifiedfleet.api.v1.rpc.Fleet.ListDracs:output_type -> unifiedfleet.api.v1.rpc.ListDracsResponse
216, // 347: unifiedfleet.api.v1.rpc.Fleet.DeleteDrac:output_type -> google.protobuf.Empty
202, // 348: unifiedfleet.api.v1.rpc.Fleet.CreateSwitch:output_type -> unifiedfleet.api.v1.models.Switch
202, // 349: unifiedfleet.api.v1.rpc.Fleet.UpdateSwitch:output_type -> unifiedfleet.api.v1.models.Switch
202, // 350: unifiedfleet.api.v1.rpc.Fleet.GetSwitch:output_type -> unifiedfleet.api.v1.models.Switch
104, // 351: unifiedfleet.api.v1.rpc.Fleet.ListSwitches:output_type -> unifiedfleet.api.v1.rpc.ListSwitchesResponse
216, // 352: unifiedfleet.api.v1.rpc.Fleet.DeleteSwitch:output_type -> google.protobuf.Empty
202, // 353: unifiedfleet.api.v1.rpc.Fleet.RenameSwitch:output_type -> unifiedfleet.api.v1.models.Switch
203, // 354: unifiedfleet.api.v1.rpc.Fleet.CreateVlan:output_type -> unifiedfleet.api.v1.models.Vlan
203, // 355: unifiedfleet.api.v1.rpc.Fleet.UpdateVlan:output_type -> unifiedfleet.api.v1.models.Vlan
203, // 356: unifiedfleet.api.v1.rpc.Fleet.GetVlan:output_type -> unifiedfleet.api.v1.models.Vlan
110, // 357: unifiedfleet.api.v1.rpc.Fleet.ListVlans:output_type -> unifiedfleet.api.v1.rpc.ListVlansResponse
216, // 358: unifiedfleet.api.v1.rpc.Fleet.DeleteVlan:output_type -> google.protobuf.Empty
217, // 359: unifiedfleet.api.v1.rpc.Fleet.ImportVlans:output_type -> google.rpc.Status
217, // 360: unifiedfleet.api.v1.rpc.Fleet.ImportOSVlans:output_type -> google.rpc.Status
217, // 361: unifiedfleet.api.v1.rpc.Fleet.ImportStates:output_type -> google.rpc.Status
205, // 362: unifiedfleet.api.v1.rpc.Fleet.UpdateState:output_type -> unifiedfleet.api.v1.models.StateRecord
205, // 363: unifiedfleet.api.v1.rpc.Fleet.GetState:output_type -> unifiedfleet.api.v1.models.StateRecord
204, // 364: unifiedfleet.api.v1.rpc.Fleet.GetDutState:output_type -> unifiedfleet.api.v1.models.chromeos.lab.DutState
118, // 365: unifiedfleet.api.v1.rpc.Fleet.ListDutStates:output_type -> unifiedfleet.api.v1.rpc.ListDutStatesResponse
204, // 366: unifiedfleet.api.v1.rpc.Fleet.UpdateDutState:output_type -> unifiedfleet.api.v1.models.chromeos.lab.DutState
122, // 367: unifiedfleet.api.v1.rpc.Fleet.UpdateDeviceRecoveryData:output_type -> unifiedfleet.api.v1.rpc.UpdateDeviceRecoveryDataResponse
210, // 368: unifiedfleet.api.v1.rpc.Fleet.GetDHCPConfig:output_type -> unifiedfleet.api.v1.models.DHCPConfig
189, // 369: unifiedfleet.api.v1.rpc.Fleet.CreateVM:output_type -> unifiedfleet.api.v1.models.VM
189, // 370: unifiedfleet.api.v1.rpc.Fleet.UpdateVM:output_type -> unifiedfleet.api.v1.models.VM
216, // 371: unifiedfleet.api.v1.rpc.Fleet.DeleteVM:output_type -> google.protobuf.Empty
189, // 372: unifiedfleet.api.v1.rpc.Fleet.GetVM:output_type -> unifiedfleet.api.v1.models.VM
15, // 373: unifiedfleet.api.v1.rpc.Fleet.ListVMs:output_type -> unifiedfleet.api.v1.rpc.ListVMsResponse
209, // 374: unifiedfleet.api.v1.rpc.Fleet.CreateAsset:output_type -> unifiedfleet.api.v1.models.asset
209, // 375: unifiedfleet.api.v1.rpc.Fleet.UpdateAsset:output_type -> unifiedfleet.api.v1.models.asset
209, // 376: unifiedfleet.api.v1.rpc.Fleet.GetAsset:output_type -> unifiedfleet.api.v1.models.asset
129, // 377: unifiedfleet.api.v1.rpc.Fleet.ListAssets:output_type -> unifiedfleet.api.v1.rpc.ListAssetsResponse
216, // 378: unifiedfleet.api.v1.rpc.Fleet.DeleteAsset:output_type -> google.protobuf.Empty
209, // 379: unifiedfleet.api.v1.rpc.Fleet.RenameAsset:output_type -> unifiedfleet.api.v1.models.asset
133, // 380: unifiedfleet.api.v1.rpc.Fleet.BatchGetKVMs:output_type -> unifiedfleet.api.v1.rpc.BatchGetKVMsResponse
135, // 381: unifiedfleet.api.v1.rpc.Fleet.BatchGetDHCPConfigs:output_type -> unifiedfleet.api.v1.rpc.BatchGetDHCPConfigsResponse
137, // 382: unifiedfleet.api.v1.rpc.Fleet.BatchGetMachineLSEs:output_type -> unifiedfleet.api.v1.rpc.BatchGetMachineLSEsResponse
139, // 383: unifiedfleet.api.v1.rpc.Fleet.BatchGetMachines:output_type -> unifiedfleet.api.v1.rpc.BatchGetMachinesResponse
141, // 384: unifiedfleet.api.v1.rpc.Fleet.BatchGetSwitches:output_type -> unifiedfleet.api.v1.rpc.BatchGetSwitchesResponse
143, // 385: unifiedfleet.api.v1.rpc.Fleet.BatchGetRPMs:output_type -> unifiedfleet.api.v1.rpc.BatchGetRPMsResponse
145, // 386: unifiedfleet.api.v1.rpc.Fleet.BatchGetDracs:output_type -> unifiedfleet.api.v1.rpc.BatchGetDracsResponse
147, // 387: unifiedfleet.api.v1.rpc.Fleet.BatchGetNics:output_type -> unifiedfleet.api.v1.rpc.BatchGetNicsResponse
149, // 388: unifiedfleet.api.v1.rpc.Fleet.BatchGetVMs:output_type -> unifiedfleet.api.v1.rpc.BatchGetVMsResponse
151, // 389: unifiedfleet.api.v1.rpc.Fleet.BatchGetVlans:output_type -> unifiedfleet.api.v1.rpc.BatchGetVlansResponse
153, // 390: unifiedfleet.api.v1.rpc.Fleet.BatchGetRacks:output_type -> unifiedfleet.api.v1.rpc.BatchGetRacksResponse
155, // 391: unifiedfleet.api.v1.rpc.Fleet.BatchGetChromePlatforms:output_type -> unifiedfleet.api.v1.rpc.BatchGetChromePlatformsResponse
157, // 392: unifiedfleet.api.v1.rpc.Fleet.BatchGetMachineLSEPrototypes:output_type -> unifiedfleet.api.v1.rpc.BatchGetMachineLSEPrototypesResponse
159, // 393: unifiedfleet.api.v1.rpc.Fleet.BatchGetRackLSEPrototypes:output_type -> unifiedfleet.api.v1.rpc.BatchGetRackLSEPrototypesResponse
213, // 394: unifiedfleet.api.v1.rpc.Fleet.GetChromeOSDeviceData:output_type -> unifiedfleet.api.v1.models.ChromeOSDeviceData
211, // 395: unifiedfleet.api.v1.rpc.Fleet.CreateCachingService:output_type -> unifiedfleet.api.v1.models.CachingService
211, // 396: unifiedfleet.api.v1.rpc.Fleet.UpdateCachingService:output_type -> unifiedfleet.api.v1.models.CachingService
211, // 397: unifiedfleet.api.v1.rpc.Fleet.GetCachingService:output_type -> unifiedfleet.api.v1.models.CachingService
165, // 398: unifiedfleet.api.v1.rpc.Fleet.ListCachingServices:output_type -> unifiedfleet.api.v1.rpc.ListCachingServicesResponse
216, // 399: unifiedfleet.api.v1.rpc.Fleet.DeleteCachingService:output_type -> google.protobuf.Empty
187, // 400: unifiedfleet.api.v1.rpc.Fleet.UpdateMachineLSEDeployment:output_type -> unifiedfleet.api.v1.models.MachineLSEDeployment
4, // 401: unifiedfleet.api.v1.rpc.Fleet.BatchUpdateMachineLSEDeployment:output_type -> unifiedfleet.api.v1.rpc.BatchUpdateMachineLSEDeploymentResponse
187, // 402: unifiedfleet.api.v1.rpc.Fleet.GetMachineLSEDeployment:output_type -> unifiedfleet.api.v1.models.MachineLSEDeployment
7, // 403: unifiedfleet.api.v1.rpc.Fleet.BatchGetMachineLSEDeployments:output_type -> unifiedfleet.api.v1.rpc.BatchGetMachineLSEDeploymentsResponse
9, // 404: unifiedfleet.api.v1.rpc.Fleet.ListMachineLSEDeployments:output_type -> unifiedfleet.api.v1.rpc.ListMachineLSEDeploymentsResponse
212, // 405: unifiedfleet.api.v1.rpc.Fleet.CreateSchedulingUnit:output_type -> unifiedfleet.api.v1.models.SchedulingUnit
212, // 406: unifiedfleet.api.v1.rpc.Fleet.UpdateSchedulingUnit:output_type -> unifiedfleet.api.v1.models.SchedulingUnit
212, // 407: unifiedfleet.api.v1.rpc.Fleet.GetSchedulingUnit:output_type -> unifiedfleet.api.v1.models.SchedulingUnit
171, // 408: unifiedfleet.api.v1.rpc.Fleet.ListSchedulingUnits:output_type -> unifiedfleet.api.v1.rpc.ListSchedulingUnitsResponse
216, // 409: unifiedfleet.api.v1.rpc.Fleet.DeleteSchedulingUnit:output_type -> google.protobuf.Empty
174, // 410: unifiedfleet.api.v1.rpc.Fleet.UpdateConfigBundle:output_type -> unifiedfleet.api.v1.rpc.UpdateConfigBundleResponse
176, // 411: unifiedfleet.api.v1.rpc.Fleet.GetDeviceData:output_type -> unifiedfleet.api.v1.rpc.GetDeviceDataResponse
181, // 412: unifiedfleet.api.v1.rpc.Fleet.CheckFleetTestsPolicy:output_type -> unifiedfleet.api.v1.rpc.CheckFleetTestsPolicyResponse
282, // [282:413] is the sub-list for method output_type
151, // [151:282] is the sub-list for method input_type
151, // [151:151] is the sub-list for extension type_name
151, // [151:151] is the sub-list for extension extendee
0, // [0:151] is the sub-list for field type_name
}
func init() { file_infra_unifiedfleet_api_v1_rpc_fleet_proto_init() }
func file_infra_unifiedfleet_api_v1_rpc_fleet_proto_init() {
if File_infra_unifiedfleet_api_v1_rpc_fleet_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateMachineLSEDeploymentRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchUpdateMachineLSEDeploymentRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchUpdateMachineLSEDeploymentResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetMachineLSEDeploymentRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetMachineLSEDeploymentsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetMachineLSEDeploymentsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListMachineLSEDeploymentsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListMachineLSEDeploymentsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateVMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateVMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetVMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteVMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListVMsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListVMsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetDHCPConfigRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateChromePlatformRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateChromePlatformRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetChromePlatformRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListChromePlatformsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListChromePlatformsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteChromePlatformRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportChromePlatformsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportChromePlatformsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ChromePlatformResult); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportOSVersionsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListOSVersionsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListOSVersionsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateMachineLSEPrototypeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateMachineLSEPrototypeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetMachineLSEPrototypeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListMachineLSEPrototypesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListMachineLSEPrototypesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteMachineLSEPrototypeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateRackLSEPrototypeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateRackLSEPrototypeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetRackLSEPrototypeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRackLSEPrototypesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRackLSEPrototypesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRackLSEPrototypeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MachineRegistrationRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateMachineRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetMachineRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListMachinesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListMachinesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteMachineRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportMachinesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RenameMachineRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MachineDBSource); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ConfigSource); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateRackRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateRackRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetRackRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRacksRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRacksResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRackRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateMachineLSERequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateMachineLSERequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetMachineLSERequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListMachineLSEsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListMachineLSEsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteMachineLSERequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RenameMachineLSERequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportMachineLSEsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportOSMachineLSEsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateRackLSERequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateRackLSERequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetRackLSERequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRackLSEsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRackLSEsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRackLSERequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateNicRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNicRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetNicRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListNicsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListNicsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteNicRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportNicsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RenameNicRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RenameSwitchRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportDatacentersRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateKVMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateKVMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetKVMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListKVMsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListKVMsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteKVMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateRPMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateRPMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetRPMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRPMsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRPMsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRPMRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateDracRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateDracRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetDracRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListDracsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListDracsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteDracRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateSwitchRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateSwitchRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetSwitchRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListSwitchesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListSwitchesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteSwitchRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateVlanRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateVlanRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetVlanRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListVlansRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListVlansResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteVlanRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportVlansRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportOSVlansRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportStatesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetStateRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetDutStateRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListDutStatesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListDutStatesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateStateRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateDutStateRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateDeviceRecoveryDataRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateDeviceRecoveryDataResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RackRegistrationRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NetworkOption); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateAssetRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateAssetRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetAssetRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListAssetsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListAssetsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteAssetRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RenameAssetRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetKVMsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetKVMsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetDHCPConfigsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetDHCPConfigsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetMachineLSEsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetMachineLSEsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetMachinesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetMachinesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetSwitchesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetSwitchesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetRPMsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetRPMsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[142].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetDracsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[143].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetDracsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[144].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetNicsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[145].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetNicsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[146].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetVMsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[147].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetVMsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[148].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetVlansRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[149].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetVlansResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[150].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetRacksRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[151].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetRacksResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[152].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetChromePlatformsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[153].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetChromePlatformsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[154].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetMachineLSEPrototypesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[155].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetMachineLSEPrototypesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[156].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetRackLSEPrototypesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[157].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetRackLSEPrototypesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[158].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetChromeOSDeviceDataRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[159].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateCachingServiceRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[160].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateCachingServiceRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[161].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetCachingServiceRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[162].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListCachingServicesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[163].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListCachingServicesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[164].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteCachingServiceRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[165].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateSchedulingUnitRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[166].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateSchedulingUnitRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[167].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetSchedulingUnitRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[168].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListSchedulingUnitsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[169].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListSchedulingUnitsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[170].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteSchedulingUnitRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[171].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateConfigBundleRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[172].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateConfigBundleResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[173].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetDeviceDataRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[174].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetDeviceDataResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[175].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AttachedDeviceData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[176].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BrowserDeviceData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[177].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CheckFleetTestsPolicyRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[178].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TestStatus); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[179].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CheckFleetTestsPolicyResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[181].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateDeviceRecoveryDataRequest_DutData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[182].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateDeviceRecoveryDataRequest_WifiRouter); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[183].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateDeviceRecoveryDataRequest_BluetoothPeer); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[184].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateDeviceRecoveryDataRequest_LabData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[21].OneofWrappers = []interface{}{
(*ImportChromePlatformsRequest_MachineDbSource)(nil),
(*ImportChromePlatformsRequest_ConfigSource)(nil),
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[24].OneofWrappers = []interface{}{
(*ImportOSVersionsRequest_MachineDbSource)(nil),
(*ImportOSVersionsRequest_ConfigSource)(nil),
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[45].OneofWrappers = []interface{}{
(*ImportMachinesRequest_MachineDbSource)(nil),
(*ImportMachinesRequest_ConfigSource)(nil),
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[62].OneofWrappers = []interface{}{
(*ImportMachineLSEsRequest_MachineDbSource)(nil),
(*ImportMachineLSEsRequest_ConfigSource)(nil),
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[63].OneofWrappers = []interface{}{
(*ImportOSMachineLSEsRequest_MachineDbSource)(nil),
(*ImportOSMachineLSEsRequest_ConfigSource)(nil),
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[76].OneofWrappers = []interface{}{
(*ImportNicsRequest_MachineDbSource)(nil),
(*ImportNicsRequest_ConfigSource)(nil),
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[79].OneofWrappers = []interface{}{
(*ImportDatacentersRequest_MachineDbSource)(nil),
(*ImportDatacentersRequest_ConfigSource)(nil),
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[110].OneofWrappers = []interface{}{
(*ImportVlansRequest_MachineDbSource)(nil),
(*ImportVlansRequest_ConfigSource)(nil),
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[111].OneofWrappers = []interface{}{
(*ImportOSVlansRequest_MachineDbSource)(nil),
(*ImportOSVlansRequest_ConfigSource)(nil),
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[112].OneofWrappers = []interface{}{
(*ImportStatesRequest_MachineDbSource)(nil),
(*ImportStatesRequest_ConfigSource)(nil),
}
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes[174].OneofWrappers = []interface{}{
(*GetDeviceDataResponse_SchedulingUnit)(nil),
(*GetDeviceDataResponse_ChromeOsDeviceData)(nil),
(*GetDeviceDataResponse_AttachedDeviceData)(nil),
(*GetDeviceDataResponse_BrowserDeviceData)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDesc,
NumEnums: 2,
NumMessages: 185,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_infra_unifiedfleet_api_v1_rpc_fleet_proto_goTypes,
DependencyIndexes: file_infra_unifiedfleet_api_v1_rpc_fleet_proto_depIdxs,
EnumInfos: file_infra_unifiedfleet_api_v1_rpc_fleet_proto_enumTypes,
MessageInfos: file_infra_unifiedfleet_api_v1_rpc_fleet_proto_msgTypes,
}.Build()
File_infra_unifiedfleet_api_v1_rpc_fleet_proto = out.File
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_rawDesc = nil
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_goTypes = nil
file_infra_unifiedfleet_api_v1_rpc_fleet_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// FleetClient is the client API for Fleet service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type FleetClient interface {
// CreateChromePlatform creates a new chromePlatform.
CreateChromePlatform(ctx context.Context, in *CreateChromePlatformRequest, opts ...grpc.CallOption) (*models.ChromePlatform, error)
// Update updates the chromePlatform
UpdateChromePlatform(ctx context.Context, in *UpdateChromePlatformRequest, opts ...grpc.CallOption) (*models.ChromePlatform, error)
// Get retrieves the details of the chromePlatform
GetChromePlatform(ctx context.Context, in *GetChromePlatformRequest, opts ...grpc.CallOption) (*models.ChromePlatform, error)
// List gets all the chromePlatforms
ListChromePlatforms(ctx context.Context, in *ListChromePlatformsRequest, opts ...grpc.CallOption) (*ListChromePlatformsResponse, error)
// Delete delete the chromePlatform
DeleteChromePlatform(ctx context.Context, in *DeleteChromePlatformRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// ImportChromePlatforms imports chrome platforms.
ImportChromePlatforms(ctx context.Context, in *ImportChromePlatformsRequest, opts ...grpc.CallOption) (*status.Status, error)
// List all the chrome osversions.
ListOSVersions(ctx context.Context, in *ListOSVersionsRequest, opts ...grpc.CallOption) (*ListOSVersionsResponse, error)
// ImportOSVersions imports the OS versions.
ImportOSVersions(ctx context.Context, in *ImportOSVersionsRequest, opts ...grpc.CallOption) (*status.Status, error)
// CreateMachineLSEPrototype creates a new MachineLSEPrototype.
CreateMachineLSEPrototype(ctx context.Context, in *CreateMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*models.MachineLSEPrototype, error)
// Update updates the MachineLSEPrototype
UpdateMachineLSEPrototype(ctx context.Context, in *UpdateMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*models.MachineLSEPrototype, error)
// Get retrieves the details of the MachineLSEPrototype
GetMachineLSEPrototype(ctx context.Context, in *GetMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*models.MachineLSEPrototype, error)
// List gets all the MachineLSEPrototypes
ListMachineLSEPrototypes(ctx context.Context, in *ListMachineLSEPrototypesRequest, opts ...grpc.CallOption) (*ListMachineLSEPrototypesResponse, error)
// Delete delete the MachineLSEPrototype
DeleteMachineLSEPrototype(ctx context.Context, in *DeleteMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// CreateRackLSEPrototype creates a new RackLSEPrototype.
CreateRackLSEPrototype(ctx context.Context, in *CreateRackLSEPrototypeRequest, opts ...grpc.CallOption) (*models.RackLSEPrototype, error)
// Update updates the RackLSEPrototype
UpdateRackLSEPrototype(ctx context.Context, in *UpdateRackLSEPrototypeRequest, opts ...grpc.CallOption) (*models.RackLSEPrototype, error)
// Get retrieves the details of the RackLSEPrototype
GetRackLSEPrototype(ctx context.Context, in *GetRackLSEPrototypeRequest, opts ...grpc.CallOption) (*models.RackLSEPrototype, error)
// List gets all the RackLSEPrototypes
ListRackLSEPrototypes(ctx context.Context, in *ListRackLSEPrototypesRequest, opts ...grpc.CallOption) (*ListRackLSEPrototypesResponse, error)
// Delete delete the RackLSEPrototype
DeleteRackLSEPrototype(ctx context.Context, in *DeleteRackLSEPrototypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// MachineRegistration creates a new machine/nics/drac.
MachineRegistration(ctx context.Context, in *MachineRegistrationRequest, opts ...grpc.CallOption) (*models.Machine, error)
// Update updates the machine
UpdateMachine(ctx context.Context, in *UpdateMachineRequest, opts ...grpc.CallOption) (*models.Machine, error)
// Get retrieves the details of the machine
GetMachine(ctx context.Context, in *GetMachineRequest, opts ...grpc.CallOption) (*models.Machine, error)
// List gets all the machines
ListMachines(ctx context.Context, in *ListMachinesRequest, opts ...grpc.CallOption) (*ListMachinesResponse, error)
// Delete delete the machine
DeleteMachine(ctx context.Context, in *DeleteMachineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Import machines from sources
//
// This doesn't return google.longrunning.Operation as the corresponding
// package is not imported into chops go package.
ImportMachines(ctx context.Context, in *ImportMachinesRequest, opts ...grpc.CallOption) (*status.Status, error)
// Rename rename the machine
RenameMachine(ctx context.Context, in *RenameMachineRequest, opts ...grpc.CallOption) (*models.Machine, error)
// RackRegistration creates a new rack/kvms/rpms/switches
RackRegistration(ctx context.Context, in *RackRegistrationRequest, opts ...grpc.CallOption) (*models.Rack, error)
// Update updates the rack
UpdateRack(ctx context.Context, in *UpdateRackRequest, opts ...grpc.CallOption) (*models.Rack, error)
// Get retrieves the details of the rack
GetRack(ctx context.Context, in *GetRackRequest, opts ...grpc.CallOption) (*models.Rack, error)
// List gets all the racks
ListRacks(ctx context.Context, in *ListRacksRequest, opts ...grpc.CallOption) (*ListRacksResponse, error)
// Delete delete the rack
DeleteRack(ctx context.Context, in *DeleteRackRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// CreateMachineLSE creates a new machineLSE
CreateMachineLSE(ctx context.Context, in *CreateMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error)
// Update updates the machineLSE
UpdateMachineLSE(ctx context.Context, in *UpdateMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error)
// Get retrieves the details of the machineLSE
GetMachineLSE(ctx context.Context, in *GetMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error)
// List gets all the machineLSEs
ListMachineLSEs(ctx context.Context, in *ListMachineLSEsRequest, opts ...grpc.CallOption) (*ListMachineLSEsResponse, error)
// Delete delete the machineLSE
DeleteMachineLSE(ctx context.Context, in *DeleteMachineLSERequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Rename the machine lse
RenameMachineLSE(ctx context.Context, in *RenameMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error)
// ImportMachineLSEs imports machine LSEs & all related infos.
ImportMachineLSEs(ctx context.Context, in *ImportMachineLSEsRequest, opts ...grpc.CallOption) (*status.Status, error)
// ImportOSMachineLSEs imports ChromeOS machine LSEs & all related infos if needed.
ImportOSMachineLSEs(ctx context.Context, in *ImportOSMachineLSEsRequest, opts ...grpc.CallOption) (*status.Status, error)
// CreateRackLSE creates a new rackLSE
CreateRackLSE(ctx context.Context, in *CreateRackLSERequest, opts ...grpc.CallOption) (*models.RackLSE, error)
// Update updates the rackLSE
UpdateRackLSE(ctx context.Context, in *UpdateRackLSERequest, opts ...grpc.CallOption) (*models.RackLSE, error)
// Get retrieves the details of the rackLSE
GetRackLSE(ctx context.Context, in *GetRackLSERequest, opts ...grpc.CallOption) (*models.RackLSE, error)
// List gets all the rackLSEs
ListRackLSEs(ctx context.Context, in *ListRackLSEsRequest, opts ...grpc.CallOption) (*ListRackLSEsResponse, error)
// Delete delete the rackLSE
DeleteRackLSE(ctx context.Context, in *DeleteRackLSERequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// CreateNic creates a new nic
CreateNic(ctx context.Context, in *CreateNicRequest, opts ...grpc.CallOption) (*models.Nic, error)
// Update updates the nic
UpdateNic(ctx context.Context, in *UpdateNicRequest, opts ...grpc.CallOption) (*models.Nic, error)
// Get retrieves the details of the nic
GetNic(ctx context.Context, in *GetNicRequest, opts ...grpc.CallOption) (*models.Nic, error)
// List gets all the nics
ListNics(ctx context.Context, in *ListNicsRequest, opts ...grpc.CallOption) (*ListNicsResponse, error)
// Delete delete the nic
DeleteNic(ctx context.Context, in *DeleteNicRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// ImportNics imports nics info.
ImportNics(ctx context.Context, in *ImportNicsRequest, opts ...grpc.CallOption) (*status.Status, error)
// Rename rename the nic
RenameNic(ctx context.Context, in *RenameNicRequest, opts ...grpc.CallOption) (*models.Nic, error)
// ImportDatacenters imports datacenter & its related info, including kvm & switch.
ImportDatacenters(ctx context.Context, in *ImportDatacentersRequest, opts ...grpc.CallOption) (*status.Status, error)
// CreateKVM creates a new KVM
CreateKVM(ctx context.Context, in *CreateKVMRequest, opts ...grpc.CallOption) (*models.KVM, error)
// Update updates the KVM
UpdateKVM(ctx context.Context, in *UpdateKVMRequest, opts ...grpc.CallOption) (*models.KVM, error)
// Get retrieves the details of the KVM
GetKVM(ctx context.Context, in *GetKVMRequest, opts ...grpc.CallOption) (*models.KVM, error)
// List gets all the KVMs
ListKVMs(ctx context.Context, in *ListKVMsRequest, opts ...grpc.CallOption) (*ListKVMsResponse, error)
// Delete delete the KVM
DeleteKVM(ctx context.Context, in *DeleteKVMRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// CreateRPM creates a new RPM
CreateRPM(ctx context.Context, in *CreateRPMRequest, opts ...grpc.CallOption) (*models.RPM, error)
// Update updates the RPM
UpdateRPM(ctx context.Context, in *UpdateRPMRequest, opts ...grpc.CallOption) (*models.RPM, error)
// Get retrieves the details of the RPM
GetRPM(ctx context.Context, in *GetRPMRequest, opts ...grpc.CallOption) (*models.RPM, error)
// List gets all the RPMs
ListRPMs(ctx context.Context, in *ListRPMsRequest, opts ...grpc.CallOption) (*ListRPMsResponse, error)
// Delete delete the RPM
DeleteRPM(ctx context.Context, in *DeleteRPMRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// CreateDrac creates a new drac
CreateDrac(ctx context.Context, in *CreateDracRequest, opts ...grpc.CallOption) (*models.Drac, error)
// Update updates the drac
UpdateDrac(ctx context.Context, in *UpdateDracRequest, opts ...grpc.CallOption) (*models.Drac, error)
// Get retrieves the details of the drac
GetDrac(ctx context.Context, in *GetDracRequest, opts ...grpc.CallOption) (*models.Drac, error)
// List gets all the dracs
ListDracs(ctx context.Context, in *ListDracsRequest, opts ...grpc.CallOption) (*ListDracsResponse, error)
// Delete delete the drac
DeleteDrac(ctx context.Context, in *DeleteDracRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// CreateSwitch creates a new switch
CreateSwitch(ctx context.Context, in *CreateSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error)
// Update updates the switch
UpdateSwitch(ctx context.Context, in *UpdateSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error)
// Get retrieves the details of the switch
GetSwitch(ctx context.Context, in *GetSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error)
// List gets all the switches
ListSwitches(ctx context.Context, in *ListSwitchesRequest, opts ...grpc.CallOption) (*ListSwitchesResponse, error)
// Delete delete the switch
DeleteSwitch(ctx context.Context, in *DeleteSwitchRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Rename rename the switch
RenameSwitch(ctx context.Context, in *RenameSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error)
// CreateVlan creates a new vlan
CreateVlan(ctx context.Context, in *CreateVlanRequest, opts ...grpc.CallOption) (*models.Vlan, error)
// Update updates the vlan
UpdateVlan(ctx context.Context, in *UpdateVlanRequest, opts ...grpc.CallOption) (*models.Vlan, error)
// Get retrieves the details of the vlan
GetVlan(ctx context.Context, in *GetVlanRequest, opts ...grpc.CallOption) (*models.Vlan, error)
// List gets all the vlans
ListVlans(ctx context.Context, in *ListVlansRequest, opts ...grpc.CallOption) (*ListVlansResponse, error)
// Delete delete the vlan
DeleteVlan(ctx context.Context, in *DeleteVlanRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// ImportVlans imports vlans & all IP-related infos.
ImportVlans(ctx context.Context, in *ImportVlansRequest, opts ...grpc.CallOption) (*status.Status, error)
// ImportOSVlans imports the ChromeOS vlans, ips, and dhcp configs.
ImportOSVlans(ctx context.Context, in *ImportOSVlansRequest, opts ...grpc.CallOption) (*status.Status, error)
// ImportStates imports states of all objects.
ImportStates(ctx context.Context, in *ImportStatesRequest, opts ...grpc.CallOption) (*status.Status, error)
// UpdateState updates the state for a resource.
// If the state doesn't exist before, it will create the state record for the resource.
UpdateState(ctx context.Context, in *UpdateStateRequest, opts ...grpc.CallOption) (*models.StateRecord, error)
// GetState retrieves the state of a resource.
GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*models.StateRecord, error)
// GetDutState retrieves requested Chrome OS device DutState from UFS.
GetDutState(ctx context.Context, in *GetDutStateRequest, opts ...grpc.CallOption) (*lab.DutState, error)
// ListDutStates gets all the DutStates
ListDutStates(ctx context.Context, in *ListDutStatesRequest, opts ...grpc.CallOption) (*ListDutStatesResponse, error)
// UpdateDutState updates the state config for a DUT
// If the dut state doesn't exist before, it will create the dut state record.
UpdateDutState(ctx context.Context, in *UpdateDutStateRequest, opts ...grpc.CallOption) (*lab.DutState, error)
// UpdateDeviceRecoveryData updates the device configs for a DUT
UpdateDeviceRecoveryData(ctx context.Context, in *UpdateDeviceRecoveryDataRequest, opts ...grpc.CallOption) (*UpdateDeviceRecoveryDataResponse, error)
// GetDHCPConfig retrieves a dhcp record.
GetDHCPConfig(ctx context.Context, in *GetDHCPConfigRequest, opts ...grpc.CallOption) (*models.DHCPConfig, error)
// CreateVM creates a new VM
CreateVM(ctx context.Context, in *CreateVMRequest, opts ...grpc.CallOption) (*models.VM, error)
// UpdateVM updates a VM
UpdateVM(ctx context.Context, in *UpdateVMRequest, opts ...grpc.CallOption) (*models.VM, error)
// DeleteVM delete a VM
DeleteVM(ctx context.Context, in *DeleteVMRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// GetVM retrieves the details of the VM
GetVM(ctx context.Context, in *GetVMRequest, opts ...grpc.CallOption) (*models.VM, error)
// ListVMs gets all the Vms
ListVMs(ctx context.Context, in *ListVMsRequest, opts ...grpc.CallOption) (*ListVMsResponse, error)
// CreateAsset creates a new asset
CreateAsset(ctx context.Context, in *CreateAssetRequest, opts ...grpc.CallOption) (*models.Asset, error)
// Update updates the asset
UpdateAsset(ctx context.Context, in *UpdateAssetRequest, opts ...grpc.CallOption) (*models.Asset, error)
// Get retrieves the details of the asset
GetAsset(ctx context.Context, in *GetAssetRequest, opts ...grpc.CallOption) (*models.Asset, error)
// List gets all the assets
ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error)
// Delete delete the asset
DeleteAsset(ctx context.Context, in *DeleteAssetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Rename the asset
RenameAsset(ctx context.Context, in *RenameAssetRequest, opts ...grpc.CallOption) (*models.Asset, error)
// BatchGetKVMs retrieves a batch of kvms
BatchGetKVMs(ctx context.Context, in *BatchGetKVMsRequest, opts ...grpc.CallOption) (*BatchGetKVMsResponse, error)
// BatchGetDHCPConfigs retrieves a batch of dhcp records.
BatchGetDHCPConfigs(ctx context.Context, in *BatchGetDHCPConfigsRequest, opts ...grpc.CallOption) (*BatchGetDHCPConfigsResponse, error)
// BatchGetMachineLSEs retrieves a batch of machineLSEs
BatchGetMachineLSEs(ctx context.Context, in *BatchGetMachineLSEsRequest, opts ...grpc.CallOption) (*BatchGetMachineLSEsResponse, error)
// BatchGetMachines retrieves a batch of machines
BatchGetMachines(ctx context.Context, in *BatchGetMachinesRequest, opts ...grpc.CallOption) (*BatchGetMachinesResponse, error)
// BatchGetSwitches retrieves a batch of switches
BatchGetSwitches(ctx context.Context, in *BatchGetSwitchesRequest, opts ...grpc.CallOption) (*BatchGetSwitchesResponse, error)
// BatchGetRPMs retrieves a batch of rpms
BatchGetRPMs(ctx context.Context, in *BatchGetRPMsRequest, opts ...grpc.CallOption) (*BatchGetRPMsResponse, error)
// BatchGetDracs retrieves a batch of dracs
BatchGetDracs(ctx context.Context, in *BatchGetDracsRequest, opts ...grpc.CallOption) (*BatchGetDracsResponse, error)
// BatchGetNics retrieves a batch of nics
BatchGetNics(ctx context.Context, in *BatchGetNicsRequest, opts ...grpc.CallOption) (*BatchGetNicsResponse, error)
// BatchGetVMs retrieves a batch of vms
BatchGetVMs(ctx context.Context, in *BatchGetVMsRequest, opts ...grpc.CallOption) (*BatchGetVMsResponse, error)
// BatchGetVlans retrieves a batch of vlans
BatchGetVlans(ctx context.Context, in *BatchGetVlansRequest, opts ...grpc.CallOption) (*BatchGetVlansResponse, error)
// BatchGetRacks retrieves a batch of racks
BatchGetRacks(ctx context.Context, in *BatchGetRacksRequest, opts ...grpc.CallOption) (*BatchGetRacksResponse, error)
// BatchGetChromePlatforms retrieves a batch of chrome platforms
BatchGetChromePlatforms(ctx context.Context, in *BatchGetChromePlatformsRequest, opts ...grpc.CallOption) (*BatchGetChromePlatformsResponse, error)
// BatchGetMachineLSEPrototypes retrieves a batch of machine lse prototypes
BatchGetMachineLSEPrototypes(ctx context.Context, in *BatchGetMachineLSEPrototypesRequest, opts ...grpc.CallOption) (*BatchGetMachineLSEPrototypesResponse, error)
// BatchGetRackLSEPrototypes retrieves a batch of rack lse prototypes
BatchGetRackLSEPrototypes(ctx context.Context, in *BatchGetRackLSEPrototypesRequest, opts ...grpc.CallOption) (*BatchGetRackLSEPrototypesResponse, error)
// GetChromeOSDeviceData retrieves requested Chrome OS device data from the UFS and inventoryV2.
GetChromeOSDeviceData(ctx context.Context, in *GetChromeOSDeviceDataRequest, opts ...grpc.CallOption) (*models.ChromeOSDeviceData, error)
// CreateCachingService creates a new CachingService.
CreateCachingService(ctx context.Context, in *CreateCachingServiceRequest, opts ...grpc.CallOption) (*models.CachingService, error)
// Update updates the CachingService.
UpdateCachingService(ctx context.Context, in *UpdateCachingServiceRequest, opts ...grpc.CallOption) (*models.CachingService, error)
// Get retrieves the details of the CachingService.
GetCachingService(ctx context.Context, in *GetCachingServiceRequest, opts ...grpc.CallOption) (*models.CachingService, error)
// List gets all the CachingServices.
ListCachingServices(ctx context.Context, in *ListCachingServicesRequest, opts ...grpc.CallOption) (*ListCachingServicesResponse, error)
// Delete delete the CachingService.
DeleteCachingService(ctx context.Context, in *DeleteCachingServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// UpdateMachineLSEDeployment updates a deployment record for a host.
UpdateMachineLSEDeployment(ctx context.Context, in *UpdateMachineLSEDeploymentRequest, opts ...grpc.CallOption) (*models.MachineLSEDeployment, error)
// BatchUpdateMachineLSEDeployment updates the deployment records for a batch of hosts.
BatchUpdateMachineLSEDeployment(ctx context.Context, in *BatchUpdateMachineLSEDeploymentRequest, opts ...grpc.CallOption) (*BatchUpdateMachineLSEDeploymentResponse, error)
// GetMachineLSEDeployment retrieves a deployment record for a given host identifier, e.g. serial number.
GetMachineLSEDeployment(ctx context.Context, in *GetMachineLSEDeploymentRequest, opts ...grpc.CallOption) (*models.MachineLSEDeployment, error)
// BatchGetMachineLSEDeployments retrieves a batch of deployment records.
BatchGetMachineLSEDeployments(ctx context.Context, in *BatchGetMachineLSEDeploymentsRequest, opts ...grpc.CallOption) (*BatchGetMachineLSEDeploymentsResponse, error)
// ListMachineLSEDeployments lists all deployment records which fulfill the requirements
ListMachineLSEDeployments(ctx context.Context, in *ListMachineLSEDeploymentsRequest, opts ...grpc.CallOption) (*ListMachineLSEDeploymentsResponse, error)
// CreateSchedulingUnit creates a new SchedulingUnit.
CreateSchedulingUnit(ctx context.Context, in *CreateSchedulingUnitRequest, opts ...grpc.CallOption) (*models.SchedulingUnit, error)
// Update updates the SchedulingUnit.
UpdateSchedulingUnit(ctx context.Context, in *UpdateSchedulingUnitRequest, opts ...grpc.CallOption) (*models.SchedulingUnit, error)
// Get retrieves the details of the SchedulingUnit.
GetSchedulingUnit(ctx context.Context, in *GetSchedulingUnitRequest, opts ...grpc.CallOption) (*models.SchedulingUnit, error)
// List gets all the SchedulingUnits.
ListSchedulingUnits(ctx context.Context, in *ListSchedulingUnitsRequest, opts ...grpc.CallOption) (*ListSchedulingUnitsResponse, error)
// Delete delete the SchedulingUnit.
DeleteSchedulingUnit(ctx context.Context, in *DeleteSchedulingUnitRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// UpdateConfigBundle updates the ConfigBundle
UpdateConfigBundle(ctx context.Context, in *UpdateConfigBundleRequest, opts ...grpc.CallOption) (*UpdateConfigBundleResponse, error)
// GetDeviceData retrieves requested device data from UFS.
GetDeviceData(ctx context.Context, in *GetDeviceDataRequest, opts ...grpc.CallOption) (*GetDeviceDataResponse, error)
// CheckFleetPolicyForTest checks whether a given test parameters indicate a valid test
CheckFleetTestsPolicy(ctx context.Context, in *CheckFleetTestsPolicyRequest, opts ...grpc.CallOption) (*CheckFleetTestsPolicyResponse, error)
}
type fleetPRPCClient struct {
client *prpc.Client
}
func NewFleetPRPCClient(client *prpc.Client) FleetClient {
return &fleetPRPCClient{client}
}
func (c *fleetPRPCClient) CreateChromePlatform(ctx context.Context, in *CreateChromePlatformRequest, opts ...grpc.CallOption) (*models.ChromePlatform, error) {
out := new(models.ChromePlatform)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateChromePlatform", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateChromePlatform(ctx context.Context, in *UpdateChromePlatformRequest, opts ...grpc.CallOption) (*models.ChromePlatform, error) {
out := new(models.ChromePlatform)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateChromePlatform", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetChromePlatform(ctx context.Context, in *GetChromePlatformRequest, opts ...grpc.CallOption) (*models.ChromePlatform, error) {
out := new(models.ChromePlatform)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetChromePlatform", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListChromePlatforms(ctx context.Context, in *ListChromePlatformsRequest, opts ...grpc.CallOption) (*ListChromePlatformsResponse, error) {
out := new(ListChromePlatformsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListChromePlatforms", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteChromePlatform(ctx context.Context, in *DeleteChromePlatformRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteChromePlatform", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ImportChromePlatforms(ctx context.Context, in *ImportChromePlatformsRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ImportChromePlatforms", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListOSVersions(ctx context.Context, in *ListOSVersionsRequest, opts ...grpc.CallOption) (*ListOSVersionsResponse, error) {
out := new(ListOSVersionsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListOSVersions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ImportOSVersions(ctx context.Context, in *ImportOSVersionsRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ImportOSVersions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateMachineLSEPrototype(ctx context.Context, in *CreateMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*models.MachineLSEPrototype, error) {
out := new(models.MachineLSEPrototype)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateMachineLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateMachineLSEPrototype(ctx context.Context, in *UpdateMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*models.MachineLSEPrototype, error) {
out := new(models.MachineLSEPrototype)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateMachineLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetMachineLSEPrototype(ctx context.Context, in *GetMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*models.MachineLSEPrototype, error) {
out := new(models.MachineLSEPrototype)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetMachineLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListMachineLSEPrototypes(ctx context.Context, in *ListMachineLSEPrototypesRequest, opts ...grpc.CallOption) (*ListMachineLSEPrototypesResponse, error) {
out := new(ListMachineLSEPrototypesResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListMachineLSEPrototypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteMachineLSEPrototype(ctx context.Context, in *DeleteMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteMachineLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateRackLSEPrototype(ctx context.Context, in *CreateRackLSEPrototypeRequest, opts ...grpc.CallOption) (*models.RackLSEPrototype, error) {
out := new(models.RackLSEPrototype)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateRackLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateRackLSEPrototype(ctx context.Context, in *UpdateRackLSEPrototypeRequest, opts ...grpc.CallOption) (*models.RackLSEPrototype, error) {
out := new(models.RackLSEPrototype)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateRackLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetRackLSEPrototype(ctx context.Context, in *GetRackLSEPrototypeRequest, opts ...grpc.CallOption) (*models.RackLSEPrototype, error) {
out := new(models.RackLSEPrototype)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetRackLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListRackLSEPrototypes(ctx context.Context, in *ListRackLSEPrototypesRequest, opts ...grpc.CallOption) (*ListRackLSEPrototypesResponse, error) {
out := new(ListRackLSEPrototypesResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListRackLSEPrototypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteRackLSEPrototype(ctx context.Context, in *DeleteRackLSEPrototypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteRackLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) MachineRegistration(ctx context.Context, in *MachineRegistrationRequest, opts ...grpc.CallOption) (*models.Machine, error) {
out := new(models.Machine)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "MachineRegistration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateMachine(ctx context.Context, in *UpdateMachineRequest, opts ...grpc.CallOption) (*models.Machine, error) {
out := new(models.Machine)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateMachine", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetMachine(ctx context.Context, in *GetMachineRequest, opts ...grpc.CallOption) (*models.Machine, error) {
out := new(models.Machine)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetMachine", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListMachines(ctx context.Context, in *ListMachinesRequest, opts ...grpc.CallOption) (*ListMachinesResponse, error) {
out := new(ListMachinesResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListMachines", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteMachine(ctx context.Context, in *DeleteMachineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteMachine", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ImportMachines(ctx context.Context, in *ImportMachinesRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ImportMachines", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) RenameMachine(ctx context.Context, in *RenameMachineRequest, opts ...grpc.CallOption) (*models.Machine, error) {
out := new(models.Machine)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "RenameMachine", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) RackRegistration(ctx context.Context, in *RackRegistrationRequest, opts ...grpc.CallOption) (*models.Rack, error) {
out := new(models.Rack)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "RackRegistration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateRack(ctx context.Context, in *UpdateRackRequest, opts ...grpc.CallOption) (*models.Rack, error) {
out := new(models.Rack)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateRack", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetRack(ctx context.Context, in *GetRackRequest, opts ...grpc.CallOption) (*models.Rack, error) {
out := new(models.Rack)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetRack", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListRacks(ctx context.Context, in *ListRacksRequest, opts ...grpc.CallOption) (*ListRacksResponse, error) {
out := new(ListRacksResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListRacks", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteRack(ctx context.Context, in *DeleteRackRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteRack", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateMachineLSE(ctx context.Context, in *CreateMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error) {
out := new(models.MachineLSE)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateMachineLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateMachineLSE(ctx context.Context, in *UpdateMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error) {
out := new(models.MachineLSE)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateMachineLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetMachineLSE(ctx context.Context, in *GetMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error) {
out := new(models.MachineLSE)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetMachineLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListMachineLSEs(ctx context.Context, in *ListMachineLSEsRequest, opts ...grpc.CallOption) (*ListMachineLSEsResponse, error) {
out := new(ListMachineLSEsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListMachineLSEs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteMachineLSE(ctx context.Context, in *DeleteMachineLSERequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteMachineLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) RenameMachineLSE(ctx context.Context, in *RenameMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error) {
out := new(models.MachineLSE)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "RenameMachineLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ImportMachineLSEs(ctx context.Context, in *ImportMachineLSEsRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ImportMachineLSEs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ImportOSMachineLSEs(ctx context.Context, in *ImportOSMachineLSEsRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ImportOSMachineLSEs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateRackLSE(ctx context.Context, in *CreateRackLSERequest, opts ...grpc.CallOption) (*models.RackLSE, error) {
out := new(models.RackLSE)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateRackLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateRackLSE(ctx context.Context, in *UpdateRackLSERequest, opts ...grpc.CallOption) (*models.RackLSE, error) {
out := new(models.RackLSE)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateRackLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetRackLSE(ctx context.Context, in *GetRackLSERequest, opts ...grpc.CallOption) (*models.RackLSE, error) {
out := new(models.RackLSE)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetRackLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListRackLSEs(ctx context.Context, in *ListRackLSEsRequest, opts ...grpc.CallOption) (*ListRackLSEsResponse, error) {
out := new(ListRackLSEsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListRackLSEs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteRackLSE(ctx context.Context, in *DeleteRackLSERequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteRackLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateNic(ctx context.Context, in *CreateNicRequest, opts ...grpc.CallOption) (*models.Nic, error) {
out := new(models.Nic)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateNic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateNic(ctx context.Context, in *UpdateNicRequest, opts ...grpc.CallOption) (*models.Nic, error) {
out := new(models.Nic)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateNic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetNic(ctx context.Context, in *GetNicRequest, opts ...grpc.CallOption) (*models.Nic, error) {
out := new(models.Nic)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetNic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListNics(ctx context.Context, in *ListNicsRequest, opts ...grpc.CallOption) (*ListNicsResponse, error) {
out := new(ListNicsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListNics", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteNic(ctx context.Context, in *DeleteNicRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteNic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ImportNics(ctx context.Context, in *ImportNicsRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ImportNics", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) RenameNic(ctx context.Context, in *RenameNicRequest, opts ...grpc.CallOption) (*models.Nic, error) {
out := new(models.Nic)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "RenameNic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ImportDatacenters(ctx context.Context, in *ImportDatacentersRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ImportDatacenters", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateKVM(ctx context.Context, in *CreateKVMRequest, opts ...grpc.CallOption) (*models.KVM, error) {
out := new(models.KVM)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateKVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateKVM(ctx context.Context, in *UpdateKVMRequest, opts ...grpc.CallOption) (*models.KVM, error) {
out := new(models.KVM)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateKVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetKVM(ctx context.Context, in *GetKVMRequest, opts ...grpc.CallOption) (*models.KVM, error) {
out := new(models.KVM)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetKVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListKVMs(ctx context.Context, in *ListKVMsRequest, opts ...grpc.CallOption) (*ListKVMsResponse, error) {
out := new(ListKVMsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListKVMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteKVM(ctx context.Context, in *DeleteKVMRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteKVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateRPM(ctx context.Context, in *CreateRPMRequest, opts ...grpc.CallOption) (*models.RPM, error) {
out := new(models.RPM)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateRPM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateRPM(ctx context.Context, in *UpdateRPMRequest, opts ...grpc.CallOption) (*models.RPM, error) {
out := new(models.RPM)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateRPM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetRPM(ctx context.Context, in *GetRPMRequest, opts ...grpc.CallOption) (*models.RPM, error) {
out := new(models.RPM)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetRPM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListRPMs(ctx context.Context, in *ListRPMsRequest, opts ...grpc.CallOption) (*ListRPMsResponse, error) {
out := new(ListRPMsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListRPMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteRPM(ctx context.Context, in *DeleteRPMRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteRPM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateDrac(ctx context.Context, in *CreateDracRequest, opts ...grpc.CallOption) (*models.Drac, error) {
out := new(models.Drac)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateDrac", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateDrac(ctx context.Context, in *UpdateDracRequest, opts ...grpc.CallOption) (*models.Drac, error) {
out := new(models.Drac)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateDrac", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetDrac(ctx context.Context, in *GetDracRequest, opts ...grpc.CallOption) (*models.Drac, error) {
out := new(models.Drac)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetDrac", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListDracs(ctx context.Context, in *ListDracsRequest, opts ...grpc.CallOption) (*ListDracsResponse, error) {
out := new(ListDracsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListDracs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteDrac(ctx context.Context, in *DeleteDracRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteDrac", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateSwitch(ctx context.Context, in *CreateSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error) {
out := new(models.Switch)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateSwitch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateSwitch(ctx context.Context, in *UpdateSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error) {
out := new(models.Switch)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateSwitch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetSwitch(ctx context.Context, in *GetSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error) {
out := new(models.Switch)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetSwitch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListSwitches(ctx context.Context, in *ListSwitchesRequest, opts ...grpc.CallOption) (*ListSwitchesResponse, error) {
out := new(ListSwitchesResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListSwitches", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteSwitch(ctx context.Context, in *DeleteSwitchRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteSwitch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) RenameSwitch(ctx context.Context, in *RenameSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error) {
out := new(models.Switch)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "RenameSwitch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateVlan(ctx context.Context, in *CreateVlanRequest, opts ...grpc.CallOption) (*models.Vlan, error) {
out := new(models.Vlan)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateVlan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateVlan(ctx context.Context, in *UpdateVlanRequest, opts ...grpc.CallOption) (*models.Vlan, error) {
out := new(models.Vlan)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateVlan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetVlan(ctx context.Context, in *GetVlanRequest, opts ...grpc.CallOption) (*models.Vlan, error) {
out := new(models.Vlan)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetVlan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListVlans(ctx context.Context, in *ListVlansRequest, opts ...grpc.CallOption) (*ListVlansResponse, error) {
out := new(ListVlansResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListVlans", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteVlan(ctx context.Context, in *DeleteVlanRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteVlan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ImportVlans(ctx context.Context, in *ImportVlansRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ImportVlans", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ImportOSVlans(ctx context.Context, in *ImportOSVlansRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ImportOSVlans", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ImportStates(ctx context.Context, in *ImportStatesRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ImportStates", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateState(ctx context.Context, in *UpdateStateRequest, opts ...grpc.CallOption) (*models.StateRecord, error) {
out := new(models.StateRecord)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateState", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*models.StateRecord, error) {
out := new(models.StateRecord)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetState", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetDutState(ctx context.Context, in *GetDutStateRequest, opts ...grpc.CallOption) (*lab.DutState, error) {
out := new(lab.DutState)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetDutState", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListDutStates(ctx context.Context, in *ListDutStatesRequest, opts ...grpc.CallOption) (*ListDutStatesResponse, error) {
out := new(ListDutStatesResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListDutStates", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateDutState(ctx context.Context, in *UpdateDutStateRequest, opts ...grpc.CallOption) (*lab.DutState, error) {
out := new(lab.DutState)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateDutState", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateDeviceRecoveryData(ctx context.Context, in *UpdateDeviceRecoveryDataRequest, opts ...grpc.CallOption) (*UpdateDeviceRecoveryDataResponse, error) {
out := new(UpdateDeviceRecoveryDataResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateDeviceRecoveryData", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetDHCPConfig(ctx context.Context, in *GetDHCPConfigRequest, opts ...grpc.CallOption) (*models.DHCPConfig, error) {
out := new(models.DHCPConfig)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetDHCPConfig", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateVM(ctx context.Context, in *CreateVMRequest, opts ...grpc.CallOption) (*models.VM, error) {
out := new(models.VM)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateVM(ctx context.Context, in *UpdateVMRequest, opts ...grpc.CallOption) (*models.VM, error) {
out := new(models.VM)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteVM(ctx context.Context, in *DeleteVMRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetVM(ctx context.Context, in *GetVMRequest, opts ...grpc.CallOption) (*models.VM, error) {
out := new(models.VM)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListVMs(ctx context.Context, in *ListVMsRequest, opts ...grpc.CallOption) (*ListVMsResponse, error) {
out := new(ListVMsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListVMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateAsset(ctx context.Context, in *CreateAssetRequest, opts ...grpc.CallOption) (*models.Asset, error) {
out := new(models.Asset)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateAsset(ctx context.Context, in *UpdateAssetRequest, opts ...grpc.CallOption) (*models.Asset, error) {
out := new(models.Asset)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetAsset(ctx context.Context, in *GetAssetRequest, opts ...grpc.CallOption) (*models.Asset, error) {
out := new(models.Asset)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error) {
out := new(ListAssetsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListAssets", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteAsset(ctx context.Context, in *DeleteAssetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) RenameAsset(ctx context.Context, in *RenameAssetRequest, opts ...grpc.CallOption) (*models.Asset, error) {
out := new(models.Asset)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "RenameAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetKVMs(ctx context.Context, in *BatchGetKVMsRequest, opts ...grpc.CallOption) (*BatchGetKVMsResponse, error) {
out := new(BatchGetKVMsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetKVMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetDHCPConfigs(ctx context.Context, in *BatchGetDHCPConfigsRequest, opts ...grpc.CallOption) (*BatchGetDHCPConfigsResponse, error) {
out := new(BatchGetDHCPConfigsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetDHCPConfigs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetMachineLSEs(ctx context.Context, in *BatchGetMachineLSEsRequest, opts ...grpc.CallOption) (*BatchGetMachineLSEsResponse, error) {
out := new(BatchGetMachineLSEsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetMachineLSEs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetMachines(ctx context.Context, in *BatchGetMachinesRequest, opts ...grpc.CallOption) (*BatchGetMachinesResponse, error) {
out := new(BatchGetMachinesResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetMachines", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetSwitches(ctx context.Context, in *BatchGetSwitchesRequest, opts ...grpc.CallOption) (*BatchGetSwitchesResponse, error) {
out := new(BatchGetSwitchesResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetSwitches", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetRPMs(ctx context.Context, in *BatchGetRPMsRequest, opts ...grpc.CallOption) (*BatchGetRPMsResponse, error) {
out := new(BatchGetRPMsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetRPMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetDracs(ctx context.Context, in *BatchGetDracsRequest, opts ...grpc.CallOption) (*BatchGetDracsResponse, error) {
out := new(BatchGetDracsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetDracs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetNics(ctx context.Context, in *BatchGetNicsRequest, opts ...grpc.CallOption) (*BatchGetNicsResponse, error) {
out := new(BatchGetNicsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetNics", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetVMs(ctx context.Context, in *BatchGetVMsRequest, opts ...grpc.CallOption) (*BatchGetVMsResponse, error) {
out := new(BatchGetVMsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetVMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetVlans(ctx context.Context, in *BatchGetVlansRequest, opts ...grpc.CallOption) (*BatchGetVlansResponse, error) {
out := new(BatchGetVlansResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetVlans", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetRacks(ctx context.Context, in *BatchGetRacksRequest, opts ...grpc.CallOption) (*BatchGetRacksResponse, error) {
out := new(BatchGetRacksResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetRacks", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetChromePlatforms(ctx context.Context, in *BatchGetChromePlatformsRequest, opts ...grpc.CallOption) (*BatchGetChromePlatformsResponse, error) {
out := new(BatchGetChromePlatformsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetChromePlatforms", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetMachineLSEPrototypes(ctx context.Context, in *BatchGetMachineLSEPrototypesRequest, opts ...grpc.CallOption) (*BatchGetMachineLSEPrototypesResponse, error) {
out := new(BatchGetMachineLSEPrototypesResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetMachineLSEPrototypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetRackLSEPrototypes(ctx context.Context, in *BatchGetRackLSEPrototypesRequest, opts ...grpc.CallOption) (*BatchGetRackLSEPrototypesResponse, error) {
out := new(BatchGetRackLSEPrototypesResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetRackLSEPrototypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetChromeOSDeviceData(ctx context.Context, in *GetChromeOSDeviceDataRequest, opts ...grpc.CallOption) (*models.ChromeOSDeviceData, error) {
out := new(models.ChromeOSDeviceData)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetChromeOSDeviceData", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateCachingService(ctx context.Context, in *CreateCachingServiceRequest, opts ...grpc.CallOption) (*models.CachingService, error) {
out := new(models.CachingService)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateCachingService", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateCachingService(ctx context.Context, in *UpdateCachingServiceRequest, opts ...grpc.CallOption) (*models.CachingService, error) {
out := new(models.CachingService)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateCachingService", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetCachingService(ctx context.Context, in *GetCachingServiceRequest, opts ...grpc.CallOption) (*models.CachingService, error) {
out := new(models.CachingService)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetCachingService", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListCachingServices(ctx context.Context, in *ListCachingServicesRequest, opts ...grpc.CallOption) (*ListCachingServicesResponse, error) {
out := new(ListCachingServicesResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListCachingServices", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteCachingService(ctx context.Context, in *DeleteCachingServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteCachingService", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateMachineLSEDeployment(ctx context.Context, in *UpdateMachineLSEDeploymentRequest, opts ...grpc.CallOption) (*models.MachineLSEDeployment, error) {
out := new(models.MachineLSEDeployment)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateMachineLSEDeployment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchUpdateMachineLSEDeployment(ctx context.Context, in *BatchUpdateMachineLSEDeploymentRequest, opts ...grpc.CallOption) (*BatchUpdateMachineLSEDeploymentResponse, error) {
out := new(BatchUpdateMachineLSEDeploymentResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchUpdateMachineLSEDeployment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetMachineLSEDeployment(ctx context.Context, in *GetMachineLSEDeploymentRequest, opts ...grpc.CallOption) (*models.MachineLSEDeployment, error) {
out := new(models.MachineLSEDeployment)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetMachineLSEDeployment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) BatchGetMachineLSEDeployments(ctx context.Context, in *BatchGetMachineLSEDeploymentsRequest, opts ...grpc.CallOption) (*BatchGetMachineLSEDeploymentsResponse, error) {
out := new(BatchGetMachineLSEDeploymentsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "BatchGetMachineLSEDeployments", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListMachineLSEDeployments(ctx context.Context, in *ListMachineLSEDeploymentsRequest, opts ...grpc.CallOption) (*ListMachineLSEDeploymentsResponse, error) {
out := new(ListMachineLSEDeploymentsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListMachineLSEDeployments", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CreateSchedulingUnit(ctx context.Context, in *CreateSchedulingUnitRequest, opts ...grpc.CallOption) (*models.SchedulingUnit, error) {
out := new(models.SchedulingUnit)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CreateSchedulingUnit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateSchedulingUnit(ctx context.Context, in *UpdateSchedulingUnitRequest, opts ...grpc.CallOption) (*models.SchedulingUnit, error) {
out := new(models.SchedulingUnit)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateSchedulingUnit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetSchedulingUnit(ctx context.Context, in *GetSchedulingUnitRequest, opts ...grpc.CallOption) (*models.SchedulingUnit, error) {
out := new(models.SchedulingUnit)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetSchedulingUnit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) ListSchedulingUnits(ctx context.Context, in *ListSchedulingUnitsRequest, opts ...grpc.CallOption) (*ListSchedulingUnitsResponse, error) {
out := new(ListSchedulingUnitsResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "ListSchedulingUnits", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) DeleteSchedulingUnit(ctx context.Context, in *DeleteSchedulingUnitRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "DeleteSchedulingUnit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) UpdateConfigBundle(ctx context.Context, in *UpdateConfigBundleRequest, opts ...grpc.CallOption) (*UpdateConfigBundleResponse, error) {
out := new(UpdateConfigBundleResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "UpdateConfigBundle", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) GetDeviceData(ctx context.Context, in *GetDeviceDataRequest, opts ...grpc.CallOption) (*GetDeviceDataResponse, error) {
out := new(GetDeviceDataResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "GetDeviceData", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetPRPCClient) CheckFleetTestsPolicy(ctx context.Context, in *CheckFleetTestsPolicyRequest, opts ...grpc.CallOption) (*CheckFleetTestsPolicyResponse, error) {
out := new(CheckFleetTestsPolicyResponse)
err := c.client.Call(ctx, "unifiedfleet.api.v1.rpc.Fleet", "CheckFleetTestsPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
type fleetClient struct {
cc grpc.ClientConnInterface
}
func NewFleetClient(cc grpc.ClientConnInterface) FleetClient {
return &fleetClient{cc}
}
func (c *fleetClient) CreateChromePlatform(ctx context.Context, in *CreateChromePlatformRequest, opts ...grpc.CallOption) (*models.ChromePlatform, error) {
out := new(models.ChromePlatform)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateChromePlatform", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateChromePlatform(ctx context.Context, in *UpdateChromePlatformRequest, opts ...grpc.CallOption) (*models.ChromePlatform, error) {
out := new(models.ChromePlatform)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateChromePlatform", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetChromePlatform(ctx context.Context, in *GetChromePlatformRequest, opts ...grpc.CallOption) (*models.ChromePlatform, error) {
out := new(models.ChromePlatform)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetChromePlatform", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListChromePlatforms(ctx context.Context, in *ListChromePlatformsRequest, opts ...grpc.CallOption) (*ListChromePlatformsResponse, error) {
out := new(ListChromePlatformsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListChromePlatforms", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteChromePlatform(ctx context.Context, in *DeleteChromePlatformRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteChromePlatform", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ImportChromePlatforms(ctx context.Context, in *ImportChromePlatformsRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ImportChromePlatforms", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListOSVersions(ctx context.Context, in *ListOSVersionsRequest, opts ...grpc.CallOption) (*ListOSVersionsResponse, error) {
out := new(ListOSVersionsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListOSVersions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ImportOSVersions(ctx context.Context, in *ImportOSVersionsRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ImportOSVersions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateMachineLSEPrototype(ctx context.Context, in *CreateMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*models.MachineLSEPrototype, error) {
out := new(models.MachineLSEPrototype)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateMachineLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateMachineLSEPrototype(ctx context.Context, in *UpdateMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*models.MachineLSEPrototype, error) {
out := new(models.MachineLSEPrototype)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateMachineLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetMachineLSEPrototype(ctx context.Context, in *GetMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*models.MachineLSEPrototype, error) {
out := new(models.MachineLSEPrototype)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetMachineLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListMachineLSEPrototypes(ctx context.Context, in *ListMachineLSEPrototypesRequest, opts ...grpc.CallOption) (*ListMachineLSEPrototypesResponse, error) {
out := new(ListMachineLSEPrototypesResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListMachineLSEPrototypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteMachineLSEPrototype(ctx context.Context, in *DeleteMachineLSEPrototypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteMachineLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateRackLSEPrototype(ctx context.Context, in *CreateRackLSEPrototypeRequest, opts ...grpc.CallOption) (*models.RackLSEPrototype, error) {
out := new(models.RackLSEPrototype)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateRackLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateRackLSEPrototype(ctx context.Context, in *UpdateRackLSEPrototypeRequest, opts ...grpc.CallOption) (*models.RackLSEPrototype, error) {
out := new(models.RackLSEPrototype)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateRackLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetRackLSEPrototype(ctx context.Context, in *GetRackLSEPrototypeRequest, opts ...grpc.CallOption) (*models.RackLSEPrototype, error) {
out := new(models.RackLSEPrototype)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetRackLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListRackLSEPrototypes(ctx context.Context, in *ListRackLSEPrototypesRequest, opts ...grpc.CallOption) (*ListRackLSEPrototypesResponse, error) {
out := new(ListRackLSEPrototypesResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListRackLSEPrototypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteRackLSEPrototype(ctx context.Context, in *DeleteRackLSEPrototypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteRackLSEPrototype", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) MachineRegistration(ctx context.Context, in *MachineRegistrationRequest, opts ...grpc.CallOption) (*models.Machine, error) {
out := new(models.Machine)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/MachineRegistration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateMachine(ctx context.Context, in *UpdateMachineRequest, opts ...grpc.CallOption) (*models.Machine, error) {
out := new(models.Machine)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateMachine", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetMachine(ctx context.Context, in *GetMachineRequest, opts ...grpc.CallOption) (*models.Machine, error) {
out := new(models.Machine)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetMachine", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListMachines(ctx context.Context, in *ListMachinesRequest, opts ...grpc.CallOption) (*ListMachinesResponse, error) {
out := new(ListMachinesResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListMachines", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteMachine(ctx context.Context, in *DeleteMachineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteMachine", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ImportMachines(ctx context.Context, in *ImportMachinesRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ImportMachines", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) RenameMachine(ctx context.Context, in *RenameMachineRequest, opts ...grpc.CallOption) (*models.Machine, error) {
out := new(models.Machine)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/RenameMachine", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) RackRegistration(ctx context.Context, in *RackRegistrationRequest, opts ...grpc.CallOption) (*models.Rack, error) {
out := new(models.Rack)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/RackRegistration", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateRack(ctx context.Context, in *UpdateRackRequest, opts ...grpc.CallOption) (*models.Rack, error) {
out := new(models.Rack)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateRack", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetRack(ctx context.Context, in *GetRackRequest, opts ...grpc.CallOption) (*models.Rack, error) {
out := new(models.Rack)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetRack", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListRacks(ctx context.Context, in *ListRacksRequest, opts ...grpc.CallOption) (*ListRacksResponse, error) {
out := new(ListRacksResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListRacks", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteRack(ctx context.Context, in *DeleteRackRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteRack", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateMachineLSE(ctx context.Context, in *CreateMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error) {
out := new(models.MachineLSE)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateMachineLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateMachineLSE(ctx context.Context, in *UpdateMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error) {
out := new(models.MachineLSE)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateMachineLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetMachineLSE(ctx context.Context, in *GetMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error) {
out := new(models.MachineLSE)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetMachineLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListMachineLSEs(ctx context.Context, in *ListMachineLSEsRequest, opts ...grpc.CallOption) (*ListMachineLSEsResponse, error) {
out := new(ListMachineLSEsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListMachineLSEs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteMachineLSE(ctx context.Context, in *DeleteMachineLSERequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteMachineLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) RenameMachineLSE(ctx context.Context, in *RenameMachineLSERequest, opts ...grpc.CallOption) (*models.MachineLSE, error) {
out := new(models.MachineLSE)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/RenameMachineLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ImportMachineLSEs(ctx context.Context, in *ImportMachineLSEsRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ImportMachineLSEs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ImportOSMachineLSEs(ctx context.Context, in *ImportOSMachineLSEsRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ImportOSMachineLSEs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateRackLSE(ctx context.Context, in *CreateRackLSERequest, opts ...grpc.CallOption) (*models.RackLSE, error) {
out := new(models.RackLSE)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateRackLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateRackLSE(ctx context.Context, in *UpdateRackLSERequest, opts ...grpc.CallOption) (*models.RackLSE, error) {
out := new(models.RackLSE)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateRackLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetRackLSE(ctx context.Context, in *GetRackLSERequest, opts ...grpc.CallOption) (*models.RackLSE, error) {
out := new(models.RackLSE)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetRackLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListRackLSEs(ctx context.Context, in *ListRackLSEsRequest, opts ...grpc.CallOption) (*ListRackLSEsResponse, error) {
out := new(ListRackLSEsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListRackLSEs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteRackLSE(ctx context.Context, in *DeleteRackLSERequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteRackLSE", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateNic(ctx context.Context, in *CreateNicRequest, opts ...grpc.CallOption) (*models.Nic, error) {
out := new(models.Nic)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateNic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateNic(ctx context.Context, in *UpdateNicRequest, opts ...grpc.CallOption) (*models.Nic, error) {
out := new(models.Nic)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateNic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetNic(ctx context.Context, in *GetNicRequest, opts ...grpc.CallOption) (*models.Nic, error) {
out := new(models.Nic)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetNic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListNics(ctx context.Context, in *ListNicsRequest, opts ...grpc.CallOption) (*ListNicsResponse, error) {
out := new(ListNicsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListNics", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteNic(ctx context.Context, in *DeleteNicRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteNic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ImportNics(ctx context.Context, in *ImportNicsRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ImportNics", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) RenameNic(ctx context.Context, in *RenameNicRequest, opts ...grpc.CallOption) (*models.Nic, error) {
out := new(models.Nic)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/RenameNic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ImportDatacenters(ctx context.Context, in *ImportDatacentersRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ImportDatacenters", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateKVM(ctx context.Context, in *CreateKVMRequest, opts ...grpc.CallOption) (*models.KVM, error) {
out := new(models.KVM)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateKVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateKVM(ctx context.Context, in *UpdateKVMRequest, opts ...grpc.CallOption) (*models.KVM, error) {
out := new(models.KVM)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateKVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetKVM(ctx context.Context, in *GetKVMRequest, opts ...grpc.CallOption) (*models.KVM, error) {
out := new(models.KVM)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetKVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListKVMs(ctx context.Context, in *ListKVMsRequest, opts ...grpc.CallOption) (*ListKVMsResponse, error) {
out := new(ListKVMsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListKVMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteKVM(ctx context.Context, in *DeleteKVMRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteKVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateRPM(ctx context.Context, in *CreateRPMRequest, opts ...grpc.CallOption) (*models.RPM, error) {
out := new(models.RPM)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateRPM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateRPM(ctx context.Context, in *UpdateRPMRequest, opts ...grpc.CallOption) (*models.RPM, error) {
out := new(models.RPM)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateRPM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetRPM(ctx context.Context, in *GetRPMRequest, opts ...grpc.CallOption) (*models.RPM, error) {
out := new(models.RPM)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetRPM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListRPMs(ctx context.Context, in *ListRPMsRequest, opts ...grpc.CallOption) (*ListRPMsResponse, error) {
out := new(ListRPMsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListRPMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteRPM(ctx context.Context, in *DeleteRPMRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteRPM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateDrac(ctx context.Context, in *CreateDracRequest, opts ...grpc.CallOption) (*models.Drac, error) {
out := new(models.Drac)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateDrac", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateDrac(ctx context.Context, in *UpdateDracRequest, opts ...grpc.CallOption) (*models.Drac, error) {
out := new(models.Drac)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateDrac", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetDrac(ctx context.Context, in *GetDracRequest, opts ...grpc.CallOption) (*models.Drac, error) {
out := new(models.Drac)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetDrac", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListDracs(ctx context.Context, in *ListDracsRequest, opts ...grpc.CallOption) (*ListDracsResponse, error) {
out := new(ListDracsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListDracs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteDrac(ctx context.Context, in *DeleteDracRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteDrac", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateSwitch(ctx context.Context, in *CreateSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error) {
out := new(models.Switch)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateSwitch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateSwitch(ctx context.Context, in *UpdateSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error) {
out := new(models.Switch)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateSwitch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetSwitch(ctx context.Context, in *GetSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error) {
out := new(models.Switch)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetSwitch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListSwitches(ctx context.Context, in *ListSwitchesRequest, opts ...grpc.CallOption) (*ListSwitchesResponse, error) {
out := new(ListSwitchesResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListSwitches", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteSwitch(ctx context.Context, in *DeleteSwitchRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteSwitch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) RenameSwitch(ctx context.Context, in *RenameSwitchRequest, opts ...grpc.CallOption) (*models.Switch, error) {
out := new(models.Switch)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/RenameSwitch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateVlan(ctx context.Context, in *CreateVlanRequest, opts ...grpc.CallOption) (*models.Vlan, error) {
out := new(models.Vlan)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateVlan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateVlan(ctx context.Context, in *UpdateVlanRequest, opts ...grpc.CallOption) (*models.Vlan, error) {
out := new(models.Vlan)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateVlan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetVlan(ctx context.Context, in *GetVlanRequest, opts ...grpc.CallOption) (*models.Vlan, error) {
out := new(models.Vlan)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetVlan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListVlans(ctx context.Context, in *ListVlansRequest, opts ...grpc.CallOption) (*ListVlansResponse, error) {
out := new(ListVlansResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListVlans", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteVlan(ctx context.Context, in *DeleteVlanRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteVlan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ImportVlans(ctx context.Context, in *ImportVlansRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ImportVlans", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ImportOSVlans(ctx context.Context, in *ImportOSVlansRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ImportOSVlans", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ImportStates(ctx context.Context, in *ImportStatesRequest, opts ...grpc.CallOption) (*status.Status, error) {
out := new(status.Status)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ImportStates", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateState(ctx context.Context, in *UpdateStateRequest, opts ...grpc.CallOption) (*models.StateRecord, error) {
out := new(models.StateRecord)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateState", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*models.StateRecord, error) {
out := new(models.StateRecord)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetState", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetDutState(ctx context.Context, in *GetDutStateRequest, opts ...grpc.CallOption) (*lab.DutState, error) {
out := new(lab.DutState)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetDutState", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListDutStates(ctx context.Context, in *ListDutStatesRequest, opts ...grpc.CallOption) (*ListDutStatesResponse, error) {
out := new(ListDutStatesResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListDutStates", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateDutState(ctx context.Context, in *UpdateDutStateRequest, opts ...grpc.CallOption) (*lab.DutState, error) {
out := new(lab.DutState)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateDutState", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateDeviceRecoveryData(ctx context.Context, in *UpdateDeviceRecoveryDataRequest, opts ...grpc.CallOption) (*UpdateDeviceRecoveryDataResponse, error) {
out := new(UpdateDeviceRecoveryDataResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateDeviceRecoveryData", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetDHCPConfig(ctx context.Context, in *GetDHCPConfigRequest, opts ...grpc.CallOption) (*models.DHCPConfig, error) {
out := new(models.DHCPConfig)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetDHCPConfig", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateVM(ctx context.Context, in *CreateVMRequest, opts ...grpc.CallOption) (*models.VM, error) {
out := new(models.VM)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateVM(ctx context.Context, in *UpdateVMRequest, opts ...grpc.CallOption) (*models.VM, error) {
out := new(models.VM)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteVM(ctx context.Context, in *DeleteVMRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetVM(ctx context.Context, in *GetVMRequest, opts ...grpc.CallOption) (*models.VM, error) {
out := new(models.VM)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetVM", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListVMs(ctx context.Context, in *ListVMsRequest, opts ...grpc.CallOption) (*ListVMsResponse, error) {
out := new(ListVMsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListVMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateAsset(ctx context.Context, in *CreateAssetRequest, opts ...grpc.CallOption) (*models.Asset, error) {
out := new(models.Asset)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateAsset(ctx context.Context, in *UpdateAssetRequest, opts ...grpc.CallOption) (*models.Asset, error) {
out := new(models.Asset)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetAsset(ctx context.Context, in *GetAssetRequest, opts ...grpc.CallOption) (*models.Asset, error) {
out := new(models.Asset)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error) {
out := new(ListAssetsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListAssets", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteAsset(ctx context.Context, in *DeleteAssetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) RenameAsset(ctx context.Context, in *RenameAssetRequest, opts ...grpc.CallOption) (*models.Asset, error) {
out := new(models.Asset)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/RenameAsset", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetKVMs(ctx context.Context, in *BatchGetKVMsRequest, opts ...grpc.CallOption) (*BatchGetKVMsResponse, error) {
out := new(BatchGetKVMsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetKVMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetDHCPConfigs(ctx context.Context, in *BatchGetDHCPConfigsRequest, opts ...grpc.CallOption) (*BatchGetDHCPConfigsResponse, error) {
out := new(BatchGetDHCPConfigsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetDHCPConfigs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetMachineLSEs(ctx context.Context, in *BatchGetMachineLSEsRequest, opts ...grpc.CallOption) (*BatchGetMachineLSEsResponse, error) {
out := new(BatchGetMachineLSEsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetMachineLSEs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetMachines(ctx context.Context, in *BatchGetMachinesRequest, opts ...grpc.CallOption) (*BatchGetMachinesResponse, error) {
out := new(BatchGetMachinesResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetMachines", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetSwitches(ctx context.Context, in *BatchGetSwitchesRequest, opts ...grpc.CallOption) (*BatchGetSwitchesResponse, error) {
out := new(BatchGetSwitchesResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetSwitches", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetRPMs(ctx context.Context, in *BatchGetRPMsRequest, opts ...grpc.CallOption) (*BatchGetRPMsResponse, error) {
out := new(BatchGetRPMsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetRPMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetDracs(ctx context.Context, in *BatchGetDracsRequest, opts ...grpc.CallOption) (*BatchGetDracsResponse, error) {
out := new(BatchGetDracsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetDracs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetNics(ctx context.Context, in *BatchGetNicsRequest, opts ...grpc.CallOption) (*BatchGetNicsResponse, error) {
out := new(BatchGetNicsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetNics", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetVMs(ctx context.Context, in *BatchGetVMsRequest, opts ...grpc.CallOption) (*BatchGetVMsResponse, error) {
out := new(BatchGetVMsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetVMs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetVlans(ctx context.Context, in *BatchGetVlansRequest, opts ...grpc.CallOption) (*BatchGetVlansResponse, error) {
out := new(BatchGetVlansResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetVlans", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetRacks(ctx context.Context, in *BatchGetRacksRequest, opts ...grpc.CallOption) (*BatchGetRacksResponse, error) {
out := new(BatchGetRacksResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetRacks", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetChromePlatforms(ctx context.Context, in *BatchGetChromePlatformsRequest, opts ...grpc.CallOption) (*BatchGetChromePlatformsResponse, error) {
out := new(BatchGetChromePlatformsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetChromePlatforms", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetMachineLSEPrototypes(ctx context.Context, in *BatchGetMachineLSEPrototypesRequest, opts ...grpc.CallOption) (*BatchGetMachineLSEPrototypesResponse, error) {
out := new(BatchGetMachineLSEPrototypesResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetMachineLSEPrototypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetRackLSEPrototypes(ctx context.Context, in *BatchGetRackLSEPrototypesRequest, opts ...grpc.CallOption) (*BatchGetRackLSEPrototypesResponse, error) {
out := new(BatchGetRackLSEPrototypesResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetRackLSEPrototypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetChromeOSDeviceData(ctx context.Context, in *GetChromeOSDeviceDataRequest, opts ...grpc.CallOption) (*models.ChromeOSDeviceData, error) {
out := new(models.ChromeOSDeviceData)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetChromeOSDeviceData", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateCachingService(ctx context.Context, in *CreateCachingServiceRequest, opts ...grpc.CallOption) (*models.CachingService, error) {
out := new(models.CachingService)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateCachingService", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateCachingService(ctx context.Context, in *UpdateCachingServiceRequest, opts ...grpc.CallOption) (*models.CachingService, error) {
out := new(models.CachingService)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateCachingService", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetCachingService(ctx context.Context, in *GetCachingServiceRequest, opts ...grpc.CallOption) (*models.CachingService, error) {
out := new(models.CachingService)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetCachingService", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListCachingServices(ctx context.Context, in *ListCachingServicesRequest, opts ...grpc.CallOption) (*ListCachingServicesResponse, error) {
out := new(ListCachingServicesResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListCachingServices", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteCachingService(ctx context.Context, in *DeleteCachingServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteCachingService", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateMachineLSEDeployment(ctx context.Context, in *UpdateMachineLSEDeploymentRequest, opts ...grpc.CallOption) (*models.MachineLSEDeployment, error) {
out := new(models.MachineLSEDeployment)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateMachineLSEDeployment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchUpdateMachineLSEDeployment(ctx context.Context, in *BatchUpdateMachineLSEDeploymentRequest, opts ...grpc.CallOption) (*BatchUpdateMachineLSEDeploymentResponse, error) {
out := new(BatchUpdateMachineLSEDeploymentResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchUpdateMachineLSEDeployment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetMachineLSEDeployment(ctx context.Context, in *GetMachineLSEDeploymentRequest, opts ...grpc.CallOption) (*models.MachineLSEDeployment, error) {
out := new(models.MachineLSEDeployment)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetMachineLSEDeployment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) BatchGetMachineLSEDeployments(ctx context.Context, in *BatchGetMachineLSEDeploymentsRequest, opts ...grpc.CallOption) (*BatchGetMachineLSEDeploymentsResponse, error) {
out := new(BatchGetMachineLSEDeploymentsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/BatchGetMachineLSEDeployments", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListMachineLSEDeployments(ctx context.Context, in *ListMachineLSEDeploymentsRequest, opts ...grpc.CallOption) (*ListMachineLSEDeploymentsResponse, error) {
out := new(ListMachineLSEDeploymentsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListMachineLSEDeployments", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CreateSchedulingUnit(ctx context.Context, in *CreateSchedulingUnitRequest, opts ...grpc.CallOption) (*models.SchedulingUnit, error) {
out := new(models.SchedulingUnit)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CreateSchedulingUnit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateSchedulingUnit(ctx context.Context, in *UpdateSchedulingUnitRequest, opts ...grpc.CallOption) (*models.SchedulingUnit, error) {
out := new(models.SchedulingUnit)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateSchedulingUnit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetSchedulingUnit(ctx context.Context, in *GetSchedulingUnitRequest, opts ...grpc.CallOption) (*models.SchedulingUnit, error) {
out := new(models.SchedulingUnit)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetSchedulingUnit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) ListSchedulingUnits(ctx context.Context, in *ListSchedulingUnitsRequest, opts ...grpc.CallOption) (*ListSchedulingUnitsResponse, error) {
out := new(ListSchedulingUnitsResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/ListSchedulingUnits", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) DeleteSchedulingUnit(ctx context.Context, in *DeleteSchedulingUnitRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/DeleteSchedulingUnit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) UpdateConfigBundle(ctx context.Context, in *UpdateConfigBundleRequest, opts ...grpc.CallOption) (*UpdateConfigBundleResponse, error) {
out := new(UpdateConfigBundleResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/UpdateConfigBundle", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) GetDeviceData(ctx context.Context, in *GetDeviceDataRequest, opts ...grpc.CallOption) (*GetDeviceDataResponse, error) {
out := new(GetDeviceDataResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/GetDeviceData", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fleetClient) CheckFleetTestsPolicy(ctx context.Context, in *CheckFleetTestsPolicyRequest, opts ...grpc.CallOption) (*CheckFleetTestsPolicyResponse, error) {
out := new(CheckFleetTestsPolicyResponse)
err := c.cc.Invoke(ctx, "/unifiedfleet.api.v1.rpc.Fleet/CheckFleetTestsPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// FleetServer is the server API for Fleet service.
type FleetServer interface {
// CreateChromePlatform creates a new chromePlatform.
CreateChromePlatform(context.Context, *CreateChromePlatformRequest) (*models.ChromePlatform, error)
// Update updates the chromePlatform
UpdateChromePlatform(context.Context, *UpdateChromePlatformRequest) (*models.ChromePlatform, error)
// Get retrieves the details of the chromePlatform
GetChromePlatform(context.Context, *GetChromePlatformRequest) (*models.ChromePlatform, error)
// List gets all the chromePlatforms
ListChromePlatforms(context.Context, *ListChromePlatformsRequest) (*ListChromePlatformsResponse, error)
// Delete delete the chromePlatform
DeleteChromePlatform(context.Context, *DeleteChromePlatformRequest) (*emptypb.Empty, error)
// ImportChromePlatforms imports chrome platforms.
ImportChromePlatforms(context.Context, *ImportChromePlatformsRequest) (*status.Status, error)
// List all the chrome osversions.
ListOSVersions(context.Context, *ListOSVersionsRequest) (*ListOSVersionsResponse, error)
// ImportOSVersions imports the OS versions.
ImportOSVersions(context.Context, *ImportOSVersionsRequest) (*status.Status, error)
// CreateMachineLSEPrototype creates a new MachineLSEPrototype.
CreateMachineLSEPrototype(context.Context, *CreateMachineLSEPrototypeRequest) (*models.MachineLSEPrototype, error)
// Update updates the MachineLSEPrototype
UpdateMachineLSEPrototype(context.Context, *UpdateMachineLSEPrototypeRequest) (*models.MachineLSEPrototype, error)
// Get retrieves the details of the MachineLSEPrototype
GetMachineLSEPrototype(context.Context, *GetMachineLSEPrototypeRequest) (*models.MachineLSEPrototype, error)
// List gets all the MachineLSEPrototypes
ListMachineLSEPrototypes(context.Context, *ListMachineLSEPrototypesRequest) (*ListMachineLSEPrototypesResponse, error)
// Delete delete the MachineLSEPrototype
DeleteMachineLSEPrototype(context.Context, *DeleteMachineLSEPrototypeRequest) (*emptypb.Empty, error)
// CreateRackLSEPrototype creates a new RackLSEPrototype.
CreateRackLSEPrototype(context.Context, *CreateRackLSEPrototypeRequest) (*models.RackLSEPrototype, error)
// Update updates the RackLSEPrototype
UpdateRackLSEPrototype(context.Context, *UpdateRackLSEPrototypeRequest) (*models.RackLSEPrototype, error)
// Get retrieves the details of the RackLSEPrototype
GetRackLSEPrototype(context.Context, *GetRackLSEPrototypeRequest) (*models.RackLSEPrototype, error)
// List gets all the RackLSEPrototypes
ListRackLSEPrototypes(context.Context, *ListRackLSEPrototypesRequest) (*ListRackLSEPrototypesResponse, error)
// Delete delete the RackLSEPrototype
DeleteRackLSEPrototype(context.Context, *DeleteRackLSEPrototypeRequest) (*emptypb.Empty, error)
// MachineRegistration creates a new machine/nics/drac.
MachineRegistration(context.Context, *MachineRegistrationRequest) (*models.Machine, error)
// Update updates the machine
UpdateMachine(context.Context, *UpdateMachineRequest) (*models.Machine, error)
// Get retrieves the details of the machine
GetMachine(context.Context, *GetMachineRequest) (*models.Machine, error)
// List gets all the machines
ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error)
// Delete delete the machine
DeleteMachine(context.Context, *DeleteMachineRequest) (*emptypb.Empty, error)
// Import machines from sources
//
// This doesn't return google.longrunning.Operation as the corresponding
// package is not imported into chops go package.
ImportMachines(context.Context, *ImportMachinesRequest) (*status.Status, error)
// Rename rename the machine
RenameMachine(context.Context, *RenameMachineRequest) (*models.Machine, error)
// RackRegistration creates a new rack/kvms/rpms/switches
RackRegistration(context.Context, *RackRegistrationRequest) (*models.Rack, error)
// Update updates the rack
UpdateRack(context.Context, *UpdateRackRequest) (*models.Rack, error)
// Get retrieves the details of the rack
GetRack(context.Context, *GetRackRequest) (*models.Rack, error)
// List gets all the racks
ListRacks(context.Context, *ListRacksRequest) (*ListRacksResponse, error)
// Delete delete the rack
DeleteRack(context.Context, *DeleteRackRequest) (*emptypb.Empty, error)
// CreateMachineLSE creates a new machineLSE
CreateMachineLSE(context.Context, *CreateMachineLSERequest) (*models.MachineLSE, error)
// Update updates the machineLSE
UpdateMachineLSE(context.Context, *UpdateMachineLSERequest) (*models.MachineLSE, error)
// Get retrieves the details of the machineLSE
GetMachineLSE(context.Context, *GetMachineLSERequest) (*models.MachineLSE, error)
// List gets all the machineLSEs
ListMachineLSEs(context.Context, *ListMachineLSEsRequest) (*ListMachineLSEsResponse, error)
// Delete delete the machineLSE
DeleteMachineLSE(context.Context, *DeleteMachineLSERequest) (*emptypb.Empty, error)
// Rename the machine lse
RenameMachineLSE(context.Context, *RenameMachineLSERequest) (*models.MachineLSE, error)
// ImportMachineLSEs imports machine LSEs & all related infos.
ImportMachineLSEs(context.Context, *ImportMachineLSEsRequest) (*status.Status, error)
// ImportOSMachineLSEs imports ChromeOS machine LSEs & all related infos if needed.
ImportOSMachineLSEs(context.Context, *ImportOSMachineLSEsRequest) (*status.Status, error)
// CreateRackLSE creates a new rackLSE
CreateRackLSE(context.Context, *CreateRackLSERequest) (*models.RackLSE, error)
// Update updates the rackLSE
UpdateRackLSE(context.Context, *UpdateRackLSERequest) (*models.RackLSE, error)
// Get retrieves the details of the rackLSE
GetRackLSE(context.Context, *GetRackLSERequest) (*models.RackLSE, error)
// List gets all the rackLSEs
ListRackLSEs(context.Context, *ListRackLSEsRequest) (*ListRackLSEsResponse, error)
// Delete delete the rackLSE
DeleteRackLSE(context.Context, *DeleteRackLSERequest) (*emptypb.Empty, error)
// CreateNic creates a new nic
CreateNic(context.Context, *CreateNicRequest) (*models.Nic, error)
// Update updates the nic
UpdateNic(context.Context, *UpdateNicRequest) (*models.Nic, error)
// Get retrieves the details of the nic
GetNic(context.Context, *GetNicRequest) (*models.Nic, error)
// List gets all the nics
ListNics(context.Context, *ListNicsRequest) (*ListNicsResponse, error)
// Delete delete the nic
DeleteNic(context.Context, *DeleteNicRequest) (*emptypb.Empty, error)
// ImportNics imports nics info.
ImportNics(context.Context, *ImportNicsRequest) (*status.Status, error)
// Rename rename the nic
RenameNic(context.Context, *RenameNicRequest) (*models.Nic, error)
// ImportDatacenters imports datacenter & its related info, including kvm & switch.
ImportDatacenters(context.Context, *ImportDatacentersRequest) (*status.Status, error)
// CreateKVM creates a new KVM
CreateKVM(context.Context, *CreateKVMRequest) (*models.KVM, error)
// Update updates the KVM
UpdateKVM(context.Context, *UpdateKVMRequest) (*models.KVM, error)
// Get retrieves the details of the KVM
GetKVM(context.Context, *GetKVMRequest) (*models.KVM, error)
// List gets all the KVMs
ListKVMs(context.Context, *ListKVMsRequest) (*ListKVMsResponse, error)
// Delete delete the KVM
DeleteKVM(context.Context, *DeleteKVMRequest) (*emptypb.Empty, error)
// CreateRPM creates a new RPM
CreateRPM(context.Context, *CreateRPMRequest) (*models.RPM, error)
// Update updates the RPM
UpdateRPM(context.Context, *UpdateRPMRequest) (*models.RPM, error)
// Get retrieves the details of the RPM
GetRPM(context.Context, *GetRPMRequest) (*models.RPM, error)
// List gets all the RPMs
ListRPMs(context.Context, *ListRPMsRequest) (*ListRPMsResponse, error)
// Delete delete the RPM
DeleteRPM(context.Context, *DeleteRPMRequest) (*emptypb.Empty, error)
// CreateDrac creates a new drac
CreateDrac(context.Context, *CreateDracRequest) (*models.Drac, error)
// Update updates the drac
UpdateDrac(context.Context, *UpdateDracRequest) (*models.Drac, error)
// Get retrieves the details of the drac
GetDrac(context.Context, *GetDracRequest) (*models.Drac, error)
// List gets all the dracs
ListDracs(context.Context, *ListDracsRequest) (*ListDracsResponse, error)
// Delete delete the drac
DeleteDrac(context.Context, *DeleteDracRequest) (*emptypb.Empty, error)
// CreateSwitch creates a new switch
CreateSwitch(context.Context, *CreateSwitchRequest) (*models.Switch, error)
// Update updates the switch
UpdateSwitch(context.Context, *UpdateSwitchRequest) (*models.Switch, error)
// Get retrieves the details of the switch
GetSwitch(context.Context, *GetSwitchRequest) (*models.Switch, error)
// List gets all the switches
ListSwitches(context.Context, *ListSwitchesRequest) (*ListSwitchesResponse, error)
// Delete delete the switch
DeleteSwitch(context.Context, *DeleteSwitchRequest) (*emptypb.Empty, error)
// Rename rename the switch
RenameSwitch(context.Context, *RenameSwitchRequest) (*models.Switch, error)
// CreateVlan creates a new vlan
CreateVlan(context.Context, *CreateVlanRequest) (*models.Vlan, error)
// Update updates the vlan
UpdateVlan(context.Context, *UpdateVlanRequest) (*models.Vlan, error)
// Get retrieves the details of the vlan
GetVlan(context.Context, *GetVlanRequest) (*models.Vlan, error)
// List gets all the vlans
ListVlans(context.Context, *ListVlansRequest) (*ListVlansResponse, error)
// Delete delete the vlan
DeleteVlan(context.Context, *DeleteVlanRequest) (*emptypb.Empty, error)
// ImportVlans imports vlans & all IP-related infos.
ImportVlans(context.Context, *ImportVlansRequest) (*status.Status, error)
// ImportOSVlans imports the ChromeOS vlans, ips, and dhcp configs.
ImportOSVlans(context.Context, *ImportOSVlansRequest) (*status.Status, error)
// ImportStates imports states of all objects.
ImportStates(context.Context, *ImportStatesRequest) (*status.Status, error)
// UpdateState updates the state for a resource.
// If the state doesn't exist before, it will create the state record for the resource.
UpdateState(context.Context, *UpdateStateRequest) (*models.StateRecord, error)
// GetState retrieves the state of a resource.
GetState(context.Context, *GetStateRequest) (*models.StateRecord, error)
// GetDutState retrieves requested Chrome OS device DutState from UFS.
GetDutState(context.Context, *GetDutStateRequest) (*lab.DutState, error)
// ListDutStates gets all the DutStates
ListDutStates(context.Context, *ListDutStatesRequest) (*ListDutStatesResponse, error)
// UpdateDutState updates the state config for a DUT
// If the dut state doesn't exist before, it will create the dut state record.
UpdateDutState(context.Context, *UpdateDutStateRequest) (*lab.DutState, error)
// UpdateDeviceRecoveryData updates the device configs for a DUT
UpdateDeviceRecoveryData(context.Context, *UpdateDeviceRecoveryDataRequest) (*UpdateDeviceRecoveryDataResponse, error)
// GetDHCPConfig retrieves a dhcp record.
GetDHCPConfig(context.Context, *GetDHCPConfigRequest) (*models.DHCPConfig, error)
// CreateVM creates a new VM
CreateVM(context.Context, *CreateVMRequest) (*models.VM, error)
// UpdateVM updates a VM
UpdateVM(context.Context, *UpdateVMRequest) (*models.VM, error)
// DeleteVM delete a VM
DeleteVM(context.Context, *DeleteVMRequest) (*emptypb.Empty, error)
// GetVM retrieves the details of the VM
GetVM(context.Context, *GetVMRequest) (*models.VM, error)
// ListVMs gets all the Vms
ListVMs(context.Context, *ListVMsRequest) (*ListVMsResponse, error)
// CreateAsset creates a new asset
CreateAsset(context.Context, *CreateAssetRequest) (*models.Asset, error)
// Update updates the asset
UpdateAsset(context.Context, *UpdateAssetRequest) (*models.Asset, error)
// Get retrieves the details of the asset
GetAsset(context.Context, *GetAssetRequest) (*models.Asset, error)
// List gets all the assets
ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error)
// Delete delete the asset
DeleteAsset(context.Context, *DeleteAssetRequest) (*emptypb.Empty, error)
// Rename the asset
RenameAsset(context.Context, *RenameAssetRequest) (*models.Asset, error)
// BatchGetKVMs retrieves a batch of kvms
BatchGetKVMs(context.Context, *BatchGetKVMsRequest) (*BatchGetKVMsResponse, error)
// BatchGetDHCPConfigs retrieves a batch of dhcp records.
BatchGetDHCPConfigs(context.Context, *BatchGetDHCPConfigsRequest) (*BatchGetDHCPConfigsResponse, error)
// BatchGetMachineLSEs retrieves a batch of machineLSEs
BatchGetMachineLSEs(context.Context, *BatchGetMachineLSEsRequest) (*BatchGetMachineLSEsResponse, error)
// BatchGetMachines retrieves a batch of machines
BatchGetMachines(context.Context, *BatchGetMachinesRequest) (*BatchGetMachinesResponse, error)
// BatchGetSwitches retrieves a batch of switches
BatchGetSwitches(context.Context, *BatchGetSwitchesRequest) (*BatchGetSwitchesResponse, error)
// BatchGetRPMs retrieves a batch of rpms
BatchGetRPMs(context.Context, *BatchGetRPMsRequest) (*BatchGetRPMsResponse, error)
// BatchGetDracs retrieves a batch of dracs
BatchGetDracs(context.Context, *BatchGetDracsRequest) (*BatchGetDracsResponse, error)
// BatchGetNics retrieves a batch of nics
BatchGetNics(context.Context, *BatchGetNicsRequest) (*BatchGetNicsResponse, error)
// BatchGetVMs retrieves a batch of vms
BatchGetVMs(context.Context, *BatchGetVMsRequest) (*BatchGetVMsResponse, error)
// BatchGetVlans retrieves a batch of vlans
BatchGetVlans(context.Context, *BatchGetVlansRequest) (*BatchGetVlansResponse, error)
// BatchGetRacks retrieves a batch of racks
BatchGetRacks(context.Context, *BatchGetRacksRequest) (*BatchGetRacksResponse, error)
// BatchGetChromePlatforms retrieves a batch of chrome platforms
BatchGetChromePlatforms(context.Context, *BatchGetChromePlatformsRequest) (*BatchGetChromePlatformsResponse, error)
// BatchGetMachineLSEPrototypes retrieves a batch of machine lse prototypes
BatchGetMachineLSEPrototypes(context.Context, *BatchGetMachineLSEPrototypesRequest) (*BatchGetMachineLSEPrototypesResponse, error)
// BatchGetRackLSEPrototypes retrieves a batch of rack lse prototypes
BatchGetRackLSEPrototypes(context.Context, *BatchGetRackLSEPrototypesRequest) (*BatchGetRackLSEPrototypesResponse, error)
// GetChromeOSDeviceData retrieves requested Chrome OS device data from the UFS and inventoryV2.
GetChromeOSDeviceData(context.Context, *GetChromeOSDeviceDataRequest) (*models.ChromeOSDeviceData, error)
// CreateCachingService creates a new CachingService.
CreateCachingService(context.Context, *CreateCachingServiceRequest) (*models.CachingService, error)
// Update updates the CachingService.
UpdateCachingService(context.Context, *UpdateCachingServiceRequest) (*models.CachingService, error)
// Get retrieves the details of the CachingService.
GetCachingService(context.Context, *GetCachingServiceRequest) (*models.CachingService, error)
// List gets all the CachingServices.
ListCachingServices(context.Context, *ListCachingServicesRequest) (*ListCachingServicesResponse, error)
// Delete delete the CachingService.
DeleteCachingService(context.Context, *DeleteCachingServiceRequest) (*emptypb.Empty, error)
// UpdateMachineLSEDeployment updates a deployment record for a host.
UpdateMachineLSEDeployment(context.Context, *UpdateMachineLSEDeploymentRequest) (*models.MachineLSEDeployment, error)
// BatchUpdateMachineLSEDeployment updates the deployment records for a batch of hosts.
BatchUpdateMachineLSEDeployment(context.Context, *BatchUpdateMachineLSEDeploymentRequest) (*BatchUpdateMachineLSEDeploymentResponse, error)
// GetMachineLSEDeployment retrieves a deployment record for a given host identifier, e.g. serial number.
GetMachineLSEDeployment(context.Context, *GetMachineLSEDeploymentRequest) (*models.MachineLSEDeployment, error)
// BatchGetMachineLSEDeployments retrieves a batch of deployment records.
BatchGetMachineLSEDeployments(context.Context, *BatchGetMachineLSEDeploymentsRequest) (*BatchGetMachineLSEDeploymentsResponse, error)
// ListMachineLSEDeployments lists all deployment records which fulfill the requirements
ListMachineLSEDeployments(context.Context, *ListMachineLSEDeploymentsRequest) (*ListMachineLSEDeploymentsResponse, error)
// CreateSchedulingUnit creates a new SchedulingUnit.
CreateSchedulingUnit(context.Context, *CreateSchedulingUnitRequest) (*models.SchedulingUnit, error)
// Update updates the SchedulingUnit.
UpdateSchedulingUnit(context.Context, *UpdateSchedulingUnitRequest) (*models.SchedulingUnit, error)
// Get retrieves the details of the SchedulingUnit.
GetSchedulingUnit(context.Context, *GetSchedulingUnitRequest) (*models.SchedulingUnit, error)
// List gets all the SchedulingUnits.
ListSchedulingUnits(context.Context, *ListSchedulingUnitsRequest) (*ListSchedulingUnitsResponse, error)
// Delete delete the SchedulingUnit.
DeleteSchedulingUnit(context.Context, *DeleteSchedulingUnitRequest) (*emptypb.Empty, error)
// UpdateConfigBundle updates the ConfigBundle
UpdateConfigBundle(context.Context, *UpdateConfigBundleRequest) (*UpdateConfigBundleResponse, error)
// GetDeviceData retrieves requested device data from UFS.
GetDeviceData(context.Context, *GetDeviceDataRequest) (*GetDeviceDataResponse, error)
// CheckFleetPolicyForTest checks whether a given test parameters indicate a valid test
CheckFleetTestsPolicy(context.Context, *CheckFleetTestsPolicyRequest) (*CheckFleetTestsPolicyResponse, error)
}
// UnimplementedFleetServer can be embedded to have forward compatible implementations.
type UnimplementedFleetServer struct {
}
func (*UnimplementedFleetServer) CreateChromePlatform(context.Context, *CreateChromePlatformRequest) (*models.ChromePlatform, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateChromePlatform not implemented")
}
func (*UnimplementedFleetServer) UpdateChromePlatform(context.Context, *UpdateChromePlatformRequest) (*models.ChromePlatform, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateChromePlatform not implemented")
}
func (*UnimplementedFleetServer) GetChromePlatform(context.Context, *GetChromePlatformRequest) (*models.ChromePlatform, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetChromePlatform not implemented")
}
func (*UnimplementedFleetServer) ListChromePlatforms(context.Context, *ListChromePlatformsRequest) (*ListChromePlatformsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListChromePlatforms not implemented")
}
func (*UnimplementedFleetServer) DeleteChromePlatform(context.Context, *DeleteChromePlatformRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteChromePlatform not implemented")
}
func (*UnimplementedFleetServer) ImportChromePlatforms(context.Context, *ImportChromePlatformsRequest) (*status.Status, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ImportChromePlatforms not implemented")
}
func (*UnimplementedFleetServer) ListOSVersions(context.Context, *ListOSVersionsRequest) (*ListOSVersionsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListOSVersions not implemented")
}
func (*UnimplementedFleetServer) ImportOSVersions(context.Context, *ImportOSVersionsRequest) (*status.Status, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ImportOSVersions not implemented")
}
func (*UnimplementedFleetServer) CreateMachineLSEPrototype(context.Context, *CreateMachineLSEPrototypeRequest) (*models.MachineLSEPrototype, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateMachineLSEPrototype not implemented")
}
func (*UnimplementedFleetServer) UpdateMachineLSEPrototype(context.Context, *UpdateMachineLSEPrototypeRequest) (*models.MachineLSEPrototype, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateMachineLSEPrototype not implemented")
}
func (*UnimplementedFleetServer) GetMachineLSEPrototype(context.Context, *GetMachineLSEPrototypeRequest) (*models.MachineLSEPrototype, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetMachineLSEPrototype not implemented")
}
func (*UnimplementedFleetServer) ListMachineLSEPrototypes(context.Context, *ListMachineLSEPrototypesRequest) (*ListMachineLSEPrototypesResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListMachineLSEPrototypes not implemented")
}
func (*UnimplementedFleetServer) DeleteMachineLSEPrototype(context.Context, *DeleteMachineLSEPrototypeRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteMachineLSEPrototype not implemented")
}
func (*UnimplementedFleetServer) CreateRackLSEPrototype(context.Context, *CreateRackLSEPrototypeRequest) (*models.RackLSEPrototype, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateRackLSEPrototype not implemented")
}
func (*UnimplementedFleetServer) UpdateRackLSEPrototype(context.Context, *UpdateRackLSEPrototypeRequest) (*models.RackLSEPrototype, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateRackLSEPrototype not implemented")
}
func (*UnimplementedFleetServer) GetRackLSEPrototype(context.Context, *GetRackLSEPrototypeRequest) (*models.RackLSEPrototype, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetRackLSEPrototype not implemented")
}
func (*UnimplementedFleetServer) ListRackLSEPrototypes(context.Context, *ListRackLSEPrototypesRequest) (*ListRackLSEPrototypesResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListRackLSEPrototypes not implemented")
}
func (*UnimplementedFleetServer) DeleteRackLSEPrototype(context.Context, *DeleteRackLSEPrototypeRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteRackLSEPrototype not implemented")
}
func (*UnimplementedFleetServer) MachineRegistration(context.Context, *MachineRegistrationRequest) (*models.Machine, error) {
return nil, status1.Errorf(codes.Unimplemented, "method MachineRegistration not implemented")
}
func (*UnimplementedFleetServer) UpdateMachine(context.Context, *UpdateMachineRequest) (*models.Machine, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateMachine not implemented")
}
func (*UnimplementedFleetServer) GetMachine(context.Context, *GetMachineRequest) (*models.Machine, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetMachine not implemented")
}
func (*UnimplementedFleetServer) ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListMachines not implemented")
}
func (*UnimplementedFleetServer) DeleteMachine(context.Context, *DeleteMachineRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteMachine not implemented")
}
func (*UnimplementedFleetServer) ImportMachines(context.Context, *ImportMachinesRequest) (*status.Status, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ImportMachines not implemented")
}
func (*UnimplementedFleetServer) RenameMachine(context.Context, *RenameMachineRequest) (*models.Machine, error) {
return nil, status1.Errorf(codes.Unimplemented, "method RenameMachine not implemented")
}
func (*UnimplementedFleetServer) RackRegistration(context.Context, *RackRegistrationRequest) (*models.Rack, error) {
return nil, status1.Errorf(codes.Unimplemented, "method RackRegistration not implemented")
}
func (*UnimplementedFleetServer) UpdateRack(context.Context, *UpdateRackRequest) (*models.Rack, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateRack not implemented")
}
func (*UnimplementedFleetServer) GetRack(context.Context, *GetRackRequest) (*models.Rack, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetRack not implemented")
}
func (*UnimplementedFleetServer) ListRacks(context.Context, *ListRacksRequest) (*ListRacksResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListRacks not implemented")
}
func (*UnimplementedFleetServer) DeleteRack(context.Context, *DeleteRackRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteRack not implemented")
}
func (*UnimplementedFleetServer) CreateMachineLSE(context.Context, *CreateMachineLSERequest) (*models.MachineLSE, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateMachineLSE not implemented")
}
func (*UnimplementedFleetServer) UpdateMachineLSE(context.Context, *UpdateMachineLSERequest) (*models.MachineLSE, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateMachineLSE not implemented")
}
func (*UnimplementedFleetServer) GetMachineLSE(context.Context, *GetMachineLSERequest) (*models.MachineLSE, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetMachineLSE not implemented")
}
func (*UnimplementedFleetServer) ListMachineLSEs(context.Context, *ListMachineLSEsRequest) (*ListMachineLSEsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListMachineLSEs not implemented")
}
func (*UnimplementedFleetServer) DeleteMachineLSE(context.Context, *DeleteMachineLSERequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteMachineLSE not implemented")
}
func (*UnimplementedFleetServer) RenameMachineLSE(context.Context, *RenameMachineLSERequest) (*models.MachineLSE, error) {
return nil, status1.Errorf(codes.Unimplemented, "method RenameMachineLSE not implemented")
}
func (*UnimplementedFleetServer) ImportMachineLSEs(context.Context, *ImportMachineLSEsRequest) (*status.Status, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ImportMachineLSEs not implemented")
}
func (*UnimplementedFleetServer) ImportOSMachineLSEs(context.Context, *ImportOSMachineLSEsRequest) (*status.Status, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ImportOSMachineLSEs not implemented")
}
func (*UnimplementedFleetServer) CreateRackLSE(context.Context, *CreateRackLSERequest) (*models.RackLSE, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateRackLSE not implemented")
}
func (*UnimplementedFleetServer) UpdateRackLSE(context.Context, *UpdateRackLSERequest) (*models.RackLSE, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateRackLSE not implemented")
}
func (*UnimplementedFleetServer) GetRackLSE(context.Context, *GetRackLSERequest) (*models.RackLSE, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetRackLSE not implemented")
}
func (*UnimplementedFleetServer) ListRackLSEs(context.Context, *ListRackLSEsRequest) (*ListRackLSEsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListRackLSEs not implemented")
}
func (*UnimplementedFleetServer) DeleteRackLSE(context.Context, *DeleteRackLSERequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteRackLSE not implemented")
}
func (*UnimplementedFleetServer) CreateNic(context.Context, *CreateNicRequest) (*models.Nic, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateNic not implemented")
}
func (*UnimplementedFleetServer) UpdateNic(context.Context, *UpdateNicRequest) (*models.Nic, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateNic not implemented")
}
func (*UnimplementedFleetServer) GetNic(context.Context, *GetNicRequest) (*models.Nic, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetNic not implemented")
}
func (*UnimplementedFleetServer) ListNics(context.Context, *ListNicsRequest) (*ListNicsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListNics not implemented")
}
func (*UnimplementedFleetServer) DeleteNic(context.Context, *DeleteNicRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteNic not implemented")
}
func (*UnimplementedFleetServer) ImportNics(context.Context, *ImportNicsRequest) (*status.Status, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ImportNics not implemented")
}
func (*UnimplementedFleetServer) RenameNic(context.Context, *RenameNicRequest) (*models.Nic, error) {
return nil, status1.Errorf(codes.Unimplemented, "method RenameNic not implemented")
}
func (*UnimplementedFleetServer) ImportDatacenters(context.Context, *ImportDatacentersRequest) (*status.Status, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ImportDatacenters not implemented")
}
func (*UnimplementedFleetServer) CreateKVM(context.Context, *CreateKVMRequest) (*models.KVM, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateKVM not implemented")
}
func (*UnimplementedFleetServer) UpdateKVM(context.Context, *UpdateKVMRequest) (*models.KVM, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateKVM not implemented")
}
func (*UnimplementedFleetServer) GetKVM(context.Context, *GetKVMRequest) (*models.KVM, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetKVM not implemented")
}
func (*UnimplementedFleetServer) ListKVMs(context.Context, *ListKVMsRequest) (*ListKVMsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListKVMs not implemented")
}
func (*UnimplementedFleetServer) DeleteKVM(context.Context, *DeleteKVMRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteKVM not implemented")
}
func (*UnimplementedFleetServer) CreateRPM(context.Context, *CreateRPMRequest) (*models.RPM, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateRPM not implemented")
}
func (*UnimplementedFleetServer) UpdateRPM(context.Context, *UpdateRPMRequest) (*models.RPM, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateRPM not implemented")
}
func (*UnimplementedFleetServer) GetRPM(context.Context, *GetRPMRequest) (*models.RPM, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetRPM not implemented")
}
func (*UnimplementedFleetServer) ListRPMs(context.Context, *ListRPMsRequest) (*ListRPMsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListRPMs not implemented")
}
func (*UnimplementedFleetServer) DeleteRPM(context.Context, *DeleteRPMRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteRPM not implemented")
}
func (*UnimplementedFleetServer) CreateDrac(context.Context, *CreateDracRequest) (*models.Drac, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateDrac not implemented")
}
func (*UnimplementedFleetServer) UpdateDrac(context.Context, *UpdateDracRequest) (*models.Drac, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateDrac not implemented")
}
func (*UnimplementedFleetServer) GetDrac(context.Context, *GetDracRequest) (*models.Drac, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetDrac not implemented")
}
func (*UnimplementedFleetServer) ListDracs(context.Context, *ListDracsRequest) (*ListDracsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListDracs not implemented")
}
func (*UnimplementedFleetServer) DeleteDrac(context.Context, *DeleteDracRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteDrac not implemented")
}
func (*UnimplementedFleetServer) CreateSwitch(context.Context, *CreateSwitchRequest) (*models.Switch, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateSwitch not implemented")
}
func (*UnimplementedFleetServer) UpdateSwitch(context.Context, *UpdateSwitchRequest) (*models.Switch, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateSwitch not implemented")
}
func (*UnimplementedFleetServer) GetSwitch(context.Context, *GetSwitchRequest) (*models.Switch, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetSwitch not implemented")
}
func (*UnimplementedFleetServer) ListSwitches(context.Context, *ListSwitchesRequest) (*ListSwitchesResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListSwitches not implemented")
}
func (*UnimplementedFleetServer) DeleteSwitch(context.Context, *DeleteSwitchRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteSwitch not implemented")
}
func (*UnimplementedFleetServer) RenameSwitch(context.Context, *RenameSwitchRequest) (*models.Switch, error) {
return nil, status1.Errorf(codes.Unimplemented, "method RenameSwitch not implemented")
}
func (*UnimplementedFleetServer) CreateVlan(context.Context, *CreateVlanRequest) (*models.Vlan, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateVlan not implemented")
}
func (*UnimplementedFleetServer) UpdateVlan(context.Context, *UpdateVlanRequest) (*models.Vlan, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateVlan not implemented")
}
func (*UnimplementedFleetServer) GetVlan(context.Context, *GetVlanRequest) (*models.Vlan, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetVlan not implemented")
}
func (*UnimplementedFleetServer) ListVlans(context.Context, *ListVlansRequest) (*ListVlansResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListVlans not implemented")
}
func (*UnimplementedFleetServer) DeleteVlan(context.Context, *DeleteVlanRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteVlan not implemented")
}
func (*UnimplementedFleetServer) ImportVlans(context.Context, *ImportVlansRequest) (*status.Status, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ImportVlans not implemented")
}
func (*UnimplementedFleetServer) ImportOSVlans(context.Context, *ImportOSVlansRequest) (*status.Status, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ImportOSVlans not implemented")
}
func (*UnimplementedFleetServer) ImportStates(context.Context, *ImportStatesRequest) (*status.Status, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ImportStates not implemented")
}
func (*UnimplementedFleetServer) UpdateState(context.Context, *UpdateStateRequest) (*models.StateRecord, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateState not implemented")
}
func (*UnimplementedFleetServer) GetState(context.Context, *GetStateRequest) (*models.StateRecord, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetState not implemented")
}
func (*UnimplementedFleetServer) GetDutState(context.Context, *GetDutStateRequest) (*lab.DutState, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetDutState not implemented")
}
func (*UnimplementedFleetServer) ListDutStates(context.Context, *ListDutStatesRequest) (*ListDutStatesResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListDutStates not implemented")
}
func (*UnimplementedFleetServer) UpdateDutState(context.Context, *UpdateDutStateRequest) (*lab.DutState, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateDutState not implemented")
}
func (*UnimplementedFleetServer) UpdateDeviceRecoveryData(context.Context, *UpdateDeviceRecoveryDataRequest) (*UpdateDeviceRecoveryDataResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateDeviceRecoveryData not implemented")
}
func (*UnimplementedFleetServer) GetDHCPConfig(context.Context, *GetDHCPConfigRequest) (*models.DHCPConfig, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetDHCPConfig not implemented")
}
func (*UnimplementedFleetServer) CreateVM(context.Context, *CreateVMRequest) (*models.VM, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateVM not implemented")
}
func (*UnimplementedFleetServer) UpdateVM(context.Context, *UpdateVMRequest) (*models.VM, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateVM not implemented")
}
func (*UnimplementedFleetServer) DeleteVM(context.Context, *DeleteVMRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteVM not implemented")
}
func (*UnimplementedFleetServer) GetVM(context.Context, *GetVMRequest) (*models.VM, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetVM not implemented")
}
func (*UnimplementedFleetServer) ListVMs(context.Context, *ListVMsRequest) (*ListVMsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListVMs not implemented")
}
func (*UnimplementedFleetServer) CreateAsset(context.Context, *CreateAssetRequest) (*models.Asset, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateAsset not implemented")
}
func (*UnimplementedFleetServer) UpdateAsset(context.Context, *UpdateAssetRequest) (*models.Asset, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateAsset not implemented")
}
func (*UnimplementedFleetServer) GetAsset(context.Context, *GetAssetRequest) (*models.Asset, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetAsset not implemented")
}
func (*UnimplementedFleetServer) ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListAssets not implemented")
}
func (*UnimplementedFleetServer) DeleteAsset(context.Context, *DeleteAssetRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteAsset not implemented")
}
func (*UnimplementedFleetServer) RenameAsset(context.Context, *RenameAssetRequest) (*models.Asset, error) {
return nil, status1.Errorf(codes.Unimplemented, "method RenameAsset not implemented")
}
func (*UnimplementedFleetServer) BatchGetKVMs(context.Context, *BatchGetKVMsRequest) (*BatchGetKVMsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetKVMs not implemented")
}
func (*UnimplementedFleetServer) BatchGetDHCPConfigs(context.Context, *BatchGetDHCPConfigsRequest) (*BatchGetDHCPConfigsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetDHCPConfigs not implemented")
}
func (*UnimplementedFleetServer) BatchGetMachineLSEs(context.Context, *BatchGetMachineLSEsRequest) (*BatchGetMachineLSEsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetMachineLSEs not implemented")
}
func (*UnimplementedFleetServer) BatchGetMachines(context.Context, *BatchGetMachinesRequest) (*BatchGetMachinesResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetMachines not implemented")
}
func (*UnimplementedFleetServer) BatchGetSwitches(context.Context, *BatchGetSwitchesRequest) (*BatchGetSwitchesResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetSwitches not implemented")
}
func (*UnimplementedFleetServer) BatchGetRPMs(context.Context, *BatchGetRPMsRequest) (*BatchGetRPMsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetRPMs not implemented")
}
func (*UnimplementedFleetServer) BatchGetDracs(context.Context, *BatchGetDracsRequest) (*BatchGetDracsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetDracs not implemented")
}
func (*UnimplementedFleetServer) BatchGetNics(context.Context, *BatchGetNicsRequest) (*BatchGetNicsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetNics not implemented")
}
func (*UnimplementedFleetServer) BatchGetVMs(context.Context, *BatchGetVMsRequest) (*BatchGetVMsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetVMs not implemented")
}
func (*UnimplementedFleetServer) BatchGetVlans(context.Context, *BatchGetVlansRequest) (*BatchGetVlansResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetVlans not implemented")
}
func (*UnimplementedFleetServer) BatchGetRacks(context.Context, *BatchGetRacksRequest) (*BatchGetRacksResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetRacks not implemented")
}
func (*UnimplementedFleetServer) BatchGetChromePlatforms(context.Context, *BatchGetChromePlatformsRequest) (*BatchGetChromePlatformsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetChromePlatforms not implemented")
}
func (*UnimplementedFleetServer) BatchGetMachineLSEPrototypes(context.Context, *BatchGetMachineLSEPrototypesRequest) (*BatchGetMachineLSEPrototypesResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetMachineLSEPrototypes not implemented")
}
func (*UnimplementedFleetServer) BatchGetRackLSEPrototypes(context.Context, *BatchGetRackLSEPrototypesRequest) (*BatchGetRackLSEPrototypesResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetRackLSEPrototypes not implemented")
}
func (*UnimplementedFleetServer) GetChromeOSDeviceData(context.Context, *GetChromeOSDeviceDataRequest) (*models.ChromeOSDeviceData, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetChromeOSDeviceData not implemented")
}
func (*UnimplementedFleetServer) CreateCachingService(context.Context, *CreateCachingServiceRequest) (*models.CachingService, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateCachingService not implemented")
}
func (*UnimplementedFleetServer) UpdateCachingService(context.Context, *UpdateCachingServiceRequest) (*models.CachingService, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateCachingService not implemented")
}
func (*UnimplementedFleetServer) GetCachingService(context.Context, *GetCachingServiceRequest) (*models.CachingService, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetCachingService not implemented")
}
func (*UnimplementedFleetServer) ListCachingServices(context.Context, *ListCachingServicesRequest) (*ListCachingServicesResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListCachingServices not implemented")
}
func (*UnimplementedFleetServer) DeleteCachingService(context.Context, *DeleteCachingServiceRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteCachingService not implemented")
}
func (*UnimplementedFleetServer) UpdateMachineLSEDeployment(context.Context, *UpdateMachineLSEDeploymentRequest) (*models.MachineLSEDeployment, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateMachineLSEDeployment not implemented")
}
func (*UnimplementedFleetServer) BatchUpdateMachineLSEDeployment(context.Context, *BatchUpdateMachineLSEDeploymentRequest) (*BatchUpdateMachineLSEDeploymentResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchUpdateMachineLSEDeployment not implemented")
}
func (*UnimplementedFleetServer) GetMachineLSEDeployment(context.Context, *GetMachineLSEDeploymentRequest) (*models.MachineLSEDeployment, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetMachineLSEDeployment not implemented")
}
func (*UnimplementedFleetServer) BatchGetMachineLSEDeployments(context.Context, *BatchGetMachineLSEDeploymentsRequest) (*BatchGetMachineLSEDeploymentsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method BatchGetMachineLSEDeployments not implemented")
}
func (*UnimplementedFleetServer) ListMachineLSEDeployments(context.Context, *ListMachineLSEDeploymentsRequest) (*ListMachineLSEDeploymentsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListMachineLSEDeployments not implemented")
}
func (*UnimplementedFleetServer) CreateSchedulingUnit(context.Context, *CreateSchedulingUnitRequest) (*models.SchedulingUnit, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CreateSchedulingUnit not implemented")
}
func (*UnimplementedFleetServer) UpdateSchedulingUnit(context.Context, *UpdateSchedulingUnitRequest) (*models.SchedulingUnit, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateSchedulingUnit not implemented")
}
func (*UnimplementedFleetServer) GetSchedulingUnit(context.Context, *GetSchedulingUnitRequest) (*models.SchedulingUnit, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetSchedulingUnit not implemented")
}
func (*UnimplementedFleetServer) ListSchedulingUnits(context.Context, *ListSchedulingUnitsRequest) (*ListSchedulingUnitsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListSchedulingUnits not implemented")
}
func (*UnimplementedFleetServer) DeleteSchedulingUnit(context.Context, *DeleteSchedulingUnitRequest) (*emptypb.Empty, error) {
return nil, status1.Errorf(codes.Unimplemented, "method DeleteSchedulingUnit not implemented")
}
func (*UnimplementedFleetServer) UpdateConfigBundle(context.Context, *UpdateConfigBundleRequest) (*UpdateConfigBundleResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method UpdateConfigBundle not implemented")
}
func (*UnimplementedFleetServer) GetDeviceData(context.Context, *GetDeviceDataRequest) (*GetDeviceDataResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetDeviceData not implemented")
}
func (*UnimplementedFleetServer) CheckFleetTestsPolicy(context.Context, *CheckFleetTestsPolicyRequest) (*CheckFleetTestsPolicyResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method CheckFleetTestsPolicy not implemented")
}
func RegisterFleetServer(s prpc.Registrar, srv FleetServer) {
s.RegisterService(&_Fleet_serviceDesc, srv)
}
func _Fleet_CreateChromePlatform_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateChromePlatformRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateChromePlatform(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateChromePlatform",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateChromePlatform(ctx, req.(*CreateChromePlatformRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateChromePlatform_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateChromePlatformRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateChromePlatform(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateChromePlatform",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateChromePlatform(ctx, req.(*UpdateChromePlatformRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetChromePlatform_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetChromePlatformRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetChromePlatform(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetChromePlatform",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetChromePlatform(ctx, req.(*GetChromePlatformRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListChromePlatforms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListChromePlatformsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListChromePlatforms(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListChromePlatforms",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListChromePlatforms(ctx, req.(*ListChromePlatformsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteChromePlatform_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteChromePlatformRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteChromePlatform(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteChromePlatform",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteChromePlatform(ctx, req.(*DeleteChromePlatformRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ImportChromePlatforms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportChromePlatformsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ImportChromePlatforms(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ImportChromePlatforms",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ImportChromePlatforms(ctx, req.(*ImportChromePlatformsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListOSVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListOSVersionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListOSVersions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListOSVersions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListOSVersions(ctx, req.(*ListOSVersionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ImportOSVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportOSVersionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ImportOSVersions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ImportOSVersions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ImportOSVersions(ctx, req.(*ImportOSVersionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateMachineLSEPrototype_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateMachineLSEPrototypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateMachineLSEPrototype(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateMachineLSEPrototype",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateMachineLSEPrototype(ctx, req.(*CreateMachineLSEPrototypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateMachineLSEPrototype_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateMachineLSEPrototypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateMachineLSEPrototype(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateMachineLSEPrototype",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateMachineLSEPrototype(ctx, req.(*UpdateMachineLSEPrototypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetMachineLSEPrototype_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMachineLSEPrototypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetMachineLSEPrototype(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetMachineLSEPrototype",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetMachineLSEPrototype(ctx, req.(*GetMachineLSEPrototypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListMachineLSEPrototypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListMachineLSEPrototypesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListMachineLSEPrototypes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListMachineLSEPrototypes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListMachineLSEPrototypes(ctx, req.(*ListMachineLSEPrototypesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteMachineLSEPrototype_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteMachineLSEPrototypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteMachineLSEPrototype(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteMachineLSEPrototype",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteMachineLSEPrototype(ctx, req.(*DeleteMachineLSEPrototypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateRackLSEPrototype_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateRackLSEPrototypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateRackLSEPrototype(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateRackLSEPrototype",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateRackLSEPrototype(ctx, req.(*CreateRackLSEPrototypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateRackLSEPrototype_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateRackLSEPrototypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateRackLSEPrototype(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateRackLSEPrototype",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateRackLSEPrototype(ctx, req.(*UpdateRackLSEPrototypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetRackLSEPrototype_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRackLSEPrototypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetRackLSEPrototype(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetRackLSEPrototype",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetRackLSEPrototype(ctx, req.(*GetRackLSEPrototypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListRackLSEPrototypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListRackLSEPrototypesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListRackLSEPrototypes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListRackLSEPrototypes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListRackLSEPrototypes(ctx, req.(*ListRackLSEPrototypesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteRackLSEPrototype_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteRackLSEPrototypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteRackLSEPrototype(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteRackLSEPrototype",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteRackLSEPrototype(ctx, req.(*DeleteRackLSEPrototypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_MachineRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MachineRegistrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).MachineRegistration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/MachineRegistration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).MachineRegistration(ctx, req.(*MachineRegistrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateMachineRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateMachine(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateMachine",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateMachine(ctx, req.(*UpdateMachineRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMachineRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetMachine(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetMachine",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetMachine(ctx, req.(*GetMachineRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListMachines_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListMachinesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListMachines(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListMachines",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListMachines(ctx, req.(*ListMachinesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteMachineRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteMachine(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteMachine",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteMachine(ctx, req.(*DeleteMachineRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ImportMachines_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportMachinesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ImportMachines(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ImportMachines",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ImportMachines(ctx, req.(*ImportMachinesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_RenameMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RenameMachineRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).RenameMachine(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/RenameMachine",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).RenameMachine(ctx, req.(*RenameMachineRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_RackRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RackRegistrationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).RackRegistration(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/RackRegistration",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).RackRegistration(ctx, req.(*RackRegistrationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateRack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateRackRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateRack(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateRack",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateRack(ctx, req.(*UpdateRackRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetRack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRackRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetRack(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetRack",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetRack(ctx, req.(*GetRackRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListRacks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListRacksRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListRacks(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListRacks",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListRacks(ctx, req.(*ListRacksRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteRack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteRackRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteRack(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteRack",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteRack(ctx, req.(*DeleteRackRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateMachineLSE_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateMachineLSERequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateMachineLSE(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateMachineLSE",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateMachineLSE(ctx, req.(*CreateMachineLSERequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateMachineLSE_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateMachineLSERequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateMachineLSE(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateMachineLSE",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateMachineLSE(ctx, req.(*UpdateMachineLSERequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetMachineLSE_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMachineLSERequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetMachineLSE(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetMachineLSE",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetMachineLSE(ctx, req.(*GetMachineLSERequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListMachineLSEs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListMachineLSEsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListMachineLSEs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListMachineLSEs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListMachineLSEs(ctx, req.(*ListMachineLSEsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteMachineLSE_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteMachineLSERequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteMachineLSE(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteMachineLSE",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteMachineLSE(ctx, req.(*DeleteMachineLSERequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_RenameMachineLSE_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RenameMachineLSERequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).RenameMachineLSE(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/RenameMachineLSE",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).RenameMachineLSE(ctx, req.(*RenameMachineLSERequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ImportMachineLSEs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportMachineLSEsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ImportMachineLSEs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ImportMachineLSEs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ImportMachineLSEs(ctx, req.(*ImportMachineLSEsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ImportOSMachineLSEs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportOSMachineLSEsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ImportOSMachineLSEs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ImportOSMachineLSEs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ImportOSMachineLSEs(ctx, req.(*ImportOSMachineLSEsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateRackLSE_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateRackLSERequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateRackLSE(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateRackLSE",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateRackLSE(ctx, req.(*CreateRackLSERequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateRackLSE_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateRackLSERequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateRackLSE(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateRackLSE",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateRackLSE(ctx, req.(*UpdateRackLSERequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetRackLSE_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRackLSERequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetRackLSE(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetRackLSE",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetRackLSE(ctx, req.(*GetRackLSERequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListRackLSEs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListRackLSEsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListRackLSEs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListRackLSEs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListRackLSEs(ctx, req.(*ListRackLSEsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteRackLSE_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteRackLSERequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteRackLSE(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteRackLSE",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteRackLSE(ctx, req.(*DeleteRackLSERequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateNic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateNicRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateNic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateNic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateNic(ctx, req.(*CreateNicRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateNic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNicRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateNic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateNic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateNic(ctx, req.(*UpdateNicRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetNic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetNicRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetNic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetNic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetNic(ctx, req.(*GetNicRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListNics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListNicsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListNics(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListNics",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListNics(ctx, req.(*ListNicsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteNic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteNicRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteNic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteNic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteNic(ctx, req.(*DeleteNicRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ImportNics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportNicsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ImportNics(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ImportNics",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ImportNics(ctx, req.(*ImportNicsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_RenameNic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RenameNicRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).RenameNic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/RenameNic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).RenameNic(ctx, req.(*RenameNicRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ImportDatacenters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportDatacentersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ImportDatacenters(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ImportDatacenters",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ImportDatacenters(ctx, req.(*ImportDatacentersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateKVM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateKVMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateKVM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateKVM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateKVM(ctx, req.(*CreateKVMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateKVM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateKVMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateKVM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateKVM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateKVM(ctx, req.(*UpdateKVMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetKVM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetKVMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetKVM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetKVM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetKVM(ctx, req.(*GetKVMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListKVMs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListKVMsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListKVMs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListKVMs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListKVMs(ctx, req.(*ListKVMsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteKVM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteKVMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteKVM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteKVM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteKVM(ctx, req.(*DeleteKVMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateRPM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateRPMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateRPM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateRPM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateRPM(ctx, req.(*CreateRPMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateRPM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateRPMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateRPM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateRPM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateRPM(ctx, req.(*UpdateRPMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetRPM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRPMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetRPM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetRPM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetRPM(ctx, req.(*GetRPMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListRPMs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListRPMsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListRPMs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListRPMs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListRPMs(ctx, req.(*ListRPMsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteRPM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteRPMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteRPM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteRPM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteRPM(ctx, req.(*DeleteRPMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateDrac_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateDracRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateDrac(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateDrac",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateDrac(ctx, req.(*CreateDracRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateDrac_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateDracRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateDrac(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateDrac",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateDrac(ctx, req.(*UpdateDracRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetDrac_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetDracRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetDrac(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetDrac",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetDrac(ctx, req.(*GetDracRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListDracs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListDracsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListDracs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListDracs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListDracs(ctx, req.(*ListDracsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteDrac_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteDracRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteDrac(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteDrac",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteDrac(ctx, req.(*DeleteDracRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateSwitch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateSwitchRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateSwitch(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateSwitch",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateSwitch(ctx, req.(*CreateSwitchRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateSwitch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateSwitchRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateSwitch(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateSwitch",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateSwitch(ctx, req.(*UpdateSwitchRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetSwitch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetSwitchRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetSwitch(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetSwitch",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetSwitch(ctx, req.(*GetSwitchRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListSwitches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListSwitchesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListSwitches(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListSwitches",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListSwitches(ctx, req.(*ListSwitchesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteSwitch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteSwitchRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteSwitch(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteSwitch",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteSwitch(ctx, req.(*DeleteSwitchRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_RenameSwitch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RenameSwitchRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).RenameSwitch(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/RenameSwitch",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).RenameSwitch(ctx, req.(*RenameSwitchRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateVlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateVlanRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateVlan(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateVlan",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateVlan(ctx, req.(*CreateVlanRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateVlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateVlanRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateVlan(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateVlan",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateVlan(ctx, req.(*UpdateVlanRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetVlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetVlanRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetVlan(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetVlan",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetVlan(ctx, req.(*GetVlanRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListVlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListVlansRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListVlans(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListVlans",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListVlans(ctx, req.(*ListVlansRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteVlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteVlanRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteVlan(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteVlan",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteVlan(ctx, req.(*DeleteVlanRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ImportVlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportVlansRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ImportVlans(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ImportVlans",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ImportVlans(ctx, req.(*ImportVlansRequest))
}
return interceptor(ctx, in, info, handler)
}
func | (srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportOSVlansRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ImportOSVlans(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ImportOSVlans",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ImportOSVlans(ctx, req.(*ImportOSVlansRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ImportStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportStatesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ImportStates(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ImportStates",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ImportStates(ctx, req.(*ImportStatesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateStateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateState(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateState",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateState(ctx, req.(*UpdateStateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetStateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetState(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetState",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetState(ctx, req.(*GetStateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetDutState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetDutStateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetDutState(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetDutState",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetDutState(ctx, req.(*GetDutStateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListDutStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListDutStatesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListDutStates(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListDutStates",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListDutStates(ctx, req.(*ListDutStatesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateDutState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateDutStateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateDutState(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateDutState",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateDutState(ctx, req.(*UpdateDutStateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateDeviceRecoveryData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateDeviceRecoveryDataRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateDeviceRecoveryData(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateDeviceRecoveryData",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateDeviceRecoveryData(ctx, req.(*UpdateDeviceRecoveryDataRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetDHCPConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetDHCPConfigRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetDHCPConfig(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetDHCPConfig",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetDHCPConfig(ctx, req.(*GetDHCPConfigRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateVM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateVMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateVM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateVM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateVM(ctx, req.(*CreateVMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateVM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateVMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateVM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateVM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateVM(ctx, req.(*UpdateVMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteVM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteVMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteVM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteVM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteVM(ctx, req.(*DeleteVMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetVM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetVMRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetVM(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetVM",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetVM(ctx, req.(*GetVMRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListVMs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListVMsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListVMs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListVMs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListVMs(ctx, req.(*ListVMsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateAssetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateAsset(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateAsset",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateAsset(ctx, req.(*CreateAssetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateAssetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateAsset(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateAsset",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateAsset(ctx, req.(*UpdateAssetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAssetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetAsset(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetAsset",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetAsset(ctx, req.(*GetAssetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListAssets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListAssetsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListAssets(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListAssets",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListAssets(ctx, req.(*ListAssetsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteAssetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteAsset(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteAsset",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteAsset(ctx, req.(*DeleteAssetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_RenameAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RenameAssetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).RenameAsset(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/RenameAsset",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).RenameAsset(ctx, req.(*RenameAssetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetKVMs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetKVMsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetKVMs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetKVMs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetKVMs(ctx, req.(*BatchGetKVMsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetDHCPConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetDHCPConfigsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetDHCPConfigs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetDHCPConfigs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetDHCPConfigs(ctx, req.(*BatchGetDHCPConfigsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetMachineLSEs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetMachineLSEsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetMachineLSEs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetMachineLSEs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetMachineLSEs(ctx, req.(*BatchGetMachineLSEsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetMachines_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetMachinesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetMachines(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetMachines",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetMachines(ctx, req.(*BatchGetMachinesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetSwitches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetSwitchesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetSwitches(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetSwitches",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetSwitches(ctx, req.(*BatchGetSwitchesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetRPMs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetRPMsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetRPMs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetRPMs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetRPMs(ctx, req.(*BatchGetRPMsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetDracs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetDracsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetDracs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetDracs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetDracs(ctx, req.(*BatchGetDracsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetNics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetNicsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetNics(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetNics",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetNics(ctx, req.(*BatchGetNicsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetVMs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetVMsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetVMs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetVMs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetVMs(ctx, req.(*BatchGetVMsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetVlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetVlansRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetVlans(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetVlans",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetVlans(ctx, req.(*BatchGetVlansRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetRacks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetRacksRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetRacks(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetRacks",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetRacks(ctx, req.(*BatchGetRacksRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetChromePlatforms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetChromePlatformsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetChromePlatforms(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetChromePlatforms",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetChromePlatforms(ctx, req.(*BatchGetChromePlatformsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetMachineLSEPrototypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetMachineLSEPrototypesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetMachineLSEPrototypes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetMachineLSEPrototypes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetMachineLSEPrototypes(ctx, req.(*BatchGetMachineLSEPrototypesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetRackLSEPrototypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetRackLSEPrototypesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetRackLSEPrototypes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetRackLSEPrototypes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetRackLSEPrototypes(ctx, req.(*BatchGetRackLSEPrototypesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetChromeOSDeviceData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetChromeOSDeviceDataRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetChromeOSDeviceData(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetChromeOSDeviceData",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetChromeOSDeviceData(ctx, req.(*GetChromeOSDeviceDataRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateCachingService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateCachingServiceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateCachingService(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateCachingService",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateCachingService(ctx, req.(*CreateCachingServiceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateCachingService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateCachingServiceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateCachingService(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateCachingService",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateCachingService(ctx, req.(*UpdateCachingServiceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetCachingService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCachingServiceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetCachingService(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetCachingService",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetCachingService(ctx, req.(*GetCachingServiceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListCachingServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListCachingServicesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListCachingServices(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListCachingServices",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListCachingServices(ctx, req.(*ListCachingServicesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteCachingService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteCachingServiceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteCachingService(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteCachingService",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteCachingService(ctx, req.(*DeleteCachingServiceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateMachineLSEDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateMachineLSEDeploymentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateMachineLSEDeployment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateMachineLSEDeployment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateMachineLSEDeployment(ctx, req.(*UpdateMachineLSEDeploymentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchUpdateMachineLSEDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchUpdateMachineLSEDeploymentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchUpdateMachineLSEDeployment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchUpdateMachineLSEDeployment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchUpdateMachineLSEDeployment(ctx, req.(*BatchUpdateMachineLSEDeploymentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetMachineLSEDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMachineLSEDeploymentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetMachineLSEDeployment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetMachineLSEDeployment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetMachineLSEDeployment(ctx, req.(*GetMachineLSEDeploymentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_BatchGetMachineLSEDeployments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetMachineLSEDeploymentsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).BatchGetMachineLSEDeployments(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/BatchGetMachineLSEDeployments",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).BatchGetMachineLSEDeployments(ctx, req.(*BatchGetMachineLSEDeploymentsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListMachineLSEDeployments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListMachineLSEDeploymentsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListMachineLSEDeployments(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListMachineLSEDeployments",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListMachineLSEDeployments(ctx, req.(*ListMachineLSEDeploymentsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CreateSchedulingUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateSchedulingUnitRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CreateSchedulingUnit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CreateSchedulingUnit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CreateSchedulingUnit(ctx, req.(*CreateSchedulingUnitRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateSchedulingUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateSchedulingUnitRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateSchedulingUnit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateSchedulingUnit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateSchedulingUnit(ctx, req.(*UpdateSchedulingUnitRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetSchedulingUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetSchedulingUnitRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetSchedulingUnit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetSchedulingUnit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetSchedulingUnit(ctx, req.(*GetSchedulingUnitRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_ListSchedulingUnits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListSchedulingUnitsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).ListSchedulingUnits(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/ListSchedulingUnits",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).ListSchedulingUnits(ctx, req.(*ListSchedulingUnitsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_DeleteSchedulingUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteSchedulingUnitRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).DeleteSchedulingUnit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/DeleteSchedulingUnit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).DeleteSchedulingUnit(ctx, req.(*DeleteSchedulingUnitRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_UpdateConfigBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateConfigBundleRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).UpdateConfigBundle(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/UpdateConfigBundle",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).UpdateConfigBundle(ctx, req.(*UpdateConfigBundleRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_GetDeviceData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetDeviceDataRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).GetDeviceData(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/GetDeviceData",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).GetDeviceData(ctx, req.(*GetDeviceDataRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Fleet_CheckFleetTestsPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CheckFleetTestsPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetServer).CheckFleetTestsPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/unifiedfleet.api.v1.rpc.Fleet/CheckFleetTestsPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetServer).CheckFleetTestsPolicy(ctx, req.(*CheckFleetTestsPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Fleet_serviceDesc = grpc.ServiceDesc{
ServiceName: "unifiedfleet.api.v1.rpc.Fleet",
HandlerType: (*FleetServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateChromePlatform",
Handler: _Fleet_CreateChromePlatform_Handler,
},
{
MethodName: "UpdateChromePlatform",
Handler: _Fleet_UpdateChromePlatform_Handler,
},
{
MethodName: "GetChromePlatform",
Handler: _Fleet_GetChromePlatform_Handler,
},
{
MethodName: "ListChromePlatforms",
Handler: _Fleet_ListChromePlatforms_Handler,
},
{
MethodName: "DeleteChromePlatform",
Handler: _Fleet_DeleteChromePlatform_Handler,
},
{
MethodName: "ImportChromePlatforms",
Handler: _Fleet_ImportChromePlatforms_Handler,
},
{
MethodName: "ListOSVersions",
Handler: _Fleet_ListOSVersions_Handler,
},
{
MethodName: "ImportOSVersions",
Handler: _Fleet_ImportOSVersions_Handler,
},
{
MethodName: "CreateMachineLSEPrototype",
Handler: _Fleet_CreateMachineLSEPrototype_Handler,
},
{
MethodName: "UpdateMachineLSEPrototype",
Handler: _Fleet_UpdateMachineLSEPrototype_Handler,
},
{
MethodName: "GetMachineLSEPrototype",
Handler: _Fleet_GetMachineLSEPrototype_Handler,
},
{
MethodName: "ListMachineLSEPrototypes",
Handler: _Fleet_ListMachineLSEPrototypes_Handler,
},
{
MethodName: "DeleteMachineLSEPrototype",
Handler: _Fleet_DeleteMachineLSEPrototype_Handler,
},
{
MethodName: "CreateRackLSEPrototype",
Handler: _Fleet_CreateRackLSEPrototype_Handler,
},
{
MethodName: "UpdateRackLSEPrototype",
Handler: _Fleet_UpdateRackLSEPrototype_Handler,
},
{
MethodName: "GetRackLSEPrototype",
Handler: _Fleet_GetRackLSEPrototype_Handler,
},
{
MethodName: "ListRackLSEPrototypes",
Handler: _Fleet_ListRackLSEPrototypes_Handler,
},
{
MethodName: "DeleteRackLSEPrototype",
Handler: _Fleet_DeleteRackLSEPrototype_Handler,
},
{
MethodName: "MachineRegistration",
Handler: _Fleet_MachineRegistration_Handler,
},
{
MethodName: "UpdateMachine",
Handler: _Fleet_UpdateMachine_Handler,
},
{
MethodName: "GetMachine",
Handler: _Fleet_GetMachine_Handler,
},
{
MethodName: "ListMachines",
Handler: _Fleet_ListMachines_Handler,
},
{
MethodName: "DeleteMachine",
Handler: _Fleet_DeleteMachine_Handler,
},
{
MethodName: "ImportMachines",
Handler: _Fleet_ImportMachines_Handler,
},
{
MethodName: "RenameMachine",
Handler: _Fleet_RenameMachine_Handler,
},
{
MethodName: "RackRegistration",
Handler: _Fleet_RackRegistration_Handler,
},
{
MethodName: "UpdateRack",
Handler: _Fleet_UpdateRack_Handler,
},
{
MethodName: "GetRack",
Handler: _Fleet_GetRack_Handler,
},
{
MethodName: "ListRacks",
Handler: _Fleet_ListRacks_Handler,
},
{
MethodName: "DeleteRack",
Handler: _Fleet_DeleteRack_Handler,
},
{
MethodName: "CreateMachineLSE",
Handler: _Fleet_CreateMachineLSE_Handler,
},
{
MethodName: "UpdateMachineLSE",
Handler: _Fleet_UpdateMachineLSE_Handler,
},
{
MethodName: "GetMachineLSE",
Handler: _Fleet_GetMachineLSE_Handler,
},
{
MethodName: "ListMachineLSEs",
Handler: _Fleet_ListMachineLSEs_Handler,
},
{
MethodName: "DeleteMachineLSE",
Handler: _Fleet_DeleteMachineLSE_Handler,
},
{
MethodName: "RenameMachineLSE",
Handler: _Fleet_RenameMachineLSE_Handler,
},
{
MethodName: "ImportMachineLSEs",
Handler: _Fleet_ImportMachineLSEs_Handler,
},
{
MethodName: "ImportOSMachineLSEs",
Handler: _Fleet_ImportOSMachineLSEs_Handler,
},
{
MethodName: "CreateRackLSE",
Handler: _Fleet_CreateRackLSE_Handler,
},
{
MethodName: "UpdateRackLSE",
Handler: _Fleet_UpdateRackLSE_Handler,
},
{
MethodName: "GetRackLSE",
Handler: _Fleet_GetRackLSE_Handler,
},
{
MethodName: "ListRackLSEs",
Handler: _Fleet_ListRackLSEs_Handler,
},
{
MethodName: "DeleteRackLSE",
Handler: _Fleet_DeleteRackLSE_Handler,
},
{
MethodName: "CreateNic",
Handler: _Fleet_CreateNic_Handler,
},
{
MethodName: "UpdateNic",
Handler: _Fleet_UpdateNic_Handler,
},
{
MethodName: "GetNic",
Handler: _Fleet_GetNic_Handler,
},
{
MethodName: "ListNics",
Handler: _Fleet_ListNics_Handler,
},
{
MethodName: "DeleteNic",
Handler: _Fleet_DeleteNic_Handler,
},
{
MethodName: "ImportNics",
Handler: _Fleet_ImportNics_Handler,
},
{
MethodName: "RenameNic",
Handler: _Fleet_RenameNic_Handler,
},
{
MethodName: "ImportDatacenters",
Handler: _Fleet_ImportDatacenters_Handler,
},
{
MethodName: "CreateKVM",
Handler: _Fleet_CreateKVM_Handler,
},
{
MethodName: "UpdateKVM",
Handler: _Fleet_UpdateKVM_Handler,
},
{
MethodName: "GetKVM",
Handler: _Fleet_GetKVM_Handler,
},
{
MethodName: "ListKVMs",
Handler: _Fleet_ListKVMs_Handler,
},
{
MethodName: "DeleteKVM",
Handler: _Fleet_DeleteKVM_Handler,
},
{
MethodName: "CreateRPM",
Handler: _Fleet_CreateRPM_Handler,
},
{
MethodName: "UpdateRPM",
Handler: _Fleet_UpdateRPM_Handler,
},
{
MethodName: "GetRPM",
Handler: _Fleet_GetRPM_Handler,
},
{
MethodName: "ListRPMs",
Handler: _Fleet_ListRPMs_Handler,
},
{
MethodName: "DeleteRPM",
Handler: _Fleet_DeleteRPM_Handler,
},
{
MethodName: "CreateDrac",
Handler: _Fleet_CreateDrac_Handler,
},
{
MethodName: "UpdateDrac",
Handler: _Fleet_UpdateDrac_Handler,
},
{
MethodName: "GetDrac",
Handler: _Fleet_GetDrac_Handler,
},
{
MethodName: "ListDracs",
Handler: _Fleet_ListDracs_Handler,
},
{
MethodName: "DeleteDrac",
Handler: _Fleet_DeleteDrac_Handler,
},
{
MethodName: "CreateSwitch",
Handler: _Fleet_CreateSwitch_Handler,
},
{
MethodName: "UpdateSwitch",
Handler: _Fleet_UpdateSwitch_Handler,
},
{
MethodName: "GetSwitch",
Handler: _Fleet_GetSwitch_Handler,
},
{
MethodName: "ListSwitches",
Handler: _Fleet_ListSwitches_Handler,
},
{
MethodName: "DeleteSwitch",
Handler: _Fleet_DeleteSwitch_Handler,
},
{
MethodName: "RenameSwitch",
Handler: _Fleet_RenameSwitch_Handler,
},
{
MethodName: "CreateVlan",
Handler: _Fleet_CreateVlan_Handler,
},
{
MethodName: "UpdateVlan",
Handler: _Fleet_UpdateVlan_Handler,
},
{
MethodName: "GetVlan",
Handler: _Fleet_GetVlan_Handler,
},
{
MethodName: "ListVlans",
Handler: _Fleet_ListVlans_Handler,
},
{
MethodName: "DeleteVlan",
Handler: _Fleet_DeleteVlan_Handler,
},
{
MethodName: "ImportVlans",
Handler: _Fleet_ImportVlans_Handler,
},
{
MethodName: "ImportOSVlans",
Handler: _Fleet_ImportOSVlans_Handler,
},
{
MethodName: "ImportStates",
Handler: _Fleet_ImportStates_Handler,
},
{
MethodName: "UpdateState",
Handler: _Fleet_UpdateState_Handler,
},
{
MethodName: "GetState",
Handler: _Fleet_GetState_Handler,
},
{
MethodName: "GetDutState",
Handler: _Fleet_GetDutState_Handler,
},
{
MethodName: "ListDutStates",
Handler: _Fleet_ListDutStates_Handler,
},
{
MethodName: "UpdateDutState",
Handler: _Fleet_UpdateDutState_Handler,
},
{
MethodName: "UpdateDeviceRecoveryData",
Handler: _Fleet_UpdateDeviceRecoveryData_Handler,
},
{
MethodName: "GetDHCPConfig",
Handler: _Fleet_GetDHCPConfig_Handler,
},
{
MethodName: "CreateVM",
Handler: _Fleet_CreateVM_Handler,
},
{
MethodName: "UpdateVM",
Handler: _Fleet_UpdateVM_Handler,
},
{
MethodName: "DeleteVM",
Handler: _Fleet_DeleteVM_Handler,
},
{
MethodName: "GetVM",
Handler: _Fleet_GetVM_Handler,
},
{
MethodName: "ListVMs",
Handler: _Fleet_ListVMs_Handler,
},
{
MethodName: "CreateAsset",
Handler: _Fleet_CreateAsset_Handler,
},
{
MethodName: "UpdateAsset",
Handler: _Fleet_UpdateAsset_Handler,
},
{
MethodName: "GetAsset",
Handler: _Fleet_GetAsset_Handler,
},
{
MethodName: "ListAssets",
Handler: _Fleet_ListAssets_Handler,
},
{
MethodName: "DeleteAsset",
Handler: _Fleet_DeleteAsset_Handler,
},
{
MethodName: "RenameAsset",
Handler: _Fleet_RenameAsset_Handler,
},
{
MethodName: "BatchGetKVMs",
Handler: _Fleet_BatchGetKVMs_Handler,
},
{
MethodName: "BatchGetDHCPConfigs",
Handler: _Fleet_BatchGetDHCPConfigs_Handler,
},
{
MethodName: "BatchGetMachineLSEs",
Handler: _Fleet_BatchGetMachineLSEs_Handler,
},
{
MethodName: "BatchGetMachines",
Handler: _Fleet_BatchGetMachines_Handler,
},
{
MethodName: "BatchGetSwitches",
Handler: _Fleet_BatchGetSwitches_Handler,
},
{
MethodName: "BatchGetRPMs",
Handler: _Fleet_BatchGetRPMs_Handler,
},
{
MethodName: "BatchGetDracs",
Handler: _Fleet_BatchGetDracs_Handler,
},
{
MethodName: "BatchGetNics",
Handler: _Fleet_BatchGetNics_Handler,
},
{
MethodName: "BatchGetVMs",
Handler: _Fleet_BatchGetVMs_Handler,
},
{
MethodName: "BatchGetVlans",
Handler: _Fleet_BatchGetVlans_Handler,
},
{
MethodName: "BatchGetRacks",
Handler: _Fleet_BatchGetRacks_Handler,
},
{
MethodName: "BatchGetChromePlatforms",
Handler: _Fleet_BatchGetChromePlatforms_Handler,
},
{
MethodName: "BatchGetMachineLSEPrototypes",
Handler: _Fleet_BatchGetMachineLSEPrototypes_Handler,
},
{
MethodName: "BatchGetRackLSEPrototypes",
Handler: _Fleet_BatchGetRackLSEPrototypes_Handler,
},
{
MethodName: "GetChromeOSDeviceData",
Handler: _Fleet_GetChromeOSDeviceData_Handler,
},
{
MethodName: "CreateCachingService",
Handler: _Fleet_CreateCachingService_Handler,
},
{
MethodName: "UpdateCachingService",
Handler: _Fleet_UpdateCachingService_Handler,
},
{
MethodName: "GetCachingService",
Handler: _Fleet_GetCachingService_Handler,
},
{
MethodName: "ListCachingServices",
Handler: _Fleet_ListCachingServices_Handler,
},
{
MethodName: "DeleteCachingService",
Handler: _Fleet_DeleteCachingService_Handler,
},
{
MethodName: "UpdateMachineLSEDeployment",
Handler: _Fleet_UpdateMachineLSEDeployment_Handler,
},
{
MethodName: "BatchUpdateMachineLSEDeployment",
Handler: _Fleet_BatchUpdateMachineLSEDeployment_Handler,
},
{
MethodName: "GetMachineLSEDeployment",
Handler: _Fleet_GetMachineLSEDeployment_Handler,
},
{
MethodName: "BatchGetMachineLSEDeployments",
Handler: _Fleet_BatchGetMachineLSEDeployments_Handler,
},
{
MethodName: "ListMachineLSEDeployments",
Handler: _Fleet_ListMachineLSEDeployments_Handler,
},
{
MethodName: "CreateSchedulingUnit",
Handler: _Fleet_CreateSchedulingUnit_Handler,
},
{
MethodName: "UpdateSchedulingUnit",
Handler: _Fleet_UpdateSchedulingUnit_Handler,
},
{
MethodName: "GetSchedulingUnit",
Handler: _Fleet_GetSchedulingUnit_Handler,
},
{
MethodName: "ListSchedulingUnits",
Handler: _Fleet_ListSchedulingUnits_Handler,
},
{
MethodName: "DeleteSchedulingUnit",
Handler: _Fleet_DeleteSchedulingUnit_Handler,
},
{
MethodName: "UpdateConfigBundle",
Handler: _Fleet_UpdateConfigBundle_Handler,
},
{
MethodName: "GetDeviceData",
Handler: _Fleet_GetDeviceData_Handler,
},
{
MethodName: "CheckFleetTestsPolicy",
Handler: _Fleet_CheckFleetTestsPolicy_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "infra/unifiedfleet/api/v1/rpc/fleet.proto",
}
| _Fleet_ImportOSVlans_Handler |
api-put-object-multipart.go | /*
* Minio Go Library for Amazon S3 Compatible Cloud Storage (C) 2015, 2016 Minio, Inc.
*
* 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 minio
import (
"bytes"
"crypto/md5"
"crypto/sha256"
"encoding/hex"
"encoding/xml"
"fmt"
"hash"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"sort"
"strconv"
"strings"
)
// Comprehensive put object operation involving multipart resumable uploads.
//
// Following code handles these types of readers.
//
// - *os.File
// - *minio.Object
// - Any reader which has a method 'ReadAt()'
//
// If we exhaust all the known types, code proceeds to use stream as
// is where each part is re-downloaded, checksummed and verified
// before upload.
func (c Client) putObjectMultipart(bucketName, objectName string, reader io.Reader, size int64, metaData map[string][]string, progress io.Reader) (n int64, err error) {
if size > 0 && size > minPartSize {
// Verify if reader is *os.File, then use file system functionalities.
if isFile(reader) {
return c.putObjectMultipartFromFile(bucketName, objectName, reader.(*os.File), size, metaData, progress)
}
// Verify if reader is *minio.Object or io.ReaderAt.
// NOTE: Verification of object is kept for a specific purpose
// while it is going to be duck typed similar to io.ReaderAt.
// It is to indicate that *minio.Object implements io.ReaderAt.
// and such a functionality is used in the subsequent code
// path.
if isObject(reader) || isReadAt(reader) {
return c.putObjectMultipartFromReadAt(bucketName, objectName, reader.(io.ReaderAt), size, metaData, progress)
}
}
// For any other data size and reader type we do generic multipart
// approach by staging data in temporary files and uploading them.
return c.putObjectMultipartStream(bucketName, objectName, reader, size, metaData, progress)
}
// putObjectStream uploads files bigger than 5MiB, and also supports
// special case where size is unknown i.e '-1'.
func (c Client) putObjectMultipartStream(bucketName, objectName string, reader io.Reader, size int64, metaData map[string][]string, progress io.Reader) (n int64, err error) {
// Input validation.
if err := isValidBucketName(bucketName); err != nil {
return 0, err
}
if err := isValidObjectName(objectName); err != nil {
return 0, err
}
// Total data read and written to server. should be equal to 'size' at the end of the call.
var totalUploadedSize int64
// Complete multipart upload.
var complMultipartUpload completeMultipartUpload
// Get the upload id of a previously partially uploaded object or initiate a new multipart upload
uploadID, partsInfo, err := c.getMpartUploadSession(bucketName, objectName, metaData)
if err != nil {
return 0, err
}
// Calculate the optimal parts info for a given size.
totalPartsCount, partSize, _, err := optimalPartInfo(size)
if err != nil {
return 0, err
}
// Part number always starts with '1'.
partNumber := 1
// Initialize a temporary buffer.
tmpBuffer := new(bytes.Buffer)
for partNumber <= totalPartsCount {
// Choose hash algorithms to be calculated by hashCopyN, avoid sha256
// with non-v4 signature request or HTTPS connection
hashSums := make(map[string][]byte)
hashAlgos := make(map[string]hash.Hash)
hashAlgos["md5"] = md5.New()
if c.signature.isV4() && !c.secure {
hashAlgos["sha256"] = sha256.New()
}
// Calculates hash sums while copying partSize bytes into tmpBuffer.
prtSize, rErr := hashCopyN(hashAlgos, hashSums, tmpBuffer, reader, partSize)
if rErr != nil {
if rErr != io.EOF {
return 0, rErr
}
}
var reader io.Reader
// Update progress reader appropriately to the latest offset
// as we read from the source.
reader = newHook(tmpBuffer, progress)
part, ok := partsInfo[partNumber]
// Verify if part should be uploaded.
if !ok || shouldUploadPart(objectPart{
ETag: hex.EncodeToString(hashSums["md5"]),
PartNumber: partNumber,
Size: prtSize,
}, uploadPartReq{PartNum: partNumber, Part: &part}) {
// Proceed to upload the part.
var objPart objectPart
objPart, err = c.uploadPart(bucketName, objectName, uploadID, reader, partNumber, hashSums["md5"], hashSums["sha256"], prtSize)
if err != nil {
// Reset the temporary buffer upon any error.
tmpBuffer.Reset()
return totalUploadedSize, err
}
// Save successfully uploaded part metadata.
partsInfo[partNumber] = objPart
} else {
// Update the progress reader for the skipped part.
if progress != nil {
if _, err = io.CopyN(ioutil.Discard, progress, prtSize); err != nil {
return totalUploadedSize, err
}
}
}
// Reset the temporary buffer.
tmpBuffer.Reset()
// Save successfully uploaded size.
totalUploadedSize += prtSize
// Increment part number.
partNumber++
// For unknown size, Read EOF we break away.
// We do not have to upload till totalPartsCount.
if size < 0 && rErr == io.EOF {
break
}
}
// Verify if we uploaded all the data.
if size > 0 {
if totalUploadedSize != size {
return totalUploadedSize, ErrUnexpectedEOF(totalUploadedSize, size, bucketName, objectName)
}
}
// Loop over total uploaded parts to save them in
// Parts array before completing the multipart request.
for i := 1; i < partNumber; i++ {
part, ok := partsInfo[i]
if !ok {
return 0, ErrInvalidArgument(fmt.Sprintf("Missing part number %d", i))
}
complMultipartUpload.Parts = append(complMultipartUpload.Parts, completePart{
ETag: part.ETag,
PartNumber: part.PartNumber,
})
}
// Sort all completed parts.
sort.Sort(completedParts(complMultipartUpload.Parts))
_, err = c.completeMultipartUpload(bucketName, objectName, uploadID, complMultipartUpload)
if err != nil {
return totalUploadedSize, err
}
// Return final size.
return totalUploadedSize, nil
}
// initiateMultipartUpload - Initiates a multipart upload and returns an upload ID.
func (c Client) initiateMultipartUpload(bucketName, objectName string, metaData map[string][]string) (initiateMultipartUploadResult, error) {
// Input validation.
if err := isValidBucketName(bucketName); err != nil {
return initiateMultipartUploadResult{}, err
}
if err := isValidObjectName(objectName); err != nil {
return initiateMultipartUploadResult{}, err
}
// Initialize url queries.
urlValues := make(url.Values)
urlValues.Set("uploads", "")
// Set ContentType header.
customHeader := make(http.Header)
for k, v := range metaData {
if len(v) > 0 {
customHeader.Set(k, v[0])
}
}
// Set a default content-type header if the latter is not provided
if v, ok := metaData["Content-Type"]; !ok || len(v) == 0 {
customHeader.Set("Content-Type", "application/octet-stream")
}
reqMetadata := requestMetadata{
bucketName: bucketName,
objectName: objectName,
queryValues: urlValues,
customHeader: customHeader,
}
// Execute POST on an objectName to initiate multipart upload.
resp, err := c.executeMethod("POST", reqMetadata)
defer closeResponse(resp)
if err != nil {
return initiateMultipartUploadResult{}, err
}
if resp != nil {
if resp.StatusCode != http.StatusOK {
return initiateMultipartUploadResult{}, httpRespToErrorResponse(resp, bucketName, objectName)
}
}
// Decode xml for new multipart upload.
initiateMultipartUploadResult := initiateMultipartUploadResult{}
err = xmlDecoder(resp.Body, &initiateMultipartUploadResult)
if err != nil {
return initiateMultipartUploadResult, err
}
return initiateMultipartUploadResult, nil
}
// uploadPart - Uploads a part in a multipart upload.
func (c Client) uploadPart(bucketName, objectName, uploadID string, reader io.Reader, partNumber int, md5Sum, sha256Sum []byte, size int64) (objectPart, error) {
// Input validation.
if err := isValidBucketName(bucketName); err != nil {
return objectPart{}, err
}
if err := isValidObjectName(objectName); err != nil {
return objectPart{}, err
}
if size > maxPartSize {
return objectPart{}, ErrEntityTooLarge(size, maxPartSize, bucketName, objectName)
}
if size <= -1 |
if partNumber <= 0 {
return objectPart{}, ErrInvalidArgument("Part number cannot be negative or equal to zero.")
}
if uploadID == "" {
return objectPart{}, ErrInvalidArgument("UploadID cannot be empty.")
}
// Get resources properly escaped and lined up before using them in http request.
urlValues := make(url.Values)
// Set part number.
urlValues.Set("partNumber", strconv.Itoa(partNumber))
// Set upload id.
urlValues.Set("uploadId", uploadID)
reqMetadata := requestMetadata{
bucketName: bucketName,
objectName: objectName,
queryValues: urlValues,
contentBody: reader,
contentLength: size,
contentMD5Bytes: md5Sum,
contentSHA256Bytes: sha256Sum,
}
// Execute PUT on each part.
resp, err := c.executeMethod("PUT", reqMetadata)
defer closeResponse(resp)
if err != nil {
return objectPart{}, err
}
if resp != nil {
if resp.StatusCode != http.StatusOK {
return objectPart{}, httpRespToErrorResponse(resp, bucketName, objectName)
}
}
// Once successfully uploaded, return completed part.
objPart := objectPart{}
objPart.Size = size
objPart.PartNumber = partNumber
// Trim off the odd double quotes from ETag in the beginning and end.
objPart.ETag = strings.TrimPrefix(resp.Header.Get("ETag"), "\"")
objPart.ETag = strings.TrimSuffix(objPart.ETag, "\"")
return objPart, nil
}
// completeMultipartUpload - Completes a multipart upload by assembling previously uploaded parts.
func (c Client) completeMultipartUpload(bucketName, objectName, uploadID string, complete completeMultipartUpload) (completeMultipartUploadResult, error) {
// Input validation.
if err := isValidBucketName(bucketName); err != nil {
return completeMultipartUploadResult{}, err
}
if err := isValidObjectName(objectName); err != nil {
return completeMultipartUploadResult{}, err
}
// Initialize url queries.
urlValues := make(url.Values)
urlValues.Set("uploadId", uploadID)
// Marshal complete multipart body.
completeMultipartUploadBytes, err := xml.Marshal(complete)
if err != nil {
return completeMultipartUploadResult{}, err
}
// Instantiate all the complete multipart buffer.
completeMultipartUploadBuffer := bytes.NewReader(completeMultipartUploadBytes)
reqMetadata := requestMetadata{
bucketName: bucketName,
objectName: objectName,
queryValues: urlValues,
contentBody: completeMultipartUploadBuffer,
contentLength: int64(len(completeMultipartUploadBytes)),
contentSHA256Bytes: sum256(completeMultipartUploadBytes),
}
// Execute POST to complete multipart upload for an objectName.
resp, err := c.executeMethod("POST", reqMetadata)
defer closeResponse(resp)
if err != nil {
return completeMultipartUploadResult{}, err
}
if resp != nil {
if resp.StatusCode != http.StatusOK {
return completeMultipartUploadResult{}, httpRespToErrorResponse(resp, bucketName, objectName)
}
}
// Read resp.Body into a []bytes to parse for Error response inside the body
var b []byte
b, err = ioutil.ReadAll(resp.Body)
if err != nil {
return completeMultipartUploadResult{}, err
}
// Decode completed multipart upload response on success.
completeMultipartUploadResult := completeMultipartUploadResult{}
err = xmlDecoder(bytes.NewReader(b), &completeMultipartUploadResult)
if err != nil {
// xml parsing failure due to presence an ill-formed xml fragment
return completeMultipartUploadResult, err
} else if completeMultipartUploadResult.Bucket == "" {
// xml's Decode method ignores well-formed xml that don't apply to the type of value supplied.
// In this case, it would leave completeMultipartUploadResult with the corresponding zero-values
// of the members.
// Decode completed multipart upload response on failure
completeMultipartUploadErr := ErrorResponse{}
err = xmlDecoder(bytes.NewReader(b), &completeMultipartUploadErr)
if err != nil {
// xml parsing failure due to presence an ill-formed xml fragment
return completeMultipartUploadResult, err
}
return completeMultipartUploadResult, completeMultipartUploadErr
}
return completeMultipartUploadResult, nil
}
| {
return objectPart{}, ErrEntityTooSmall(size, bucketName, objectName)
} |
scripts.js | function Contact(first, last) {
this.firstName = first;
this.lastName = last;
this.addresses = [];
}
function | (street, city, state, houseType) {
this.street = street;
this.city = city;
this.state = state;
this.houseType = houseType;
}
Contact.prototype.fullName = function() {
return this.firstName + " " + this.lastName;
}
//UI logic
$(document).ready(function() {
$("#add-address").click(function() {
$("#new-addresses").append('<div class="new-address">' +
'<div class="panel panel-info">' +
'<div class="panel-heading">'+
'<h2 class="panel-title">Address</h2>'+
'</div>'+
'<div class="panel-body">' +
'<div class="form-group">' +
'<label for="address-type">Type</label>' +
'<select class="form-control" id="address-type">' +
'<option>Home</option>' +
'<option>Work</option>' +
'<option>Beach House</option>' +
'<option>Ski Resort</option>' +
'</select>' +
'</div>' +
'<div class="form-group">' +
'<label for="new-street">Street</label>' +
'<input type="text" class="form-control new-street">' +
'</div>' +
'<div class="form-group">' +
'<label for="new-city">City</label>' +
'<input type="text" class="form-control new-city">' +
'</div>' +
'<div class="form-group">' +
'<label for="new-state">State</label>' +
'<input type="text" class="form-control new-state">' +
'</div>' +
'</div>' +
'</div>' +
'</div>');
});
$("form#new-contact").submit(function(event) {
event.preventDefault();
var inputtedFirstName = $("input#new-first-name").val();
var inputtedLastName = $("input#new-last-name").val();
var newContact = new Contact(inputtedFirstName, inputtedLastName);
$(".new-address").each(function() {
var inputtedStreet = $(this).find("input.new-street").val();
var inputtedCity = $(this).find("input.new-city").val();
var inputtedState = $(this).find("input.new-state").val();
var inputtedHouseType = $(this).find("select#address-type").val();
var newAddress = new Address(inputtedStreet, inputtedCity, inputtedState, inputtedHouseType);
newContact.addresses.push(newAddress);
});
$("ul#contacts").append("<li><span class='contact'>" + newContact.fullName() + "</span></li>");
$(".contact").last().click(function() {
$("#show-contact").show();
$("#show-contact h2").text(newContact.fullName());
$(".first-name").text(newContact.firstName);
$(".last-name").text(newContact.lastName);
$("ul#addresses").text("");
newContact.addresses.forEach(function(address) {
$("ul#addresses").append("<li>" + address.houseType + ": " + address.street + ", " + address.city + " " + address.state + "</li>");
});
});
$(".new-address").not(":first").remove();
$("input#new-first-name").val("");
$("input#new-last-name").val("");
$("input.new-street").val("");
$("input.new-city").val("");
$("input.new-state").val("");
});
});
| Address |
Tag.model.js | 'use strict';
var rq = require('../requestHelper'); | //create an export function to encapsulate the model creation
module.exports = function() {
var TagSchema = new Schema({
_thing : { type: Schema.Types.ObjectId, ref: 'Thing' },
name : String,
url : String,
count : Number
});
TagSchema.statics.getThisFromRemote = function (thing_id, cb) {
rq.getRemoteObj(rq.getRequestQuery(['things',thing_id,'tags']), cb);
}
TagSchema.statics.findPaginated = findPaginated;
mongoose.model('Tag', TagSchema);
}; | var findPaginated = require('./Pagination');
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
|
uti.js | //Restyle UTI pages (donated by womp)
new Tweak("Restyle UTI pages", /cemetech\.net\/projects\/uti/, () => {
const style = document.createElement("style");
style.innerHTML = `/* Userstyle: Recolor UTI pages */
tr>th{
border-bottom: 1px solid #254e6f !important;
}
section.sidebar__section,div.mainlowermiddle,div.mainheadmiddle,div.mainheadmiddle:after,div.mainheadmiddle:before,div#hbot,.mainbody{
background:#254e6f !important;
}
.sidebar__section,#hbot{
border: 2px solid #19364d;
}
a{
color: #222;
}
a:hover{
color:#34498B;
}
a.largetext:hover{
color:#eee;
}
.maintitle:hover,.sidebar__section-body a:hover,.sidebar__section-header a:hover{
color: white;
}
.navsearchinput{
background:#34498B !important;
} | img[src*='lang_english'],.navsearchsubmit,.banner_container{
filter:hue-rotate(194deg);
}
.sax-message a{
background:#1c264a;
}
.sax-timestamp{
color:#ddd;
}`;
document.body.append(style);
}); | |
Beginning.py | import cv2 as cv
|
image = cv.imread() |
|
Request.d.ts | /// <reference types="node" />
import { IncomingMessage } from 'http';
import RequestInterface from '../Contracts/RequestInterface';
export default class Request implements RequestInterface {
protected _req: IncomingMessage;
protected _uri: string;
protected _method: string;
protected _headers: object;
protected _get: object;
protected _post: object;
protected _content: Buffer;
protected _contentType: string;
protected _ip: string;
constructor(req?: IncomingMessage, content?: Buffer | object | string);
isValid(): Boolean;
getMethod(): string;
get(key: string): Promise<any>;
post(key: string): Promise<any>; | getContent(): Promise<Buffer>;
getUri(): string;
getContentType(): string;
getHeaders(): object;
getClientIp(): string;
} | getAllGet(): object;
getAllPost(): object; |
utils.py | import pandas as pd
import numpy as np
from sklearn.metrics.pairwise import cosine_similarity
def question_cleaner(df_query):
kb=([int(xx) for xx in (df_query[3].iloc[0]).split(' ')])
gt = [int(xx) for xx in (df_query[2].iloc[0]).split(' ')]
ct=0
negg=0
withans=[]
for ii in range(len(df_query)):
kb=[int(xx) for xx in (df_query[3].iloc[ii]).split(' ')]
gt = [int(xx) for xx in (df_query[2].iloc[ii]).split(' ')]
if bool(set(gt) & set(kb)):
withans.append(ii)
else:
negg+=1
print('total:{}, removed:{}, remainder:{}'.format(len(df_query), negg, len(withans)))
return df_query.iloc[withans]
def display_qn_and_ans(df_query, df_doc, index=0):
kb=[int(xx) for xx in (df_query[3].iloc[index]).split(' ')]
gt = [int(xx) for xx in (df_query[2].iloc[index]).split(' ')]
print('Question is: {}'.format(df_query['text'].iloc[index]))
print('Answer index: ', gt)
print('Answers: ', df_doc.loc[gt, 'text'].values)
def read_txt(path):
"""Used with split_txt() to read and split kb into clauses"""
with open(path, 'r', encoding="utf-8") as f:
text = f.readlines()
return text
def clean_txt(text):
"""Strips formatting"""
text=[x.replace('\n', '. ') for x in text] # not sure how newlines are tokenized
text=[x.replace('.. ', '. ').rstrip() for x in text] # remove artifact
return text
def split_txt(text, qa=False):
"""Splits a text document into clauses based on whitespaces.
Additionally, reads a faq document by assuming that the first line is a question
between each whitespaced group
"""
condition_terms = []
stringg=''
for tex in text:
if (tex=='\n'):
if (stringg != ''):
condition_terms.append(stringg)
stringg=''
else: pass
else: stringg+=tex
if qa:
condition_context = [x.split('\n')[0] for x in condition_terms]
condition_terms = ['\n'.join(x.split('\n')[1:]) for x in condition_terms]
return condition_terms, condition_context
else: return condition_terms
def read_kb_csv(csv_path, meta_col='meta', answer_col='answer', query_col='question', answer_str_col='answer', cutoff=None):
"""Only read organization meta, not personal. index=196"""
df = pd.read_csv(csv_path)
if cutoff:
df = df.iloc[:cutoff]
df['kb'] = df[meta_col]+df[answer_col]
df.rename(columns={query_col:'queries', answer_str_col:'answer_str'}, inplace=True)
# df[answer_col] = [[x] for x in df.index]
# df['kb']=df['kb'].str.replace('\n', '. ').replace('.. ', '. ')
return list(df['kb']), list(df['queries'])
def aiap_qna(question, answer_array, aiap_qa, model, k=1):
similarity_score=cosine_similarity(answer_array, model.predict([question], type='query'))
sortargs=np.flip(similarity_score.argsort(axis=0))
sortargs=[x[0] for x in sortargs]
sorted_ans=[]
for indx in range(k):
sorted_ans.append(aiap_qa[sortargs[indx]])
return sorted_ans, sortargs, similarity_score
def aiap_qna_quickscore(aiap_context, answer_array, aiap_qa, model, k=1):
"""Quickly scores the model against the aiap qna dataset.
This function works because the order of questions and answers are synched in the list.
"""
score=0
for ii, qn in enumerate(aiap_context):
_, sortargs, simscore = aiap_qna(qn, answer_array, aiap_qa, model, k)
# print(qn, aiap_qa[sortargs[0]], simscore)
if bool(set([ii]) & set(sortargs[:k])):
score+=1
return score/len(aiap_context)
def ranker(model, question_vectors, df_query, df_doc): | predictions=[]
gts=[]
for ii, question_vector in enumerate(question_vectors):
kb=[int(xx) for xx in (df_query[3].iloc[ii]).split(' ')]
gt = [int(xx) for xx in (df_query[2].iloc[ii]).split(' ')]
doc_vectors = model.predict(df_doc.loc[kb]['text'].tolist())
cossim = cosine_similarity(doc_vectors, question_vector.reshape(1, -1))
sortargs=np.flip(cossim.argsort(axis=0))
returnedans = [kb[jj[0]] for jj in sortargs]
predictions.append(returnedans)
gts.append(gt)
return predictions, gts
def scorer(predictions, gts, k=3):
"""For model evaluation on InsuranceQA datset. Returns score@k."""
score=0
total=0
for gt, prediction in zip(gts, predictions):
if bool(set(gt) & set(prediction[:k])):
score+=1
total+=1
return score/total
def make_pred(row, gr, query_col_name='queries', top_k=3):
"""Make line by line predictions, returns top 3 index of kb."""
txt, ind = gr.make_query(row['queries'], top_k=top_k, index=True)
return ind
def make_iscorr(row, prediction_col_name='predictions', answer_col_name='answer'):
"""Calculates accuracy @3."""
if bool(set(row[answer_col_name]) & set(row[prediction_col_name])):
return 1
else: return 0
def make_closewrong(row, prediction_col_name='predictions', answer_col_name='answer'):
"""Find index of wrong answer with highest similarity score aka hardmining."""
try: return [x for x in row[prediction_col_name] if x not in row[answer_col_name]][0]
except: return 1 #Just return the most common class as the negative eg.
def make_finetune(row, gr, kb_name='default_kb', query_col_name='queries', answer_col_name='answer', closewrong_col_name='closewrong'):
"""Stochastic finetuning sample by sample."""
loss = gr.finetune([row[query_col_name]], [gr.text[kb_name][row[answer_col_name][0]]], [gr.text[kb_name][row[answer_col_name][0]]], [gr.text[kb_name][row[closewrong_col_name]]], [gr.text[kb_name][row[closewrong_col_name]]])
print(loss)
def make_contrastive_finetune(row, gr, kb_name='default_kb', query_col_name='queries', answer_col_name='answer', closewrong_col_name='closewrong'):
"""Stochastic finetuning for contrastive loss."""
loss = gr.finetune(question=[row[query_col_name]], answer=[gr.text[kb_name][row[answer_col_name][0]]], context=[gr.text[kb_name][row[answer_col_name][0]]], label=[1])
print('1: ', loss)
loss = gr.finetune(question=[row[query_col_name]], answer=[gr.text[kb_name][row[closewrong_col_name]]], context=[gr.text[kb_name][row[closewrong_col_name]]], label=[0])
print('0: ', loss) | """for model evaluation on InsuranceQA datset""" |
matrix_test.go | package matrix
import (
"testing"
)
func TestMatrix(t *testing.T) {
axis, err := ParseString(fakeMatrix)
if err != nil {
t.Error(err)
return
}
if got, want := len(axis), 24; got != want |
set := map[string]bool{}
for _, perm := range axis {
set[perm.String()] = true
}
if got, want := len(axis), 24; got != want {
t.Errorf("Got %d unique matrix permutations, want %d", got, want)
}
}
func TestMatrixEmpty(t *testing.T) {
axis, err := ParseString("")
if err != nil {
t.Error(err)
return
}
if axis != nil {
t.Errorf("Got non-nil matrix from empty string")
}
}
func TestMatrixInclude(t *testing.T) {
axis, err := ParseString(fakeMatrixInclude)
if err != nil {
t.Error(err)
return
}
if got, want := len(axis), 2; got != want {
t.Errorf("Got %d matrix permutations, want %d", got, want)
}
if got, want := axis[0]["go_version"], "1.5"; got != want {
t.Errorf("Got %s permutation, want %s", got, want)
}
if got, want := axis[1]["go_version"], "1.6"; got != want {
t.Errorf("Got %s permutation, want %s", got, want)
}
if got, want := axis[0]["python_version"], "3.4"; got != want {
t.Errorf("Got %s permutation, want %s", got, want)
}
if got, want := axis[1]["python_version"], "3.4"; got != want {
t.Errorf("Got %s permutation, want %s", got, want)
}
}
var fakeMatrix = `
matrix:
go_version:
- go1
- go1.2
python_version:
- 3.2
- 3.3
django_version:
- 1.7
- 1.7.1
- 1.7.2
redis_version:
- 2.6
- 2.8
`
var fakeMatrixInclude = `
matrix:
include:
- go_version: 1.5
python_version: 3.4
- go_version: 1.6
python_version: 3.4
`
| {
t.Errorf("Got %d matrix permutations, want %d", got, want)
} |
build_ir.rs | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
use crate::config::ProjectConfig;
use crate::{compiler_state::SourceSetName, graphql_asts::GraphQLAsts};
use common::Diagnostic;
use dependency_analyzer::{get_reachable_ast, get_reachable_ir, ReachableAst};
use fnv::{FnvHashMap, FnvHashSet};
use graphql_syntax::ExecutableDefinition;
use graphql_text_printer::print_executable_definition_ast;
use intern::string_key::StringKey;
use md5::{Digest, Md5};
use relay_transforms::DependencyMap;
use schema::SDLSchema;
pub struct BuildIRResult {
pub ir: Vec<graphql_ir::ExecutableDefinition>,
pub source_hashes: SourceHashes,
pub base_fragment_names: FnvHashSet<StringKey>,
}
/// Map fragments and queries definition names to the md5 of they printed source
pub struct | (FnvHashMap<StringKey, String>);
impl SourceHashes {
pub fn from_definitions(definitions: &[ExecutableDefinition]) -> Self {
let mut source_hashes = FnvHashMap::default();
for ast in definitions {
if let Some(name) = ast.name() {
source_hashes.insert(name, md5(&print_executable_definition_ast(ast)));
}
}
Self(source_hashes)
}
pub fn get(&self, k: &StringKey) -> Option<&String> {
self.0.get(k)
}
}
pub fn build_ir(
project_config: &ProjectConfig,
implicit_dependencies: &DependencyMap,
schema: &SDLSchema,
graphql_asts: &FnvHashMap<SourceSetName, GraphQLAsts>,
is_incremental_build: bool,
) -> Result<BuildIRResult, Vec<Diagnostic>> {
let project_asts = graphql_asts
.get(&project_config.name)
.map(|asts| asts.asts.clone())
.unwrap_or_default();
let (base_project_asts, base_definition_names) = match project_config.base {
Some(base_project_name) => {
let base_project_asts = graphql_asts
.get(&base_project_name)
.map(|asts| asts.asts.clone())
.unwrap_or_default();
let base_definition_names = base_project_asts
.iter()
// TODO(T64459085): Figure out what to do about unnamed (anonymous) operations
.filter_map(|definition| definition.name())
.collect::<FnvHashSet<_>>();
(base_project_asts, base_definition_names)
}
None => (Vec::new(), FnvHashSet::default()),
};
find_duplicates(&project_asts, &base_project_asts)?;
let ReachableAst {
definitions: reachable_ast,
base_fragment_names,
} = get_reachable_ast(project_asts, base_project_asts);
let source_hashes = SourceHashes::from_definitions(&reachable_ast);
let ir = graphql_ir::build_ir_with_relay_feature_flags(
schema,
&reachable_ast,
&project_config.feature_flags,
)?;
if is_incremental_build {
let mut reachable_names = graphql_asts
.get(&project_config.name)
.map(|asts| asts.pending_definition_names.clone())
.unwrap_or_default();
if let Some(base_project_name) = project_config.base {
reachable_names.extend(
graphql_asts
.get(&base_project_name)
.map(|asts| asts.pending_definition_names.clone())
.unwrap_or_default(),
);
}
let affected_ir = get_reachable_ir(
ir,
base_definition_names,
reachable_names,
implicit_dependencies,
schema,
);
Ok(BuildIRResult {
ir: affected_ir,
base_fragment_names,
source_hashes,
})
} else {
Ok(BuildIRResult {
ir,
base_fragment_names,
source_hashes,
})
}
}
fn find_duplicates(
asts: &[ExecutableDefinition],
base_asts: &[ExecutableDefinition],
) -> Result<(), Vec<Diagnostic>> {
let mut definitions = FnvHashMap::default();
let mut errors = Vec::new();
for def in asts.iter().chain(base_asts) {
if let Some(name) = def.name() {
if let Some(prev_def) = definitions.insert(name, def) {
errors.push(
Diagnostic::error(
graphql_ir::ValidationMessage::DuplicateDefinition(name),
def.location(),
)
.annotate("previously defined here", prev_def.location()),
);
}
}
}
if errors.is_empty() {
Ok(())
} else {
Err(errors)
}
}
fn md5(data: &str) -> String {
let mut md5 = Md5::new();
md5.input(data);
hex::encode(md5.result())
}
| SourceHashes |
emscripten_target.rs | #![allow(non_snake_case)]
use crate::env::get_emscripten_data;
use crate::EmEnv;
#[cfg(target_os = "linux")]
use libc::getdtablesize;
pub fn asm_const_i(_ctx: &EmEnv, _val: i32) -> i32 {
debug!("emscripten::asm_const_i: {}", _val);
0
}
pub fn exit_with_live_runtime(_ctx: &EmEnv) {
debug!("emscripten::exit_with_live_runtime");
}
pub fn setTempRet0(ctx: &EmEnv, val: i32) {
trace!("emscripten::setTempRet0: {}", val);
get_emscripten_data(ctx).temp_ret_0 = val;
}
pub fn getTempRet0(ctx: &EmEnv) -> i32 {
trace!("emscripten::getTempRet0");
get_emscripten_data(ctx).temp_ret_0
}
pub fn _alarm(_ctx: &EmEnv, _seconds: u32) -> i32 {
debug!("emscripten::_alarm({})", _seconds);
0
}
pub fn _atexit(_ctx: &EmEnv, _func: i32) -> i32 {
debug!("emscripten::_atexit");
// TODO: implement atexit properly
// __ATEXIT__.unshift({
// func: func,
// arg: arg
// });
0
}
pub fn __Unwind_Backtrace(_ctx: &EmEnv, _a: i32, _b: i32) -> i32 {
debug!("emscripten::__Unwind_Backtrace");
0
}
pub fn __Unwind_FindEnclosingFunction(_ctx: &EmEnv, _a: i32) -> i32 {
debug!("emscripten::__Unwind_FindEnclosingFunction");
0
}
pub fn __Unwind_GetIPInfo(_ctx: &EmEnv, _a: i32, _b: i32) -> i32 {
debug!("emscripten::__Unwind_GetIPInfo");
0
}
pub fn ___cxa_find_matching_catch_2(_ctx: &EmEnv) -> i32 {
debug!("emscripten::___cxa_find_matching_catch_2");
0
}
pub fn ___cxa_find_matching_catch_3(_ctx: &EmEnv, _a: i32) -> i32 {
debug!("emscripten::___cxa_find_matching_catch_3");
0
}
pub fn ___cxa_free_exception(_ctx: &EmEnv, _a: i32) {
debug!("emscripten::___cxa_free_exception");
}
pub fn ___resumeException(_ctx: &EmEnv, _a: i32) {
debug!("emscripten::___resumeException");
}
pub fn _dladdr(_ctx: &EmEnv, _a: i32, _b: i32) -> i32 {
debug!("emscripten::_dladdr");
0
}
pub fn ___gxx_personality_v0(
_ctx: &EmEnv,
_a: i32,
_b: i32,
_c: i32,
_d: i32,
_e: i32,
_f: i32,
) -> i32 {
debug!("emscripten::___gxx_personality_v0");
0
}
#[cfg(target_os = "linux")]
pub fn _getdtablesize(_ctx: &EmEnv) -> i32 {
debug!("emscripten::getdtablesize");
unsafe { getdtablesize() }
}
#[cfg(not(target_os = "linux"))]
pub fn _getdtablesize(_ctx: &EmEnv) -> i32 {
debug!("emscripten::getdtablesize");
-1
}
pub fn _gethostbyaddr(_ctx: &EmEnv, _addr: i32, _addrlen: i32, _atype: i32) -> i32 {
debug!("emscripten::gethostbyaddr");
0
}
pub fn _gethostbyname(_ctx: &EmEnv, _name: i32) -> i32 {
debug!("emscripten::gethostbyname_r");
0
}
pub fn _gethostbyname_r(
_ctx: &EmEnv,
_name: i32,
_ret: i32,
_buf: i32,
_buflen: i32,
_out: i32,
_err: i32,
) -> i32 {
debug!("emscripten::gethostbyname_r");
0
}
// NOTE: php.js has proper impl; libc has proper impl for linux
pub fn _getloadavg(_ctx: &EmEnv, _loadavg: i32, _nelem: i32) -> i32 {
debug!("emscripten::getloadavg");
0
}
pub fn _getnameinfo(
_ctx: &EmEnv,
_addr: i32,
_addrlen: i32,
_host: i32,
_hostlen: i32,
_serv: i32,
_servlen: i32,
_flags: i32,
) -> i32 {
debug!(
"emscripten::_getnameinfo({}, {}, {}, {}, {}, {}, {})",
_addr, _addrlen, _host, _hostlen, _serv, _servlen, _flags
);
0
}
// Invoke functions
// They save the stack to allow unwinding
// Macro definitions
macro_rules! invoke {
($ctx: ident, $name:ident, $name_ref:ident, $( $arg:ident ),*) => {{
let sp = get_emscripten_data($ctx).stack_save_ref().expect("stack_save is None").call().expect("stack_save call failed");
let result = get_emscripten_data($ctx).$name_ref().expect(concat!("Dynamic call is None: ", stringify!($name))).call($($arg),*);
match result {
Ok(v) => v,
Err(_e) => {
get_emscripten_data($ctx).stack_restore_ref().expect("stack_restore is None").call(sp).expect("stack_restore call failed");
// TODO: We should check if _e != "longjmp" and if that's the case, re-throw the error
// JS version is: if (e !== e+0 && e !== 'longjmp') throw e;
get_emscripten_data($ctx).set_threw_ref().expect("set_threw is None").call(1, 0).expect("set_threw call failed");
0 as _
}
}
}};
}
macro_rules! invoke_no_return {
($ctx: ident, $name:ident, $name_ref:ident, $( $arg:ident ),*) => {{
let sp = get_emscripten_data($ctx).stack_save_ref().expect("stack_save is None").call().expect("stack_save call failed");
let result = get_emscripten_data($ctx).$name_ref().expect(concat!("Dynamic call is None: ", stringify!($name))).call($($arg),*);
match result {
Ok(v) => v,
Err(_e) => {
get_emscripten_data($ctx).stack_restore_ref().expect("stack_restore is None").call(sp).expect("stack_restore call failed");
// TODO: We should check if _e != "longjmp" and if that's the case, re-throw the error
// JS version is: if (e !== e+0 && e !== 'longjmp') throw e;
get_emscripten_data($ctx).set_threw_ref().expect("set_threw is None").call(1, 0).expect("set_threw call failed");
}
}
}};
}
// Invoke functions
pub fn invoke_i(ctx: &EmEnv, index: i32) -> i32 {
debug!("emscripten::invoke_i");
invoke!(ctx, dyn_call_i, dyn_call_i_ref, index)
}
pub fn invoke_ii(ctx: &EmEnv, index: i32, a1: i32) -> i32 {
debug!("emscripten::invoke_ii");
invoke!(ctx, dyn_call_ii, dyn_call_ii_ref, index, a1)
}
pub fn invoke_iii(ctx: &EmEnv, index: i32, a1: i32, a2: i32) -> i32 {
debug!("emscripten::invoke_iii");
invoke!(ctx, dyn_call_iii, dyn_call_iii_ref, index, a1, a2)
}
pub fn invoke_iiii(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32) -> i32 {
debug!("emscripten::invoke_iiii");
invoke!(ctx, dyn_call_iiii, dyn_call_iiii_ref, index, a1, a2, a3)
}
pub fn invoke_iifi(ctx: &EmEnv, index: i32, a1: i32, a2: f64, a3: i32) -> i32 {
debug!("emscripten::invoke_iifi");
invoke!(ctx, dyn_call_iifi, dyn_call_iifi_ref, index, a1, a2, a3)
}
pub fn invoke_v(ctx: &EmEnv, index: i32) {
debug!("emscripten::invoke_v");
invoke_no_return!(ctx, dyn_call_v, dyn_call_v_ref, index);
}
pub fn invoke_vi(ctx: &EmEnv, index: i32, a1: i32) {
debug!("emscripten::invoke_vi");
invoke_no_return!(ctx, dyn_call_vi, dyn_call_vi_ref, index, a1);
}
pub fn invoke_vii(ctx: &EmEnv, index: i32, a1: i32, a2: i32) {
debug!("emscripten::invoke_vii");
invoke_no_return!(ctx, dyn_call_vii, dyn_call_vii_ref, index, a1, a2);
}
pub fn invoke_viii(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32) {
debug!("emscripten::invoke_viii");
invoke_no_return!(ctx, dyn_call_viii, dyn_call_viii_ref, index, a1, a2, a3);
}
pub fn invoke_viiii(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32) {
debug!("emscripten::invoke_viiii");
invoke_no_return!(
ctx,
dyn_call_viiii,
dyn_call_viiii_ref,
index,
a1,
a2,
a3,
a4
);
}
pub fn invoke_dii(ctx: &EmEnv, index: i32, a1: i32, a2: i32) -> f64 {
debug!("emscripten::invoke_dii");
invoke!(ctx, dyn_call_dii, dyn_call_dii_ref, index, a1, a2)
}
pub fn invoke_diiii(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32) -> f64 {
debug!("emscripten::invoke_diiii");
invoke!(
ctx,
dyn_call_diiii,
dyn_call_diiii_ref,
index,
a1,
a2,
a3,
a4
)
}
pub fn invoke_iiiii(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32) -> i32 {
debug!("emscripten::invoke_iiiii");
invoke!(
ctx,
dyn_call_iiiii,
dyn_call_iiiii_ref,
index,
a1,
a2,
a3,
a4
)
}
pub fn invoke_iiiiii(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32, a5: i32) -> i32 {
debug!("emscripten::invoke_iiiiii");
invoke!(
ctx,
dyn_call_iiiiii,
dyn_call_iiiiii_ref,
index,
a1,
a2,
a3,
a4,
a5
)
}
pub fn invoke_iiiiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
) -> i32 {
debug!("emscripten::invoke_iiiiiii");
invoke!(
ctx,
dyn_call_iiiiiii,
dyn_call_iiiiiii_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6
)
}
pub fn invoke_iiiiiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
a7: i32,
) -> i32 {
debug!("emscripten::invoke_iiiiiiii");
invoke!(
ctx,
dyn_call_iiiiiiii,
dyn_call_iiiiiiii_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6,
a7
)
}
pub fn invoke_iiiiiiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
a7: i32,
a8: i32,
) -> i32 {
debug!("emscripten::invoke_iiiiiiiii");
invoke!(
ctx,
dyn_call_iiiiiiiii,
dyn_call_iiiiiiiii_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8
)
}
pub fn invoke_iiiiiiiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
a7: i32,
a8: i32,
a9: i32,
) -> i32 {
debug!("emscripten::invoke_iiiiiiiiii");
invoke!(
ctx,
dyn_call_iiiiiiiiii,
dyn_call_iiiiiiiiii_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9
)
}
pub fn invoke_iiiiiiiiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
a7: i32,
a8: i32,
a9: i32,
a10: i32,
) -> i32 {
debug!("emscripten::invoke_iiiiiiiiiii");
invoke!(
ctx,
dyn_call_iiiiiiiiiii,
dyn_call_iiiiiiiiiii_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10
)
}
pub fn invoke_vd(ctx: &EmEnv, index: i32, a1: f64) {
debug!("emscripten::invoke_vd");
invoke_no_return!(ctx, dyn_call_vd, dyn_call_vd_ref, index, a1)
}
pub fn invoke_viiiii(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32, a5: i32) {
debug!("emscripten::invoke_viiiii");
invoke_no_return!(
ctx,
dyn_call_viiiii,
dyn_call_viiiii_ref,
index,
a1,
a2,
a3,
a4,
a5
)
}
pub fn invoke_viiiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
) {
debug!("emscripten::invoke_viiiiii");
invoke_no_return!(
ctx,
dyn_call_viiiiii,
dyn_call_viiiiii_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6
)
}
pub fn invoke_viiiiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
a7: i32,
) {
debug!("emscripten::invoke_viiiiiii");
invoke_no_return!(
ctx,
dyn_call_viiiiiii,
dyn_call_viiiiiii_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6,
a7
)
}
pub fn invoke_viiiiiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
a7: i32,
a8: i32,
) {
debug!("emscripten::invoke_viiiiiiii");
invoke_no_return!(
ctx,
dyn_call_viiiiiiii,
dyn_call_viiiiiiii_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8
)
}
pub fn invoke_viiiiiiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
a7: i32,
a8: i32,
a9: i32,
) {
debug!("emscripten::invoke_viiiiiiiii");
invoke_no_return!(
ctx,
dyn_call_viiiiiiiii,
dyn_call_viiiiiiiii_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9
)
}
pub fn invoke_viiiiiiiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
a7: i32,
a8: i32,
a9: i32,
a10: i32,
) {
debug!("emscripten::invoke_viiiiiiiiii");
invoke_no_return!(
ctx,
dyn_call_viiiiiiiiii,
dyn_call_viiiiiiiiii_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10
)
}
pub fn invoke_iij(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32) -> i32 {
debug!("emscripten::invoke_iij");
invoke!(ctx, dyn_call_iij, dyn_call_iij_ref, index, a1, a2, a3)
}
pub fn invoke_iji(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32) -> i32 {
debug!("emscripten::invoke_iji");
invoke!(ctx, dyn_call_iji, dyn_call_iji_ref, index, a1, a2, a3)
}
pub fn invoke_iiji(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32) -> i32 {
debug!("emscripten::invoke_iiji");
invoke!(ctx, dyn_call_iiji, dyn_call_iiji_ref, index, a1, a2, a3, a4)
}
pub fn invoke_iiijj(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
) -> i32 {
debug!("emscripten::invoke_iiijj");
invoke!(
ctx,
dyn_call_iiijj,
dyn_call_iiijj_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6
)
}
pub fn invoke_j(ctx: &EmEnv, index: i32) -> i32 {
debug!("emscripten::invoke_j");
if let Some(dyn_call_j) = get_emscripten_data(ctx).dyn_call_j_ref() {
dyn_call_j.call(index).unwrap()
} else {
panic!("dyn_call_j is set to None");
}
}
pub fn invoke_ji(ctx: &EmEnv, index: i32, a1: i32) -> i32 {
debug!("emscripten::invoke_ji");
if let Some(dyn_call_ji) = get_emscripten_data(ctx).dyn_call_ji_ref() {
dyn_call_ji.call(index, a1).unwrap()
} else {
panic!("dyn_call_ji is set to None");
}
}
pub fn invoke_jii(ctx: &EmEnv, index: i32, a1: i32, a2: i32) -> i32 {
debug!("emscripten::invoke_jii");
if let Some(dyn_call_jii) = get_emscripten_data(ctx).dyn_call_jii_ref() {
dyn_call_jii.call(index, a1, a2).unwrap()
} else {
panic!("dyn_call_jii is set to None");
}
}
pub fn invoke_jij(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32) -> i32 {
debug!("emscripten::invoke_jij");
if let Some(dyn_call_jij) = get_emscripten_data(ctx).dyn_call_jij_ref() {
dyn_call_jij.call(index, a1, a2, a3).unwrap()
} else {
panic!("dyn_call_jij is set to None");
}
}
pub fn invoke_jjj(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32) -> i32 {
debug!("emscripten::invoke_jjj");
if let Some(dyn_call_jjj) = get_emscripten_data(ctx).dyn_call_jjj_ref() {
dyn_call_jjj.call(index, a1, a2, a3, a4).unwrap()
} else {
panic!("dyn_call_jjj is set to None");
}
}
pub fn invoke_viiij(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32, a5: i32) {
debug!("emscripten::invoke_viiij");
if let Some(dyn_call_viiij) = get_emscripten_data(ctx).dyn_call_viiij_ref() {
dyn_call_viiij.call(index, a1, a2, a3, a4, a5).unwrap();
} else {
panic!("dyn_call_viiij is set to None");
}
}
pub fn invoke_viiijiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
a7: i32,
a8: i32,
a9: i32,
) {
debug!("emscripten::invoke_viiijiiii");
if let Some(dyn_call_viiijiiii) = get_emscripten_data(ctx).dyn_call_viiijiiii_ref() {
dyn_call_viiijiiii
.call(index, a1, a2, a3, a4, a5, a6, a7, a8, a9)
.unwrap();
} else {
panic!("dyn_call_viiijiiii is set to None");
}
}
pub fn invoke_viiijiiiiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
a7: i32,
a8: i32,
a9: i32,
a10: i32,
a11: i32,
) {
debug!("emscripten::invoke_viiijiiiiii");
if let Some(dyn_call_viiijiiiiii) = get_emscripten_data(ctx).dyn_call_viiijiiiiii_ref() {
dyn_call_viiijiiiiii
.call(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11)
.unwrap();
} else {
panic!("dyn_call_viiijiiiiii is set to None");
}
}
pub fn invoke_viij(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32) {
debug!("emscripten::invoke_viij");
if let Some(dyn_call_viij) = get_emscripten_data(ctx).dyn_call_viij_ref() {
dyn_call_viij.call(index, a1, a2, a3, a4).unwrap();
} else {
panic!("dyn_call_viij is set to None");
}
}
pub fn invoke_viiji(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32, a5: i32) {
debug!("emscripten::invoke_viiji");
if let Some(dyn_call_viiji) = get_emscripten_data(ctx).dyn_call_viiji_ref() {
dyn_call_viiji.call(index, a1, a2, a3, a4, a5).unwrap();
} else {
panic!("dyn_call_viiji is set to None");
}
}
pub fn invoke_viijiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
a7: i32,
) {
debug!("emscripten::invoke_viijiii");
if let Some(dyn_call_viijiii) = get_emscripten_data(ctx).dyn_call_viijiii_ref() {
dyn_call_viijiii
.call(index, a1, a2, a3, a4, a5, a6, a7)
.unwrap();
} else {
panic!("dyn_call_viijiii is set to None");
}
}
pub fn invoke_viijj(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32, a5: i32, a6: i32) {
debug!("emscripten::invoke_viijj");
if let Some(dyn_call_viijj) = get_emscripten_data(ctx).dyn_call_viijj_ref() {
dyn_call_viijj.call(index, a1, a2, a3, a4, a5, a6).unwrap();
} else {
panic!("dyn_call_viijj is set to None");
}
}
pub fn invoke_vj(ctx: &EmEnv, index: i32, a1: i32, a2: i32) {
debug!("emscripten::invoke_vj");
if let Some(dyn_call_vj) = get_emscripten_data(ctx).dyn_call_vj_ref() {
dyn_call_vj.call(index, a1, a2).unwrap();
} else {
panic!("dyn_call_vj is set to None");
}
}
pub fn invoke_vjji(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32, a5: i32) {
debug!("emscripten::invoke_vjji");
invoke_no_return!(
ctx,
dyn_call_vjji,
dyn_call_vjji_ref,
index,
a1,
a2,
a3,
a4,
a5
)
}
pub fn invoke_vij(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32) {
debug!("emscripten::invoke_vij");
if let Some(dyn_call_vij) = get_emscripten_data(ctx).dyn_call_vij_ref() {
dyn_call_vij.call(index, a1, a2, a3).unwrap();
} else {
panic!("dyn_call_vij is set to None");
}
}
pub fn invoke_viji(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32) {
debug!("emscripten::invoke_viji");
if let Some(dyn_call_viji) = get_emscripten_data(ctx).dyn_call_viji_ref() {
dyn_call_viji.call(index, a1, a2, a3, a4).unwrap()
} else {
panic!("dyn_call_viji is set to None");
}
}
pub fn invoke_vijiii(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: i32,
a4: i32,
a5: i32,
a6: i32,
) |
pub fn invoke_vijj(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: i32, a4: i32, a5: i32) {
debug!("emscripten::invoke_vijj");
if let Some(dyn_call_vijj) = get_emscripten_data(ctx).dyn_call_vijj_ref() {
dyn_call_vijj.call(index, a1, a2, a3, a4, a5).unwrap()
} else {
panic!("dyn_call_vijj is set to None");
}
}
pub fn invoke_vidd(ctx: &EmEnv, index: i32, a1: i32, a2: f64, a3: f64) {
debug!("emscripten::invoke_viid");
invoke_no_return!(ctx, dyn_call_vidd, dyn_call_vidd_ref, index, a1, a2, a3);
}
pub fn invoke_viid(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: f64) {
debug!("emscripten::invoke_viid");
invoke_no_return!(ctx, dyn_call_viid, dyn_call_viid_ref, index, a1, a2, a3);
}
pub fn invoke_viidii(ctx: &EmEnv, index: i32, a1: i32, a2: i32, a3: f64, a4: i32, a5: i32) {
debug!("emscripten::invoke_viidii");
invoke_no_return!(
ctx,
dyn_call_viidii,
dyn_call_viidii_ref,
index,
a1,
a2,
a3,
a4,
a5
);
}
pub fn invoke_viidddddddd(
ctx: &EmEnv,
index: i32,
a1: i32,
a2: i32,
a3: f64,
a4: f64,
a5: f64,
a6: f64,
a7: f64,
a8: f64,
a9: f64,
a10: f64,
) {
debug!("emscripten::invoke_viidddddddd");
invoke_no_return!(
ctx,
dyn_call_viidddddddd,
dyn_call_viidddddddd_ref,
index,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10
);
}
| {
debug!("emscripten::invoke_vijiii");
if let Some(dyn_call_vijiii) = get_emscripten_data(ctx).dyn_call_vijiii_ref() {
dyn_call_vijiii.call(index, a1, a2, a3, a4, a5, a6).unwrap()
} else {
panic!("dyn_call_vijiii is set to None");
}
} |
Login_20180508095359.js | import React, {Component} from 'react';
import { Panel,Button,Form,
Col,
FormGroup,
FormControl,
ControlLabel
} from 'react-bootstrap';
import '../styles/App.css';
class | extends Component {
constructor(props) {
super(props);
this.state = {
authenticated:false
};
}
displayForm() {
return (
<Form horizontal onSubmit={this.props.login.handleLogin}>
<FormGroup controlId="formHorizontalEmail">
<Col componentClass={ControlLabel} sm={2}>
Email
</Col>
<Col sm={10}>
<FormControl type="email" placeholder="Email" value={this.props.login.state.user} onChange={this.props.login.handleChange}/>
</Col>
</FormGroup>
<FormGroup controlId="formHorizontalPassword">
<Col componentClass={ControlLabel} sm={2}>
Password
</Col>
<Col sm={10}>
<FormControl type="password" placeholder="Password" value={this.props.login.state.password} onChange={this.props.login.handleChange}/>
</Col>
</FormGroup>
<FormGroup>
<Col smOffset={1} sm={2}>
<Button type="submit">Sign in</Button>
</Col>
</FormGroup>
</Form>
)
}
displayPanel() {
return (
<Panel>
<Panel.Heading>
<Panel.Title componentClass="h3">Login</Panel.Title>
</Panel.Heading>
<Panel.Body>
{this.displayForm()}
</Panel.Body>
</Panel>
)
}
render() {
return (
<div className="App-container">
{this.displayPanel()}
</div>
)
}
}
export default Login; | Login |
localstorage.go | /*
Copyright 2021 The Dapr Authors
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 localstorage
import (
"context"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strconv"
securejoin "github.com/cyphar/filepath-securejoin"
"github.com/google/uuid"
"github.com/dapr/components-contrib/bindings"
"github.com/dapr/kit/logger"
)
const (
fileNameMetadataKey = "fileName"
)
// LocalStorage allows saving files to disk.
type LocalStorage struct {
metadata *Metadata
logger logger.Logger
}
// Metadata defines the metadata.
type Metadata struct {
RootPath string `json:"rootPath"`
}
type createResponse struct {
FileName string `json:"fileName"`
}
// NewLocalStorage returns a new LocalStorage instance.
func NewLocalStorage(logger logger.Logger) *LocalStorage {
return &LocalStorage{logger: logger}
}
// Init performs metadata parsing.
func (ls *LocalStorage) Init(metadata bindings.Metadata) error {
m, err := ls.parseMetadata(metadata)
if err != nil {
return err
}
ls.metadata = m
err = os.MkdirAll(ls.metadata.RootPath, 0o777)
if err != nil {
return fmt.Errorf("unable to create directory specified by 'rootPath': %s", ls.metadata.RootPath)
}
return nil
}
func (ls *LocalStorage) parseMetadata(metadata bindings.Metadata) (*Metadata, error) {
lsInfo := metadata.Properties
b, err := json.Marshal(lsInfo)
if err != nil {
return nil, err
}
var m Metadata
err = json.Unmarshal(b, &m)
if err != nil {
return nil, err
}
return &m, nil
}
// Operations enumerates supported binding operations.
func (ls *LocalStorage) Operations() []bindings.OperationKind {
return []bindings.OperationKind{
bindings.CreateOperation,
bindings.GetOperation,
bindings.ListOperation,
bindings.DeleteOperation,
}
}
func (ls *LocalStorage) create(filename string, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error) {
d, err := strconv.Unquote(string(req.Data))
if err == nil {
req.Data = []byte(d) |
decoded, err := base64.StdEncoding.DecodeString(string(req.Data))
if err == nil {
req.Data = decoded
}
absPath, relPath, err := getSecureAbsRelPath(ls.metadata.RootPath, filename)
if err != nil {
return nil, err
}
err = os.MkdirAll(filepath.Dir(absPath), 0o777)
if err != nil {
return nil, err
}
f, err := os.Create(absPath)
if err != nil {
return nil, err
}
defer f.Close()
numBytes, err := f.Write(req.Data)
if err != nil {
return nil, err
}
ls.logger.Debugf("wrote file: %s. numBytes: %d", absPath, numBytes)
resp := createResponse{
FileName: relPath,
}
b, err := json.Marshal(resp)
if err != nil {
return nil, err
}
return &bindings.InvokeResponse{
Data: b,
}, nil
}
func (ls *LocalStorage) get(filename string, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error) {
absPath, _, err := getSecureAbsRelPath(ls.metadata.RootPath, filename)
if err != nil {
return nil, err
}
f, err := os.Open(absPath)
if err != nil {
ls.logger.Debugf("%s", err)
return nil, err
}
b, err := ioutil.ReadAll(f)
if err != nil {
ls.logger.Debugf("%s", err)
return nil, err
}
ls.logger.Debugf("read file: %s. size: %d bytes", absPath, len(b))
return &bindings.InvokeResponse{
Data: b,
}, nil
}
func (ls *LocalStorage) delete(filename string, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error) {
absPath, _, err := getSecureAbsRelPath(ls.metadata.RootPath, filename)
if err != nil {
return nil, err
}
err = os.Remove(absPath)
if err != nil {
return nil, err
}
ls.logger.Debugf("removed file: %s.", absPath)
return nil, nil
}
func (ls *LocalStorage) list(filename string, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error) {
absPath, _, err := getSecureAbsRelPath(ls.metadata.RootPath, filename)
if err != nil {
return nil, err
}
fi, err := os.Stat(absPath)
if err != nil {
return nil, err
}
if !fi.IsDir() {
msg := fmt.Sprintf("unable to list files as the file specified is not a directory [%s]", absPath)
return nil, errors.New(msg)
}
files, err := walkPath(absPath)
if err != nil {
return nil, err
}
b, err := json.Marshal(files)
if err != nil {
return nil, err
}
return &bindings.InvokeResponse{
Data: b,
}, nil
}
func getSecureAbsRelPath(rootPath string, filename string) (absPath string, relPath string, err error) {
absPath, err = securejoin.SecureJoin(rootPath, filename)
if err != nil {
return
}
relPath, err = filepath.Rel(rootPath, absPath)
if err != nil {
return
}
return
}
func walkPath(root string) ([]string, error) {
var files []string
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if !info.IsDir() {
files = append(files, path)
}
return nil
})
return files, err
}
// Invoke is called for output bindings.
func (ls *LocalStorage) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error) {
filename := ""
if val, ok := req.Metadata[fileNameMetadataKey]; ok && val != "" {
filename = val
} else if req.Operation == bindings.CreateOperation {
filename = uuid.New().String()
}
switch req.Operation {
case bindings.CreateOperation:
return ls.create(filename, req)
case bindings.GetOperation:
return ls.get(filename, req)
case bindings.DeleteOperation:
return ls.delete(filename, req)
case bindings.ListOperation:
return ls.list(filename, req)
default:
return nil, fmt.Errorf("unsupported operation %s", req.Operation)
}
} | } |
processing.py | import os
from typing import List, Tuple, Dict
import face_recognition
from matplotlib import pyplot, patches
from PIL import Image
import numpy as np
from balticlsc.access.ftp import upload_file, get_connection
from balticlsc.configs.credential.ftp import FTPCredential
from balticlsc.scheme.api import init_baltic_api
from balticlsc.scheme.logger import logger
from balticlsc.scheme.pin import Pin, MissingPin, PinAttribute, ValuesAttribute
from balticlsc.scheme.processing import ProcessingInterface
from balticlsc.scheme.utils import camel_to_snake, get_random_output_folder
MODULE_VERSION = 'latest'
class Processing(ProcessingInterface):
def | (self, msg_uid: str, input_pin: Pin, output_pin_name_to_value: Dict[str, Pin]) -> None:
logger.info('module version = ' + MODULE_VERSION)
logger.info('starting processing for input pin="' + str(input_pin) + '"')
input_access_credential = input_pin.getattr(PinAttribute.ACCESS_CREDENTIAL)
input_folder = input_pin.getattr(PinAttribute.ACCESS_PATH)
if input_access_credential is None:
raise ValueError(f'missing access credential in the input pin={str(input_pin)}')
if input_folder is None:
raise ValueError(f'missing access path in the input pin={str(input_pin)}')
input_ftp_credential = FTPCredential(**input_access_credential)
# START # Establish the output access credential and folder # START #
output_pin_name: str = 'Output'
if output_pin_name not in output_pin_name_to_value:
error_msg = 'missing pin with name="' + output_pin_name + '" in output pins config'
logger.error(error_msg)
raise MissingPin([pin for pin in output_pin_name_to_value.values()], error_msg)
output_pin = output_pin_name_to_value[output_pin_name]
logger.info('loading output pin=' + str(output_pin))
output_access_credential = output_pin.getattr(PinAttribute.ACCESS_CREDENTIAL)
if output_access_credential is None:
logger.info('output pin access credentials is None, using input access credentials')
output_ftp_credential = input_ftp_credential
else:
output_access_credential = {camel_to_snake(key): value for key, value in output_access_credential.items()}
if str(output_access_credential) == str(input_access_credential):
logger.info('input and output access credential are the same')
output_ftp_credential = input_ftp_credential
else:
output_ftp_credential = FTPCredential(**output_access_credential)
output_access_path = output_pin.getattr(PinAttribute.ACCESS_PATH)
if output_access_path is None:
logger.info('access path is not provided in output config')
logger.info('setting random generated string as output folder name')
output_folder = get_random_output_folder(input_folder)
else:
output_access_path = {camel_to_snake(key): value for key, value in output_access_path.items()}
if 'resource_path' not in output_access_path:
logger.info('missing "resource_path" value in output access path')
logger.info('setting random generated string as output folder name')
output_folder = get_random_output_folder(input_folder)
else:
output_folder = output_access_path['resource_path']
logger.info('setting output folder based on output pin config "resource_path"=' + output_folder)
# STOP # Establish output credentials and folder # STOP #
logger.info('connecting to input ftp server: ' + input_ftp_credential.host)
input_ftp = get_connection(input_ftp_credential)
if output_ftp_credential != input_ftp_credential:
logger.info('connecting to output ftp server: ' + output_ftp_credential.host)
output_ftp = get_connection(output_ftp_credential)
else:
logger.info('using the same connection as output ftp')
output_ftp = input_ftp
# START # process and send files # START #
logger.info('changing ftp working directory to "' + input_folder + '"')
input_ftp.cwd(input_folder)
logger.info('working directory changed')
logger.info('listing files in the working directory ...')
filenames: List[str] = input_ftp.nlst()
logger.info('handling ' + str(len(filenames)) + ' files')
os.makedirs('tmp', exist_ok=True)
for filename in filenames:
if not filename.lower().endswith(('.png', '.jpg', '.jpeg', '.tiff', '.bmp', '.gif')):
logger.warning('wrong format of the file "' + filename + '", omitting')
continue
logger.info('downloading file "' + filename + '"')
filepath = 'tmp/' + filename
# Save the image locally
with open(filepath, 'wb') as file:
input_ftp.retrbinary("RETR " + filename, file.write)
# Mark faces and save the image
image = np.array(Image.open(filepath))
im = Image.fromarray(image)
im.save(filepath)
height: int = image.shape[0]
width: int = image.shape[1]
dpi: int = 100
faces_coords: List[Tuple[int]] = face_recognition.face_locations(image)
figure = pyplot.figure(frameon=False, dpi=dpi)
figure.set_size_inches(width / dpi, height / dpi)
ax = pyplot.Axes(figure, [0., 0., 1., 1.])
ax.set_axis_off()
figure.add_axes(ax)
ax.imshow(image)
logger.info('adding ' + str(len(faces_coords)) + ' faces to image "' + filename + '"')
fig = pyplot.gcf()
fig.savefig(fname=filepath, dpi=dpi, bbox_inches='tight')
for index in range(len(faces_coords)):
x_start = faces_coords[index][3]
y_start = faces_coords[index][0]
x_width = (faces_coords[index][1] - faces_coords[index][3])
y_height = (faces_coords[index][2] - faces_coords[index][0])
rect = patches.Rectangle((x_start, y_start), x_width, y_height,
edgecolor='r', facecolor="none")
ax.add_patch(rect)
pyplot.savefig(fname=filepath, dpi=dpi, bbox_inches='tight')
pyplot.close()
# Send file to ftp
with open(filepath, 'rb') as file:
logger.info('uploading file "' + filename + '" into ' + output_folder)
upload_file(filename, output_folder, output_ftp, file)
file.close() # close file and FTP
input_ftp.cwd(input_folder)
# STOP # process and send files # STOP #
input_ftp.quit()
if output_ftp_credential != input_ftp_credential:
output_ftp.quit()
rest_client.send_output_token(
base_msg_uid=msg_uid,
values={
ValuesAttribute.RESOURCE_PATH: output_folder
},
output_pin_name=output_pin.getattr(PinAttribute.NAME))
rest_client.send_ack_token(
msg_uids=[msg_uid],
is_final=True,
is_failed=False,
)
app, rest_client = init_baltic_api(Processing)
| process |
mod.rs | /// Threshold Secret Sharing scheme
/// See https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing
/// Based on https://tools.ietf.org/id/draft-mcgrew-tss-03.html
use failure::Fail;
use crate::shamir::gf256::Gf256;
use std::convert::TryInto;
mod gf256;
#[derive(Debug, Fail)]
pub enum SecretShareError {
#[fail(display = "Threshold must be positive")]
ZeroThreshold,
#[fail(
display = "Not enough shares to reconstruct the secret (need {}, given {})",
threshold, num_shares
)]
NotEnoughShares { num_shares: usize, threshold: usize },
#[fail(
display = "Too many shares requested ({}); current algorithm only supports up to {}",
num_shares, max_shares
)]
TooManySharesRequested {
num_shares: usize,
max_shares: usize,
},
#[fail(display = "Shares of different length provided")]
DifferentLengthShares,
#[fail(display = "Share index {} is too large (max is {})", idx, max_idx)]
ShareIndexTooLarge { idx: usize, max_idx: usize },
#[fail(display = "Two or more shares given with the same index")]
SharesWithSameIndices,
}
pub const MAX_SHARES: usize = 255;
/// Create `num_shares` secret shares, each represented as `Vec<u8>` with the same size as `secret`,
/// so that it's possible to reconstruct the `secret` using any `threshold` number of shares.
/// Requires a strong random generator.
pub fn create_secret_shares<R: rand::Rng + rand::CryptoRng>(
secret: &[u8],
num_shares: usize,
threshold: usize,
rng: &mut R,
) -> Result<Vec<Vec<u8>>, SecretShareError> {
if threshold == 0 {
return Err(SecretShareError::ZeroThreshold);
}
if num_shares < threshold {
return Err(SecretShareError::NotEnoughShares {
num_shares,
threshold,
});
}
if num_shares > MAX_SHARES {
return Err(SecretShareError::TooManySharesRequested {
num_shares,
max_shares: MAX_SHARES,
});
}
let secret_len = secret.len();
// Shares start being filled with secret bytes. Secret is not used after that.
let mut shares = vec![secret.to_vec(); num_shares];
// Create a view of the shares in Gf256 field, plus add shares' x and x^i values.
let mut shares_gf256 = shares
.iter_mut()
.enumerate()
.map(|(i, share)| {
(
Gf256((i + 1) as u8), // Share 'x' value
Gf256::one(), // Share 'x^i' value, starting with i=0
Gf256::as_slice_mut(share), // A view of the Share itself
)
})
.collect::<Vec<_>>();
let mut random = vec![Gf256::zero(); secret_len];
for _ in 1..threshold {
rng.fill(Gf256::to_bytes_mut(&mut random));
for (x, xi, share) in shares_gf256.iter_mut() {
*xi *= *x;
// for all i: share[i] += random[i] * xi
Gf256::add_mul_slice(share, &random, *xi);
}
}
Ok(shares)
}
/// Recover the secret from the shares. For each share, its original index is required.
pub fn recover_secret(
shares: &[(usize, impl AsRef<[u8]>)], // items are (share_idx, share)
threshold: usize,
) -> Result<Vec<u8>, SecretShareError> |
#[cfg(test)]
mod tests {
use super::*;
use failure::Fallible;
use rand::thread_rng;
#[test]
fn basic_test() -> Fallible<()> {
let secret = b"secret-secret";
let threshold = 3;
let mut rng = thread_rng();
let shares = create_secret_shares(secret, 5, threshold, &mut rng)?;
// Check all permutations
for (i, share1) in shares.iter().enumerate() {
for (j, share2) in shares.iter().enumerate() {
for (k, share3) in shares.iter().enumerate() {
if i != j && j != k && i != k {
let shares = &[(i, share1), (j, share2), (k, share3)];
assert_eq!(recover_secret(shares, threshold)?, secret);
}
}
}
}
let shares = create_secret_shares(secret, 1, 1, &mut rng)?;
assert_eq!(&shares[0][..secret.len()], secret); // 1 share/1 threshold just keeps the secret in the open.
assert_eq!(
recover_secret(&shares.iter().enumerate().collect::<Vec<_>>(), 1)?,
secret
);
let shares = create_secret_shares(secret, 3, 1, &mut rng)?;
assert_eq!(&shares[0][..secret.len()], secret); // N shares/1 threshold also keeps the secret in the open.
let shares = create_secret_shares(secret, 3, 3, &mut rng)?;
assert_eq!(
recover_secret(&shares.iter().enumerate().collect::<Vec<_>>(), 3)?,
secret
);
Ok(())
}
}
| {
if threshold == 0 {
return Err(SecretShareError::ZeroThreshold);
}
// Check all shares have different indices
let mut share_indices = shares.iter().map(|&(i, _)| i).collect::<Vec<_>>();
share_indices.sort();
share_indices.dedup();
if share_indices.len() != shares.len() {
return Err(SecretShareError::SharesWithSameIndices);
}
// Check we have enough shares to reconstruct the secret.
let num_shares = shares.len();
if num_shares < threshold {
return Err(SecretShareError::NotEnoughShares {
num_shares,
threshold,
});
}
// Create a view of shares and share indices in Gf256 field
// Only take the first `threshold` number of shares.
let shares: Vec<(Gf256, &[Gf256])> = shares[..threshold]
.iter()
.map(|(idx, share)| {
let idx = (idx + 1)
.try_into()
.map_err(|_| SecretShareError::ShareIndexTooLarge {
idx: *idx,
max_idx: MAX_SHARES,
})?;
Ok((Gf256(idx), Gf256::as_slice(share.as_ref())))
})
.collect::<Result<Vec<_>, _>>()?;
// Calculate the length of the secret and check the shares are the same length.
let secret_len = shares[0].1.len();
if shares.iter().any(|&(_, s)| s.len() != secret_len) {
return Err(SecretShareError::DifferentLengthShares);
}
// Calculate the secret.
let mut secret = vec![0u8; secret_len];
let secret_gf256 = Gf256::as_slice_mut(&mut secret);
for &(ui, share) in &shares {
// Calculate Lagrange function evaluated at zero.
let li = shares
.iter()
.filter_map(|&(uj, _)| if uj != ui { Some(uj) } else { None })
.fold(Gf256::one(), |acc, uj| acc * uj / (uj - ui));
// Use information from the share to reconstruct the secret.
// for all i: secret_gf256[i] += share[i] * li
Gf256::add_mul_slice(secret_gf256, share, li);
}
Ok(secret)
} |
index.ts | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file 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 CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import { i18n } from '@osd/i18n';
import { TutorialsCategory } from '../../services/tutorials';
import { onPremInstructions } from '../instructions/filebeat_instructions';
import {
TutorialContext,
TutorialSchema,
} from '../../services/tutorials/lib/tutorials_registry_types';
export function | (context: TutorialContext): TutorialSchema {
const moduleName = 'panw';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'] as const;
return {
id: 'panwLogs',
name: i18n.translate('home.tutorials.panwLogs.nameTitle', {
defaultMessage: 'Palo Alto Networks PAN-OS logs',
}),
moduleName,
category: TutorialsCategory.SECURITY_SOLUTION,
shortDescription: i18n.translate('home.tutorials.panwLogs.shortDescription', {
defaultMessage:
'Collect Palo Alto Networks PAN-OS threat and traffic logs over syslog or from a log file.',
}),
longDescription: i18n.translate('home.tutorials.panwLogs.longDescription', {
defaultMessage:
'This is a module for Palo Alto Networks PAN-OS firewall monitoring \
logs received over Syslog or read from a file. It currently supports \
messages of Traffic and Threat types. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-panw.html',
},
}),
euiIconType: '/plugins/home/assets/logos/paloalto.svg',
artifacts: {
dashboards: [
{
id: 'e40ba240-7572-11e9-976e-65a8f47cc4c1',
linkLabel: i18n.translate('home.tutorials.panwLogs.artifacts.dashboards.linkLabel', {
defaultMessage: 'PANW Network Flows',
}),
isOverview: true,
},
],
exportedFields: {
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-panw.html',
},
},
completionTimeMinutes: 10,
onPrem: onPremInstructions(moduleName, platforms, context),
};
}
| panwLogsSpecProvider |
config_test.go | package oak
import (
"os"
"testing"
"github.com/stretchr/testify/assert"
)
func TestDefaultConfig(t *testing.T) | {
err := LoadConf("default.config")
assert.Nil(t, err)
assert.Equal(t, conf, SetupConfig)
f, err := os.Open("default.config")
assert.Nil(t, err)
err = LoadConfData(f)
assert.Nil(t, err)
SetupConfig = Config{
Assets{"a/", "a/", "i/", "f/"},
Debug{"FILTER", "INFO"},
Screen{0, 0, 240, 320, 2},
Font{"hint", 20.0, 36.0, "luxisr.ttf", "green"},
30,
30,
"German",
"Some Window",
true,
true,
true,
}
initConf()
assert.Equal(t, SetupConfig, conf)
// Failure to load
err = LoadConf("nota.config")
assert.NotNil(t, err)
} |
|
Main.js | import React, { useEffect, useState } from "react";
import axios from "axios";
import WrappedMap from "../components/Map";
import NavigationBar from "../components/NavigationBar";
import InfoCard from "../components/InfoCard";
import Header from "../components/Header";
import Logo from "../images/LogoAQ1.svg";
const defaultTitle =
{
name: 'Arcade Quest',
url: '*'
}
const defaultGames = [
{
game: 'Donkey Kong.',
type: 'arcade'
},
{
game: 'Crystal Castle.',
type: 'arcade'
},
{
game: 'Galaga.',
type: 'arcade'
},
{
game: 'Gaulent.',
type: 'arcade'
},
]
function Main() {
const [position, setPosition] = useState({ lat: 47.6101, lng: -122.2015 });
const [resOther, setOther] = useState([]);
const [resArcade, setArcade] = useState([]);
const [resBar, setBar] = useState([]);
const [newRes, setNewRes] = useState([]);
const [newSrc, setNewsrc] = useState(Logo);
const [newTitle, setTitle] = useState(defaultTitle);
const [newGame, setGame] = useState(defaultGames)
// const [param, setParam] = useState(0)
// const [count , setcount] = useState(0)
// console.log(location)
function handleMarkerClick(mark) {
// console.log(mark);
axios.get(`/api/businessArcades/${mark}`).then((response) => {
// console.log(response.data.photoRef);
setNewsrc(
`https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=${response.data.photoRef}&key=AIzaSyCAGBQZGrklbGFY3rBelRBQ_m0yzc4pd5w`
);
// console.log(response.data.Arcades)
setTitle(response.data)
setGame(response.data.Arcades)
});
}
useEffect(() => {
axios
.get(`/api/allBusinesses`)
.then((response) => {
// console.log(response.data);
const others = response.data.filter(
(business) => business.type === "other"
);
const arcade = response.data.filter(
(business) => business.type === "arcade"
);
const bars = response.data.filter(
(business) => business.type === "bar"
);
const restaurant = response.data.filter(
(business) => business.type === "restaurant"
);
setOther(others);
setArcade(arcade);
setBar(bars);
setNewRes(restaurant);
// console.log(response.data);
})
.catch((err) => {
console.log(err);
});
navigator.geolocation.getCurrentPosition((location) => {
let { latitude, longitude } = location.coords;
setPosition({ lat: latitude, lng: longitude });
});
}, []);
return (
<div>
<NavigationBar></NavigationBar>
<div>
<div className="wrapper">
<Header></Header>
<div className="container-one"> | <div style={{ width: "700px", height: "550px" }}>
<WrappedMap
res={newRes}
other={resOther}
arcades={resArcade}
bar={resBar}
handleClick={handleMarkerClick}
// showNew={newMarker}
position={position}
googleMapURL={
"https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places&key=AIzaSyCAGBQZGrklbGFY3rBelRBQ_m0yzc4pd5w"
}
loadingElement={<div style={{ height: "100%" }} />}
containerElement={<div style={{ height: "100%" }} />}
mapElement={<div style={{ height: "100%" }} />}
/>
</div>
</div>
<InfoCard src={newSrc}
title={newTitle}
game={newGame}
> </InfoCard>
</div>
</div>
</div>
</div>
);
}
export default Main; |
<div className="map"> |
server.rs | // Copyright (C) 2021 Alibaba Cloud. All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
use std::collections::HashMap;
use std::io::Result;
use std::mem;
use std::net::Shutdown;
use std::os::unix::io::{AsRawFd, RawFd};
use std::os::unix::net::UnixStream;
use std::sync::atomic::{AtomicBool, AtomicU32, AtomicU64, Ordering};
use std::sync::{Arc, Mutex, MutexGuard};
use vm_memory::ByteValued;
use crate::remote::client::RemoteBlobMgr;
use crate::remote::connection::{Endpoint, Listener};
use crate::remote::message::{
FetchRangeReply, FetchRangeRequest, GetBlobReply, GetBlobRequest, MsgHeader, MsgValidator,
RequestCode,
};
/// Remote blob manager client connection and state.
pub struct ClientConnection {
conn: Mutex<Endpoint>,
exiting: AtomicBool,
id: u64,
state: ServerState,
token: AtomicU32,
uds: UnixStream,
}
impl ClientConnection {
fn new(server: ServerState, id: u64, sock: UnixStream) -> Result<Self> {
let uds = sock.try_clone()?;
if id > u32::MAX as u64 {
return Err(einval!("ran out of connection id"));
}
Ok(Self {
conn: Mutex::new(Endpoint::from_stream(sock)),
exiting: AtomicBool::new(false),
id,
state: server,
token: AtomicU32::new(1),
uds,
})
}
fn shutdown(&self) {
if !self.exiting.swap(true, Ordering::AcqRel) {
let _ = self.uds.shutdown(Shutdown::Both);
}
}
/// Close the connection.
pub fn close(&self) {
let id = self.id;
let entry = self.state.lock_clients().remove(&id);
if let Some(conn) = entry {
conn.shutdown();
}
}
/// Get a unique identifier for the client connection.
pub fn id(&self) -> u32 {
self.id as u32
}
fn handle_message(&self) -> Result<bool> {
if self.exiting.load(Ordering::Acquire) {
return Ok(false);
}
let mut guard = self.lock_conn();
let (mut hdr, _files) = guard.recv_header().map_err(|e| eio!(format!("{}", e)))?;
match hdr.get_code() {
RequestCode::Noop => self.handle_noop(&mut hdr, guard)?,
RequestCode::GetBlob => self.handle_get_blob(&mut hdr, guard)?,
RequestCode::FetchRange => self.handle_fetch_range(&mut hdr, guard)?,
cmd => {
let msg = format!("unknown request command {}", u32::from(cmd));
return Err(einval!(msg));
}
}
Ok(true)
}
fn handle_noop(&self, hdr: &mut MsgHeader, mut guard: MutexGuard<Endpoint>) -> Result<()> {
let size = hdr.get_size() as usize;
if !hdr.is_valid() || size != 0 {
return Err(eio!("invalid noop request message"));
}
hdr.set_reply(true);
guard.send_header(&hdr, None).map_err(|_e| eio!())
}
fn handle_get_blob(&self, hdr: &mut MsgHeader, mut guard: MutexGuard<Endpoint>) -> Result<()> {
let size = hdr.get_size() as usize;
if !hdr.is_valid() || size != mem::size_of::<GetBlobRequest>() {
return Err(eio!("invalid get blob request message"));
}
let (sz, data) = guard.recv_data(size).map_err(|e| eio!(format!("{}", e)))?;
if sz != size || data.len() != size {
return Err(einval!("invalid get blob request message"));
}
drop(guard);
let mut msg = GetBlobRequest::default();
msg.as_mut_slice().copy_from_slice(&data);
// TODO
let token = self.token.fetch_add(1, Ordering::AcqRel) as u64;
let gen = (msg.generation as u64) << 32;
let reply = GetBlobReply::new(gen | token, 0, libc::ENOSYS as u32);
let mut guard = self.lock_conn();
hdr.set_reply(true);
guard.send_message(&hdr, &reply, None).map_err(|_e| eio!())
}
fn | (
&self,
hdr: &mut MsgHeader,
mut guard: MutexGuard<Endpoint>,
) -> Result<()> {
let size = hdr.get_size() as usize;
if !hdr.is_valid() || size != mem::size_of::<FetchRangeRequest>() {
return Err(eio!("invalid fetch range request message"));
}
let (sz, data) = guard.recv_data(size).map_err(|e| eio!(format!("{}", e)))?;
if sz != size || data.len() != size {
return Err(einval!("invalid fetch range request message"));
}
drop(guard);
// TODO
let mut msg = FetchRangeRequest::default();
msg.as_mut_slice().copy_from_slice(&data);
let reply = FetchRangeReply::new(0, msg.count, 0);
let mut guard = self.lock_conn();
hdr.set_reply(true);
guard.send_message(&hdr, &reply, None).map_err(|_e| eio!())
}
fn lock_conn(&self) -> MutexGuard<Endpoint> {
// Do not expect poisoned lock.
self.conn.lock().unwrap()
}
}
impl AsRawFd for ClientConnection {
fn as_raw_fd(&self) -> RawFd {
let guard = self.lock_conn();
guard.as_raw_fd()
}
}
#[derive(Clone)]
struct ServerState {
active_workers: Arc<AtomicU64>,
clients: Arc<Mutex<HashMap<u64, Arc<ClientConnection>>>>,
}
impl ServerState {
fn new() -> Self {
Self {
active_workers: Arc::new(AtomicU64::new(0)),
clients: Arc::new(Mutex::new(HashMap::new())),
}
}
fn add(&self, id: u64, client: Arc<ClientConnection>) {
self.lock_clients().insert(id, client);
}
fn remove(&self, id: u64) {
self.lock_clients().remove(&id);
}
fn lock_clients(&self) -> MutexGuard<HashMap<u64, Arc<ClientConnection>>> {
// Do not expect poisoned lock here.
self.clients.lock().unwrap()
}
}
/// Blob server to accept connections from clients.
pub struct Server {
sock: String,
next_id: AtomicU64,
exiting: AtomicBool,
listener: Listener,
state: ServerState,
}
impl Server {
/// Create a new instance of `Server` to accept connections from clients.
pub fn new(sock: &str) -> Result<Self> {
let listener = Listener::new(sock, true).map_err(|_e| eio!())?;
Ok(Server {
sock: sock.to_owned(),
next_id: AtomicU64::new(1024),
exiting: AtomicBool::new(false),
listener,
state: ServerState::new(),
})
}
/// Start a worker thread to handle incoming connections from clients.
pub fn start(server: Arc<Server>) -> Result<()> {
server
.listener
.set_nonblocking(false)
.map_err(|_e| eio!())?;
std::thread::spawn(move || {
server.state.active_workers.fetch_add(1, Ordering::Acquire);
'listen: loop {
if server.exiting.load(Ordering::Acquire) {
break 'listen;
}
match server.listener.accept() {
Ok(Some(sock)) => {
let id = server.next_id.fetch_add(1, Ordering::AcqRel);
let client = match ClientConnection::new(server.state.clone(), id, sock) {
Ok(v) => v,
Err(e) => {
warn!("failed to duplicate unix domain socket, {}", e);
break 'listen;
}
};
let client = Arc::new(client);
client.state.add(id, client.clone());
std::thread::spawn(move || {
client.state.active_workers.fetch_add(1, Ordering::AcqRel);
loop {
if let Err(e) = client.handle_message() {
warn!("failed to handle request, {}", e);
break;
}
}
client.state.active_workers.fetch_sub(1, Ordering::AcqRel);
client.state.remove(client.id);
client.shutdown();
});
}
Ok(None) => {}
Err(e) => {
error!("failed to accept connection, {}", e);
break 'listen;
}
}
}
server.state.active_workers.fetch_sub(1, Ordering::AcqRel);
});
Ok(())
}
/// Shutdown the listener and all active client connections.
pub fn stop(&self) {
if !self.exiting.swap(true, Ordering::AcqRel) {
if self.state.active_workers.load(Ordering::Acquire) > 0 {
// Hacky way to wake up the listener threads from accept().
let client = RemoteBlobMgr::new("".to_owned(), &self.sock).unwrap();
let _ = client.connect();
}
let mut guard = self.state.lock_clients();
for (_token, client) in guard.iter() {
client.shutdown();
}
guard.clear();
}
}
/// Close the client connection with `id`.
pub fn close_connection(&self, id: u32) {
let id = id as u64;
let entry = self.state.lock_clients().remove(&id);
if let Some(conn) = entry {
conn.shutdown();
}
}
pub fn handle_event(&self, id: u32) -> Result<()> {
let id64 = id as u64;
let conn = self.state.lock_clients().get(&id64).cloned();
if let Some(c) = conn {
match c.handle_message() {
Ok(true) => Ok(()),
Ok(false) => Err(eother!("client connection is shutting down")),
Err(e) => Err(e),
}
} else {
Err(enoent!("client connect doesn't exist"))
}
}
/// Accept one incoming connection from client.
pub fn handle_incoming_connection(&self) -> Result<Option<Arc<ClientConnection>>> {
if self.exiting.load(Ordering::Acquire) {
return Err(eio!("server shutdown"));
}
match self.listener.accept() {
Err(e) => Err(eio!(format!("failed to accept incoming connection, {}", e))),
Ok(None) => Ok(None),
Ok(Some(sock)) => {
let id = self.next_id.fetch_add(1, Ordering::AcqRel);
if id <= u32::MAX as u64 {
let client = Arc::new(ClientConnection::new(self.state.clone(), id, sock)?);
client.state.add(id, client.clone());
Ok(Some(client))
} else {
// Running out of connection id, reject the incoming connection.
Ok(None)
}
}
}
}
}
impl AsRawFd for Server {
fn as_raw_fd(&self) -> RawFd {
self.listener.as_raw_fd()
}
}
#[cfg(test)]
mod tests {
use super::*;
use std::time::Duration;
use vmm_sys_util::tempdir::TempDir;
#[test]
fn test_new_server() {
let tmpdir = TempDir::new().unwrap();
let sock = tmpdir.as_path().to_str().unwrap().to_owned() + "/test_sock1";
let server = Arc::new(Server::new(&sock).unwrap());
assert_eq!(server.state.active_workers.load(Ordering::Relaxed), 0);
Server::start(server.clone()).unwrap();
std::thread::sleep(Duration::from_secs(1));
assert_eq!(server.state.active_workers.load(Ordering::Relaxed), 1);
let client = RemoteBlobMgr::new("".to_owned(), &server.sock).unwrap();
client.connect().unwrap();
std::thread::sleep(Duration::from_secs(1));
assert_eq!(server.state.active_workers.load(Ordering::Relaxed), 2);
client.shutdown();
std::thread::sleep(Duration::from_secs(1));
assert_eq!(server.state.active_workers.load(Ordering::Relaxed), 1);
assert_eq!(server.state.clients.lock().unwrap().len(), 0);
let client = RemoteBlobMgr::new("".to_owned(), &server.sock).unwrap();
client.connect().unwrap();
std::thread::sleep(Duration::from_secs(1));
assert_eq!(server.state.active_workers.load(Ordering::Relaxed), 2);
let client = Arc::new(client);
client.start().unwrap();
client.ping().unwrap();
server.stop();
std::thread::sleep(Duration::from_secs(1));
assert_eq!(server.state.active_workers.load(Ordering::Relaxed), 0);
}
#[test]
fn test_reconnect() {
let tmpdir = TempDir::new().unwrap();
let sock = tmpdir.as_path().to_str().unwrap().to_owned() + "/test_sock1";
let server = Arc::new(Server::new(&sock).unwrap());
Server::start(server.clone()).unwrap();
let client = RemoteBlobMgr::new("".to_owned(), &server.sock).unwrap();
client.connect().unwrap();
std::thread::sleep(Duration::from_secs(4));
client.start().unwrap();
client.ping().unwrap();
server.stop();
std::thread::sleep(Duration::from_secs(4));
assert_eq!(server.state.active_workers.load(Ordering::Relaxed), 0);
drop(server);
let server = Arc::new(Server::new(&sock).unwrap());
Server::start(server).unwrap();
client.ping().unwrap();
}
}
| handle_fetch_range |
ShopCollectOutlined.tsx |
const ShopCollectOutlined = createVanIconComponent("shop-collect-o")
export default ShopCollectOutlined | import { createVanIconComponent } from "./van"
import "./style" |
|
instance.go | // Copyright 2021 Liuxiangchao [email protected]. All rights reserved.
package goman
import "time"
type Instance struct {
Id uint64
CreatedTime time.Time | } | File string
Line int |
215 Kth Largest Element in an Array.py | class Solution(object):
| def findKthLargest(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: int
"""
pivot = random.choice(nums);
nums1, nums2 = [], []
for num in nums:
if num > pivot:
nums1.append(num)
elif num < pivot:
nums2.append(num)
if k <= len(nums1):
return self.findKthLargest(nums1, k)
if k > len(nums) - len(nums2): # draw a graph to visualize it! It's not in the top k assortment, but in the small section
return self.findKthLargest(nums2, k - (len(nums) - len(nums2)))
return pivot |
|
protect_action.py | # coding: utf-8
"""
Pdf4me
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class ProtectAction(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'user_password': 'str',
'owner_password': 'str',
'unlock': 'bool',
'permissions': 'list[str]',
'action_id': 'str'
}
attribute_map = {
'user_password': 'userPassword',
'owner_password': 'ownerPassword',
'unlock': 'unlock',
'permissions': 'permissions',
'action_id': 'actionId'
}
def __init__(self, user_password=None, owner_password=None, unlock=None, permissions=None, action_id=None): # noqa: E501
"""ProtectAction - a model defined in Swagger""" # noqa: E501
self._user_password = None
self._owner_password = None
self._unlock = None
self._permissions = None
self._action_id = None
self.discriminator = None
if user_password is not None:
self.user_password = user_password
if owner_password is not None:
self.owner_password = owner_password
if unlock is not None:
self.unlock = unlock
if permissions is not None:
self.permissions = permissions
if action_id is not None:
self.action_id = action_id
@property
def user_password(self):
"""Gets the user_password of this ProtectAction. # noqa: E501
:return: The user_password of this ProtectAction. # noqa: E501
:rtype: str
"""
return self._user_password
@user_password.setter
def user_password(self, user_password):
"""Sets the user_password of this ProtectAction.
:param user_password: The user_password of this ProtectAction. # noqa: E501
:type: str
"""
self._user_password = user_password
@property
def owner_password(self):
"""Gets the owner_password of this ProtectAction. # noqa: E501
:return: The owner_password of this ProtectAction. # noqa: E501
:rtype: str
"""
return self._owner_password
@owner_password.setter
def owner_password(self, owner_password):
"""Sets the owner_password of this ProtectAction.
:param owner_password: The owner_password of this ProtectAction. # noqa: E501
:type: str
"""
self._owner_password = owner_password
@property
def unlock(self):
"""Gets the unlock of this ProtectAction. # noqa: E501
:return: The unlock of this ProtectAction. # noqa: E501
:rtype: bool
"""
return self._unlock
@unlock.setter
def unlock(self, unlock):
"""Sets the unlock of this ProtectAction.
:param unlock: The unlock of this ProtectAction. # noqa: E501
:type: bool
"""
self._unlock = unlock
@property
def permissions(self):
"""Gets the permissions of this ProtectAction. # noqa: E501
:return: The permissions of this ProtectAction. # noqa: E501
:rtype: list[str]
"""
return self._permissions
@permissions.setter
def permissions(self, permissions):
"""Sets the permissions of this ProtectAction.
:param permissions: The permissions of this ProtectAction. # noqa: E501
:type: list[str]
"""
allowed_values = ["all", "none", "copy", "annotate", "fillForms", "supportDisabilities", "assemble", "digitalPrint", "print", "modify"] # noqa: E501
if not set(permissions).issubset(set(allowed_values)):
raise ValueError(
"Invalid values for `permissions` [{0}], must be a subset of [{1}]" # noqa: E501
.format(", ".join(map(str, set(permissions) - set(allowed_values))), # noqa: E501
", ".join(map(str, allowed_values)))
)
self._permissions = permissions
@property
def action_id(self):
"""Gets the action_id of this ProtectAction. # noqa: E501
:return: The action_id of this ProtectAction. # noqa: E501
:rtype: str
"""
return self._action_id
@action_id.setter
def action_id(self, action_id):
"""Sets the action_id of this ProtectAction.
:param action_id: The action_id of this ProtectAction. # noqa: E501
:type: str
"""
self._action_id = action_id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
|
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ProtectAction, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ProtectAction):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
| result[attr] = value.to_dict() |
index.ts | import { Options, transform, transformSync } from '@builder/swc';
import webpack from 'webpack';
import { RawSource, SourceMapSource } from 'webpack-sources';
const { version } = require('../package.json');
export interface MinifyPluginOptions extends Options {
sync?: boolean;
minify?: boolean;
}
const isWebpack5 = (compilation: webpack.Compilation) => 'processAssets' in compilation.hooks;
const isJsFile = /\.[cm]?js(\?.*)?$/i;
const pluginName = 'swc-minify';
export class SWCMinifyPlugin {
private readonly sync: boolean; |
private readonly options: Options;
constructor(options: MinifyPluginOptions = {}) {
const { sync, ...restOptions } = options;
this.sync = sync;
this.options = restOptions;
if (typeof options.minify === 'undefined') {
this.options.minify = true;
}
}
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
apply(compiler: webpack.Compiler) {
const meta = JSON.stringify({ name: pluginName, version, options: this.options });
compiler.hooks.compilation.tap(pluginName, compilation => {
compilation.hooks.chunkHash.tap(pluginName, (_, hash) => hash.update(meta));
const tapMethod = this.sync ? 'tap' : 'tapPromise';
if (isWebpack5(compilation)) {
compilation.hooks.processAssets[tapMethod](
{
name: pluginName,
stage: (compilation.constructor as any).PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE,
additionalAssets: true,
},
() => this.transformAssets(compilation),
);
compilation.hooks.statsPrinter.tap(pluginName, statsPrinter => {
statsPrinter.hooks.print
.for('asset.info.minimized')
.tap(pluginName, (minimized, { green, formatFlag }) =>
minimized ? green(formatFlag('minimized')) : undefined,
);
});
} else {
compilation.hooks.optimizeChunkAssets[tapMethod](pluginName, () => this.transformAssets(compilation));
}
});
}
private async transformAssets(compilation: webpack.Compilation) {
const {
options: { devtool },
} = compilation.compiler;
const sourcemap = !!devtool;
const assets = compilation.getAssets().filter(asset => !asset.info.minimized && isJsFile.test(asset.name));
if (this.sync) {
return this.processAssetsSync(assets, sourcemap, compilation);
} else {
return this.processAssets(assets, sourcemap, compilation);
}
}
private processAssetsSync(assets: webpack.Asset[], sourcemap: boolean, compilation: webpack.Compilation) {
assets.forEach(asset => {
const { source, map } = asset.source.sourceAndMap();
const sourceAsString = source.toString();
const result = transformSync(sourceAsString, {
...this.options,
sourceMaps: sourcemap,
sourceFileName: asset.name,
});
compilation.updateAsset(
asset.name,
sourcemap
? new SourceMapSource(result.code, asset.name, result.map as any, sourceAsString, map as any, true)
: new RawSource(result.code),
{
...asset.info,
minimized: true,
},
);
});
}
private async processAssets(
assets: webpack.Asset[],
sourcemap: boolean,
compilation: webpack.Compilation,
) {
await Promise.all(
assets.map(async asset => {
const { source, map } = asset.source.sourceAndMap();
const sourceAsString = source.toString();
const result = await transform(sourceAsString, {
...this.options,
sourceMaps: sourcemap,
sourceFileName: asset.name,
});
compilation.updateAsset(
asset.name,
sourcemap
? new SourceMapSource(result.code, asset.name, result.map as any, sourceAsString, map as any, true)
: new RawSource(result.code),
{
...asset.info,
minimized: true,
},
);
}),
);
}
} | |
session.rs | use cassandra_protocol::compression::Compression;
use cassandra_protocol::consistency::Consistency;
use cassandra_protocol::error;
use cassandra_protocol::events::ServerEvent;
use cassandra_protocol::frame::frame_result::{BodyResResultPrepared, TableSpec};
use cassandra_protocol::frame::{Frame, Serialize, Version};
use cassandra_protocol::query::utils::prepare_flags;
use cassandra_protocol::query::{PreparedQuery, Query, QueryBatch, QueryValues};
use cassandra_protocol::token::Murmur3Token;
use cassandra_protocol::types::value::Value;
use cassandra_protocol::types::{CIntShort, SHORT_LEN};
use futures::stream::FuturesUnordered;
use futures::{FutureExt, StreamExt};
use itertools::Itertools;
use lazy_static::lazy_static;
use std::io::{Cursor, Write};
use std::marker::PhantomData;
use std::net::SocketAddr;
use std::sync::{Arc, Mutex};
use tokio::sync::broadcast::{channel, Receiver, Sender};
use tokio::sync::watch;
use tokio::task::JoinHandle;
use tokio::time::sleep;
use tokio::{pin, select};
use tracing::*;
use crate::cluster::connection_manager::ConnectionManager;
use crate::cluster::connection_pool::{ConnectionPoolConfig, ConnectionPoolFactory};
use crate::cluster::control_connection::ControlConnection;
#[cfg(feature = "rust-tls")]
use crate::cluster::rustls_connection_manager::RustlsConnectionManager;
use crate::cluster::send_frame::send_frame;
use crate::cluster::tcp_connection_manager::TcpConnectionManager;
use crate::cluster::topology::{Node, NodeDistance, NodeState};
#[cfg(feature = "rust-tls")]
use crate::cluster::NodeRustlsConfig;
use crate::cluster::{ClusterMetadata, ClusterMetadataManager, SessionContext};
use crate::cluster::{GenericClusterConfig, KeyspaceHolder};
use crate::cluster::{NodeTcpConfig, SessionPager};
use crate::load_balancing::node_distance_evaluator::AllLocalNodeDistanceEvaluator;
use crate::load_balancing::node_distance_evaluator::NodeDistanceEvaluator;
use crate::load_balancing::{
InitializingWrapperLoadBalancingStrategy, LoadBalancingStrategy, QueryPlan, Request,
};
use crate::retry::{
DefaultRetryPolicy, ExponentialReconnectionPolicy, ReconnectionPolicy, RetryPolicy,
};
use crate::speculative_execution::{Context, SpeculativeExecutionPolicy};
use crate::statement::{StatementParams, StatementParamsBuilder};
#[cfg(feature = "rust-tls")]
use crate::transport::TransportRustls;
use crate::transport::{CdrsTransport, TransportTcp};
pub const DEFAULT_TRANSPORT_BUFFER_SIZE: usize = 1024;
const DEFAULT_EVENT_CHANNEL_CAPACITY: usize = 128;
lazy_static! {
static ref DEFAULT_STATEMET_PARAMETERS: StatementParams = Default::default();
}
fn create_keyspace_holder() -> (Arc<KeyspaceHolder>, watch::Receiver<Option<String>>) {
let (keyspace_sender, keyspace_receiver) = watch::channel(None);
(
Arc::new(KeyspaceHolder::new(keyspace_sender)),
keyspace_receiver,
)
}
// https://github.com/apache/cassandra/blob/3a950b45c321e051a9744721408760c568c05617/src/java/org/apache/cassandra/db/marshal/CompositeType.java#L39
fn serialize_routing_value(cursor: &mut Cursor<&mut Vec<u8>>, value: &Value) {
let temp_size: CIntShort = 0;
temp_size.serialize(cursor);
let before_value_pos = cursor.position();
value.serialize(cursor);
let after_value_pos = cursor.position();
cursor.set_position(before_value_pos - SHORT_LEN as u64);
let value_size: CIntShort = (after_value_pos - before_value_pos) as CIntShort;
value_size.serialize(cursor);
cursor.set_position(after_value_pos);
let _ = cursor.write(&[0]);
}
fn serialize_routing_key_with_indexes(values: &[Value], pk_indexes: &[i16]) -> Option<Vec<u8>> {
match pk_indexes.len() {
0 => None,
1 => values
.get(pk_indexes[0] as usize)
.map(|value| value.serialize_to_vec()),
_ => {
let mut buf = vec![];
if pk_indexes
.iter()
.map(|index| values.get(*index as usize))
.fold_options(Cursor::new(&mut buf), |mut cursor, value| {
serialize_routing_value(&mut cursor, value);
cursor
})
.is_some()
{
Some(buf)
} else {
None
}
}
}
}
fn serialize_routing_key(values: &[Value]) -> Vec<u8> {
match values.len() {
0 => vec![],
1 => values[0].serialize_to_vec(),
_ => {
let mut buf = vec![];
let mut cursor = Cursor::new(&mut buf);
for value in values {
serialize_routing_value(&mut cursor, value);
}
buf
}
}
}
/// CDRS session that holds a pool of connections to nodes and provides an interface for
/// interacting with the cluster.
pub struct Session<
T: CdrsTransport + 'static,
CM: ConnectionManager<T> + 'static,
LB: LoadBalancingStrategy<T, CM> + Send + Sync,
> {
load_balancing: Arc<InitializingWrapperLoadBalancingStrategy<T, CM, LB>>,
keyspace_holder: Arc<KeyspaceHolder>,
retry_policy: Box<dyn RetryPolicy + Send + Sync>,
speculative_execution_policy: Option<Box<dyn SpeculativeExecutionPolicy + Send + Sync>>,
control_connection_handle: JoinHandle<()>,
event_sender: Sender<ServerEvent>,
cluster_metadata_manager: Arc<ClusterMetadataManager<T, CM>>,
_transport: PhantomData<T>,
_connection_manager: PhantomData<CM>,
version: Version,
}
impl<
T: CdrsTransport + 'static,
CM: ConnectionManager<T>,
LB: LoadBalancingStrategy<T, CM> + Send + Sync,
> Drop for Session<T, CM, LB>
{
fn drop(&mut self) {
self.control_connection_handle.abort();
}
}
impl<
T: CdrsTransport + 'static,
CM: ConnectionManager<T> + Send + Sync + 'static,
LB: LoadBalancingStrategy<T, CM> + Send + Sync + 'static,
> Session<T, CM, LB>
{
/// Returns new `SessionPager` that can be used for performing paged queries.
pub fn paged(&self, page_size: i32) -> SessionPager<T, CM, LB> {
SessionPager::new(self, page_size)
}
/// Executes given prepared query with query parameters.
pub async fn exec_with_params(
&self,
prepared: &PreparedQuery,
parameters: &StatementParams,
) -> error::Result<Frame> {
let consistency = parameters.query_params.consistency;
let flags = prepare_flags(parameters.tracing, parameters.warnings);
let options_frame =
Frame::new_req_execute(&prepared.id, ¶meters.query_params, flags, self.version);
let keyspace = prepared
.keyspace
.as_deref()
.or_else(|| parameters.keyspace.as_deref());
let routing_key = parameters
.query_params
.values
.as_ref()
.and_then(|values| match values {
QueryValues::SimpleValues(values) => {
serialize_routing_key_with_indexes(values, &prepared.pk_indexes).or_else(|| {
parameters
.routing_key
.as_ref()
.map(|values| serialize_routing_key(values))
})
}
QueryValues::NamedValues(_) => None,
});
let mut result = self
.send_frame(
options_frame,
parameters.is_idempotent,
keyspace,
parameters.token,
routing_key.as_deref(),
Some(consistency),
parameters.speculative_execution_policy.as_ref(),
parameters.retry_policy.as_ref(),
)
.await;
if let Err(error::Error::Server(error)) = &result {
// if query is unprepared
if error.error_code == 0x2500 {
debug!("Re-preparing statement.");
if let Ok(new) = self.prepare_raw(&prepared.query).await {
// re-prepare the statement and check the resulting id - it should remain the
// same as the old one, except when schema changed in the meantime, in which
// case, the client should have the knowledge how to handle it
// see: https://issues.apache.org/jira/browse/CASSANDRA-10786
if prepared.id != new.id {
return Err("Re-preparing an unprepared statement resulted in a different id - probably schema changed on the server.".into());
}
let flags = prepare_flags(parameters.tracing, parameters.warnings);
let options_frame = Frame::new_req_execute(
&new.id,
¶meters.query_params,
flags,
self.version,
);
result = self
.send_frame(
options_frame,
parameters.is_idempotent,
keyspace,
parameters.token,
routing_key.as_deref(),
Some(consistency),
parameters.speculative_execution_policy.as_ref(),
parameters.retry_policy.as_ref(),
)
.await;
}
}
}
result
}
/// Executes given prepared query with query values.
pub async fn exec_with_values<V: Into<QueryValues>>(
&self,
prepared: &PreparedQuery,
values: V,
) -> error::Result<Frame> {
self.exec_with_params(
prepared,
&StatementParamsBuilder::new()
.with_values(values.into())
.build(),
)
.await
}
/// Executes given prepared query.
#[inline]
pub async fn exec(&self, prepared: &PreparedQuery) -> error::Result<Frame> {
self.exec_with_params(prepared, &DEFAULT_STATEMET_PARAMETERS)
.await
}
/// Prepares a query for execution. Along with query itself, the
/// method takes `with_tracing` and `with_warnings` flags to get
/// tracing information and warnings. Returns the raw prepared
/// query result.
pub async fn prepare_raw_tw<Q: ToString>(
&self,
query: Q,
with_tracing: bool,
with_warnings: bool,
) -> error::Result<BodyResResultPrepared> {
let flags = prepare_flags(with_tracing, with_warnings);
let query_frame = Frame::new_req_prepare(query.to_string(), flags, self.version);
self.send_frame(query_frame, false, None, None, None, None, None, None)
.await
.and_then(|response| response.response_body())
.and_then(|body| {
body.into_prepared()
.ok_or_else(|| "CDRS BUG: cannot convert frame into prepared".into())
})
}
/// Prepares query without additional tracing information and warnings.
/// Returns the raw prepared query result.
#[inline]
pub async fn prepare_raw<Q: ToString>(&self, query: Q) -> error::Result<BodyResResultPrepared> {
self.prepare_raw_tw(query, false, false).await
}
/// Prepares a query for execution. Along with query itself,
/// the method takes `with_tracing` and `with_warnings` flags
/// to get tracing information and warnings. Returns the prepared
/// query.
pub async fn prepare_tw<Q: ToString>(
&self,
query: Q,
with_tracing: bool,
with_warnings: bool,
) -> error::Result<PreparedQuery> {
let s = query.to_string();
self.prepare_raw_tw(query, with_tracing, with_warnings)
.await
.map(|result| PreparedQuery {
id: result.id,
query: s,
keyspace: result
.metadata
.global_table_spec
.map(|TableSpec { ks_name, .. }| ks_name),
pk_indexes: result.metadata.pk_indexes,
})
}
/// It prepares query without additional tracing information and warnings.
/// Returns the prepared query.
#[inline]
pub async fn prepare<Q: ToString>(&self, query: Q) -> error::Result<PreparedQuery> {
self.prepare_tw(query, false, false).await
}
/// Executes batch query.
#[inline]
pub async fn batch(&self, batch: QueryBatch) -> error::Result<Frame> {
self.batch_with_params(batch, &DEFAULT_STATEMET_PARAMETERS)
.await
}
/// Executes batch query with parameters.
pub async fn batch_with_params(
&self,
batch: QueryBatch,
parameters: &StatementParams,
) -> error::Result<Frame> {
let flags = prepare_flags(parameters.tracing, parameters.warnings);
let consistency = batch.consistency;
let query_frame = Frame::new_req_batch(batch, flags, self.version);
self.send_frame(
query_frame,
parameters.is_idempotent,
parameters.keyspace.as_deref(),
None,
None,
Some(consistency),
parameters.speculative_execution_policy.as_ref(),
parameters.retry_policy.as_ref(),
)
.await
}
/// Executes a query.
#[inline]
pub async fn query<Q: ToString>(&self, query: Q) -> error::Result<Frame> {
self.query_with_params(query, DEFAULT_STATEMET_PARAMETERS.clone())
.await
}
/// Executes a query with bounded values (either with or without names).
#[inline]
pub async fn query_with_values<Q: ToString, V: Into<QueryValues>>(
&self,
query: Q,
values: V,
) -> error::Result<Frame> {
self.query_with_params(
query,
StatementParamsBuilder::new()
.with_values(values.into())
.build(),
)
.await
}
/// Executes a query with query parameters.
pub async fn query_with_params<Q: ToString>(
&self,
query: Q,
parameters: StatementParams,
) -> error::Result<Frame> {
let is_idempotent = parameters.is_idempotent;
let consistency = parameters.query_params.consistency;
let keyspace = parameters.keyspace;
let token = parameters.token;
let routing_key = parameters
.routing_key
.as_ref()
.map(|values| serialize_routing_key(values));
let query = Query {
query: query.to_string(),
params: parameters.query_params,
};
let flags = prepare_flags(parameters.tracing, parameters.warnings);
let query_frame = Frame::new_query(query, flags, self.version);
self.send_frame(
query_frame,
is_idempotent,
keyspace.as_deref(),
token,
routing_key.as_deref(),
Some(consistency),
parameters.speculative_execution_policy.as_ref(),
parameters.retry_policy.as_ref(),
)
.await
}
/// Returns currently set global keyspace.
#[inline]
pub fn current_keyspace(&self) -> Option<Arc<String>> {
self.keyspace_holder.current_keyspace()
}
/// Returns current cluster metadata.
#[inline]
pub fn cluster_metadata(&self) -> Arc<ClusterMetadata<T, CM>> {
self.cluster_metadata_manager.metadata()
}
/// Returns query plan for given request. If no request is given, return a generic plan for
/// establishing connection(s) to node(s).
#[inline]
pub fn query_plan(&self, request: Option<Request>) -> QueryPlan<T, CM> {
self.load_balancing
.query_plan(request, self.cluster_metadata().as_ref())
}
/// Creates a new server event receiver. You can use multiple receivers at the same time.
#[inline]
pub fn create_event_receiver(&self) -> Receiver<ServerEvent> {
self.event_sender.subscribe()
}
/// Returns current retry policy.
#[inline]
pub fn retry_policy(&self) -> &dyn RetryPolicy {
self.retry_policy.as_ref()
}
#[allow(clippy::too_many_arguments)]
async fn send_frame(
&self,
frame: Frame,
is_idempotent: bool,
keyspace: Option<&str>,
token: Option<Murmur3Token>,
routing_key: Option<&[u8]>,
consistency: Option<Consistency>,
speculative_execution_policy: Option<&Arc<dyn SpeculativeExecutionPolicy + Send + Sync>>,
retry_policy: Option<&Arc<dyn RetryPolicy + Send + Sync>>,
) -> error::Result<Frame> {
let current_keyspace = self.current_keyspace();
let request = Request::new(
keyspace.or_else(|| current_keyspace.as_ref().map(|keyspace| &***keyspace)),
token,
routing_key,
consistency,
);
let query_plan = self.query_plan(Some(request));
struct SharedQueryPlan<
T: CdrsTransport + 'static,
CM: ConnectionManager<T> + 'static,
I: Iterator<Item = Arc<Node<T, CM>>>,
> {
current_node: Mutex<I>,
}
impl<
T: CdrsTransport + 'static,
CM: ConnectionManager<T> + 'static,
I: Iterator<Item = Arc<Node<T, CM>>>,
> SharedQueryPlan<T, CM, I>
{
fn new(current_node: I) -> Self {
SharedQueryPlan {
current_node: Mutex::new(current_node),
}
}
}
impl<
T: CdrsTransport + 'static,
CM: ConnectionManager<T> + 'static,
I: Iterator<Item = Arc<Node<T, CM>>>,
> Iterator for &SharedQueryPlan<T, CM, I>
{
type Item = Arc<Node<T, CM>>;
fn next(&mut self) -> Option<Self::Item> {
self.current_node.lock().unwrap().next()
}
}
let speculative_execution_policy = speculative_execution_policy
.map(|speculative_execution_policy| speculative_execution_policy.as_ref())
.or_else(|| self.speculative_execution_policy.as_deref());
let retry_policy = retry_policy
.map(|retry_policy| retry_policy.as_ref())
.unwrap_or_else(|| self.retry_policy.as_ref());
match speculative_execution_policy {
Some(speculative_execution_policy) if is_idempotent => {
let shared_query_plan = SharedQueryPlan::new(query_plan.into_iter());
let mut context = Context::new(1);
let mut async_tasks = FuturesUnordered::new();
async_tasks.push(send_frame(
&shared_query_plan,
&frame,
is_idempotent,
retry_policy.new_session(),
));
let sleep_fut = sleep(
speculative_execution_policy
.execution_interval(&context)
.unwrap_or_default(),
)
.fuse();
pin!(sleep_fut);
let mut last_error = None;
loop {
select! {
_ = &mut sleep_fut => {
if let Some(interval) =
speculative_execution_policy.execution_interval(&context)
{
context.running_executions += 1;
async_tasks.push(send_frame(
&shared_query_plan,
&frame,
is_idempotent,
retry_policy.new_session(),
));
sleep_fut.set(sleep(interval).fuse());
}
}
result = async_tasks.select_next_some() => {
match result {
Some(result) => {
match result {
Err(error::Error::Io(_)) | Err(error::Error::Timeout(_)) => {
last_error = Some(result);
},
_ => return result,
}
}
None => {
if async_tasks.is_empty() {
// at this point, we exhausted all available nodes and
// there's no request in flight, which can potentially
// reach a node
return last_error.unwrap_or_else(|| Err("No nodes available in query plan!".into()));
}
}
}
}
}
}
}
_ => send_frame(
query_plan.into_iter(),
&frame,
is_idempotent,
retry_policy.new_session(),
)
.await
.unwrap_or_else(|| Err("No nodes available in query plan!".into())),
}
}
#[allow(clippy::too_many_arguments)]
fn new(
load_balancing: LB,
keyspace_holder: Arc<KeyspaceHolder>,
keyspace_receiver: watch::Receiver<Option<String>>,
retry_policy: Box<dyn RetryPolicy + Send + Sync>,
reconnection_policy: Arc<dyn ReconnectionPolicy + Send + Sync>,
node_distance_evaluator: Box<dyn NodeDistanceEvaluator + Send + Sync>,
speculative_execution_policy: Option<Box<dyn SpeculativeExecutionPolicy + Send + Sync>>,
contact_points: Vec<SocketAddr>,
connection_manager: CM,
event_channel_capacity: usize,
version: Version,
connection_pool_config: ConnectionPoolConfig,
) -> Self {
let connection_pool_factory = Arc::new(ConnectionPoolFactory::new(
connection_pool_config,
version,
connection_manager,
keyspace_receiver,
));
let contact_points = contact_points
.into_iter()
.map(|contact_point| {
Arc::new(Node::new_with_state(
connection_pool_factory.clone(),
contact_point,
None,
None,
// assume contact points are local until refresh
Some(NodeDistance::Local),
NodeState::Up,
Default::default(),
// as with distance, rack/dc is unknown until refresh
"".into(),
"".into(),
))
})
.collect_vec();
let load_balancing = Arc::new(InitializingWrapperLoadBalancingStrategy::new(
load_balancing,
contact_points.clone(),
));
let (event_sender, event_receiver) = channel(event_channel_capacity);
let session_context = Arc::new(SessionContext::default());
let cluster_metadata_manager = Arc::new(ClusterMetadataManager::new(
contact_points.clone(),
connection_pool_factory,
session_context.clone(),
node_distance_evaluator,
version,
));
cluster_metadata_manager
.clone()
.listen_to_events(event_receiver);
let control_connection = ControlConnection::new(
load_balancing.clone(),
contact_points,
reconnection_policy.clone(),
cluster_metadata_manager.clone(),
event_sender.clone(),
session_context,
version,
);
let control_connection_handle = tokio::spawn(control_connection.run());
Session {
load_balancing,
keyspace_holder,
retry_policy,
speculative_execution_policy,
control_connection_handle,
event_sender,
cluster_metadata_manager,
_transport: Default::default(),
_connection_manager: Default::default(),
version,
}
}
}
/// Workaround for <https://github.com/rust-lang/rust/issues/63033>
#[repr(transparent)]
pub struct RetryPolicyWrapper(pub Box<dyn RetryPolicy + Send + Sync>);
/// Workaround for <https://github.com/rust-lang/rust/issues/63033>
#[repr(transparent)]
pub struct ReconnectionPolicyWrapper(pub Arc<dyn ReconnectionPolicy + Send + Sync>);
/// Workaround for <https://github.com/rust-lang/rust/issues/63033>
#[repr(transparent)]
pub struct NodeDistanceEvaluatorWrapper(pub Box<dyn NodeDistanceEvaluator + Send + Sync>);
/// Workaround for <https://github.com/rust-lang/rust/issues/63033>
#[repr(transparent)]
pub struct SpeculativeExecutionPolicyWrapper(pub Box<dyn SpeculativeExecutionPolicy + Send + Sync>);
/// This function uses a user-supplied connection configuration to initialize all the
/// connections in the session. It can be used to supply your own transport and load
/// balancing mechanisms in order to support unusual node discovery mechanisms
/// or configuration needs.
///
/// The config object supplied differs from the [`NodeTcpConfig`] and [`NodeRustlsConfig`]
/// objects in that it is not expected to include an address. Instead the same configuration
/// will be applied to all connections across the cluster.
pub async fn connect_generic<T, C, A, CM, LB>(
config: &C,
initial_nodes: A,
load_balancing: LB,
retry_policy: RetryPolicyWrapper,
reconnection_policy: ReconnectionPolicyWrapper,
node_distance_evaluator: NodeDistanceEvaluatorWrapper,
speculative_execution_policy: Option<SpeculativeExecutionPolicyWrapper>,
) -> error::Result<Session<T, CM, LB>>
where
A: IntoIterator<Item = SocketAddr>,
T: CdrsTransport + 'static,
CM: ConnectionManager<T> + Send + Sync + 'static,
C: GenericClusterConfig<T, CM>,
LB: LoadBalancingStrategy<T, CM> + Sized + Send + Sync + 'static,
{
let (keyspace_holder, keyspace_receiver) = create_keyspace_holder();
let connection_manager = config.create_manager(keyspace_holder.clone()).await?;
Ok(Session::new(
load_balancing,
keyspace_holder,
keyspace_receiver,
retry_policy.0,
reconnection_policy.0,
node_distance_evaluator.0,
speculative_execution_policy.map(|policy| policy.0),
initial_nodes.into_iter().collect(),
connection_manager,
config.event_channel_capacity(),
config.version(),
config.connection_pool_config(),
))
}
struct SessionConfig<
T: CdrsTransport,
CM: ConnectionManager<T>,
LB: LoadBalancingStrategy<T, CM> + Send + Sync,
> {
compression: Compression,
transport_buffer_size: usize,
tcp_nodelay: bool,
load_balancing: LB,
retry_policy: Box<dyn RetryPolicy + Send + Sync>,
reconnection_policy: Arc<dyn ReconnectionPolicy + Send + Sync>,
node_distance_evaluator: Box<dyn NodeDistanceEvaluator + Send + Sync>,
speculative_execution_policy: Option<Box<dyn SpeculativeExecutionPolicy + Send + Sync>>,
event_channel_capacity: usize,
connection_pool_config: ConnectionPoolConfig,
keyspace: Option<String>,
_connection_manager: PhantomData<CM>,
_transport: PhantomData<T>,
}
impl<
T: CdrsTransport,
CM: ConnectionManager<T>,
LB: LoadBalancingStrategy<T, CM> + Send + Sync + 'static,
> SessionConfig<T, CM, LB>
{
fn new(load_balancing: LB) -> Self {
SessionConfig {
compression: Compression::None,
transport_buffer_size: DEFAULT_TRANSPORT_BUFFER_SIZE,
tcp_nodelay: true,
load_balancing,
retry_policy: Box::new(DefaultRetryPolicy::default()),
reconnection_policy: Arc::new(ExponentialReconnectionPolicy::default()),
node_distance_evaluator: Box::new(AllLocalNodeDistanceEvaluator::default()),
speculative_execution_policy: None,
event_channel_capacity: DEFAULT_EVENT_CHANNEL_CAPACITY,
connection_pool_config: Default::default(),
keyspace: None,
_connection_manager: Default::default(),
_transport: Default::default(),
}
}
fn into_session(
self,
keyspace_holder: Arc<KeyspaceHolder>,
keyspace_receiver: watch::Receiver<Option<String>>,
contact_points: Vec<SocketAddr>,
connection_manager: CM,
version: Version,
) -> Session<T, CM, LB> |
}
/// Builder for easy `Session` creation. Requires static `LoadBalancingStrategy`, but otherwise, other
/// configuration parameters can be dynamically set. Use concrete implementers to create specific
/// sessions.
pub trait SessionBuilder<
T: CdrsTransport + 'static,
CM: ConnectionManager<T>,
LB: LoadBalancingStrategy<T, CM> + Send + Sync + 'static,
>
{
/// Sets new compression.
#[must_use]
fn with_compression(self, compression: Compression) -> Self;
/// Set new retry policy.
#[must_use]
fn with_retry_policy(self, retry_policy: Box<dyn RetryPolicy + Send + Sync>) -> Self;
/// Set new reconnection policy.
#[must_use]
fn with_reconnection_policy(
self,
reconnection_policy: Arc<dyn ReconnectionPolicy + Send + Sync>,
) -> Self;
/// Sets new node distance evaluator. Computing node distance is fundamental to proper
/// topology-aware load balancing - see [`NodeDistanceEvaluator`].
#[must_use]
fn with_node_distance_evaluator(
self,
node_distance_evaluator: Box<dyn NodeDistanceEvaluator + Send + Sync>,
) -> Self;
/// Sets new speculative execution policy.
#[must_use]
fn with_speculative_execution_policy(
self,
speculative_execution_policy: Box<dyn SpeculativeExecutionPolicy + Send + Sync>,
) -> Self;
/// Sets new transport buffer size. High values are recommended with large amounts of in flight
/// queries.
#[must_use]
fn with_transport_buffer_size(self, transport_buffer_size: usize) -> Self;
/// Sets NODELAY for given session connections.
#[must_use]
fn with_tcp_nodelay(self, tcp_nodelay: bool) -> Self;
/// Sets event channel capacity. If the driver receives more server events than the capacity,
/// some events might get dropped. This can result in the driver operating in a sub-optimal way.
#[must_use]
fn with_event_channel_capacity(self, event_channel_capacity: usize) -> Self;
/// Sets node connection pool configuration for given session.
#[must_use]
fn with_connection_pool_config(self, connection_pool_config: ConnectionPoolConfig) -> Self;
/// Sets the keyspace to use. If not using a keyspace explicitly in queries, one should be set
/// either by calling this function, or by a `USE` statement. Due to the asynchronous nature of
/// the driver and the usage of connection pools, the effect of switching current keyspace via
/// `USE` might not propagate immediately to all active connections, resulting in queries
/// using a wrong keyspace. If one is known upfront, it's safer to set it while building
/// the [`Session`].
#[must_use]
fn with_keyspace(self, keyspace: String) -> Self;
/// Builds the resulting session.
fn build(self) -> Session<T, CM, LB>;
}
/// Builder for non-TLS sessions.
pub struct TcpSessionBuilder<
LB: LoadBalancingStrategy<TransportTcp, TcpConnectionManager> + Send + Sync,
> {
config: SessionConfig<TransportTcp, TcpConnectionManager, LB>,
node_config: NodeTcpConfig,
}
impl<LB: LoadBalancingStrategy<TransportTcp, TcpConnectionManager> + Send + Sync + 'static>
TcpSessionBuilder<LB>
{
//noinspection DuplicatedCode
/// Creates a new builder with default session configuration.
pub fn new(load_balancing: LB, node_config: NodeTcpConfig) -> Self {
TcpSessionBuilder {
config: SessionConfig::new(load_balancing),
node_config,
}
}
}
impl<LB: LoadBalancingStrategy<TransportTcp, TcpConnectionManager> + Send + Sync + 'static>
SessionBuilder<TransportTcp, TcpConnectionManager, LB> for TcpSessionBuilder<LB>
{
fn with_compression(mut self, compression: Compression) -> Self {
self.config.compression = compression;
self
}
fn with_retry_policy(mut self, retry_policy: Box<dyn RetryPolicy + Send + Sync>) -> Self {
self.config.retry_policy = retry_policy;
self
}
fn with_reconnection_policy(
mut self,
reconnection_policy: Arc<dyn ReconnectionPolicy + Send + Sync>,
) -> Self {
self.config.reconnection_policy = reconnection_policy;
self
}
fn with_node_distance_evaluator(
mut self,
node_distance_evaluator: Box<dyn NodeDistanceEvaluator + Send + Sync>,
) -> Self {
self.config.node_distance_evaluator = node_distance_evaluator;
self
}
fn with_speculative_execution_policy(
mut self,
speculative_execution_policy: Box<dyn SpeculativeExecutionPolicy + Send + Sync>,
) -> Self {
self.config.speculative_execution_policy = Some(speculative_execution_policy);
self
}
fn with_transport_buffer_size(mut self, transport_buffer_size: usize) -> Self {
self.config.transport_buffer_size = transport_buffer_size;
self
}
fn with_tcp_nodelay(mut self, tcp_nodelay: bool) -> Self {
self.config.tcp_nodelay = tcp_nodelay;
self
}
fn with_event_channel_capacity(mut self, event_channel_capacity: usize) -> Self {
self.config.event_channel_capacity = event_channel_capacity;
self
}
fn with_connection_pool_config(mut self, connection_pool_config: ConnectionPoolConfig) -> Self {
self.config.connection_pool_config = connection_pool_config;
self
}
fn with_keyspace(mut self, keyspace: String) -> Self {
self.config.keyspace = Some(keyspace);
self
}
fn build(self) -> Session<TransportTcp, TcpConnectionManager, LB> {
let (keyspace_holder, keyspace_receiver) = create_keyspace_holder();
let connection_manager = TcpConnectionManager::new(
self.node_config.authenticator_provider,
keyspace_holder.clone(),
self.config.reconnection_policy.clone(),
self.config.compression,
self.config.transport_buffer_size,
self.config.tcp_nodelay,
self.node_config.version,
);
self.config.into_session(
keyspace_holder,
keyspace_receiver,
self.node_config.contact_points,
connection_manager,
self.node_config.version,
)
}
}
#[cfg(feature = "rust-tls")]
/// Builder for TLS sessions.
pub struct RustlsSessionBuilder<
LB: LoadBalancingStrategy<TransportRustls, RustlsConnectionManager> + Send + Sync + 'static,
> {
config: SessionConfig<TransportRustls, RustlsConnectionManager, LB>,
node_config: NodeRustlsConfig,
}
#[cfg(feature = "rust-tls")]
impl<LB: LoadBalancingStrategy<TransportRustls, RustlsConnectionManager> + Send + Sync>
RustlsSessionBuilder<LB>
{
//noinspection DuplicatedCode
/// Creates a new builder with default session configuration.
pub fn new(load_balancing: LB, node_config: NodeRustlsConfig) -> Self {
RustlsSessionBuilder {
config: SessionConfig::new(load_balancing),
node_config,
}
}
}
#[cfg(feature = "rust-tls")]
impl<
LB: LoadBalancingStrategy<TransportRustls, RustlsConnectionManager> + Send + Sync + 'static,
> SessionBuilder<TransportRustls, RustlsConnectionManager, LB> for RustlsSessionBuilder<LB>
{
fn with_compression(mut self, compression: Compression) -> Self {
self.config.compression = compression;
self
}
fn with_retry_policy(mut self, retry_policy: Box<dyn RetryPolicy + Send + Sync>) -> Self {
self.config.retry_policy = retry_policy;
self
}
fn with_reconnection_policy(
mut self,
reconnection_policy: Arc<dyn ReconnectionPolicy + Send + Sync>,
) -> Self {
self.config.reconnection_policy = reconnection_policy;
self
}
fn with_node_distance_evaluator(
mut self,
node_distance_evaluator: Box<dyn NodeDistanceEvaluator + Send + Sync>,
) -> Self {
self.config.node_distance_evaluator = node_distance_evaluator;
self
}
fn with_speculative_execution_policy(
mut self,
speculative_execution_policy: Box<dyn SpeculativeExecutionPolicy + Send + Sync>,
) -> Self {
self.config.speculative_execution_policy = Some(speculative_execution_policy);
self
}
fn with_transport_buffer_size(mut self, transport_buffer_size: usize) -> Self {
self.config.transport_buffer_size = transport_buffer_size;
self
}
fn with_tcp_nodelay(mut self, tcp_nodelay: bool) -> Self {
self.config.tcp_nodelay = tcp_nodelay;
self
}
fn with_event_channel_capacity(mut self, event_channel_capacity: usize) -> Self {
self.config.event_channel_capacity = event_channel_capacity;
self
}
fn with_connection_pool_config(mut self, connection_pool_config: ConnectionPoolConfig) -> Self {
self.config.connection_pool_config = connection_pool_config;
self
}
fn with_keyspace(mut self, keyspace: String) -> Self {
self.config.keyspace = Some(keyspace);
self
}
fn build(self) -> Session<TransportRustls, RustlsConnectionManager, LB> {
let (keyspace_holder, keyspace_receiver) = create_keyspace_holder();
let connection_manager = RustlsConnectionManager::new(
self.node_config.dns_name,
self.node_config.authenticator_provider,
self.node_config.config,
keyspace_holder.clone(),
self.config.reconnection_policy.clone(),
self.config.compression,
self.config.transport_buffer_size,
self.config.tcp_nodelay,
self.node_config.version,
);
self.config.into_session(
keyspace_holder,
keyspace_receiver,
self.node_config.contact_points,
connection_manager,
self.node_config.version,
)
}
}
| {
if let Some(keyspace) = self.keyspace {
keyspace_holder.update_current_keyspace_without_notification(keyspace);
}
Session::new(
self.load_balancing,
keyspace_holder,
keyspace_receiver,
self.retry_policy,
self.reconnection_policy,
self.node_distance_evaluator,
self.speculative_execution_policy,
contact_points,
connection_manager,
self.event_channel_capacity,
version,
self.connection_pool_config,
)
} |
conf.py | # Copyright (C) databricks-cicd 2021 man40 ([email protected])
#
# 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.
import logging
from os import path as op
from configparser import ConfigParser
from textwrap import indent
_log = logging.getLogger(__name__)
class ConfBase:
def __repr__(self):
return '\n'.join(f'{k}: {self._indent(v)}' for k, v in self.__dict__.items() if not k.startswith('_'))
@staticmethod
def _parse_int(value) -> int:
return eval(value) if isinstance(value, str) else int(value)
@staticmethod
def _parse_list(value) -> list:
return [] if value is None else [v for v in value.split('\n') if v]
@staticmethod
def | (obj):
if isinstance(obj, ConfBase):
return f'\n{indent(str(obj), " ")}'
return obj
class Conf(ConfBase):
def __init__(self, cmd_args: dict, config_file: str):
default_config_file = op.join(op.dirname(__file__), 'default.ini')
parser = ConfigParser()
parser.read(default_config_file)
override_config_file = config_file
if override_config_file:
assert op.isfile(override_config_file), f'Config file was not found in: {override_config_file}'
parser.read(override_config_file)
parser.read_dict(cmd_args)
self._section = 'global'
self.workspace_host = parser[self._section].get('workspace_host')
self.deploying_user_name = parser[self._section].get('deploying_user_name')
self.deploying_user_id = None
self.local_path = parser[self._section].get('local_path')
self.dry_run = parser[self._section].getboolean('dry_run')
self.name_prefix = parser[self._section].get('name_prefix')
self.deploy_safety_limit = self._parse_int(parser[self._section].get('deploy_safety_limit'))
self.rate_limit_timeout = self._parse_int(parser[self._section].get('rate_limit_timeout'))
self.rate_limit_attempts = self._parse_int(parser[self._section].get('rate_limit_attempts'))
self.workspace = ConfWorkspace(parser)
self.instance_pools = ConfInstancePools(parser)
self.clusters = ConfClusters(parser)
self.jobs = ConfJobs(parser)
self.dbfs = ConfDBFS(parser)
class ConfWorkspace(ConfBase):
def __init__(self, parser: ConfigParser):
self._section = 'workspace'
self.deploy = parser[self._section].getboolean('deploy')
self.local_sub_dir = parser[self._section].get('local_sub_dir')
self.target_path = parser[self._section].get('target_path')
assert self.target_path != '/', 'Cannot deploy in the workspace root folder!'
class ConfInstancePools(ConfBase):
def __init__(self, parser: ConfigParser):
self._section = 'instance_pools'
self.deploy = parser[self._section].getboolean('deploy')
self.local_sub_dir = parser[self._section].get('local_sub_dir')
self.ignore_attributes = self._parse_list(parser[self._section].get('ignore_attributes'))
self.strip_attributes = self._parse_list(parser[self._section].get('strip_attributes'))
class ConfClusters(ConfBase):
def __init__(self, parser: ConfigParser):
self._section = 'clusters'
self.deploy = parser[self._section].getboolean('deploy')
self.local_sub_dir = parser[self._section].get('local_sub_dir')
self.ignore_attributes = self._parse_list(parser[self._section].get('ignore_attributes'))
self.ignore_attributes_with_instance_pool = self._parse_list(
parser[self._section].get('ignore_attributes_with_instance_pool'))
self.strip_attributes = self._parse_list(parser[self._section].get('strip_attributes'))
class ConfJobs(ConfBase):
def __init__(self, parser: ConfigParser):
self._section = 'jobs'
self.deploy = parser[self._section].getboolean('deploy')
self.local_sub_dir = parser[self._section].get('local_sub_dir')
self.strip_attributes = self._parse_list(parser[self._section].get('strip_attributes'))
class ConfDBFS(ConfBase):
def __init__(self, parser: ConfigParser):
self._section = 'dbfs'
self.deploy = parser[self._section].getboolean('deploy')
self.local_sub_dir = parser[self._section].get('local_sub_dir')
self.compare_contents = parser[self._section].getboolean('compare_contents')
self.target_path = parser[self._section].get('target_path')
self.transfer_block_size = eval(parser[self._section].get('transfer_block_size'))
assert self.target_path != '/', 'Cannot deploy in the dbfs root folder!'
| _indent |
blustered-function-properties.test.js | /**
* @jest-environment node
*/
import bluster from './implementation';
function | (path) {
}
test('blustered-function-properties', () => {
const blusteredOpenDatabase = bluster(openDatabase);
expect(blusteredOpenDatabase.length).toBe(1);
expect(blusteredOpenDatabase.name).toBe('blustered openDatabase');
}); | openDatabase |
inception.py | from flexflow.core import *
from flexflow.keras.datasets import cifar10
from accuracy import ModelAccuracy
from PIL import Image
def InceptionA(ffmodel, input, pool_features):
t1 = ffmodel.conv2d(input, 64, 1, 1, 1, 1, 0, 0)
t2 = ffmodel.conv2d(input, 48, 1, 1, 1, 1, 0, 0)
t2 = ffmodel.conv2d(t2, 64, 5, 5, 1, 1, 2, 2)
t3 = ffmodel.conv2d(input, 64, 1, 1, 1, 1, 0, 0)
t3 = ffmodel.conv2d(t3, 96, 3, 3, 1, 1, 1, 1)
t3 = ffmodel.conv2d(t3, 96, 3, 3, 1, 1, 1, 1)
t4 = ffmodel.pool2d(input, 3, 3, 1, 1, 1, 1, PoolType.POOL_AVG)
t4 = ffmodel.conv2d(t4, pool_features, 1, 1, 1, 1, 0, 0) | def InceptionB(ffmodel, input):
t1 = ffmodel.conv2d(input, 384, 3, 3, 2, 2, 0, 0)
t2 = ffmodel.conv2d(input, 64, 1, 1, 1, 1, 0, 0)
t2 = ffmodel.conv2d(t2, 96, 3, 3, 1, 1, 1, 1)
t2 = ffmodel.conv2d(t2, 96, 3, 3, 2, 2, 0, 0)
t3 = ffmodel.pool2d(input, 3, 3, 2, 2, 0, 0)
output = ffmodel.concat([t1, t2, t3], 1)
return output
def InceptionC(ffmodel, input, channels):
t1 = ffmodel.conv2d(input, 192, 1, 1, 1, 1, 0, 0)
t2 = ffmodel.conv2d(input, channels, 1, 1, 1, 1, 0, 0)
t2 = ffmodel.conv2d(t2, channels, 1, 7, 1, 1, 0, 3)
t2 = ffmodel.conv2d(t2, 192, 7, 1, 1, 1, 3, 0)
t3 = ffmodel.conv2d(input, channels, 1, 1, 1, 1, 0, 0)
t3 = ffmodel.conv2d(t3, channels, 7, 1, 1, 1, 3, 0)
t3 = ffmodel.conv2d(t3, channels, 1, 7, 1, 1, 0, 3)
t3 = ffmodel.conv2d(t3, channels, 7, 1, 1, 1, 3, 0)
t3 = ffmodel.conv2d(t3, 192, 1, 7, 1, 1, 0, 3)
t4 = ffmodel.pool2d(input, 3, 3, 1, 1, 1, 1, PoolType.POOL_AVG)
t4 = ffmodel.conv2d(t4, 192, 1, 1, 1, 1, 0, 0)
output = ffmodel.concat([t1, t2, t3, t4], 1)
return output;
def InceptionD(ffmodel, input):
t1 = ffmodel.conv2d(input, 192, 1, 1, 1, 1, 0, 0)
t1 = ffmodel.conv2d(t1, 320, 3, 3, 2, 2, 0, 0)
t2 = ffmodel.conv2d(input, 192, 1, 1, 1, 1, 0, 0)
t2 = ffmodel.conv2d(t2, 192, 1, 7, 1, 1, 0, 3)
t2 = ffmodel.conv2d(t2, 192, 7, 1, 1, 1, 3, 0)
t2 = ffmodel.conv2d(t2, 192, 3, 3, 2, 2, 0, 0)
t3 = ffmodel.pool2d(input, 3, 3, 2, 2, 0, 0)
output = ffmodel.concat([t1, t2, t3], 1)
return output;
def InceptionE(ffmodel, input):
t1 = ffmodel.conv2d(input, 320, 1, 1, 1, 1, 0, 0)
t2i = ffmodel.conv2d(input, 384, 1, 1, 1, 1, 0, 0)
t2 = ffmodel.conv2d(t2i, 384, 1, 3, 1, 1, 0, 1)
t3 = ffmodel.conv2d(t2i, 384, 3, 1, 1, 1, 1, 0)
t3i = ffmodel.conv2d(input, 448, 1, 1, 1, 1, 0, 0)
t3i = ffmodel.conv2d(t3i, 384, 3, 3, 1, 1, 1, 1)
t4 = ffmodel.conv2d(t3i, 384, 1, 3, 1, 1, 0, 1)
t5 = ffmodel.conv2d(t3i, 384, 3, 1, 1, 1, 1, 0)
t6 = ffmodel.pool2d(input, 3, 3, 1, 1, 1, 1, PoolType.POOL_AVG)
t6 = ffmodel.conv2d(t6, 192, 1, 1, 1, 1, 0, 0)
output = ffmodel.concat([t1, t2, t3, t4, t5, t6], 1)
return output;
def inception():
ffconfig = FFConfig()
print("Python API batchSize(%d) workersPerNodes(%d) numNodes(%d)" %(ffconfig.batch_size, ffconfig.workers_per_node, ffconfig.num_nodes))
ffmodel = FFModel(ffconfig)
dims_input = [ffconfig.batch_size, 3, 299, 299]
#print(dims)
input = ffmodel.create_tensor(dims_input, DataType.DT_FLOAT)
t = ffmodel.conv2d(input, 32, 3, 3, 2, 2, 0, 0)
t = ffmodel.conv2d(t, 32, 3, 3, 1, 1, 0, 0)
t = ffmodel.conv2d(t, 64, 3, 3, 1, 1, 1, 1)
t = ffmodel.pool2d(t, 3, 3, 2, 2, 0, 0)
t = ffmodel.conv2d(t, 80, 1, 1, 1, 1, 0, 0)
t = ffmodel.conv2d(t, 192, 3, 3, 1, 1, 1, 1)
t = ffmodel.pool2d(t, 3, 3, 2, 2, 0, 0)
t = InceptionA(ffmodel, t, 32)
t = InceptionA(ffmodel, t, 64)
t = InceptionA(ffmodel, t, 64)
t = InceptionB(ffmodel, t)
t = InceptionC(ffmodel, t, 128)
t = InceptionC(ffmodel, t, 160)
t = InceptionC(ffmodel, t, 160)
t = InceptionC(ffmodel, t, 192)
t = InceptionD(ffmodel, t)
t = InceptionE(ffmodel, t)
t = InceptionE(ffmodel, t)
t = ffmodel.pool2d(t, 8, 8, 1, 1, 0, 0, PoolType.POOL_AVG)
t = ffmodel.flat(t)
t = ffmodel.dense(t, 10)
t = ffmodel.softmax(t)
ffoptimizer = SGDOptimizer(ffmodel, 0.001)
ffmodel.optimizer = ffoptimizer
ffmodel.compile(loss_type=LossType.LOSS_SPARSE_CATEGORICAL_CROSSENTROPY, metrics=[MetricsType.METRICS_ACCURACY, MetricsType.METRICS_SPARSE_CATEGORICAL_CROSSENTROPY])
label = ffmodel.label_tensor
num_samples = 10000
(x_train, y_train), (x_test, y_test) = cifar10.load_data(num_samples)
full_input_np = np.zeros((num_samples, 3, 299, 299), dtype=np.float32)
for i in range(0, num_samples):
image = x_train[i, :, :, :]
image = image.transpose(1, 2, 0)
pil_image = Image.fromarray(image)
pil_image = pil_image.resize((299,299), Image.NEAREST)
image = np.array(pil_image, dtype=np.float32)
image = image.transpose(2, 0, 1)
full_input_np[i, :, :, :] = image
full_input_np /= 255
print(full_input_np.shape)
print(full_input_np.__array_interface__["strides"])
print(full_input_np[0,:, :, :])
y_train = y_train.astype('int32')
full_label_np = y_train
dims_full_input = [num_samples, 3, 299, 299]
full_input = ffmodel.create_tensor(dims_full_input, DataType.DT_FLOAT)
dims_full_label = [num_samples, 1]
full_label = ffmodel.create_tensor(dims_full_label, DataType.DT_INT32)
full_input.attach_numpy_array(ffconfig, full_input_np)
full_label.attach_numpy_array(ffconfig, full_label_np)
dataloader_input = SingleDataLoader(ffmodel, input, full_input, num_samples, DataType.DT_FLOAT)
dataloader_label = SingleDataLoader(ffmodel, label, full_label, num_samples, DataType.DT_INT32)
full_input.detach_numpy_array(ffconfig)
full_label.detach_numpy_array(ffconfig)
num_samples = dataloader_input.get_num_samples()
assert dataloader_input.get_num_samples() == dataloader_label.get_num_samples()
ffmodel.init_layers()
epochs = ffconfig.epochs
ts_start = ffconfig.get_current_time()
ffmodel.fit(x=dataloader_input, y=dataloader_label, epochs=epochs)
ts_end = ffconfig.get_current_time()
run_time = 1e-6 * (ts_end - ts_start);
print("epochs %d, ELAPSED TIME = %.4fs, THROUGHPUT = %.2f samples/s\n" %(epochs, run_time, 8192 * epochs / run_time));
# conv_2d1 = ffmodel.get_layer_by_id(7)
# cbias_tensor = conv_2d1.get_weight_tensor()
# print(cbias_tensor)
# #cbias_tensor = conv_2d1.get_output_tensor()
# cbias_tensor.inline_map(ffconfig)
# cbias = cbias_tensor.get_array(ffconfig, DataType.DT_FLOAT)
# print(cbias.shape)
# #print(cbias)
# cbias_tensor.inline_unmap(ffconfig)
if __name__ == "__main__":
print("inception")
inception() | output = ffmodel.concat([t1, t2, t3, t4], 1)
return output
|
viewer.js | var videoViewer = {
UI : {
playerTemplate : '<header><link href="'+OC.filePath('files_videoplayer', 'videojs', 'src')+'/video-js.css" rel="stylesheet"><script src="'+OC.filePath('files_videoplayer', 'videojs', 'src')+'/video.js"></script>' +
'</header><video id="my_video_1" class="video-js vjs-sublime-skin" controls preload="auto" width="100%" height="100%" poster="'+OC.filePath('files_videoplayer', '', 'img')+'/poster.png" data-setup=\'{"techOrder": ["html5"]}\'>' +
'<source type="%type%" src="%src%" />' +
'</video>',
show : function () {
// insert HTML
$('<div id="videoplayer_overlay" style="display:none;"><div id="videoplayer_outer_container"><div id="videoplayer_container"><div id="videoplayer"></div></div></div></div>').appendTo('body');
var playerView = videoViewer.UI.playerTemplate
.replace(/%type%/g, escapeHTML(videoViewer.mime))
.replace(/%src%/g, escapeHTML(videoViewer.location))
;
$(playerView).prependTo('#videoplayer');
// add event to overlay
$("#videoplayer_overlay").on("click", function(e) {
if (e.target != this) {
return;
} else {
videoViewer.hidePlayer();
}
});
// show elements
$('#videoplayer_overlay').fadeIn('fast');
// initialize player
var vjsPlayer = videojs("my_video_1");
// append close button to video element
$("#my_video_1").append('<a class="icon-view-close" id="box-close" href="#"></a>');
// add event to close button
$('#box-close').click(videoViewer.hidePlayer);
// autoplay
vjsPlayer.play();
},
hide : function() {
$('#videoplayer_overlay').fadeOut('fast', function() {
$('#videoplayer_overlay').remove();
});
}
},
mime : null,
file : null,
location : null,
player : null,
mimeTypes : [
'video/mp4',
'video/webm',
'video/x-flv',
'video/ogg',
'video/quicktime'
],
onView : function(file, data) {
videoViewer.file = file;
videoViewer.dir = data.dir;
videoViewer.location = data.fileList.getDownloadUrl(file, videoViewer.dir);
videoViewer.mime = data.$file.attr('data-mime');
videoViewer.showPlayer();
},
showPlayer : function() {
videoViewer.UI.show();
},
hidePlayer : function() {
videoViewer.player = false;
delete videoViewer.player;
videoViewer.UI.hide();
// force close socket
$('video').each(function() {
$($(this)[0]).attr('src', '');
});
},
log : function(message){
console.log(message);
}
};
$(document).ready(function(){
// add event to ESC key
$(document).keyup(function(e) {
if (e.keyCode === 27) {
videoViewer.hidePlayer();
}
});
if (typeof FileActions !== 'undefined') { | for (var i = 0; i < videoViewer.mimeTypes.length; ++i) {
var mime = videoViewer.mimeTypes[i];
OCA.Files.fileActions.register(mime, 'View', OC.PERMISSION_READ, '', videoViewer.onView);
OCA.Files.fileActions.setDefault(mime, 'View');
}
}
}); | |
charater.entity.ts | import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import {
BaseEntity,
BeforeInsert,
BeforeUpdate,
Column,
Entity,
JoinColumn,
JoinTable,
ManyToMany,
OneToOne,
PrimaryGeneratedColumn,
} from 'typeorm';
import { ComicEntity } from './comic.entity';
import { EventEntity } from './event.entity';
import { ImageEntity } from './image.entity';
import { SerieEntity } from './serie.entity';
import { StoryEntity } from './story.entity';
import { UrlEntity } from './url.entity';
@Entity({ name: 'character' })
export class | extends BaseEntity {
@PrimaryGeneratedColumn()
id: number;
@ApiProperty()
@Column()
description: string;
@Column()
modified: Date;
@ApiProperty()
@Column({ unique: true })
name: string;
@ApiPropertyOptional({ type: ImageEntity })
@OneToOne(type => ImageEntity, { eager: true, cascade: true })
@JoinColumn()
thumbnail?: ImageEntity;
@ApiPropertyOptional({ type: UrlEntity })
@ManyToMany(type => UrlEntity, { eager: true, cascade: true })
@JoinTable()
urls?: UrlEntity[];
@ApiPropertyOptional({ type: ComicEntity, isArray: true })
@ManyToMany(type => ComicEntity, comic => comic.characters, { cascade: true })
@JoinTable({ name: 'characters_comics' })
comics?: ComicEntity[];
@ApiPropertyOptional({ type: EventEntity, isArray: true })
@ManyToMany(type => EventEntity, event => event.characters, { cascade: true })
@JoinTable({ name: 'characters_events' })
events?: EventEntity[];
@ApiPropertyOptional({ type: SerieEntity, isArray: true })
@ManyToMany(type => SerieEntity, serie => serie.characters, { cascade: true })
@JoinTable({ name: 'characters_series' })
series?: SerieEntity[];
@ApiPropertyOptional({ type: StoryEntity, isArray: true })
@ManyToMany(type => StoryEntity, story => story.characters, { cascade: true })
@JoinTable({ name: 'characters_stories' })
stories?: StoryEntity[];
@BeforeInsert()
@BeforeUpdate()
updateModifiedDate() {
this.modified = new Date();
}
}
| CharacterEntity |
runner.py | # Copyright Istio Authors
#
# 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.
from __future__ import print_function
import collections
import os
import json
import socket
import argparse
import subprocess
import shlex
import uuid
import sys
import tempfile
import time
from subprocess import getoutput
from urllib.parse import urlparse
import yaml
from fortio import METRICS_START_SKIP_DURATION, METRICS_END_SKIP_DURATION
NAMESPACE = os.environ.get("NAMESPACE", "twopods")
NIGHTHAWK_GRPC_SERVICE_PORT_FORWARD = 9999
POD = collections.namedtuple('Pod', ['name', 'namespace', 'ip', 'labels'])
NIGHTHAWK_DOCKER_IMAGE = "envoyproxy/nighthawk-dev:59683b759eb8f8bd8cce282795c08f9e2b3313d4"
def pod_info(filterstr="", namespace=NAMESPACE, multi_ok=True):
cmd = "kubectl -n {namespace} get pod {filterstr} -o json".format(
namespace=namespace, filterstr=filterstr)
op = getoutput(cmd)
o = json.loads(op)
items = o['items']
if not multi_ok and len(items) > 1:
raise Exception("more than one found " + op)
if not items:
raise Exception("no pods found with command [" + cmd + "]")
i = items[0]
return POD(i['metadata']['name'], i['metadata']['namespace'],
i['status']['podIP'], i['metadata']['labels'])
def run_command(command):
process = subprocess.Popen(shlex.split(command))
process.wait()
def run_command_sync(command):
op = getoutput(command)
return op.strip()
# kubeclt related helper funcs
def kubectl_cp(from_file, to_file, container):
cmd = "kubectl --namespace {namespace} cp {from_file} {to_file} -c {container}".format(
namespace=NAMESPACE,
from_file=from_file,
to_file=to_file,
container=container)
print(cmd, flush=True)
run_command_sync(cmd)
def kubectl_exec(pod, remote_cmd, runfn=run_command, container=None):
c = ""
if container is not None:
c = "-c " + container
cmd = "kubectl --namespace {namespace} exec {pod} {c} -- {remote_cmd}".format(
pod=pod,
remote_cmd=remote_cmd,
c=c,
namespace=NAMESPACE)
print(cmd, flush=True)
runfn(cmd)
class Fortio:
ports = {
"http": {"direct_port": 8077, "port": 8080},
"grpc": {"direct_port": 8076, "port": 8079},
"direct_envoy": {"direct_port": 8076, "port": 8079},
}
def __init__(
self,
headers=None,
conn=None,
qps=None,
duration=None,
size=None,
mode="http",
telemetry_mode="mixer",
perf_record=False,
server="fortioserver",
client="fortioclient",
additional_args=None,
filter_fn=None,
extra_labels=None,
baseline=False,
serversidecar=False,
clientsidecar=False,
bothsidecar=True,
ingress=None,
mesh="istio",
cacert=None,
load_gen_type="fortio"):
self.run_id = str(uuid.uuid4()).partition('-')[0]
self.headers = headers
self.conn = conn
self.qps = qps
self.size = size
self.duration = duration
self.mode = mode
self.ns = NAMESPACE
# bucket resolution in seconds
self.r = "0.00005"
self.telemetry_mode = telemetry_mode
self.perf_record = perf_record
self.server = pod_info("-lapp=" + server, namespace=self.ns)
self.client = pod_info("-lapp=" + client, namespace=self.ns)
self.additional_args = additional_args
self.filter_fn = filter_fn
self.extra_labels = extra_labels
self.run_baseline = baseline
self.run_serversidecar = serversidecar
self.run_clientsidecar = clientsidecar
self.run_bothsidecar = bothsidecar
self.run_ingress = ingress
self.cacert = cacert
self.load_gen_type = load_gen_type
if mesh == "linkerd":
self.mesh = "linkerd"
elif mesh == "istio":
self.mesh = "istio"
else:
sys.exit("invalid mesh %s, must be istio or linkerd" % mesh)
def get_protocol_uri_fragment(self):
return "https" if self.mode == "grpc" else "http"
def compute_uri(self, svc, port_type):
if self.load_gen_type == "fortio":
basestr = "http://{svc}:{port}/echo?size={size}"
if self.mode == "grpc":
basestr = "-payload-size {size} {svc}:{port}"
return basestr.format(svc=svc, port=self.ports[self.mode][port_type], size=self.size)
elif self.load_gen_type == "nighthawk":
return "{protocol}://{svc}:{port}/".format(
svc=svc, port=self.ports[self.mode][port_type], protocol=self.get_protocol_uri_fragment())
else:
sys.exit("invalid load generator %s, must be fortio or nighthawk", self.load_gen_type)
def nosidecar(self, load_gen_cmd, sidecar_mode):
return load_gen_cmd + "_" + sidecar_mode + " " + self.compute_uri(self.server.ip, "direct_port")
def serversidecar(self, load_gen_cmd, sidecar_mode):
return load_gen_cmd + "_" + sidecar_mode + " " + self.compute_uri(self.server.ip, "port")
def clientsidecar(self, load_gen_cmd, sidecar_mode):
return load_gen_cmd + "_" + sidecar_mode + " " + self.compute_uri(self.server.labels["app"], "direct_port")
def bothsidecar(self, load_gen_cmd, sidecar_mode):
return load_gen_cmd + "_" + sidecar_mode + " " + self.compute_uri(self.server.labels["app"], "port")
def ingress(self, load_gen_cmd):
url = urlparse(self.run_ingress)
# If scheme is not defined fallback to http
if url.scheme == "":
url = urlparse("http://{svc}".format(svc=self.run_ingress))
return load_gen_cmd + "_ingress {url}/echo?size={size}".format(
url=url.geturl(), size=self.size)
def execute_sidecar_mode(self, sidecar_mode, load_gen_type, load_gen_cmd, sidecar_mode_func, labels, perf_label_suffix):
print('-------------- Running in {sidecar_mode} mode --------------'.format(sidecar_mode=sidecar_mode))
if load_gen_type == "fortio":
kubectl_exec(self.client.name, sidecar_mode_func(load_gen_cmd, sidecar_mode))
elif load_gen_type == "nighthawk":
run_nighthawk(self.client.name, sidecar_mode_func(load_gen_type, sidecar_mode), labels + "_" + sidecar_mode)
if self.perf_record and len(perf_label_suffix) > 0:
run_perf(
self.mesh,
self.server.name,
labels + perf_label_suffix,
duration=40)
def generate_test_labels(self, conn, qps, size):
size = size or self.size
labels = self.run_id
labels += "_qps_" + str(qps)
labels += "_c_" + str(conn)
labels += "_" + str(size)
if self.mesh == "istio":
labels += "_"
labels += self.telemetry_mode
elif self.mesh == "linkerd":
labels += "_"
labels += "linkerd"
if self.extra_labels is not None:
labels += "_" + self.extra_labels
return labels
def generate_headers_cmd(self, headers):
headers_cmd = ""
if headers is not None:
for header_val in headers.split(","):
headers_cmd += "-H=" + header_val + " "
return headers_cmd
def generate_fortio_cmd(self, headers_cmd, conn, qps, duration, grpc, cacert_arg, labels):
if duration is None:
duration = self.duration
fortio_cmd = (
"fortio load {headers} -c {conn} -qps {qps} -t {duration}s -a -r {r} {cacert_arg} {grpc} "
"-httpbufferkb=128 -labels {labels}").format(
headers=headers_cmd,
conn=conn,
qps=qps,
duration=duration,
r=self.r,
grpc=grpc,
cacert_arg=cacert_arg,
labels=labels)
return fortio_cmd
def generate_nighthawk_cmd(self, cpus, conn, qps, duration, labels):
nighthawk_args = [
"nighthawk_client",
"--concurrency {cpus}",
"--output-format json",
"--prefetch-connections",
"--open-loop",
"--jitter-uniform 0.0001s",
"--experimental-h1-connection-reuse-strategy lru",
"--experimental-h2-use-multiple-connections",
"--nighthawk-service 127.0.0.1:{port_forward}",
"--label Nighthawk",
"--connections {conn}",
"--rps {qps}",
"--duration {duration}",
"--request-header \"x-nighthawk-test-server-config: {{response_body_size:{size}}}\""
]
# Our "gRPC" mode actually means:
# - https (see get_protocol_uri_fragment())
# - h2
# - with long running connections
# - Also transfer request body sized according to "size".
if self.mode == "grpc":
nighthawk_args.append("--h2")
if self.size:
nighthawk_args.append(
"--request-header \"content-length: {size}\"")
# Note: Labels is the last arg, and there's stuff depending on that.
# watch out when moving it.
nighthawk_args.append("--label {labels}")
# As the worker count acts as a multiplier, we divide by qps/conn by the number of cpu's to spread load accross the workers so the sum of the workers will target the global qps/connection levels.
nighthawk_cmd = " ".join(nighthawk_args).format(
conn=round(conn / cpus),
qps=round(qps / cpus),
duration=duration,
labels=labels,
size=self.size,
cpus=cpus,
port_forward=NIGHTHAWK_GRPC_SERVICE_PORT_FORWARD)
return nighthawk_cmd
def run(self, headers, conn, qps, size, duration):
labels = self.generate_test_labels(conn, qps, size)
grpc = ""
if self.mode == "grpc":
grpc = "-grpc -ping"
cacert_arg = ""
if self.cacert is not None:
cacert_arg = "-cacert {cacert_path}".format(cacert_path=self.cacert)
headers_cmd = self.generate_headers_cmd(headers)
load_gen_cmd = ""
if self.load_gen_type == "fortio":
load_gen_cmd = self.generate_fortio_cmd(headers_cmd, conn, qps, duration, grpc, cacert_arg, labels)
elif self.load_gen_type == "nighthawk":
# TODO(oschaaf): Figure out how to best determine the right concurrency for Nighthawk.
# Results seem to get very noisy as the number of workers increases, are the clients
# and running on separate sets of vCPU cores? nproc yields the same concurrency as goprocs
# use with the Fortio version.
# client_cpus = int(run_command_sync(
# "kubectl exec -n \"{ns}\" svc/fortioclient -c shell nproc".format(ns=NAMESPACE)))
# print("Client pod has {client_cpus} cpus".format(client_cpus=client_cpus))
# See the comment above, we restrict execution to a single nighthawk worker for
# now to avoid noise.
workers = 1
load_gen_cmd = self.generate_nighthawk_cmd(workers, conn, qps, duration, labels)
if self.run_baseline:
self.execute_sidecar_mode("baseline", self.load_gen_type, load_gen_cmd, self.nosidecar, labels, "")
if self.run_serversidecar:
self.execute_sidecar_mode("serveronly", self.load_gen_type, load_gen_cmd, self.serversidecar, labels, "_srv_serveronly")
if self.run_clientsidecar:
self.execute_sidecar_mode("clientonly", self.load_gen_type, load_gen_cmd, self.clientsidecar, labels, "_srv_clientonly")
if self.run_bothsidecar:
self.execute_sidecar_mode("both", self.load_gen_type, load_gen_cmd, self.bothsidecar, labels, "_srv_bothsidecars")
if self.run_ingress:
print('-------------- Running in ingress mode --------------')
kubectl_exec(self.client.name, self.ingress(load_gen_cmd))
if self.perf_record:
run_perf(
self.mesh,
self.server.name,
labels + "_srv_ingress",
duration=40)
PERFCMD = "/usr/lib/linux-tools/4.4.0-131-generic/perf"
FLAMESH = "flame.sh"
PERFSH = "get_perfdata.sh"
PERFWD = "/etc/istio/proxy/"
WD = os.getcwd()
LOCAL_FLAMEDIR = os.path.join(WD, "../flame/")
LOCAL_FLAMEPATH = LOCAL_FLAMEDIR + FLAMESH
LOCAL_PERFPATH = LOCAL_FLAMEDIR + PERFSH
LOCAL_FLAMEOUTPUT = LOCAL_FLAMEDIR + "flameoutput/"
def run_perf(mesh, pod, labels, duration=20):
filename = labels + "_perf.data"
filepath = PERFWD + filename
perfpath = PERFWD + PERFSH
# copy executable over
kubectl_cp(LOCAL_PERFPATH, pod + ":" + perfpath, mesh + "-proxy")
kubectl_exec(
pod,
"{perf_cmd} {filename} {duration}".format(
perf_cmd=perfpath,
filename=filename,
duration=duration),
container=mesh + "-proxy")
kubectl_cp(pod + ":" + filepath + ".perf", LOCAL_FLAMEOUTPUT + filename + ".perf", mesh + "-proxy")
run_command_sync(LOCAL_FLAMEPATH + " " + filename + ".perf")
def validate_job_config(job_config):
required_fields = {"conn": list, "qps": list, "duration": int}
for k in required_fields:
if k not in job_config:
print("missing required parameter {}".format(k))
return False
exp_type = required_fields[k]
if not isinstance(job_config[k], exp_type):
print("expecting type of parameter {} to be {}, got {}".format(k, exp_type, type(job_config[k])))
return False
return True
def fortio_from_config_file(args):
with open(args.config_file) as f:
job_config = yaml.safe_load(f)
if not validate_job_config(job_config):
exit(1)
# TODO: hard to parse yaml into object directly because of existing constructor from CLI
fortio = Fortio()
fortio.headers = job_config.get('headers', None)
fortio.conn = job_config.get('conn', 16)
fortio.qps = job_config.get('qps', 1000)
fortio.duration = job_config.get('duration', 240)
fortio.load_gen_type = job_config.get("load_gen_type", "fortio")
fortio.telemetry_mode = job_config.get('telemetry_mode', 'mixer')
fortio.metrics = job_config.get('metrics', 'p90')
fortio.size = job_config.get('size', 1024)
fortio.perf_record = False
fortio.run_serversidecar = job_config.get('run_serversidecar', False)
fortio.run_clientsidecar = job_config.get('run_clientsidecar', False)
fortio.run_bothsidecar = job_config.get('run_bothsidecar', True)
fortio.run_baseline = job_config.get('run_baseline', False)
fortio.run_ingress = job_config.get('run_ingress', False)
fortio.mesh = job_config.get('mesh', 'istio')
fortio.mode = job_config.get('mode', 'http')
fortio.extra_labels = job_config.get('extra_labels')
return fortio
def can_connect_to_nighthawk_service():
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
return sock.connect_ex(('127.0.0.1', NIGHTHAWK_GRPC_SERVICE_PORT_FORWARD)) == 0
def run_perf_test(args):
min_duration = METRICS_START_SKIP_DURATION + METRICS_END_SKIP_DURATION
# run with config files
if args.config_file is not None:
fortio = fortio_from_config_file(args)
else:
fortio = Fortio(
headers=args.headers,
conn=args.conn,
qps=args.qps,
duration=args.duration,
size=args.size,
perf_record=args.perf,
extra_labels=args.extra_labels,
baseline=args.baseline,
serversidecar=args.serversidecar,
clientsidecar=args.clientsidecar,
bothsidecar=args.bothsidecar,
ingress=args.ingress,
mode=args.mode,
mesh=args.mesh,
telemetry_mode=args.telemetry_mode,
cacert=args.cacert,
load_gen_type=args.load_gen_type)
if fortio.duration <= min_duration:
print("Duration must be greater than {min_duration}".format(
min_duration=min_duration))
exit(1)
# Create a port_forward for accessing nighthawk_service.
if not can_connect_to_nighthawk_service():
popen_cmd = "kubectl -n \"{ns}\" port-forward svc/fortioclient {port}:9999".format(
ns=NAMESPACE,
port=NIGHTHAWK_GRPC_SERVICE_PORT_FORWARD)
process = subprocess.Popen(shlex.split(
popen_cmd), stdout=subprocess.PIPE)
max_tries = 10
while max_tries > 0 and not can_connect_to_nighthawk_service():
time.sleep(0.5)
max_tries = max_tries - 1
if not can_connect_to_nighthawk_service():
print("Failure connecting to nighthawk_service")
sys.exit(-1)
else:
print("Able to connect to nighthawk_service, proceeding")
try:
for conn in fortio.conn:
for qps in fortio.qps:
fortio.run(headers=fortio.headers, conn=conn, qps=qps,
duration=fortio.duration, size=fortio.size)
finally:
process.kill()
def run_nighthawk(pod, remote_cmd, labels):
# Use a local docker instance of Nighthawk to control nighthawk_service running in the pod
# and run transforms on the output we get.
|
def csv_to_int(s):
return [int(i) for i in s.split(",")]
def get_parser():
parser = argparse.ArgumentParser("Run performance test")
parser.add_argument(
"--headers",
help="a list of `header:value` should be separated by comma",
default=None)
parser.add_argument(
"--conn",
help="number of connections, comma separated list",
type=csv_to_int,)
parser.add_argument(
"--qps",
help="qps, comma separated list",
type=csv_to_int,)
parser.add_argument(
"--duration",
help="duration in seconds of the extract",
type=int)
parser.add_argument(
"--size",
help="size of the payload",
type=int,
default=1024)
parser.add_argument(
"--mesh",
help="istio or linkerd",
default="istio")
parser.add_argument(
"--telemetry_mode",
help="run with different mixer configurations: mixer, none, telemetryv2",
default="mixer")
parser.add_argument(
"--client",
help="where to run the test from",
default=None)
parser.add_argument(
"--server",
help="pod ip of the server",
default=None)
parser.add_argument(
"--perf",
help="also run perf and produce flame graph",
default=False)
parser.add_argument(
"--ingress",
help="run traffic through ingress, should be a valid URL",
default=None)
parser.add_argument(
"--extra_labels",
help="extra labels",
default=None)
parser.add_argument(
"--mode",
help="http or grpc",
default="http")
parser.add_argument(
"--config_file",
help="config yaml file",
default=None)
parser.add_argument(
"--cacert",
help="path to the cacert for the fortio client inside the container",
default=None)
parser.add_argument(
"--load_gen_type",
help="fortio or nighthawk",
default="fortio",
)
define_bool(parser, "baseline", "run baseline for all", False)
define_bool(parser, "serversidecar",
"run serversidecar-only for all", False)
define_bool(parser, "clientsidecar",
"run clientsidecar-only for all", False)
define_bool(parser, "bothsidecar",
"run both clientsiecar and serversidecar", True)
return parser
def define_bool(parser, opt, help_arg, default_val):
parser.add_argument(
"--" + opt, help=help_arg, dest=opt, action='store_true')
parser.add_argument(
"--no_" + opt, help="do not " + help_arg, dest=opt, action='store_false')
val = {opt: default_val}
parser.set_defaults(**val)
def main(argv):
args = get_parser().parse_args(argv)
print(args)
return run_perf_test(args)
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
| docker_cmd = "docker run --rm --network=host {docker_image} {remote_cmd}".format(
docker_image=NIGHTHAWK_DOCKER_IMAGE, remote_cmd=remote_cmd)
print(docker_cmd, flush=True)
process = subprocess.Popen(shlex.split(docker_cmd), stdout=subprocess.PIPE)
(output, err) = process.communicate()
exit_code = process.wait()
if exit_code == 0:
with tempfile.NamedTemporaryFile(dir='/tmp', delete=True) as tmpfile:
dest = tmpfile.name
with open("%s.json" % dest, 'wb') as f:
f.write(output)
print("Dumped Nighthawk's json to {dest}".format(dest=dest))
# Send human readable output to the command line.
os.system(
"cat {dest}.json | docker run -i --rm {docker_image} nighthawk_output_transform --output-format human".format(docker_image=NIGHTHAWK_DOCKER_IMAGE, dest=dest))
# Transform to Fortio's reporting server json format
os.system("cat {dest}.json | docker run -i --rm {docker_image} nighthawk_output_transform --output-format fortio > {dest}.fortio.json".format(
dest=dest, docker_image=NIGHTHAWK_DOCKER_IMAGE))
# Copy to the Fortio report server data directory.
# TODO(oschaaf): We output the global aggregated statistics here of request_to_response, which excludes connection set up time.
# It would be nice to dump a series instead, as we have more details available in the Nighthawk json:
# - queue/connect time
# - time spend blocking in closed loop mode
# - initiation time to completion (spanning the complete lifetime of a request/reply, including queue/connect time)
# - per worker output may sometimes help interpret plots that don't have a nice knee-shaped shape.
kubectl_cp("{dest}.fortio.json".format(
dest=dest), "{pod}:/var/lib/fortio/{datetime}_nighthawk_{labels}.json".format(pod=pod, labels=labels, datetime=time.strftime("%Y-%m-%d-%H%M%S")), "shell")
else:
print("nighthawk remote execution error: %s" % exit_code)
if output:
print("--> stdout: %s" % output.decode("utf-8"))
if err:
print("--> stderr: %s" % err.decode("utf-8")) |
weather.module.ts | import { Module } from '@nestjs/common';
import { WeatherService } from './weather.service';
import { WeatherController } from './weather.controller';
import { ShelterModule } from 'src/shelter/shelter.module';
@Module({
imports: [ShelterModule],
providers: [WeatherService],
controllers: [WeatherController] | })
export class WeatherModule {} |
|
params.go | package keeper
|
// GetConstantFee get's the constant fee from the paramSpace
func (k Keeper) GetConstantFee(ctx sdk.Context) (constantFee sdk.Coin) {
k.paramSpace.Get(ctx, types.ParamStoreKeyConstantFee, &constantFee)
return
}
// GetConstantFee set's the constant fee in the paramSpace
func (k Keeper) SetConstantFee(ctx sdk.Context, constantFee sdk.Coin) {
k.paramSpace.Set(ctx, types.ParamStoreKeyConstantFee, constantFee)
} | import (
sdk "github.com/pocblockchain/pocc/types"
"github.com/pocblockchain/pocc/x/crisis/internal/types"
) |
app_config.py | import logging
from abc import ABC, abstractmethod
from importlib import import_module
from django.apps import AppConfig
logger = logging.getLogger(__name__)
class AiravataAppConfig(AppConfig, ABC):
"""Custom AppConfig for Django Airavata apps."""
@property
def url_app_name(self):
"""Return the urls application namespace."""
return get_url_app_name(self)
@property
@abstractmethod
def app_order(self):
"""Return positive int order of app in listings, lowest sorts first."""
pass
@property
@abstractmethod
def url_home(self):
"""Named route of home page for this application."""
pass
@property
@abstractmethod
def fa_icon_class(self):
"""Font Awesome icon class name."""
pass
@property
@abstractmethod
def app_description(self):
"""Some user friendly text to briefly describe the application."""
pass
def enhance_custom_app_config(app):
"""As necessary add default values for properties to custom AppConfigs."""
app.url_app_name = get_url_app_name(app)
app.url_home = get_url_home(app)
app.fa_icon_class = get_fa_icon_class(app)
app.app_description = get_app_description(app)
return app
def get_url_app_name(app_config):
"""Return the urls namespace for the given AppConfig instance."""
urls = get_app_urls(app_config)
return getattr(urls, 'app_name', None)
def get_url_home(app_config):
"""Get named URL of home page of app."""
if hasattr(app_config, 'url_home'):
return app_config.url_home
else:
return get_default_url_home(app_config)
def get_default_url_home(app_config):
"""Return first url pattern as a default."""
urls = get_app_urls(app_config)
app_name = get_url_app_name(app_config)
logger.warning("Custom Django app {} has no URL namespace "
"defined".format(app_config.label))
first_named_url = None
for urlpattern in urls.urlpatterns:
if hasattr(urlpattern, 'name'):
first_named_url = urlpattern.name | raise Exception("{} has no named urls, "
"can't figure out default home URL")
if app_name:
return app_name + ":" + first_named_url
else:
return first_named_url
def get_fa_icon_class(app_config):
"""Return Font Awesome icon class to use for app."""
if hasattr(app_config, "fa_icon_class"):
return app_config.fa_icon_class
else:
return 'fa-circle'
def get_app_description(app_config):
"""Return brief description of app."""
return getattr(app_config, 'app_description', None)
def get_app_urls(app_config):
return import_module(".urls", app_config.name) | break
if not first_named_url: |
rest_client.d.ts | /**
* @license
* Copyright 2019 Google LLC
*
* 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.
*/
import { FetchResponse, RemoteConfigFetchClient, FetchRequest } from './remote_config_fetch_client';
import { _FirebaseInstallationsInternal } from '@firebase/installations';
/**
* Implements the Client abstraction for the Remote Config REST API.
*/
export declare class | implements RemoteConfigFetchClient {
private readonly firebaseInstallations;
private readonly sdkVersion;
private readonly namespace;
private readonly projectId;
private readonly apiKey;
private readonly appId;
constructor(firebaseInstallations: _FirebaseInstallationsInternal, sdkVersion: string, namespace: string, projectId: string, apiKey: string, appId: string);
/**
* Fetches from the Remote Config REST API.
*
* @throws a {@link ErrorCode.FETCH_NETWORK} error if {@link GlobalFetch#fetch} can't
* connect to the network.
* @throws a {@link ErrorCode.FETCH_PARSE} error if {@link Response#json} can't parse the
* fetch response.
* @throws a {@link ErrorCode.FETCH_STATUS} error if the service returns an HTTP error status.
*/
fetch(request: FetchRequest): Promise<FetchResponse>;
}
| RestClient |
config_benchmark_test.go | // Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package dynamicconfig
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/uber/cadence/common/log"
)
func BenchmarkGetIntProperty(b *testing.B) | {
client := newInMemoryClient()
cln := NewCollection(client, log.NewNoop())
key := MatchingMaxTaskBatchSize
for i := 0; i < b.N; i++ {
size := cln.GetIntProperty(key, 10)
assert.Equal(b, 10, size())
}
} |
|
pos.rs | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use std::{borrow::Cow, cmp::Ordering, ops::Range, path::PathBuf, result::Result::*};
use eq_modulo_pos::EqModuloPos;
use ocamlrep::rc::RcOc;
use ocamlrep_derive::{FromOcamlRep, FromOcamlRepIn, ToOcamlRep};
use serde::{Deserialize, Serialize};
use crate::file_pos::FilePos;
use crate::file_pos_large::FilePosLarge;
use crate::file_pos_small::FilePosSmall;
use crate::pos_span_raw::PosSpanRaw;
use crate::pos_span_tiny::PosSpanTiny;
use crate::relative_path::{Prefix, RelativePath};
#[derive(
Clone,
Debug,
Deserialize,
Hash,
FromOcamlRep,
FromOcamlRepIn,
ToOcamlRep,
Serialize
)]
enum PosImpl {
Small {
file: RcOc<RelativePath>,
start: FilePosSmall,
end: FilePosSmall,
},
Large {
file: RcOc<RelativePath>,
start: Box<FilePosLarge>,
end: Box<FilePosLarge>,
},
Tiny {
file: RcOc<RelativePath>,
span: PosSpanTiny,
},
FromReason(Box<PosImpl>),
}
use PosImpl::*;
#[derive(
Clone,
Debug,
Deserialize,
Hash,
FromOcamlRep,
FromOcamlRepIn,
ToOcamlRep,
Serialize
)]
pub struct Pos(PosImpl);
pub type PosR<'a> = &'a Pos;
impl Pos {
pub fn make_none() -> Self {
// TODO: shiqicao make NONE static, lazy_static doesn't allow Rc
Pos(PosImpl::Tiny {
file: RcOc::new(RelativePath::make(Prefix::Dummy, PathBuf::from(""))),
span: PosSpanTiny::make_dummy(),
})
}
pub fn is_none(&self) -> bool {
match self {
Pos(PosImpl::Tiny { file, span }) => span.is_dummy() && file.is_empty(),
_ => false,
}
}
// Validness based on HHVM's definition
pub fn is_valid(&self) -> bool {
let (line0, line1, char0, char1) = self.info_pos_extended();
line0 != 1 || char0 != 1 || line1 != 1 || char1 != 1
}
fn from_raw_span(file: RcOc<RelativePath>, span: PosSpanRaw) -> Self {
if let Some(span) = PosSpanTiny::make(&span.start, &span.end) {
return Pos(Tiny { file, span });
}
let (lnum, bol, offset) = span.start.line_beg_offset();
if let Some(start) = FilePosSmall::from_lnum_bol_offset(lnum, bol, offset) {
let (lnum, bol, offset) = span.end.line_beg_offset();
if let Some(end) = FilePosSmall::from_lnum_bol_offset(lnum, bol, offset) {
return Pos(Small { file, start, end });
}
}
Pos(Large {
file,
start: Box::new(span.start),
end: Box::new(span.end),
})
}
fn to_raw_span(&self) -> PosSpanRaw {
match &self.0 {
Tiny { span, .. } => span.to_raw_span(),
&Small { start, end, .. } => PosSpanRaw {
start: start.into(),
end: end.into(),
},
Large { start, end, .. } => PosSpanRaw {
start: **start,
end: **end,
},
FromReason(_p) => unimplemented!(),
}
}
pub fn filename(&self) -> &RelativePath {
self.filename_rc_ref()
}
fn filename_rc_ref(&self) -> &RcOc<RelativePath> {
match &self.0 {
Small { file, .. } | Large { file, .. } | Tiny { file, .. } => &file,
FromReason(_p) => unimplemented!(),
}
}
fn into_filename(self) -> RcOc<RelativePath> {
match self.0 {
Small { file, .. } | Large { file, .. } | Tiny { file, .. } => file,
FromReason(_p) => unimplemented!(),
}
}
/// Returns a closed interval that's incorrect for multi-line spans.
pub fn info_pos(&self) -> (usize, usize, usize) {
fn compute<P: FilePos>(pos_start: &P, pos_end: &P) -> (usize, usize, usize) |
match &self.0 {
Small { start, end, .. } => compute(start, end),
Large { start, end, .. } => compute(start.as_ref(), end.as_ref()),
Tiny { span, .. } => {
let PosSpanRaw { start, end } = span.to_raw_span();
compute(&start, &end)
}
FromReason(_p) => unimplemented!(),
}
}
pub fn info_pos_extended(&self) -> (usize, usize, usize, usize) {
let (line_begin, start, end) = self.info_pos();
let line_end = match &self.0 {
Small { end, .. } => end.line_column_beg(),
Large { end, .. } => (*end).line_column_beg(),
Tiny { span, .. } => span.to_raw_span().end.line_column_beg(),
FromReason(_p) => unimplemented!(),
}
.0;
(line_begin, line_end, start, end)
}
pub fn info_raw(&self) -> (usize, usize) {
(self.start_offset(), self.end_offset())
}
pub fn line(&self) -> usize {
match &self.0 {
Small { start, .. } => start.line(),
Large { start, .. } => start.line(),
Tiny { span, .. } => span.start_line_number(),
FromReason(_p) => unimplemented!(),
}
}
pub fn from_lnum_bol_offset(
file: RcOc<RelativePath>,
start: (usize, usize, usize),
end: (usize, usize, usize),
) -> Self {
let (start_line, start_bol, start_offset) = start;
let (end_line, end_bol, end_offset) = end;
let start = FilePosLarge::from_lnum_bol_offset(start_line, start_bol, start_offset);
let end = FilePosLarge::from_lnum_bol_offset(end_line, end_bol, end_offset);
Self::from_raw_span(file, PosSpanRaw { start, end })
}
pub fn to_start_and_end_lnum_bol_offset(
&self,
) -> ((usize, usize, usize), (usize, usize, usize)) {
match &self.0 {
Small { start, end, .. } => (start.line_beg_offset(), end.line_beg_offset()),
Large { start, end, .. } => (start.line_beg_offset(), end.line_beg_offset()),
Tiny { span, .. } => {
let PosSpanRaw { start, end } = span.to_raw_span();
(start.line_beg_offset(), end.line_beg_offset())
}
FromReason(_p) => unimplemented!(),
}
}
/// For single-line spans only.
pub fn from_line_cols_offset(
file: RcOc<RelativePath>,
line: usize,
cols: Range<usize>,
start_offset: usize,
) -> Self {
let start = FilePosLarge::from_line_column_offset(line, cols.start, start_offset);
let end = FilePosLarge::from_line_column_offset(
line,
cols.end,
start_offset + (cols.end - cols.start),
);
Self::from_raw_span(file, PosSpanRaw { start, end })
}
pub fn btw_nocheck(x1: Self, x2: Self) -> Self {
let start = x1.to_raw_span().start;
let end = x2.to_raw_span().end;
Self::from_raw_span(x1.into_filename(), PosSpanRaw { start, end })
}
pub fn btw(x1: &Self, x2: &Self) -> Result<Self, String> {
if x1.filename() != x2.filename() {
// using string concatenation instead of format!,
// it is not stable see T52404885
Err(String::from("Position in separate files ")
+ &x1.filename().to_string()
+ " and "
+ &x2.filename().to_string())
} else if x1.end_offset() > x2.end_offset() {
Err(String::from("btw: invalid positions")
+ &x1.end_offset().to_string()
+ "and"
+ &x2.end_offset().to_string())
} else {
Ok(Self::btw_nocheck(x1.clone(), x2.clone()))
}
}
pub fn merge(x1: &Self, x2: &Self) -> Result<Self, String> {
if x1.filename() != x2.filename() {
// see comment above (T52404885)
return Err(String::from("Position in separate files ")
+ &x1.filename().to_string()
+ " and "
+ &x2.filename().to_string());
}
let span1 = x1.to_raw_span();
let span2 = x2.to_raw_span();
let start = if span1.start.is_dummy() {
span2.start
} else if span2.start.is_dummy() {
span1.start
} else if span1.start.offset() < span2.start.offset() {
span1.start
} else {
span2.start
};
let end = if span1.end.is_dummy() {
span2.end
} else if span2.end.is_dummy() {
span1.end
} else if span1.end.offset() < span2.end.offset() {
span2.end
} else {
span1.end
};
Ok(Self::from_raw_span(
RcOc::clone(x1.filename_rc_ref()),
PosSpanRaw { start, end },
))
}
pub fn last_char(&self) -> Cow<'_, Self> {
if self.is_none() {
Cow::Borrowed(self)
} else {
let end = self.to_raw_span().end;
Cow::Owned(Self::from_raw_span(
RcOc::clone(self.filename_rc_ref()),
PosSpanRaw { start: end, end },
))
}
}
pub fn first_char_of_line(&self) -> Cow<'_, Self> {
if self.is_none() {
Cow::Borrowed(self)
} else {
let start = self.to_raw_span().start.with_column(0);
Cow::Owned(Self::from_raw_span(
RcOc::clone(self.filename_rc_ref()),
PosSpanRaw { start, end: start },
))
}
}
pub fn end_offset(&self) -> usize {
match &self.0 {
Small { end, .. } => end.offset(),
Large { end, .. } => end.offset(),
Tiny { span, .. } => span.end_offset(),
FromReason(_p) => unimplemented!(),
}
}
pub fn start_offset(&self) -> usize {
match &self.0 {
Small { start, .. } => start.offset(),
Large { start, .. } => start.offset(),
Tiny { span, .. } => span.start_offset(),
FromReason(_p) => unimplemented!(),
}
}
}
impl std::fmt::Display for Pos {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
fn do_fmt<P: FilePos>(
f: &mut std::fmt::Formatter<'_>,
file: &RelativePath,
start: &P,
end: &P,
) -> std::fmt::Result {
write!(f, "{}", file)?;
let (start_line, start_col, _) = start.line_column_beg();
let (end_line, end_col, _) = end.line_column_beg();
if start_line == end_line {
write!(f, "({}:{}-{})", start_line, start_col, end_col)
} else {
write!(f, "({}:{}-{}:{})", start_line, start_col, end_line, end_col)
}
}
match &self.0 {
Small {
file, start, end, ..
} => do_fmt(f, file, start, end),
Large {
file, start, end, ..
} => do_fmt(f, file, &**start, &**end),
Tiny { file, span } => {
let PosSpanRaw { start, end } = span.to_raw_span();
do_fmt(f, file, &start, &end)
}
FromReason(_p) => unimplemented!(),
}
}
}
impl Ord for Pos {
// Intended to match the implementation of `Pos.compare` in OCaml.
fn cmp(&self, other: &Pos) -> Ordering {
self.filename()
.cmp(other.filename())
.then(self.start_offset().cmp(&other.start_offset()))
.then(self.end_offset().cmp(&other.end_offset()))
}
}
impl PartialOrd for Pos {
fn partial_cmp(&self, other: &Pos) -> Option<Ordering> {
Some(self.cmp(other))
}
}
impl PartialEq for Pos {
fn eq(&self, other: &Self) -> bool {
self.cmp(other) == Ordering::Equal
}
}
impl Eq for Pos {}
impl EqModuloPos for Pos {
fn eq_modulo_pos(&self, _rhs: &Self) -> bool {
true
}
}
impl Pos {
/// Returns a struct implementing Display which produces the same format as
/// `Pos.string` in OCaml.
pub fn string(&self) -> PosString<'_> {
PosString(self)
}
}
/// This struct has an impl of Display which produces the same format as
/// `Pos.string` in OCaml.
pub struct PosString<'a>(&'a Pos);
impl std::fmt::Display for PosString<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let (line, start, end) = self.0.info_pos();
write!(
f,
"File {:?}, line {}, characters {}-{}:",
self.0.filename().path(),
line,
start,
end
)
}
}
// NoPosHash is meant to be position-insensitive, so don't do anything!
impl no_pos_hash::NoPosHash for Pos {
fn hash<H: std::hash::Hasher>(&self, _state: &mut H) {}
}
pub mod map {
pub type Map<T> = std::collections::BTreeMap<super::Pos, T>;
}
#[cfg(test)]
mod tests {
use super::*;
use pretty_assertions::assert_eq;
fn make_pos(name: &str, start: (usize, usize, usize), end: (usize, usize, usize)) -> Pos {
Pos::from_lnum_bol_offset(
RcOc::new(RelativePath::make(Prefix::Dummy, PathBuf::from(name))),
start,
end,
)
}
#[test]
fn test_pos() {
assert_eq!(Pos::make_none().is_none(), true);
assert_eq!(
Pos::from_lnum_bol_offset(
RcOc::new(RelativePath::make(Prefix::Dummy, PathBuf::from("a"))),
(0, 0, 0),
(0, 0, 0)
)
.is_none(),
false
);
assert_eq!(
Pos::from_lnum_bol_offset(
RcOc::new(RelativePath::make(Prefix::Dummy, PathBuf::from(""))),
(1, 0, 0),
(0, 0, 0)
)
.is_none(),
false
);
}
#[test]
fn test_pos_string() {
assert_eq!(
Pos::make_none().string().to_string(),
r#"File "", line 0, characters 0-0:"#
);
let path = RcOc::new(RelativePath::make(Prefix::Dummy, PathBuf::from("a.php")));
assert_eq!(
Pos::from_lnum_bol_offset(path, (5, 100, 117), (5, 100, 142))
.string()
.to_string(),
r#"File "a.php", line 5, characters 18-42:"#
);
}
#[test]
fn test_pos_merge() {
let test = |name, (exp_start, exp_end), ((fst_start, fst_end), (snd_start, snd_end))| {
assert_eq!(
Ok(make_pos("a", exp_start, exp_end)),
Pos::merge(
&make_pos("a", fst_start, fst_end),
&make_pos("a", snd_start, snd_end)
),
"{}",
name
);
// Run this again because we want to test that we get the same
// result regardless of order.
assert_eq!(
Ok(make_pos("a", exp_start, exp_end)),
Pos::merge(
&make_pos("a", snd_start, snd_end),
&make_pos("a", fst_start, fst_end),
),
"{} (reversed)",
name
);
};
test(
"basic test",
((0, 0, 0), (0, 0, 5)),
(((0, 0, 0), (0, 0, 2)), ((0, 0, 2), (0, 0, 5))),
);
test(
"merge should work with gaps",
((0, 0, 0), (0, 0, 15)),
(((0, 0, 0), (0, 0, 5)), ((0, 0, 10), (0, 0, 15))),
);
test(
"merge should work with overlaps",
((0, 0, 0), (0, 0, 15)),
(((0, 0, 0), (0, 0, 12)), ((0, 0, 7), (0, 0, 15))),
);
test(
"merge should work between lines",
((0, 0, 0), (2, 20, 25)),
(((0, 0, 0), (1, 10, 15)), ((1, 10, 20), (2, 20, 25))),
);
assert_eq!(
Err("Position in separate files |a and |b".to_string()),
Pos::merge(
&make_pos("a", (0, 0, 0), (0, 0, 0)),
&make_pos("b", (0, 0, 0), (0, 0, 0))
),
"should reject merges with different filenames"
);
}
}
| {
let (line, start_minus1, bol) = pos_start.line_column_beg();
let start = start_minus1.wrapping_add(1);
let end_offset = pos_end.offset();
let mut end = end_offset - bol;
// To represent the empty interval, pos_start and pos_end are equal because
// end_offset is exclusive. Here, it's best for error messages to the user if
// we print characters N to N (highlighting a single character) rather than characters
// N to (N-1), which is very unintuitive.
if end == start_minus1 {
end = start
}
(line, start, end)
} |
middleware.go | package log
import (
"bufio"
"context"
"fmt"
"net"
"net/http"
"strings"
"time"
kitlog "github.com/go-kit/kit/log"
uuid "github.com/satori/go.uuid"
)
type key int
const (
KubernikusRequestID key = 0
)
func RequestIDHandler(next http.Handler) http.Handler {
return http.HandlerFunc(func(rw http.ResponseWriter, request *http.Request) {
if id := request.Context().Value(KubernikusRequestID); id == nil |
next.ServeHTTP(rw, request)
})
}
func LoggingHandler(logger kitlog.Logger, next http.Handler) http.Handler {
ingress_logger := kitlog.With(logger, "api", "ingress")
return http.HandlerFunc(func(rw http.ResponseWriter, request *http.Request) {
wrapper := makeWrapper(rw)
inner_logger := kitlog.With(ingress_logger)
if reqId := request.Context().Value(KubernikusRequestID); reqId != nil {
id := fmt.Sprintf("%s", reqId)
inner_logger = kitlog.With(inner_logger, "id", id)
}
request = request.WithContext(context.WithValue(request.Context(), "logger", inner_logger))
defer func(begin time.Time) {
var keyvals = make([]interface{}, 0, 4)
keyvals = append(keyvals,
"status", wrapper.Status(),
"size", wrapper.Size(),
"took", time.Since(begin),
)
log(inner_logger, request, keyvals...)
}(time.Now())
next.ServeHTTP(wrapper, request)
})
}
func log(logger kitlog.Logger, request *http.Request, extra ...interface{}) {
var keyvals []interface{}
source_ip, _, err := net.SplitHostPort(request.RemoteAddr)
if err != nil {
source_ip = request.RemoteAddr
}
if source_ip != "" {
keyvals = append(keyvals, "source_ip", source_ip)
}
keyvals = append(keyvals, "method", request.Method)
host, host_port, err := net.SplitHostPort(request.Host)
if err == nil {
if host != "" {
keyvals = append(keyvals,
"host", host)
}
if host_port != "" {
keyvals = append(keyvals,
"port", host_port)
}
}
keyvals = append(keyvals, "path", request.URL.EscapedPath())
for i, k := range request.URL.Query() {
keyvals = append(keyvals, i, strings.Join(k, ","))
}
keyvals = append(keyvals, "user_agent", request.UserAgent())
keyvals = append(keyvals, extra...)
logger.Log(keyvals...)
}
// this stuff is copied from gorilla
func makeWrapper(w http.ResponseWriter) loggingResponseWriter {
var logger loggingResponseWriter = &responseLogger{w: w, status: http.StatusOK}
if _, ok := w.(http.Hijacker); ok {
logger = &hijackLogger{responseLogger{w: w, status: http.StatusOK}}
}
h, ok1 := logger.(http.Hijacker)
c, ok2 := w.(http.CloseNotifier)
if ok1 && ok2 {
return hijackCloseNotifier{logger, h, c}
}
if ok2 {
return &closeNotifyWriter{logger, c}
}
return logger
}
type hijackLogger struct {
responseLogger
}
func (l *hijackLogger) Hijack() (net.Conn, *bufio.ReadWriter, error) {
h := l.responseLogger.w.(http.Hijacker)
conn, rw, err := h.Hijack()
if err == nil && l.responseLogger.status == 0 {
// The status will be StatusSwitchingProtocols if there was no error and
// WriteHeader has not been called yet
l.responseLogger.status = http.StatusSwitchingProtocols
}
return conn, rw, err
}
type closeNotifyWriter struct {
loggingResponseWriter
http.CloseNotifier
}
type hijackCloseNotifier struct {
loggingResponseWriter
http.Hijacker
http.CloseNotifier
}
type loggingResponseWriter interface {
commonLoggingResponseWriter
http.Pusher
}
type commonLoggingResponseWriter interface {
http.ResponseWriter
http.Flusher
Status() int
Size() int
}
type responseLogger struct {
w http.ResponseWriter
status int
size int
}
func (l *responseLogger) Header() http.Header {
return l.w.Header()
}
func (l *responseLogger) Write(b []byte) (int, error) {
size, err := l.w.Write(b)
l.size += size
return size, err
}
func (l *responseLogger) WriteHeader(s int) {
l.w.WriteHeader(s)
l.status = s
}
func (l *responseLogger) Status() int {
return l.status
}
func (l *responseLogger) Size() int {
return l.size
}
func (l *responseLogger) Flush() {
f, ok := l.w.(http.Flusher)
if ok {
f.Flush()
}
}
func (l *responseLogger) Push(target string, opts *http.PushOptions) error {
p, ok := l.w.(http.Pusher)
if !ok {
return fmt.Errorf("responseLogger does not implement http.Pusher")
}
return p.Push(target, opts)
}
| {
request = request.WithContext(context.WithValue(request.Context(), KubernikusRequestID, uuid.NewV4()))
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.