#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_imports)]
#![allow(unused_results)]
#[derive(PartialEq,Clone,Default)]
pub struct MessageStoragePolicy {
pub allowed_persistence_regions: ::protobuf::RepeatedField<::std::string::String>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a MessageStoragePolicy {
fn default() -> &'a MessageStoragePolicy {
<MessageStoragePolicy as ::protobuf::Message>::default_instance()
}
}
impl MessageStoragePolicy {
pub fn new() -> MessageStoragePolicy {
::std::default::Default::default()
}
pub fn get_allowed_persistence_regions(&self) -> &[::std::string::String] {
&self.allowed_persistence_regions
}
pub fn clear_allowed_persistence_regions(&mut self) {
self.allowed_persistence_regions.clear();
}
pub fn set_allowed_persistence_regions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.allowed_persistence_regions = v;
}
pub fn mut_allowed_persistence_regions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.allowed_persistence_regions
}
pub fn take_allowed_persistence_regions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.allowed_persistence_regions, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for MessageStoragePolicy {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_persistence_regions)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.allowed_persistence_regions {
my_size += ::protobuf::rt::string_size(1, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.allowed_persistence_regions {
os.write_string(1, &v)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> MessageStoragePolicy {
MessageStoragePolicy::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"allowed_persistence_regions",
|m: &MessageStoragePolicy| { &m.allowed_persistence_regions },
|m: &mut MessageStoragePolicy| { &mut m.allowed_persistence_regions },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<MessageStoragePolicy>(
"MessageStoragePolicy",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static MessageStoragePolicy {
static instance: ::protobuf::rt::LazyV2<MessageStoragePolicy> = ::protobuf::rt::LazyV2::INIT;
instance.get(MessageStoragePolicy::new)
}
}
impl ::protobuf::Clear for MessageStoragePolicy {
fn clear(&mut self) {
self.allowed_persistence_regions.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for MessageStoragePolicy {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for MessageStoragePolicy {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct Topic {
pub name: ::std::string::String,
pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub message_storage_policy: ::protobuf::SingularPtrField<MessageStoragePolicy>,
pub kms_key_name: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Topic {
fn default() -> &'a Topic {
<Topic as ::protobuf::Message>::default_instance()
}
}
impl Topic {
pub fn new() -> Topic {
::std::default::Default::default()
}
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_name(&mut self) {
self.name.clear();
}
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
&self.labels
}
pub fn clear_labels(&mut self) {
self.labels.clear();
}
pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
self.labels = v;
}
pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
&mut self.labels
}
pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new())
}
pub fn get_message_storage_policy(&self) -> &MessageStoragePolicy {
self.message_storage_policy.as_ref().unwrap_or_else(|| <MessageStoragePolicy as ::protobuf::Message>::default_instance())
}
pub fn clear_message_storage_policy(&mut self) {
self.message_storage_policy.clear();
}
pub fn has_message_storage_policy(&self) -> bool {
self.message_storage_policy.is_some()
}
pub fn set_message_storage_policy(&mut self, v: MessageStoragePolicy) {
self.message_storage_policy = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_message_storage_policy(&mut self) -> &mut MessageStoragePolicy {
if self.message_storage_policy.is_none() {
self.message_storage_policy.set_default();
}
self.message_storage_policy.as_mut().unwrap()
}
pub fn take_message_storage_policy(&mut self) -> MessageStoragePolicy {
self.message_storage_policy.take().unwrap_or_else(|| MessageStoragePolicy::new())
}
pub fn get_kms_key_name(&self) -> &str {
&self.kms_key_name
}
pub fn clear_kms_key_name(&mut self) {
self.kms_key_name.clear();
}
pub fn set_kms_key_name(&mut self, v: ::std::string::String) {
self.kms_key_name = v;
}
pub fn mut_kms_key_name(&mut self) -> &mut ::std::string::String {
&mut self.kms_key_name
}
pub fn take_kms_key_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.kms_key_name, ::std::string::String::new())
}
}
impl ::protobuf::Message for Topic {
fn is_initialized(&self) -> bool {
for v in &self.message_storage_policy {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
},
2 => {
::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?;
},
3 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.message_storage_policy)?;
},
5 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.name.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.name);
}
my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels);
if let Some(ref v) = self.message_storage_policy.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if !self.kms_key_name.is_empty() {
my_size += ::protobuf::rt::string_size(5, &self.kms_key_name);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.name.is_empty() {
os.write_string(1, &self.name)?;
}
::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels, os)?;
if let Some(ref v) = self.message_storage_policy.as_ref() {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if !self.kms_key_name.is_empty() {
os.write_string(5, &self.kms_key_name)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> Topic {
Topic::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"name",
|m: &Topic| { &m.name },
|m: &mut Topic| { &mut m.name },
));
fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
"labels",
|m: &Topic| { &m.labels },
|m: &mut Topic| { &mut m.labels },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<MessageStoragePolicy>>(
"message_storage_policy",
|m: &Topic| { &m.message_storage_policy },
|m: &mut Topic| { &mut m.message_storage_policy },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"kms_key_name",
|m: &Topic| { &m.kms_key_name },
|m: &mut Topic| { &mut m.kms_key_name },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Topic>(
"Topic",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Topic {
static instance: ::protobuf::rt::LazyV2<Topic> = ::protobuf::rt::LazyV2::INIT;
instance.get(Topic::new)
}
}
impl ::protobuf::Clear for Topic {
fn clear(&mut self) {
self.name.clear();
self.labels.clear();
self.message_storage_policy.clear();
self.kms_key_name.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Topic {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Topic {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PubsubMessage {
pub data: ::std::vec::Vec<u8>,
pub attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub message_id: ::std::string::String,
pub publish_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
pub ordering_key: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PubsubMessage {
fn default() -> &'a PubsubMessage {
<PubsubMessage as ::protobuf::Message>::default_instance()
}
}
impl PubsubMessage {
pub fn new() -> PubsubMessage {
::std::default::Default::default()
}
pub fn get_data(&self) -> &[u8] {
&self.data
}
pub fn clear_data(&mut self) {
self.data.clear();
}
pub fn set_data(&mut self, v: ::std::vec::Vec<u8>) {
self.data = v;
}
pub fn mut_data(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.data
}
pub fn take_data(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.data, ::std::vec::Vec::new())
}
pub fn get_attributes(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
&self.attributes
}
pub fn clear_attributes(&mut self) {
self.attributes.clear();
}
pub fn set_attributes(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
self.attributes = v;
}
pub fn mut_attributes(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
&mut self.attributes
}
pub fn take_attributes(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
::std::mem::replace(&mut self.attributes, ::std::collections::HashMap::new())
}
pub fn get_message_id(&self) -> &str {
&self.message_id
}
pub fn clear_message_id(&mut self) {
self.message_id.clear();
}
pub fn set_message_id(&mut self, v: ::std::string::String) {
self.message_id = v;
}
pub fn mut_message_id(&mut self) -> &mut ::std::string::String {
&mut self.message_id
}
pub fn take_message_id(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.message_id, ::std::string::String::new())
}
pub fn get_publish_time(&self) -> &::protobuf::well_known_types::Timestamp {
self.publish_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance())
}
pub fn clear_publish_time(&mut self) {
self.publish_time.clear();
}
pub fn has_publish_time(&self) -> bool {
self.publish_time.is_some()
}
pub fn set_publish_time(&mut self, v: ::protobuf::well_known_types::Timestamp) {
self.publish_time = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_publish_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
if self.publish_time.is_none() {
self.publish_time.set_default();
}
self.publish_time.as_mut().unwrap()
}
pub fn take_publish_time(&mut self) -> ::protobuf::well_known_types::Timestamp {
self.publish_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
}
pub fn get_ordering_key(&self) -> &str {
&self.ordering_key
}
pub fn clear_ordering_key(&mut self) {
self.ordering_key.clear();
}
pub fn set_ordering_key(&mut self, v: ::std::string::String) {
self.ordering_key = v;
}
pub fn mut_ordering_key(&mut self) -> &mut ::std::string::String {
&mut self.ordering_key
}
pub fn take_ordering_key(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.ordering_key, ::std::string::String::new())
}
}
impl ::protobuf::Message for PubsubMessage {
fn is_initialized(&self) -> bool {
for v in &self.publish_time {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?;
},
2 => {
::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.attributes)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.message_id)?;
},
4 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.publish_time)?;
},
5 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ordering_key)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.data.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &self.data);
}
my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes);
if !self.message_id.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.message_id);
}
if let Some(ref v) = self.publish_time.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if !self.ordering_key.is_empty() {
my_size += ::protobuf::rt::string_size(5, &self.ordering_key);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.data.is_empty() {
os.write_bytes(1, &self.data)?;
}
::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes, os)?;
if !self.message_id.is_empty() {
os.write_string(3, &self.message_id)?;
}
if let Some(ref v) = self.publish_time.as_ref() {
os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if !self.ordering_key.is_empty() {
os.write_string(5, &self.ordering_key)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> PubsubMessage {
PubsubMessage::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"data",
|m: &PubsubMessage| { &m.data },
|m: &mut PubsubMessage| { &mut m.data },
));
fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
"attributes",
|m: &PubsubMessage| { &m.attributes },
|m: &mut PubsubMessage| { &mut m.attributes },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"message_id",
|m: &PubsubMessage| { &m.message_id },
|m: &mut PubsubMessage| { &mut m.message_id },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
"publish_time",
|m: &PubsubMessage| { &m.publish_time },
|m: &mut PubsubMessage| { &mut m.publish_time },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"ordering_key",
|m: &PubsubMessage| { &m.ordering_key },
|m: &mut PubsubMessage| { &mut m.ordering_key },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<PubsubMessage>(
"PubsubMessage",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static PubsubMessage {
static instance: ::protobuf::rt::LazyV2<PubsubMessage> = ::protobuf::rt::LazyV2::INIT;
instance.get(PubsubMessage::new)
}
}
impl ::protobuf::Clear for PubsubMessage {
fn clear(&mut self) {
self.data.clear();
self.attributes.clear();
self.message_id.clear();
self.publish_time.clear();
self.ordering_key.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PubsubMessage {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PubsubMessage {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct GetTopicRequest {
pub topic: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a GetTopicRequest {
fn default() -> &'a GetTopicRequest {
<GetTopicRequest as ::protobuf::Message>::default_instance()
}
}
impl GetTopicRequest {
pub fn new() -> GetTopicRequest {
::std::default::Default::default()
}
pub fn get_topic(&self) -> &str {
&self.topic
}
pub fn clear_topic(&mut self) {
self.topic.clear();
}
pub fn set_topic(&mut self, v: ::std::string::String) {
self.topic = v;
}
pub fn mut_topic(&mut self) -> &mut ::std::string::String {
&mut self.topic
}
pub fn take_topic(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.topic, ::std::string::String::new())
}
}
impl ::protobuf::Message for GetTopicRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.topic.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.topic);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.topic.is_empty() {
os.write_string(1, &self.topic)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> GetTopicRequest {
GetTopicRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"topic",
|m: &GetTopicRequest| { &m.topic },
|m: &mut GetTopicRequest| { &mut m.topic },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<GetTopicRequest>(
"GetTopicRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static GetTopicRequest {
static instance: ::protobuf::rt::LazyV2<GetTopicRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(GetTopicRequest::new)
}
}
impl ::protobuf::Clear for GetTopicRequest {
fn clear(&mut self) {
self.topic.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for GetTopicRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for GetTopicRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct UpdateTopicRequest {
pub topic: ::protobuf::SingularPtrField<Topic>,
pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a UpdateTopicRequest {
fn default() -> &'a UpdateTopicRequest {
<UpdateTopicRequest as ::protobuf::Message>::default_instance()
}
}
impl UpdateTopicRequest {
pub fn new() -> UpdateTopicRequest {
::std::default::Default::default()
}
pub fn get_topic(&self) -> &Topic {
self.topic.as_ref().unwrap_or_else(|| <Topic as ::protobuf::Message>::default_instance())
}
pub fn clear_topic(&mut self) {
self.topic.clear();
}
pub fn has_topic(&self) -> bool {
self.topic.is_some()
}
pub fn set_topic(&mut self, v: Topic) {
self.topic = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_topic(&mut self) -> &mut Topic {
if self.topic.is_none() {
self.topic.set_default();
}
self.topic.as_mut().unwrap()
}
pub fn take_topic(&mut self) -> Topic {
self.topic.take().unwrap_or_else(|| Topic::new())
}
pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask {
self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance())
}
pub fn clear_update_mask(&mut self) {
self.update_mask.clear();
}
pub fn has_update_mask(&self) -> bool {
self.update_mask.is_some()
}
pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) {
self.update_mask = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask {
if self.update_mask.is_none() {
self.update_mask.set_default();
}
self.update_mask.as_mut().unwrap()
}
pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask {
self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new())
}
}
impl ::protobuf::Message for UpdateTopicRequest {
fn is_initialized(&self) -> bool {
for v in &self.topic {
if !v.is_initialized() {
return false;
}
};
for v in &self.update_mask {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.topic)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.topic.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.update_mask.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.topic.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.update_mask.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> UpdateTopicRequest {
UpdateTopicRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Topic>>(
"topic",
|m: &UpdateTopicRequest| { &m.topic },
|m: &mut UpdateTopicRequest| { &mut m.topic },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>(
"update_mask",
|m: &UpdateTopicRequest| { &m.update_mask },
|m: &mut UpdateTopicRequest| { &mut m.update_mask },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<UpdateTopicRequest>(
"UpdateTopicRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static UpdateTopicRequest {
static instance: ::protobuf::rt::LazyV2<UpdateTopicRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(UpdateTopicRequest::new)
}
}
impl ::protobuf::Clear for UpdateTopicRequest {
fn clear(&mut self) {
self.topic.clear();
self.update_mask.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for UpdateTopicRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for UpdateTopicRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PublishRequest {
pub topic: ::std::string::String,
pub messages: ::protobuf::RepeatedField<PubsubMessage>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PublishRequest {
fn default() -> &'a PublishRequest {
<PublishRequest as ::protobuf::Message>::default_instance()
}
}
impl PublishRequest {
pub fn new() -> PublishRequest {
::std::default::Default::default()
}
pub fn get_topic(&self) -> &str {
&self.topic
}
pub fn clear_topic(&mut self) {
self.topic.clear();
}
pub fn set_topic(&mut self, v: ::std::string::String) {
self.topic = v;
}
pub fn mut_topic(&mut self) -> &mut ::std::string::String {
&mut self.topic
}
pub fn take_topic(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.topic, ::std::string::String::new())
}
pub fn get_messages(&self) -> &[PubsubMessage] {
&self.messages
}
pub fn clear_messages(&mut self) {
self.messages.clear();
}
pub fn set_messages(&mut self, v: ::protobuf::RepeatedField<PubsubMessage>) {
self.messages = v;
}
pub fn mut_messages(&mut self) -> &mut ::protobuf::RepeatedField<PubsubMessage> {
&mut self.messages
}
pub fn take_messages(&mut self) -> ::protobuf::RepeatedField<PubsubMessage> {
::std::mem::replace(&mut self.messages, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for PublishRequest {
fn is_initialized(&self) -> bool {
for v in &self.messages {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?;
},
2 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.messages)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.topic.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.topic);
}
for value in &self.messages {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.topic.is_empty() {
os.write_string(1, &self.topic)?;
}
for v in &self.messages {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> PublishRequest {
PublishRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"topic",
|m: &PublishRequest| { &m.topic },
|m: &mut PublishRequest| { &mut m.topic },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PubsubMessage>>(
"messages",
|m: &PublishRequest| { &m.messages },
|m: &mut PublishRequest| { &mut m.messages },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<PublishRequest>(
"PublishRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static PublishRequest {
static instance: ::protobuf::rt::LazyV2<PublishRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(PublishRequest::new)
}
}
impl ::protobuf::Clear for PublishRequest {
fn clear(&mut self) {
self.topic.clear();
self.messages.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PublishRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PublishRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PublishResponse {
pub message_ids: ::protobuf::RepeatedField<::std::string::String>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PublishResponse {
fn default() -> &'a PublishResponse {
<PublishResponse as ::protobuf::Message>::default_instance()
}
}
impl PublishResponse {
pub fn new() -> PublishResponse {
::std::default::Default::default()
}
pub fn get_message_ids(&self) -> &[::std::string::String] {
&self.message_ids
}
pub fn clear_message_ids(&mut self) {
self.message_ids.clear();
}
pub fn set_message_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.message_ids = v;
}
pub fn mut_message_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.message_ids
}
pub fn take_message_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.message_ids, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for PublishResponse {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.message_ids)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.message_ids {
my_size += ::protobuf::rt::string_size(1, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.message_ids {
os.write_string(1, &v)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> PublishResponse {
PublishResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"message_ids",
|m: &PublishResponse| { &m.message_ids },
|m: &mut PublishResponse| { &mut m.message_ids },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<PublishResponse>(
"PublishResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static PublishResponse {
static instance: ::protobuf::rt::LazyV2<PublishResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(PublishResponse::new)
}
}
impl ::protobuf::Clear for PublishResponse {
fn clear(&mut self) {
self.message_ids.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PublishResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PublishResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ListTopicsRequest {
pub project: ::std::string::String,
pub page_size: i32,
pub page_token: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ListTopicsRequest {
fn default() -> &'a ListTopicsRequest {
<ListTopicsRequest as ::protobuf::Message>::default_instance()
}
}
impl ListTopicsRequest {
pub fn new() -> ListTopicsRequest {
::std::default::Default::default()
}
pub fn get_project(&self) -> &str {
&self.project
}
pub fn clear_project(&mut self) {
self.project.clear();
}
pub fn set_project(&mut self, v: ::std::string::String) {
self.project = v;
}
pub fn mut_project(&mut self) -> &mut ::std::string::String {
&mut self.project
}
pub fn take_project(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.project, ::std::string::String::new())
}
pub fn get_page_size(&self) -> i32 {
self.page_size
}
pub fn clear_page_size(&mut self) {
self.page_size = 0;
}
pub fn set_page_size(&mut self, v: i32) {
self.page_size = v;
}
pub fn get_page_token(&self) -> &str {
&self.page_token
}
pub fn clear_page_token(&mut self) {
self.page_token.clear();
}
pub fn set_page_token(&mut self, v: ::std::string::String) {
self.page_token = v;
}
pub fn mut_page_token(&mut self) -> &mut ::std::string::String {
&mut self.page_token
}
pub fn take_page_token(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.page_token, ::std::string::String::new())
}
}
impl ::protobuf::Message for ListTopicsRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.page_size = tmp;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.project.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.project);
}
if self.page_size != 0 {
my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint);
}
if !self.page_token.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.page_token);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.project.is_empty() {
os.write_string(1, &self.project)?;
}
if self.page_size != 0 {
os.write_int32(2, self.page_size)?;
}
if !self.page_token.is_empty() {
os.write_string(3, &self.page_token)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ListTopicsRequest {
ListTopicsRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"project",
|m: &ListTopicsRequest| { &m.project },
|m: &mut ListTopicsRequest| { &mut m.project },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"page_size",
|m: &ListTopicsRequest| { &m.page_size },
|m: &mut ListTopicsRequest| { &mut m.page_size },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"page_token",
|m: &ListTopicsRequest| { &m.page_token },
|m: &mut ListTopicsRequest| { &mut m.page_token },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ListTopicsRequest>(
"ListTopicsRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ListTopicsRequest {
static instance: ::protobuf::rt::LazyV2<ListTopicsRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(ListTopicsRequest::new)
}
}
impl ::protobuf::Clear for ListTopicsRequest {
fn clear(&mut self) {
self.project.clear();
self.page_size = 0;
self.page_token.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ListTopicsRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ListTopicsRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ListTopicsResponse {
pub topics: ::protobuf::RepeatedField<Topic>,
pub next_page_token: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ListTopicsResponse {
fn default() -> &'a ListTopicsResponse {
<ListTopicsResponse as ::protobuf::Message>::default_instance()
}
}
impl ListTopicsResponse {
pub fn new() -> ListTopicsResponse {
::std::default::Default::default()
}
pub fn get_topics(&self) -> &[Topic] {
&self.topics
}
pub fn clear_topics(&mut self) {
self.topics.clear();
}
pub fn set_topics(&mut self, v: ::protobuf::RepeatedField<Topic>) {
self.topics = v;
}
pub fn mut_topics(&mut self) -> &mut ::protobuf::RepeatedField<Topic> {
&mut self.topics
}
pub fn take_topics(&mut self) -> ::protobuf::RepeatedField<Topic> {
::std::mem::replace(&mut self.topics, ::protobuf::RepeatedField::new())
}
pub fn get_next_page_token(&self) -> &str {
&self.next_page_token
}
pub fn clear_next_page_token(&mut self) {
self.next_page_token.clear();
}
pub fn set_next_page_token(&mut self, v: ::std::string::String) {
self.next_page_token = v;
}
pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String {
&mut self.next_page_token
}
pub fn take_next_page_token(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.next_page_token, ::std::string::String::new())
}
}
impl ::protobuf::Message for ListTopicsResponse {
fn is_initialized(&self) -> bool {
for v in &self.topics {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.topics)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.topics {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
if !self.next_page_token.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.next_page_token);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.topics {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
if !self.next_page_token.is_empty() {
os.write_string(2, &self.next_page_token)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ListTopicsResponse {
ListTopicsResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Topic>>(
"topics",
|m: &ListTopicsResponse| { &m.topics },
|m: &mut ListTopicsResponse| { &mut m.topics },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"next_page_token",
|m: &ListTopicsResponse| { &m.next_page_token },
|m: &mut ListTopicsResponse| { &mut m.next_page_token },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ListTopicsResponse>(
"ListTopicsResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ListTopicsResponse {
static instance: ::protobuf::rt::LazyV2<ListTopicsResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(ListTopicsResponse::new)
}
}
impl ::protobuf::Clear for ListTopicsResponse {
fn clear(&mut self) {
self.topics.clear();
self.next_page_token.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ListTopicsResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ListTopicsResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ListTopicSubscriptionsRequest {
pub topic: ::std::string::String,
pub page_size: i32,
pub page_token: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsRequest {
fn default() -> &'a ListTopicSubscriptionsRequest {
<ListTopicSubscriptionsRequest as ::protobuf::Message>::default_instance()
}
}
impl ListTopicSubscriptionsRequest {
pub fn new() -> ListTopicSubscriptionsRequest {
::std::default::Default::default()
}
pub fn get_topic(&self) -> &str {
&self.topic
}
pub fn clear_topic(&mut self) {
self.topic.clear();
}
pub fn set_topic(&mut self, v: ::std::string::String) {
self.topic = v;
}
pub fn mut_topic(&mut self) -> &mut ::std::string::String {
&mut self.topic
}
pub fn take_topic(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.topic, ::std::string::String::new())
}
pub fn get_page_size(&self) -> i32 {
self.page_size
}
pub fn clear_page_size(&mut self) {
self.page_size = 0;
}
pub fn set_page_size(&mut self, v: i32) {
self.page_size = v;
}
pub fn get_page_token(&self) -> &str {
&self.page_token
}
pub fn clear_page_token(&mut self) {
self.page_token.clear();
}
pub fn set_page_token(&mut self, v: ::std::string::String) {
self.page_token = v;
}
pub fn mut_page_token(&mut self) -> &mut ::std::string::String {
&mut self.page_token
}
pub fn take_page_token(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.page_token, ::std::string::String::new())
}
}
impl ::protobuf::Message for ListTopicSubscriptionsRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.page_size = tmp;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.topic.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.topic);
}
if self.page_size != 0 {
my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint);
}
if !self.page_token.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.page_token);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.topic.is_empty() {
os.write_string(1, &self.topic)?;
}
if self.page_size != 0 {
os.write_int32(2, self.page_size)?;
}
if !self.page_token.is_empty() {
os.write_string(3, &self.page_token)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ListTopicSubscriptionsRequest {
ListTopicSubscriptionsRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"topic",
|m: &ListTopicSubscriptionsRequest| { &m.topic },
|m: &mut ListTopicSubscriptionsRequest| { &mut m.topic },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"page_size",
|m: &ListTopicSubscriptionsRequest| { &m.page_size },
|m: &mut ListTopicSubscriptionsRequest| { &mut m.page_size },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"page_token",
|m: &ListTopicSubscriptionsRequest| { &m.page_token },
|m: &mut ListTopicSubscriptionsRequest| { &mut m.page_token },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ListTopicSubscriptionsRequest>(
"ListTopicSubscriptionsRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ListTopicSubscriptionsRequest {
static instance: ::protobuf::rt::LazyV2<ListTopicSubscriptionsRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(ListTopicSubscriptionsRequest::new)
}
}
impl ::protobuf::Clear for ListTopicSubscriptionsRequest {
fn clear(&mut self) {
self.topic.clear();
self.page_size = 0;
self.page_token.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ListTopicSubscriptionsRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ListTopicSubscriptionsRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ListTopicSubscriptionsResponse {
pub subscriptions: ::protobuf::RepeatedField<::std::string::String>,
pub next_page_token: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsResponse {
fn default() -> &'a ListTopicSubscriptionsResponse {
<ListTopicSubscriptionsResponse as ::protobuf::Message>::default_instance()
}
}
impl ListTopicSubscriptionsResponse {
pub fn new() -> ListTopicSubscriptionsResponse {
::std::default::Default::default()
}
pub fn get_subscriptions(&self) -> &[::std::string::String] {
&self.subscriptions
}
pub fn clear_subscriptions(&mut self) {
self.subscriptions.clear();
}
pub fn set_subscriptions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.subscriptions = v;
}
pub fn mut_subscriptions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.subscriptions
}
pub fn take_subscriptions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.subscriptions, ::protobuf::RepeatedField::new())
}
pub fn get_next_page_token(&self) -> &str {
&self.next_page_token
}
pub fn clear_next_page_token(&mut self) {
self.next_page_token.clear();
}
pub fn set_next_page_token(&mut self, v: ::std::string::String) {
self.next_page_token = v;
}
pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String {
&mut self.next_page_token
}
pub fn take_next_page_token(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.next_page_token, ::std::string::String::new())
}
}
impl ::protobuf::Message for ListTopicSubscriptionsResponse {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.subscriptions)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.subscriptions {
my_size += ::protobuf::rt::string_size(1, &value);
};
if !self.next_page_token.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.next_page_token);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.subscriptions {
os.write_string(1, &v)?;
};
if !self.next_page_token.is_empty() {
os.write_string(2, &self.next_page_token)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ListTopicSubscriptionsResponse {
ListTopicSubscriptionsResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"subscriptions",
|m: &ListTopicSubscriptionsResponse| { &m.subscriptions },
|m: &mut ListTopicSubscriptionsResponse| { &mut m.subscriptions },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"next_page_token",
|m: &ListTopicSubscriptionsResponse| { &m.next_page_token },
|m: &mut ListTopicSubscriptionsResponse| { &mut m.next_page_token },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ListTopicSubscriptionsResponse>(
"ListTopicSubscriptionsResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ListTopicSubscriptionsResponse {
static instance: ::protobuf::rt::LazyV2<ListTopicSubscriptionsResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(ListTopicSubscriptionsResponse::new)
}
}
impl ::protobuf::Clear for ListTopicSubscriptionsResponse {
fn clear(&mut self) {
self.subscriptions.clear();
self.next_page_token.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ListTopicSubscriptionsResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ListTopicSubscriptionsResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ListTopicSnapshotsRequest {
pub topic: ::std::string::String,
pub page_size: i32,
pub page_token: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ListTopicSnapshotsRequest {
fn default() -> &'a ListTopicSnapshotsRequest {
<ListTopicSnapshotsRequest as ::protobuf::Message>::default_instance()
}
}
impl ListTopicSnapshotsRequest {
pub fn new() -> ListTopicSnapshotsRequest {
::std::default::Default::default()
}
pub fn get_topic(&self) -> &str {
&self.topic
}
pub fn clear_topic(&mut self) {
self.topic.clear();
}
pub fn set_topic(&mut self, v: ::std::string::String) {
self.topic = v;
}
pub fn mut_topic(&mut self) -> &mut ::std::string::String {
&mut self.topic
}
pub fn take_topic(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.topic, ::std::string::String::new())
}
pub fn get_page_size(&self) -> i32 {
self.page_size
}
pub fn clear_page_size(&mut self) {
self.page_size = 0;
}
pub fn set_page_size(&mut self, v: i32) {
self.page_size = v;
}
pub fn get_page_token(&self) -> &str {
&self.page_token
}
pub fn clear_page_token(&mut self) {
self.page_token.clear();
}
pub fn set_page_token(&mut self, v: ::std::string::String) {
self.page_token = v;
}
pub fn mut_page_token(&mut self) -> &mut ::std::string::String {
&mut self.page_token
}
pub fn take_page_token(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.page_token, ::std::string::String::new())
}
}
impl ::protobuf::Message for ListTopicSnapshotsRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.page_size = tmp;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.topic.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.topic);
}
if self.page_size != 0 {
my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint);
}
if !self.page_token.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.page_token);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.topic.is_empty() {
os.write_string(1, &self.topic)?;
}
if self.page_size != 0 {
os.write_int32(2, self.page_size)?;
}
if !self.page_token.is_empty() {
os.write_string(3, &self.page_token)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ListTopicSnapshotsRequest {
ListTopicSnapshotsRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"topic",
|m: &ListTopicSnapshotsRequest| { &m.topic },
|m: &mut ListTopicSnapshotsRequest| { &mut m.topic },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"page_size",
|m: &ListTopicSnapshotsRequest| { &m.page_size },
|m: &mut ListTopicSnapshotsRequest| { &mut m.page_size },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"page_token",
|m: &ListTopicSnapshotsRequest| { &m.page_token },
|m: &mut ListTopicSnapshotsRequest| { &mut m.page_token },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ListTopicSnapshotsRequest>(
"ListTopicSnapshotsRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ListTopicSnapshotsRequest {
static instance: ::protobuf::rt::LazyV2<ListTopicSnapshotsRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(ListTopicSnapshotsRequest::new)
}
}
impl ::protobuf::Clear for ListTopicSnapshotsRequest {
fn clear(&mut self) {
self.topic.clear();
self.page_size = 0;
self.page_token.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ListTopicSnapshotsRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ListTopicSnapshotsRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ListTopicSnapshotsResponse {
pub snapshots: ::protobuf::RepeatedField<::std::string::String>,
pub next_page_token: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ListTopicSnapshotsResponse {
fn default() -> &'a ListTopicSnapshotsResponse {
<ListTopicSnapshotsResponse as ::protobuf::Message>::default_instance()
}
}
impl ListTopicSnapshotsResponse {
pub fn new() -> ListTopicSnapshotsResponse {
::std::default::Default::default()
}
pub fn get_snapshots(&self) -> &[::std::string::String] {
&self.snapshots
}
pub fn clear_snapshots(&mut self) {
self.snapshots.clear();
}
pub fn set_snapshots(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.snapshots = v;
}
pub fn mut_snapshots(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.snapshots
}
pub fn take_snapshots(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.snapshots, ::protobuf::RepeatedField::new())
}
pub fn get_next_page_token(&self) -> &str {
&self.next_page_token
}
pub fn clear_next_page_token(&mut self) {
self.next_page_token.clear();
}
pub fn set_next_page_token(&mut self, v: ::std::string::String) {
self.next_page_token = v;
}
pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String {
&mut self.next_page_token
}
pub fn take_next_page_token(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.next_page_token, ::std::string::String::new())
}
}
impl ::protobuf::Message for ListTopicSnapshotsResponse {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.snapshots)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.snapshots {
my_size += ::protobuf::rt::string_size(1, &value);
};
if !self.next_page_token.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.next_page_token);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.snapshots {
os.write_string(1, &v)?;
};
if !self.next_page_token.is_empty() {
os.write_string(2, &self.next_page_token)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ListTopicSnapshotsResponse {
ListTopicSnapshotsResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"snapshots",
|m: &ListTopicSnapshotsResponse| { &m.snapshots },
|m: &mut ListTopicSnapshotsResponse| { &mut m.snapshots },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"next_page_token",
|m: &ListTopicSnapshotsResponse| { &m.next_page_token },
|m: &mut ListTopicSnapshotsResponse| { &mut m.next_page_token },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ListTopicSnapshotsResponse>(
"ListTopicSnapshotsResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ListTopicSnapshotsResponse {
static instance: ::protobuf::rt::LazyV2<ListTopicSnapshotsResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(ListTopicSnapshotsResponse::new)
}
}
impl ::protobuf::Clear for ListTopicSnapshotsResponse {
fn clear(&mut self) {
self.snapshots.clear();
self.next_page_token.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ListTopicSnapshotsResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ListTopicSnapshotsResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct DeleteTopicRequest {
pub topic: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a DeleteTopicRequest {
fn default() -> &'a DeleteTopicRequest {
<DeleteTopicRequest as ::protobuf::Message>::default_instance()
}
}
impl DeleteTopicRequest {
pub fn new() -> DeleteTopicRequest {
::std::default::Default::default()
}
pub fn get_topic(&self) -> &str {
&self.topic
}
pub fn clear_topic(&mut self) {
self.topic.clear();
}
pub fn set_topic(&mut self, v: ::std::string::String) {
self.topic = v;
}
pub fn mut_topic(&mut self) -> &mut ::std::string::String {
&mut self.topic
}
pub fn take_topic(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.topic, ::std::string::String::new())
}
}
impl ::protobuf::Message for DeleteTopicRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.topic.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.topic);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.topic.is_empty() {
os.write_string(1, &self.topic)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> DeleteTopicRequest {
DeleteTopicRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"topic",
|m: &DeleteTopicRequest| { &m.topic },
|m: &mut DeleteTopicRequest| { &mut m.topic },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<DeleteTopicRequest>(
"DeleteTopicRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static DeleteTopicRequest {
static instance: ::protobuf::rt::LazyV2<DeleteTopicRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(DeleteTopicRequest::new)
}
}
impl ::protobuf::Clear for DeleteTopicRequest {
fn clear(&mut self) {
self.topic.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for DeleteTopicRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DeleteTopicRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct Subscription {
pub name: ::std::string::String,
pub topic: ::std::string::String,
pub push_config: ::protobuf::SingularPtrField<PushConfig>,
pub ack_deadline_seconds: i32,
pub retain_acked_messages: bool,
pub message_retention_duration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>,
pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub enable_message_ordering: bool,
pub expiration_policy: ::protobuf::SingularPtrField<ExpirationPolicy>,
pub dead_letter_policy: ::protobuf::SingularPtrField<DeadLetterPolicy>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Subscription {
fn default() -> &'a Subscription {
<Subscription as ::protobuf::Message>::default_instance()
}
}
impl Subscription {
pub fn new() -> Subscription {
::std::default::Default::default()
}
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_name(&mut self) {
self.name.clear();
}
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
pub fn get_topic(&self) -> &str {
&self.topic
}
pub fn clear_topic(&mut self) {
self.topic.clear();
}
pub fn set_topic(&mut self, v: ::std::string::String) {
self.topic = v;
}
pub fn mut_topic(&mut self) -> &mut ::std::string::String {
&mut self.topic
}
pub fn take_topic(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.topic, ::std::string::String::new())
}
pub fn get_push_config(&self) -> &PushConfig {
self.push_config.as_ref().unwrap_or_else(|| <PushConfig as ::protobuf::Message>::default_instance())
}
pub fn clear_push_config(&mut self) {
self.push_config.clear();
}
pub fn has_push_config(&self) -> bool {
self.push_config.is_some()
}
pub fn set_push_config(&mut self, v: PushConfig) {
self.push_config = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_push_config(&mut self) -> &mut PushConfig {
if self.push_config.is_none() {
self.push_config.set_default();
}
self.push_config.as_mut().unwrap()
}
pub fn take_push_config(&mut self) -> PushConfig {
self.push_config.take().unwrap_or_else(|| PushConfig::new())
}
pub fn get_ack_deadline_seconds(&self) -> i32 {
self.ack_deadline_seconds
}
pub fn clear_ack_deadline_seconds(&mut self) {
self.ack_deadline_seconds = 0;
}
pub fn set_ack_deadline_seconds(&mut self, v: i32) {
self.ack_deadline_seconds = v;
}
pub fn get_retain_acked_messages(&self) -> bool {
self.retain_acked_messages
}
pub fn clear_retain_acked_messages(&mut self) {
self.retain_acked_messages = false;
}
pub fn set_retain_acked_messages(&mut self, v: bool) {
self.retain_acked_messages = v;
}
pub fn get_message_retention_duration(&self) -> &::protobuf::well_known_types::Duration {
self.message_retention_duration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance())
}
pub fn clear_message_retention_duration(&mut self) {
self.message_retention_duration.clear();
}
pub fn has_message_retention_duration(&self) -> bool {
self.message_retention_duration.is_some()
}
pub fn set_message_retention_duration(&mut self, v: ::protobuf::well_known_types::Duration) {
self.message_retention_duration = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_message_retention_duration(&mut self) -> &mut ::protobuf::well_known_types::Duration {
if self.message_retention_duration.is_none() {
self.message_retention_duration.set_default();
}
self.message_retention_duration.as_mut().unwrap()
}
pub fn take_message_retention_duration(&mut self) -> ::protobuf::well_known_types::Duration {
self.message_retention_duration.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new())
}
pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
&self.labels
}
pub fn clear_labels(&mut self) {
self.labels.clear();
}
pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
self.labels = v;
}
pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
&mut self.labels
}
pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new())
}
pub fn get_enable_message_ordering(&self) -> bool {
self.enable_message_ordering
}
pub fn clear_enable_message_ordering(&mut self) {
self.enable_message_ordering = false;
}
pub fn set_enable_message_ordering(&mut self, v: bool) {
self.enable_message_ordering = v;
}
pub fn get_expiration_policy(&self) -> &ExpirationPolicy {
self.expiration_policy.as_ref().unwrap_or_else(|| <ExpirationPolicy as ::protobuf::Message>::default_instance())
}
pub fn clear_expiration_policy(&mut self) {
self.expiration_policy.clear();
}
pub fn has_expiration_policy(&self) -> bool {
self.expiration_policy.is_some()
}
pub fn set_expiration_policy(&mut self, v: ExpirationPolicy) {
self.expiration_policy = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_expiration_policy(&mut self) -> &mut ExpirationPolicy {
if self.expiration_policy.is_none() {
self.expiration_policy.set_default();
}
self.expiration_policy.as_mut().unwrap()
}
pub fn take_expiration_policy(&mut self) -> ExpirationPolicy {
self.expiration_policy.take().unwrap_or_else(|| ExpirationPolicy::new())
}
pub fn get_dead_letter_policy(&self) -> &DeadLetterPolicy {
self.dead_letter_policy.as_ref().unwrap_or_else(|| <DeadLetterPolicy as ::protobuf::Message>::default_instance())
}
pub fn clear_dead_letter_policy(&mut self) {
self.dead_letter_policy.clear();
}
pub fn has_dead_letter_policy(&self) -> bool {
self.dead_letter_policy.is_some()
}
pub fn set_dead_letter_policy(&mut self, v: DeadLetterPolicy) {
self.dead_letter_policy = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_dead_letter_policy(&mut self) -> &mut DeadLetterPolicy {
if self.dead_letter_policy.is_none() {
self.dead_letter_policy.set_default();
}
self.dead_letter_policy.as_mut().unwrap()
}
pub fn take_dead_letter_policy(&mut self) -> DeadLetterPolicy {
self.dead_letter_policy.take().unwrap_or_else(|| DeadLetterPolicy::new())
}
}
impl ::protobuf::Message for Subscription {
fn is_initialized(&self) -> bool {
for v in &self.push_config {
if !v.is_initialized() {
return false;
}
};
for v in &self.message_retention_duration {
if !v.is_initialized() {
return false;
}
};
for v in &self.expiration_policy {
if !v.is_initialized() {
return false;
}
};
for v in &self.dead_letter_policy {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?;
},
4 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.push_config)?;
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.ack_deadline_seconds = tmp;
},
7 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_bool()?;
self.retain_acked_messages = tmp;
},
8 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.message_retention_duration)?;
},
9 => {
::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?;
},
10 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_bool()?;
self.enable_message_ordering = tmp;
},
11 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.expiration_policy)?;
},
13 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.dead_letter_policy)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.name.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.name);
}
if !self.topic.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.topic);
}
if let Some(ref v) = self.push_config.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if self.ack_deadline_seconds != 0 {
my_size += ::protobuf::rt::value_size(5, self.ack_deadline_seconds, ::protobuf::wire_format::WireTypeVarint);
}
if self.retain_acked_messages != false {
my_size += 2;
}
if let Some(ref v) = self.message_retention_duration.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(9, &self.labels);
if self.enable_message_ordering != false {
my_size += 2;
}
if let Some(ref v) = self.expiration_policy.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.dead_letter_policy.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.name.is_empty() {
os.write_string(1, &self.name)?;
}
if !self.topic.is_empty() {
os.write_string(2, &self.topic)?;
}
if let Some(ref v) = self.push_config.as_ref() {
os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if self.ack_deadline_seconds != 0 {
os.write_int32(5, self.ack_deadline_seconds)?;
}
if self.retain_acked_messages != false {
os.write_bool(7, self.retain_acked_messages)?;
}
if let Some(ref v) = self.message_retention_duration.as_ref() {
os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(9, &self.labels, os)?;
if self.enable_message_ordering != false {
os.write_bool(10, self.enable_message_ordering)?;
}
if let Some(ref v) = self.expiration_policy.as_ref() {
os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.dead_letter_policy.as_ref() {
os.write_tag(13, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> Subscription {
Subscription::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"name",
|m: &Subscription| { &m.name },
|m: &mut Subscription| { &mut m.name },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"topic",
|m: &Subscription| { &m.topic },
|m: &mut Subscription| { &mut m.topic },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PushConfig>>(
"push_config",
|m: &Subscription| { &m.push_config },
|m: &mut Subscription| { &mut m.push_config },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"ack_deadline_seconds",
|m: &Subscription| { &m.ack_deadline_seconds },
|m: &mut Subscription| { &mut m.ack_deadline_seconds },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"retain_acked_messages",
|m: &Subscription| { &m.retain_acked_messages },
|m: &mut Subscription| { &mut m.retain_acked_messages },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>(
"message_retention_duration",
|m: &Subscription| { &m.message_retention_duration },
|m: &mut Subscription| { &mut m.message_retention_duration },
));
fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
"labels",
|m: &Subscription| { &m.labels },
|m: &mut Subscription| { &mut m.labels },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"enable_message_ordering",
|m: &Subscription| { &m.enable_message_ordering },
|m: &mut Subscription| { &mut m.enable_message_ordering },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ExpirationPolicy>>(
"expiration_policy",
|m: &Subscription| { &m.expiration_policy },
|m: &mut Subscription| { &mut m.expiration_policy },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<DeadLetterPolicy>>(
"dead_letter_policy",
|m: &Subscription| { &m.dead_letter_policy },
|m: &mut Subscription| { &mut m.dead_letter_policy },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Subscription>(
"Subscription",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Subscription {
static instance: ::protobuf::rt::LazyV2<Subscription> = ::protobuf::rt::LazyV2::INIT;
instance.get(Subscription::new)
}
}
impl ::protobuf::Clear for Subscription {
fn clear(&mut self) {
self.name.clear();
self.topic.clear();
self.push_config.clear();
self.ack_deadline_seconds = 0;
self.retain_acked_messages = false;
self.message_retention_duration.clear();
self.labels.clear();
self.enable_message_ordering = false;
self.expiration_policy.clear();
self.dead_letter_policy.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Subscription {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Subscription {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct DeadLetterPolicy {
pub dead_letter_topic: ::std::string::String,
pub max_delivery_attempts: i32,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a DeadLetterPolicy {
fn default() -> &'a DeadLetterPolicy {
<DeadLetterPolicy as ::protobuf::Message>::default_instance()
}
}
impl DeadLetterPolicy {
pub fn new() -> DeadLetterPolicy {
::std::default::Default::default()
}
pub fn get_dead_letter_topic(&self) -> &str {
&self.dead_letter_topic
}
pub fn clear_dead_letter_topic(&mut self) {
self.dead_letter_topic.clear();
}
pub fn set_dead_letter_topic(&mut self, v: ::std::string::String) {
self.dead_letter_topic = v;
}
pub fn mut_dead_letter_topic(&mut self) -> &mut ::std::string::String {
&mut self.dead_letter_topic
}
pub fn take_dead_letter_topic(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.dead_letter_topic, ::std::string::String::new())
}
pub fn get_max_delivery_attempts(&self) -> i32 {
self.max_delivery_attempts
}
pub fn clear_max_delivery_attempts(&mut self) {
self.max_delivery_attempts = 0;
}
pub fn set_max_delivery_attempts(&mut self, v: i32) {
self.max_delivery_attempts = v;
}
}
impl ::protobuf::Message for DeadLetterPolicy {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.dead_letter_topic)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.max_delivery_attempts = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.dead_letter_topic.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.dead_letter_topic);
}
if self.max_delivery_attempts != 0 {
my_size += ::protobuf::rt::value_size(2, self.max_delivery_attempts, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.dead_letter_topic.is_empty() {
os.write_string(1, &self.dead_letter_topic)?;
}
if self.max_delivery_attempts != 0 {
os.write_int32(2, self.max_delivery_attempts)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> DeadLetterPolicy {
DeadLetterPolicy::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"dead_letter_topic",
|m: &DeadLetterPolicy| { &m.dead_letter_topic },
|m: &mut DeadLetterPolicy| { &mut m.dead_letter_topic },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"max_delivery_attempts",
|m: &DeadLetterPolicy| { &m.max_delivery_attempts },
|m: &mut DeadLetterPolicy| { &mut m.max_delivery_attempts },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<DeadLetterPolicy>(
"DeadLetterPolicy",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static DeadLetterPolicy {
static instance: ::protobuf::rt::LazyV2<DeadLetterPolicy> = ::protobuf::rt::LazyV2::INIT;
instance.get(DeadLetterPolicy::new)
}
}
impl ::protobuf::Clear for DeadLetterPolicy {
fn clear(&mut self) {
self.dead_letter_topic.clear();
self.max_delivery_attempts = 0;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for DeadLetterPolicy {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DeadLetterPolicy {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ExpirationPolicy {
pub ttl: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ExpirationPolicy {
fn default() -> &'a ExpirationPolicy {
<ExpirationPolicy as ::protobuf::Message>::default_instance()
}
}
impl ExpirationPolicy {
pub fn new() -> ExpirationPolicy {
::std::default::Default::default()
}
pub fn get_ttl(&self) -> &::protobuf::well_known_types::Duration {
self.ttl.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance())
}
pub fn clear_ttl(&mut self) {
self.ttl.clear();
}
pub fn has_ttl(&self) -> bool {
self.ttl.is_some()
}
pub fn set_ttl(&mut self, v: ::protobuf::well_known_types::Duration) {
self.ttl = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_ttl(&mut self) -> &mut ::protobuf::well_known_types::Duration {
if self.ttl.is_none() {
self.ttl.set_default();
}
self.ttl.as_mut().unwrap()
}
pub fn take_ttl(&mut self) -> ::protobuf::well_known_types::Duration {
self.ttl.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new())
}
}
impl ::protobuf::Message for ExpirationPolicy {
fn is_initialized(&self) -> bool {
for v in &self.ttl {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.ttl)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.ttl.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.ttl.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ExpirationPolicy {
ExpirationPolicy::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>(
"ttl",
|m: &ExpirationPolicy| { &m.ttl },
|m: &mut ExpirationPolicy| { &mut m.ttl },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ExpirationPolicy>(
"ExpirationPolicy",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ExpirationPolicy {
static instance: ::protobuf::rt::LazyV2<ExpirationPolicy> = ::protobuf::rt::LazyV2::INIT;
instance.get(ExpirationPolicy::new)
}
}
impl ::protobuf::Clear for ExpirationPolicy {
fn clear(&mut self) {
self.ttl.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ExpirationPolicy {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ExpirationPolicy {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PushConfig {
pub push_endpoint: ::std::string::String,
pub attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub authentication_method: ::std::option::Option<PushConfig_oneof_authentication_method>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PushConfig {
fn default() -> &'a PushConfig {
<PushConfig as ::protobuf::Message>::default_instance()
}
}
#[derive(Clone,PartialEq,Debug)]
pub enum PushConfig_oneof_authentication_method {
oidc_token(PushConfig_OidcToken),
}
impl PushConfig {
pub fn new() -> PushConfig {
::std::default::Default::default()
}
pub fn get_push_endpoint(&self) -> &str {
&self.push_endpoint
}
pub fn clear_push_endpoint(&mut self) {
self.push_endpoint.clear();
}
pub fn set_push_endpoint(&mut self, v: ::std::string::String) {
self.push_endpoint = v;
}
pub fn mut_push_endpoint(&mut self) -> &mut ::std::string::String {
&mut self.push_endpoint
}
pub fn take_push_endpoint(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.push_endpoint, ::std::string::String::new())
}
pub fn get_attributes(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
&self.attributes
}
pub fn clear_attributes(&mut self) {
self.attributes.clear();
}
pub fn set_attributes(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
self.attributes = v;
}
pub fn mut_attributes(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
&mut self.attributes
}
pub fn take_attributes(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
::std::mem::replace(&mut self.attributes, ::std::collections::HashMap::new())
}
pub fn get_oidc_token(&self) -> &PushConfig_OidcToken {
match self.authentication_method {
::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(ref v)) => v,
_ => <PushConfig_OidcToken as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_oidc_token(&mut self) {
self.authentication_method = ::std::option::Option::None;
}
pub fn has_oidc_token(&self) -> bool {
match self.authentication_method {
::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(..)) => true,
_ => false,
}
}
pub fn set_oidc_token(&mut self, v: PushConfig_OidcToken) {
self.authentication_method = ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(v))
}
pub fn mut_oidc_token(&mut self) -> &mut PushConfig_OidcToken {
if let ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(_)) = self.authentication_method {
} else {
self.authentication_method = ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(PushConfig_OidcToken::new()));
}
match self.authentication_method {
::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_oidc_token(&mut self) -> PushConfig_OidcToken {
if self.has_oidc_token() {
match self.authentication_method.take() {
::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(v)) => v,
_ => panic!(),
}
} else {
PushConfig_OidcToken::new()
}
}
}
impl ::protobuf::Message for PushConfig {
fn is_initialized(&self) -> bool {
if let Some(PushConfig_oneof_authentication_method::oidc_token(ref v)) = self.authentication_method {
if !v.is_initialized() {
return false;
}
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.push_endpoint)?;
},
2 => {
::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.attributes)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.authentication_method = ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(is.read_message()?));
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.push_endpoint.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.push_endpoint);
}
my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes);
if let ::std::option::Option::Some(ref v) = self.authentication_method {
match v {
&PushConfig_oneof_authentication_method::oidc_token(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
};
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.push_endpoint.is_empty() {
os.write_string(1, &self.push_endpoint)?;
}
::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes, os)?;
if let ::std::option::Option::Some(ref v) = self.authentication_method {
match v {
&PushConfig_oneof_authentication_method::oidc_token(ref v) => {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
};
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> PushConfig {
PushConfig::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"push_endpoint",
|m: &PushConfig| { &m.push_endpoint },
|m: &mut PushConfig| { &mut m.push_endpoint },
));
fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
"attributes",
|m: &PushConfig| { &m.attributes },
|m: &mut PushConfig| { &mut m.attributes },
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, PushConfig_OidcToken>(
"oidc_token",
PushConfig::has_oidc_token,
PushConfig::get_oidc_token,
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<PushConfig>(
"PushConfig",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static PushConfig {
static instance: ::protobuf::rt::LazyV2<PushConfig> = ::protobuf::rt::LazyV2::INIT;
instance.get(PushConfig::new)
}
}
impl ::protobuf::Clear for PushConfig {
fn clear(&mut self) {
self.push_endpoint.clear();
self.attributes.clear();
self.authentication_method = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PushConfig {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PushConfig {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PushConfig_OidcToken {
pub service_account_email: ::std::string::String,
pub audience: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PushConfig_OidcToken {
fn default() -> &'a PushConfig_OidcToken {
<PushConfig_OidcToken as ::protobuf::Message>::default_instance()
}
}
impl PushConfig_OidcToken {
pub fn new() -> PushConfig_OidcToken {
::std::default::Default::default()
}
pub fn get_service_account_email(&self) -> &str {
&self.service_account_email
}
pub fn clear_service_account_email(&mut self) {
self.service_account_email.clear();
}
pub fn set_service_account_email(&mut self, v: ::std::string::String) {
self.service_account_email = v;
}
pub fn mut_service_account_email(&mut self) -> &mut ::std::string::String {
&mut self.service_account_email
}
pub fn take_service_account_email(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.service_account_email, ::std::string::String::new())
}
pub fn get_audience(&self) -> &str {
&self.audience
}
pub fn clear_audience(&mut self) {
self.audience.clear();
}
pub fn set_audience(&mut self, v: ::std::string::String) {
self.audience = v;
}
pub fn mut_audience(&mut self) -> &mut ::std::string::String {
&mut self.audience
}
pub fn take_audience(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.audience, ::std::string::String::new())
}
}
impl ::protobuf::Message for PushConfig_OidcToken {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_account_email)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.audience)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.service_account_email.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.service_account_email);
}
if !self.audience.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.audience);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.service_account_email.is_empty() {
os.write_string(1, &self.service_account_email)?;
}
if !self.audience.is_empty() {
os.write_string(2, &self.audience)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> PushConfig_OidcToken {
PushConfig_OidcToken::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"service_account_email",
|m: &PushConfig_OidcToken| { &m.service_account_email },
|m: &mut PushConfig_OidcToken| { &mut m.service_account_email },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"audience",
|m: &PushConfig_OidcToken| { &m.audience },
|m: &mut PushConfig_OidcToken| { &mut m.audience },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<PushConfig_OidcToken>(
"PushConfig.OidcToken",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static PushConfig_OidcToken {
static instance: ::protobuf::rt::LazyV2<PushConfig_OidcToken> = ::protobuf::rt::LazyV2::INIT;
instance.get(PushConfig_OidcToken::new)
}
}
impl ::protobuf::Clear for PushConfig_OidcToken {
fn clear(&mut self) {
self.service_account_email.clear();
self.audience.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PushConfig_OidcToken {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PushConfig_OidcToken {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ReceivedMessage {
pub ack_id: ::std::string::String,
pub message: ::protobuf::SingularPtrField<PubsubMessage>,
pub delivery_attempt: i32,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ReceivedMessage {
fn default() -> &'a ReceivedMessage {
<ReceivedMessage as ::protobuf::Message>::default_instance()
}
}
impl ReceivedMessage {
pub fn new() -> ReceivedMessage {
::std::default::Default::default()
}
pub fn get_ack_id(&self) -> &str {
&self.ack_id
}
pub fn clear_ack_id(&mut self) {
self.ack_id.clear();
}
pub fn set_ack_id(&mut self, v: ::std::string::String) {
self.ack_id = v;
}
pub fn mut_ack_id(&mut self) -> &mut ::std::string::String {
&mut self.ack_id
}
pub fn take_ack_id(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.ack_id, ::std::string::String::new())
}
pub fn get_message(&self) -> &PubsubMessage {
self.message.as_ref().unwrap_or_else(|| <PubsubMessage as ::protobuf::Message>::default_instance())
}
pub fn clear_message(&mut self) {
self.message.clear();
}
pub fn has_message(&self) -> bool {
self.message.is_some()
}
pub fn set_message(&mut self, v: PubsubMessage) {
self.message = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_message(&mut self) -> &mut PubsubMessage {
if self.message.is_none() {
self.message.set_default();
}
self.message.as_mut().unwrap()
}
pub fn take_message(&mut self) -> PubsubMessage {
self.message.take().unwrap_or_else(|| PubsubMessage::new())
}
pub fn get_delivery_attempt(&self) -> i32 {
self.delivery_attempt
}
pub fn clear_delivery_attempt(&mut self) {
self.delivery_attempt = 0;
}
pub fn set_delivery_attempt(&mut self, v: i32) {
self.delivery_attempt = v;
}
}
impl ::protobuf::Message for ReceivedMessage {
fn is_initialized(&self) -> bool {
for v in &self.message {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ack_id)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.message)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.delivery_attempt = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.ack_id.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.ack_id);
}
if let Some(ref v) = self.message.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if self.delivery_attempt != 0 {
my_size += ::protobuf::rt::value_size(3, self.delivery_attempt, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.ack_id.is_empty() {
os.write_string(1, &self.ack_id)?;
}
if let Some(ref v) = self.message.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if self.delivery_attempt != 0 {
os.write_int32(3, self.delivery_attempt)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ReceivedMessage {
ReceivedMessage::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"ack_id",
|m: &ReceivedMessage| { &m.ack_id },
|m: &mut ReceivedMessage| { &mut m.ack_id },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PubsubMessage>>(
"message",
|m: &ReceivedMessage| { &m.message },
|m: &mut ReceivedMessage| { &mut m.message },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"delivery_attempt",
|m: &ReceivedMessage| { &m.delivery_attempt },
|m: &mut ReceivedMessage| { &mut m.delivery_attempt },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ReceivedMessage>(
"ReceivedMessage",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ReceivedMessage {
static instance: ::protobuf::rt::LazyV2<ReceivedMessage> = ::protobuf::rt::LazyV2::INIT;
instance.get(ReceivedMessage::new)
}
}
impl ::protobuf::Clear for ReceivedMessage {
fn clear(&mut self) {
self.ack_id.clear();
self.message.clear();
self.delivery_attempt = 0;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ReceivedMessage {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ReceivedMessage {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct GetSubscriptionRequest {
pub subscription: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a GetSubscriptionRequest {
fn default() -> &'a GetSubscriptionRequest {
<GetSubscriptionRequest as ::protobuf::Message>::default_instance()
}
}
impl GetSubscriptionRequest {
pub fn new() -> GetSubscriptionRequest {
::std::default::Default::default()
}
pub fn get_subscription(&self) -> &str {
&self.subscription
}
pub fn clear_subscription(&mut self) {
self.subscription.clear();
}
pub fn set_subscription(&mut self, v: ::std::string::String) {
self.subscription = v;
}
pub fn mut_subscription(&mut self) -> &mut ::std::string::String {
&mut self.subscription
}
pub fn take_subscription(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.subscription, ::std::string::String::new())
}
}
impl ::protobuf::Message for GetSubscriptionRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.subscription.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.subscription);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.subscription.is_empty() {
os.write_string(1, &self.subscription)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> GetSubscriptionRequest {
GetSubscriptionRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"subscription",
|m: &GetSubscriptionRequest| { &m.subscription },
|m: &mut GetSubscriptionRequest| { &mut m.subscription },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<GetSubscriptionRequest>(
"GetSubscriptionRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static GetSubscriptionRequest {
static instance: ::protobuf::rt::LazyV2<GetSubscriptionRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(GetSubscriptionRequest::new)
}
}
impl ::protobuf::Clear for GetSubscriptionRequest {
fn clear(&mut self) {
self.subscription.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for GetSubscriptionRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for GetSubscriptionRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct UpdateSubscriptionRequest {
pub subscription: ::protobuf::SingularPtrField<Subscription>,
pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a UpdateSubscriptionRequest {
fn default() -> &'a UpdateSubscriptionRequest {
<UpdateSubscriptionRequest as ::protobuf::Message>::default_instance()
}
}
impl UpdateSubscriptionRequest {
pub fn new() -> UpdateSubscriptionRequest {
::std::default::Default::default()
}
pub fn get_subscription(&self) -> &Subscription {
self.subscription.as_ref().unwrap_or_else(|| <Subscription as ::protobuf::Message>::default_instance())
}
pub fn clear_subscription(&mut self) {
self.subscription.clear();
}
pub fn has_subscription(&self) -> bool {
self.subscription.is_some()
}
pub fn set_subscription(&mut self, v: Subscription) {
self.subscription = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_subscription(&mut self) -> &mut Subscription {
if self.subscription.is_none() {
self.subscription.set_default();
}
self.subscription.as_mut().unwrap()
}
pub fn take_subscription(&mut self) -> Subscription {
self.subscription.take().unwrap_or_else(|| Subscription::new())
}
pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask {
self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance())
}
pub fn clear_update_mask(&mut self) {
self.update_mask.clear();
}
pub fn has_update_mask(&self) -> bool {
self.update_mask.is_some()
}
pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) {
self.update_mask = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask {
if self.update_mask.is_none() {
self.update_mask.set_default();
}
self.update_mask.as_mut().unwrap()
}
pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask {
self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new())
}
}
impl ::protobuf::Message for UpdateSubscriptionRequest {
fn is_initialized(&self) -> bool {
for v in &self.subscription {
if !v.is_initialized() {
return false;
}
};
for v in &self.update_mask {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.subscription)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.subscription.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.update_mask.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.subscription.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.update_mask.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> UpdateSubscriptionRequest {
UpdateSubscriptionRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Subscription>>(
"subscription",
|m: &UpdateSubscriptionRequest| { &m.subscription },
|m: &mut UpdateSubscriptionRequest| { &mut m.subscription },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>(
"update_mask",
|m: &UpdateSubscriptionRequest| { &m.update_mask },
|m: &mut UpdateSubscriptionRequest| { &mut m.update_mask },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<UpdateSubscriptionRequest>(
"UpdateSubscriptionRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static UpdateSubscriptionRequest {
static instance: ::protobuf::rt::LazyV2<UpdateSubscriptionRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(UpdateSubscriptionRequest::new)
}
}
impl ::protobuf::Clear for UpdateSubscriptionRequest {
fn clear(&mut self) {
self.subscription.clear();
self.update_mask.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for UpdateSubscriptionRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for UpdateSubscriptionRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ListSubscriptionsRequest {
pub project: ::std::string::String,
pub page_size: i32,
pub page_token: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ListSubscriptionsRequest {
fn default() -> &'a ListSubscriptionsRequest {
<ListSubscriptionsRequest as ::protobuf::Message>::default_instance()
}
}
impl ListSubscriptionsRequest {
pub fn new() -> ListSubscriptionsRequest {
::std::default::Default::default()
}
pub fn get_project(&self) -> &str {
&self.project
}
pub fn clear_project(&mut self) {
self.project.clear();
}
pub fn set_project(&mut self, v: ::std::string::String) {
self.project = v;
}
pub fn mut_project(&mut self) -> &mut ::std::string::String {
&mut self.project
}
pub fn take_project(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.project, ::std::string::String::new())
}
pub fn get_page_size(&self) -> i32 {
self.page_size
}
pub fn clear_page_size(&mut self) {
self.page_size = 0;
}
pub fn set_page_size(&mut self, v: i32) {
self.page_size = v;
}
pub fn get_page_token(&self) -> &str {
&self.page_token
}
pub fn clear_page_token(&mut self) {
self.page_token.clear();
}
pub fn set_page_token(&mut self, v: ::std::string::String) {
self.page_token = v;
}
pub fn mut_page_token(&mut self) -> &mut ::std::string::String {
&mut self.page_token
}
pub fn take_page_token(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.page_token, ::std::string::String::new())
}
}
impl ::protobuf::Message for ListSubscriptionsRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.page_size = tmp;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.project.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.project);
}
if self.page_size != 0 {
my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint);
}
if !self.page_token.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.page_token);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.project.is_empty() {
os.write_string(1, &self.project)?;
}
if self.page_size != 0 {
os.write_int32(2, self.page_size)?;
}
if !self.page_token.is_empty() {
os.write_string(3, &self.page_token)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ListSubscriptionsRequest {
ListSubscriptionsRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"project",
|m: &ListSubscriptionsRequest| { &m.project },
|m: &mut ListSubscriptionsRequest| { &mut m.project },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"page_size",
|m: &ListSubscriptionsRequest| { &m.page_size },
|m: &mut ListSubscriptionsRequest| { &mut m.page_size },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"page_token",
|m: &ListSubscriptionsRequest| { &m.page_token },
|m: &mut ListSubscriptionsRequest| { &mut m.page_token },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ListSubscriptionsRequest>(
"ListSubscriptionsRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ListSubscriptionsRequest {
static instance: ::protobuf::rt::LazyV2<ListSubscriptionsRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(ListSubscriptionsRequest::new)
}
}
impl ::protobuf::Clear for ListSubscriptionsRequest {
fn clear(&mut self) {
self.project.clear();
self.page_size = 0;
self.page_token.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ListSubscriptionsRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ListSubscriptionsRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ListSubscriptionsResponse {
pub subscriptions: ::protobuf::RepeatedField<Subscription>,
pub next_page_token: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ListSubscriptionsResponse {
fn default() -> &'a ListSubscriptionsResponse {
<ListSubscriptionsResponse as ::protobuf::Message>::default_instance()
}
}
impl ListSubscriptionsResponse {
pub fn new() -> ListSubscriptionsResponse {
::std::default::Default::default()
}
pub fn get_subscriptions(&self) -> &[Subscription] {
&self.subscriptions
}
pub fn clear_subscriptions(&mut self) {
self.subscriptions.clear();
}
pub fn set_subscriptions(&mut self, v: ::protobuf::RepeatedField<Subscription>) {
self.subscriptions = v;
}
pub fn mut_subscriptions(&mut self) -> &mut ::protobuf::RepeatedField<Subscription> {
&mut self.subscriptions
}
pub fn take_subscriptions(&mut self) -> ::protobuf::RepeatedField<Subscription> {
::std::mem::replace(&mut self.subscriptions, ::protobuf::RepeatedField::new())
}
pub fn get_next_page_token(&self) -> &str {
&self.next_page_token
}
pub fn clear_next_page_token(&mut self) {
self.next_page_token.clear();
}
pub fn set_next_page_token(&mut self, v: ::std::string::String) {
self.next_page_token = v;
}
pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String {
&mut self.next_page_token
}
pub fn take_next_page_token(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.next_page_token, ::std::string::String::new())
}
}
impl ::protobuf::Message for ListSubscriptionsResponse {
fn is_initialized(&self) -> bool {
for v in &self.subscriptions {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.subscriptions)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.subscriptions {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
if !self.next_page_token.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.next_page_token);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.subscriptions {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
if !self.next_page_token.is_empty() {
os.write_string(2, &self.next_page_token)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ListSubscriptionsResponse {
ListSubscriptionsResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Subscription>>(
"subscriptions",
|m: &ListSubscriptionsResponse| { &m.subscriptions },
|m: &mut ListSubscriptionsResponse| { &mut m.subscriptions },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"next_page_token",
|m: &ListSubscriptionsResponse| { &m.next_page_token },
|m: &mut ListSubscriptionsResponse| { &mut m.next_page_token },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ListSubscriptionsResponse>(
"ListSubscriptionsResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ListSubscriptionsResponse {
static instance: ::protobuf::rt::LazyV2<ListSubscriptionsResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(ListSubscriptionsResponse::new)
}
}
impl ::protobuf::Clear for ListSubscriptionsResponse {
fn clear(&mut self) {
self.subscriptions.clear();
self.next_page_token.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ListSubscriptionsResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ListSubscriptionsResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct DeleteSubscriptionRequest {
pub subscription: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a DeleteSubscriptionRequest {
fn default() -> &'a DeleteSubscriptionRequest {
<DeleteSubscriptionRequest as ::protobuf::Message>::default_instance()
}
}
impl DeleteSubscriptionRequest {
pub fn new() -> DeleteSubscriptionRequest {
::std::default::Default::default()
}
pub fn get_subscription(&self) -> &str {
&self.subscription
}
pub fn clear_subscription(&mut self) {
self.subscription.clear();
}
pub fn set_subscription(&mut self, v: ::std::string::String) {
self.subscription = v;
}
pub fn mut_subscription(&mut self) -> &mut ::std::string::String {
&mut self.subscription
}
pub fn take_subscription(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.subscription, ::std::string::String::new())
}
}
impl ::protobuf::Message for DeleteSubscriptionRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.subscription.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.subscription);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.subscription.is_empty() {
os.write_string(1, &self.subscription)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> DeleteSubscriptionRequest {
DeleteSubscriptionRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"subscription",
|m: &DeleteSubscriptionRequest| { &m.subscription },
|m: &mut DeleteSubscriptionRequest| { &mut m.subscription },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<DeleteSubscriptionRequest>(
"DeleteSubscriptionRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static DeleteSubscriptionRequest {
static instance: ::protobuf::rt::LazyV2<DeleteSubscriptionRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(DeleteSubscriptionRequest::new)
}
}
impl ::protobuf::Clear for DeleteSubscriptionRequest {
fn clear(&mut self) {
self.subscription.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for DeleteSubscriptionRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DeleteSubscriptionRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ModifyPushConfigRequest {
pub subscription: ::std::string::String,
pub push_config: ::protobuf::SingularPtrField<PushConfig>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ModifyPushConfigRequest {
fn default() -> &'a ModifyPushConfigRequest {
<ModifyPushConfigRequest as ::protobuf::Message>::default_instance()
}
}
impl ModifyPushConfigRequest {
pub fn new() -> ModifyPushConfigRequest {
::std::default::Default::default()
}
pub fn get_subscription(&self) -> &str {
&self.subscription
}
pub fn clear_subscription(&mut self) {
self.subscription.clear();
}
pub fn set_subscription(&mut self, v: ::std::string::String) {
self.subscription = v;
}
pub fn mut_subscription(&mut self) -> &mut ::std::string::String {
&mut self.subscription
}
pub fn take_subscription(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.subscription, ::std::string::String::new())
}
pub fn get_push_config(&self) -> &PushConfig {
self.push_config.as_ref().unwrap_or_else(|| <PushConfig as ::protobuf::Message>::default_instance())
}
pub fn clear_push_config(&mut self) {
self.push_config.clear();
}
pub fn has_push_config(&self) -> bool {
self.push_config.is_some()
}
pub fn set_push_config(&mut self, v: PushConfig) {
self.push_config = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_push_config(&mut self) -> &mut PushConfig {
if self.push_config.is_none() {
self.push_config.set_default();
}
self.push_config.as_mut().unwrap()
}
pub fn take_push_config(&mut self) -> PushConfig {
self.push_config.take().unwrap_or_else(|| PushConfig::new())
}
}
impl ::protobuf::Message for ModifyPushConfigRequest {
fn is_initialized(&self) -> bool {
for v in &self.push_config {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.push_config)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.subscription.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.subscription);
}
if let Some(ref v) = self.push_config.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.subscription.is_empty() {
os.write_string(1, &self.subscription)?;
}
if let Some(ref v) = self.push_config.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ModifyPushConfigRequest {
ModifyPushConfigRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"subscription",
|m: &ModifyPushConfigRequest| { &m.subscription },
|m: &mut ModifyPushConfigRequest| { &mut m.subscription },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PushConfig>>(
"push_config",
|m: &ModifyPushConfigRequest| { &m.push_config },
|m: &mut ModifyPushConfigRequest| { &mut m.push_config },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ModifyPushConfigRequest>(
"ModifyPushConfigRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ModifyPushConfigRequest {
static instance: ::protobuf::rt::LazyV2<ModifyPushConfigRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(ModifyPushConfigRequest::new)
}
}
impl ::protobuf::Clear for ModifyPushConfigRequest {
fn clear(&mut self) {
self.subscription.clear();
self.push_config.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ModifyPushConfigRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ModifyPushConfigRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PullRequest {
pub subscription: ::std::string::String,
pub return_immediately: bool,
pub max_messages: i32,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PullRequest {
fn default() -> &'a PullRequest {
<PullRequest as ::protobuf::Message>::default_instance()
}
}
impl PullRequest {
pub fn new() -> PullRequest {
::std::default::Default::default()
}
pub fn get_subscription(&self) -> &str {
&self.subscription
}
pub fn clear_subscription(&mut self) {
self.subscription.clear();
}
pub fn set_subscription(&mut self, v: ::std::string::String) {
self.subscription = v;
}
pub fn mut_subscription(&mut self) -> &mut ::std::string::String {
&mut self.subscription
}
pub fn take_subscription(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.subscription, ::std::string::String::new())
}
pub fn get_return_immediately(&self) -> bool {
self.return_immediately
}
pub fn clear_return_immediately(&mut self) {
self.return_immediately = false;
}
pub fn set_return_immediately(&mut self, v: bool) {
self.return_immediately = v;
}
pub fn get_max_messages(&self) -> i32 {
self.max_messages
}
pub fn clear_max_messages(&mut self) {
self.max_messages = 0;
}
pub fn set_max_messages(&mut self, v: i32) {
self.max_messages = v;
}
}
impl ::protobuf::Message for PullRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_bool()?;
self.return_immediately = tmp;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.max_messages = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.subscription.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.subscription);
}
if self.return_immediately != false {
my_size += 2;
}
if self.max_messages != 0 {
my_size += ::protobuf::rt::value_size(3, self.max_messages, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.subscription.is_empty() {
os.write_string(1, &self.subscription)?;
}
if self.return_immediately != false {
os.write_bool(2, self.return_immediately)?;
}
if self.max_messages != 0 {
os.write_int32(3, self.max_messages)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> PullRequest {
PullRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"subscription",
|m: &PullRequest| { &m.subscription },
|m: &mut PullRequest| { &mut m.subscription },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"return_immediately",
|m: &PullRequest| { &m.return_immediately },
|m: &mut PullRequest| { &mut m.return_immediately },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"max_messages",
|m: &PullRequest| { &m.max_messages },
|m: &mut PullRequest| { &mut m.max_messages },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<PullRequest>(
"PullRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static PullRequest {
static instance: ::protobuf::rt::LazyV2<PullRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(PullRequest::new)
}
}
impl ::protobuf::Clear for PullRequest {
fn clear(&mut self) {
self.subscription.clear();
self.return_immediately = false;
self.max_messages = 0;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PullRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PullRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PullResponse {
pub received_messages: ::protobuf::RepeatedField<ReceivedMessage>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PullResponse {
fn default() -> &'a PullResponse {
<PullResponse as ::protobuf::Message>::default_instance()
}
}
impl PullResponse {
pub fn new() -> PullResponse {
::std::default::Default::default()
}
pub fn get_received_messages(&self) -> &[ReceivedMessage] {
&self.received_messages
}
pub fn clear_received_messages(&mut self) {
self.received_messages.clear();
}
pub fn set_received_messages(&mut self, v: ::protobuf::RepeatedField<ReceivedMessage>) {
self.received_messages = v;
}
pub fn mut_received_messages(&mut self) -> &mut ::protobuf::RepeatedField<ReceivedMessage> {
&mut self.received_messages
}
pub fn take_received_messages(&mut self) -> ::protobuf::RepeatedField<ReceivedMessage> {
::std::mem::replace(&mut self.received_messages, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for PullResponse {
fn is_initialized(&self) -> bool {
for v in &self.received_messages {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.received_messages)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.received_messages {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.received_messages {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> PullResponse {
PullResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ReceivedMessage>>(
"received_messages",
|m: &PullResponse| { &m.received_messages },
|m: &mut PullResponse| { &mut m.received_messages },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<PullResponse>(
"PullResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static PullResponse {
static instance: ::protobuf::rt::LazyV2<PullResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(PullResponse::new)
}
}
impl ::protobuf::Clear for PullResponse {
fn clear(&mut self) {
self.received_messages.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PullResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PullResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ModifyAckDeadlineRequest {
pub subscription: ::std::string::String,
pub ack_ids: ::protobuf::RepeatedField<::std::string::String>,
pub ack_deadline_seconds: i32,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ModifyAckDeadlineRequest {
fn default() -> &'a ModifyAckDeadlineRequest {
<ModifyAckDeadlineRequest as ::protobuf::Message>::default_instance()
}
}
impl ModifyAckDeadlineRequest {
pub fn new() -> ModifyAckDeadlineRequest {
::std::default::Default::default()
}
pub fn get_subscription(&self) -> &str {
&self.subscription
}
pub fn clear_subscription(&mut self) {
self.subscription.clear();
}
pub fn set_subscription(&mut self, v: ::std::string::String) {
self.subscription = v;
}
pub fn mut_subscription(&mut self) -> &mut ::std::string::String {
&mut self.subscription
}
pub fn take_subscription(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.subscription, ::std::string::String::new())
}
pub fn get_ack_ids(&self) -> &[::std::string::String] {
&self.ack_ids
}
pub fn clear_ack_ids(&mut self) {
self.ack_ids.clear();
}
pub fn set_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.ack_ids = v;
}
pub fn mut_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.ack_ids
}
pub fn take_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.ack_ids, ::protobuf::RepeatedField::new())
}
pub fn get_ack_deadline_seconds(&self) -> i32 {
self.ack_deadline_seconds
}
pub fn clear_ack_deadline_seconds(&mut self) {
self.ack_deadline_seconds = 0;
}
pub fn set_ack_deadline_seconds(&mut self, v: i32) {
self.ack_deadline_seconds = v;
}
}
impl ::protobuf::Message for ModifyAckDeadlineRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?;
},
4 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ack_ids)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.ack_deadline_seconds = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.subscription.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.subscription);
}
for value in &self.ack_ids {
my_size += ::protobuf::rt::string_size(4, &value);
};
if self.ack_deadline_seconds != 0 {
my_size += ::protobuf::rt::value_size(3, self.ack_deadline_seconds, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.subscription.is_empty() {
os.write_string(1, &self.subscription)?;
}
for v in &self.ack_ids {
os.write_string(4, &v)?;
};
if self.ack_deadline_seconds != 0 {
os.write_int32(3, self.ack_deadline_seconds)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ModifyAckDeadlineRequest {
ModifyAckDeadlineRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"subscription",
|m: &ModifyAckDeadlineRequest| { &m.subscription },
|m: &mut ModifyAckDeadlineRequest| { &mut m.subscription },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"ack_ids",
|m: &ModifyAckDeadlineRequest| { &m.ack_ids },
|m: &mut ModifyAckDeadlineRequest| { &mut m.ack_ids },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"ack_deadline_seconds",
|m: &ModifyAckDeadlineRequest| { &m.ack_deadline_seconds },
|m: &mut ModifyAckDeadlineRequest| { &mut m.ack_deadline_seconds },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ModifyAckDeadlineRequest>(
"ModifyAckDeadlineRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ModifyAckDeadlineRequest {
static instance: ::protobuf::rt::LazyV2<ModifyAckDeadlineRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(ModifyAckDeadlineRequest::new)
}
}
impl ::protobuf::Clear for ModifyAckDeadlineRequest {
fn clear(&mut self) {
self.subscription.clear();
self.ack_ids.clear();
self.ack_deadline_seconds = 0;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ModifyAckDeadlineRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ModifyAckDeadlineRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct AcknowledgeRequest {
pub subscription: ::std::string::String,
pub ack_ids: ::protobuf::RepeatedField<::std::string::String>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a AcknowledgeRequest {
fn default() -> &'a AcknowledgeRequest {
<AcknowledgeRequest as ::protobuf::Message>::default_instance()
}
}
impl AcknowledgeRequest {
pub fn new() -> AcknowledgeRequest {
::std::default::Default::default()
}
pub fn get_subscription(&self) -> &str {
&self.subscription
}
pub fn clear_subscription(&mut self) {
self.subscription.clear();
}
pub fn set_subscription(&mut self, v: ::std::string::String) {
self.subscription = v;
}
pub fn mut_subscription(&mut self) -> &mut ::std::string::String {
&mut self.subscription
}
pub fn take_subscription(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.subscription, ::std::string::String::new())
}
pub fn get_ack_ids(&self) -> &[::std::string::String] {
&self.ack_ids
}
pub fn clear_ack_ids(&mut self) {
self.ack_ids.clear();
}
pub fn set_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.ack_ids = v;
}
pub fn mut_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.ack_ids
}
pub fn take_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.ack_ids, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for AcknowledgeRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?;
},
2 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ack_ids)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.subscription.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.subscription);
}
for value in &self.ack_ids {
my_size += ::protobuf::rt::string_size(2, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.subscription.is_empty() {
os.write_string(1, &self.subscription)?;
}
for v in &self.ack_ids {
os.write_string(2, &v)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> AcknowledgeRequest {
AcknowledgeRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"subscription",
|m: &AcknowledgeRequest| { &m.subscription },
|m: &mut AcknowledgeRequest| { &mut m.subscription },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"ack_ids",
|m: &AcknowledgeRequest| { &m.ack_ids },
|m: &mut AcknowledgeRequest| { &mut m.ack_ids },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<AcknowledgeRequest>(
"AcknowledgeRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static AcknowledgeRequest {
static instance: ::protobuf::rt::LazyV2<AcknowledgeRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(AcknowledgeRequest::new)
}
}
impl ::protobuf::Clear for AcknowledgeRequest {
fn clear(&mut self) {
self.subscription.clear();
self.ack_ids.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for AcknowledgeRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for AcknowledgeRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StreamingPullRequest {
pub subscription: ::std::string::String,
pub ack_ids: ::protobuf::RepeatedField<::std::string::String>,
pub modify_deadline_seconds: ::std::vec::Vec<i32>,
pub modify_deadline_ack_ids: ::protobuf::RepeatedField<::std::string::String>,
pub stream_ack_deadline_seconds: i32,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StreamingPullRequest {
fn default() -> &'a StreamingPullRequest {
<StreamingPullRequest as ::protobuf::Message>::default_instance()
}
}
impl StreamingPullRequest {
pub fn new() -> StreamingPullRequest {
::std::default::Default::default()
}
pub fn get_subscription(&self) -> &str {
&self.subscription
}
pub fn clear_subscription(&mut self) {
self.subscription.clear();
}
pub fn set_subscription(&mut self, v: ::std::string::String) {
self.subscription = v;
}
pub fn mut_subscription(&mut self) -> &mut ::std::string::String {
&mut self.subscription
}
pub fn take_subscription(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.subscription, ::std::string::String::new())
}
pub fn get_ack_ids(&self) -> &[::std::string::String] {
&self.ack_ids
}
pub fn clear_ack_ids(&mut self) {
self.ack_ids.clear();
}
pub fn set_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.ack_ids = v;
}
pub fn mut_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.ack_ids
}
pub fn take_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.ack_ids, ::protobuf::RepeatedField::new())
}
pub fn get_modify_deadline_seconds(&self) -> &[i32] {
&self.modify_deadline_seconds
}
pub fn clear_modify_deadline_seconds(&mut self) {
self.modify_deadline_seconds.clear();
}
pub fn set_modify_deadline_seconds(&mut self, v: ::std::vec::Vec<i32>) {
self.modify_deadline_seconds = v;
}
pub fn mut_modify_deadline_seconds(&mut self) -> &mut ::std::vec::Vec<i32> {
&mut self.modify_deadline_seconds
}
pub fn take_modify_deadline_seconds(&mut self) -> ::std::vec::Vec<i32> {
::std::mem::replace(&mut self.modify_deadline_seconds, ::std::vec::Vec::new())
}
pub fn get_modify_deadline_ack_ids(&self) -> &[::std::string::String] {
&self.modify_deadline_ack_ids
}
pub fn clear_modify_deadline_ack_ids(&mut self) {
self.modify_deadline_ack_ids.clear();
}
pub fn set_modify_deadline_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.modify_deadline_ack_ids = v;
}
pub fn mut_modify_deadline_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.modify_deadline_ack_ids
}
pub fn take_modify_deadline_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.modify_deadline_ack_ids, ::protobuf::RepeatedField::new())
}
pub fn get_stream_ack_deadline_seconds(&self) -> i32 {
self.stream_ack_deadline_seconds
}
pub fn clear_stream_ack_deadline_seconds(&mut self) {
self.stream_ack_deadline_seconds = 0;
}
pub fn set_stream_ack_deadline_seconds(&mut self, v: i32) {
self.stream_ack_deadline_seconds = v;
}
}
impl ::protobuf::Message for StreamingPullRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?;
},
2 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ack_ids)?;
},
3 => {
::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.modify_deadline_seconds)?;
},
4 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.modify_deadline_ack_ids)?;
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.stream_ack_deadline_seconds = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.subscription.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.subscription);
}
for value in &self.ack_ids {
my_size += ::protobuf::rt::string_size(2, &value);
};
for value in &self.modify_deadline_seconds {
my_size += ::protobuf::rt::value_size(3, *value, ::protobuf::wire_format::WireTypeVarint);
};
for value in &self.modify_deadline_ack_ids {
my_size += ::protobuf::rt::string_size(4, &value);
};
if self.stream_ack_deadline_seconds != 0 {
my_size += ::protobuf::rt::value_size(5, self.stream_ack_deadline_seconds, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.subscription.is_empty() {
os.write_string(1, &self.subscription)?;
}
for v in &self.ack_ids {
os.write_string(2, &v)?;
};
for v in &self.modify_deadline_seconds {
os.write_int32(3, *v)?;
};
for v in &self.modify_deadline_ack_ids {
os.write_string(4, &v)?;
};
if self.stream_ack_deadline_seconds != 0 {
os.write_int32(5, self.stream_ack_deadline_seconds)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StreamingPullRequest {
StreamingPullRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"subscription",
|m: &StreamingPullRequest| { &m.subscription },
|m: &mut StreamingPullRequest| { &mut m.subscription },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"ack_ids",
|m: &StreamingPullRequest| { &m.ack_ids },
|m: &mut StreamingPullRequest| { &mut m.ack_ids },
));
fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"modify_deadline_seconds",
|m: &StreamingPullRequest| { &m.modify_deadline_seconds },
|m: &mut StreamingPullRequest| { &mut m.modify_deadline_seconds },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"modify_deadline_ack_ids",
|m: &StreamingPullRequest| { &m.modify_deadline_ack_ids },
|m: &mut StreamingPullRequest| { &mut m.modify_deadline_ack_ids },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"stream_ack_deadline_seconds",
|m: &StreamingPullRequest| { &m.stream_ack_deadline_seconds },
|m: &mut StreamingPullRequest| { &mut m.stream_ack_deadline_seconds },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StreamingPullRequest>(
"StreamingPullRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StreamingPullRequest {
static instance: ::protobuf::rt::LazyV2<StreamingPullRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(StreamingPullRequest::new)
}
}
impl ::protobuf::Clear for StreamingPullRequest {
fn clear(&mut self) {
self.subscription.clear();
self.ack_ids.clear();
self.modify_deadline_seconds.clear();
self.modify_deadline_ack_ids.clear();
self.stream_ack_deadline_seconds = 0;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StreamingPullRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StreamingPullRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StreamingPullResponse {
pub received_messages: ::protobuf::RepeatedField<ReceivedMessage>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StreamingPullResponse {
fn default() -> &'a StreamingPullResponse {
<StreamingPullResponse as ::protobuf::Message>::default_instance()
}
}
impl StreamingPullResponse {
pub fn new() -> StreamingPullResponse {
::std::default::Default::default()
}
pub fn get_received_messages(&self) -> &[ReceivedMessage] {
&self.received_messages
}
pub fn clear_received_messages(&mut self) {
self.received_messages.clear();
}
pub fn set_received_messages(&mut self, v: ::protobuf::RepeatedField<ReceivedMessage>) {
self.received_messages = v;
}
pub fn mut_received_messages(&mut self) -> &mut ::protobuf::RepeatedField<ReceivedMessage> {
&mut self.received_messages
}
pub fn take_received_messages(&mut self) -> ::protobuf::RepeatedField<ReceivedMessage> {
::std::mem::replace(&mut self.received_messages, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for StreamingPullResponse {
fn is_initialized(&self) -> bool {
for v in &self.received_messages {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.received_messages)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.received_messages {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.received_messages {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StreamingPullResponse {
StreamingPullResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ReceivedMessage>>(
"received_messages",
|m: &StreamingPullResponse| { &m.received_messages },
|m: &mut StreamingPullResponse| { &mut m.received_messages },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StreamingPullResponse>(
"StreamingPullResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StreamingPullResponse {
static instance: ::protobuf::rt::LazyV2<StreamingPullResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(StreamingPullResponse::new)
}
}
impl ::protobuf::Clear for StreamingPullResponse {
fn clear(&mut self) {
self.received_messages.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StreamingPullResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StreamingPullResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct CreateSnapshotRequest {
pub name: ::std::string::String,
pub subscription: ::std::string::String,
pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a CreateSnapshotRequest {
fn default() -> &'a CreateSnapshotRequest {
<CreateSnapshotRequest as ::protobuf::Message>::default_instance()
}
}
impl CreateSnapshotRequest {
pub fn new() -> CreateSnapshotRequest {
::std::default::Default::default()
}
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_name(&mut self) {
self.name.clear();
}
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
pub fn get_subscription(&self) -> &str {
&self.subscription
}
pub fn clear_subscription(&mut self) {
self.subscription.clear();
}
pub fn set_subscription(&mut self, v: ::std::string::String) {
self.subscription = v;
}
pub fn mut_subscription(&mut self) -> &mut ::std::string::String {
&mut self.subscription
}
pub fn take_subscription(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.subscription, ::std::string::String::new())
}
pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
&self.labels
}
pub fn clear_labels(&mut self) {
self.labels.clear();
}
pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
self.labels = v;
}
pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
&mut self.labels
}
pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new())
}
}
impl ::protobuf::Message for CreateSnapshotRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?;
},
3 => {
::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.name.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.name);
}
if !self.subscription.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.subscription);
}
my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.labels);
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.name.is_empty() {
os.write_string(1, &self.name)?;
}
if !self.subscription.is_empty() {
os.write_string(2, &self.subscription)?;
}
::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.labels, os)?;
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> CreateSnapshotRequest {
CreateSnapshotRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"name",
|m: &CreateSnapshotRequest| { &m.name },
|m: &mut CreateSnapshotRequest| { &mut m.name },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"subscription",
|m: &CreateSnapshotRequest| { &m.subscription },
|m: &mut CreateSnapshotRequest| { &mut m.subscription },
));
fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
"labels",
|m: &CreateSnapshotRequest| { &m.labels },
|m: &mut CreateSnapshotRequest| { &mut m.labels },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateSnapshotRequest>(
"CreateSnapshotRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static CreateSnapshotRequest {
static instance: ::protobuf::rt::LazyV2<CreateSnapshotRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(CreateSnapshotRequest::new)
}
}
impl ::protobuf::Clear for CreateSnapshotRequest {
fn clear(&mut self) {
self.name.clear();
self.subscription.clear();
self.labels.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for CreateSnapshotRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CreateSnapshotRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct UpdateSnapshotRequest {
pub snapshot: ::protobuf::SingularPtrField<Snapshot>,
pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a UpdateSnapshotRequest {
fn default() -> &'a UpdateSnapshotRequest {
<UpdateSnapshotRequest as ::protobuf::Message>::default_instance()
}
}
impl UpdateSnapshotRequest {
pub fn new() -> UpdateSnapshotRequest {
::std::default::Default::default()
}
pub fn get_snapshot(&self) -> &Snapshot {
self.snapshot.as_ref().unwrap_or_else(|| <Snapshot as ::protobuf::Message>::default_instance())
}
pub fn clear_snapshot(&mut self) {
self.snapshot.clear();
}
pub fn has_snapshot(&self) -> bool {
self.snapshot.is_some()
}
pub fn set_snapshot(&mut self, v: Snapshot) {
self.snapshot = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_snapshot(&mut self) -> &mut Snapshot {
if self.snapshot.is_none() {
self.snapshot.set_default();
}
self.snapshot.as_mut().unwrap()
}
pub fn take_snapshot(&mut self) -> Snapshot {
self.snapshot.take().unwrap_or_else(|| Snapshot::new())
}
pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask {
self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance())
}
pub fn clear_update_mask(&mut self) {
self.update_mask.clear();
}
pub fn has_update_mask(&self) -> bool {
self.update_mask.is_some()
}
pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) {
self.update_mask = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask {
if self.update_mask.is_none() {
self.update_mask.set_default();
}
self.update_mask.as_mut().unwrap()
}
pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask {
self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new())
}
}
impl ::protobuf::Message for UpdateSnapshotRequest {
fn is_initialized(&self) -> bool {
for v in &self.snapshot {
if !v.is_initialized() {
return false;
}
};
for v in &self.update_mask {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.snapshot)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.snapshot.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.update_mask.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.snapshot.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.update_mask.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> UpdateSnapshotRequest {
UpdateSnapshotRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Snapshot>>(
"snapshot",
|m: &UpdateSnapshotRequest| { &m.snapshot },
|m: &mut UpdateSnapshotRequest| { &mut m.snapshot },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>(
"update_mask",
|m: &UpdateSnapshotRequest| { &m.update_mask },
|m: &mut UpdateSnapshotRequest| { &mut m.update_mask },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<UpdateSnapshotRequest>(
"UpdateSnapshotRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static UpdateSnapshotRequest {
static instance: ::protobuf::rt::LazyV2<UpdateSnapshotRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(UpdateSnapshotRequest::new)
}
}
impl ::protobuf::Clear for UpdateSnapshotRequest {
fn clear(&mut self) {
self.snapshot.clear();
self.update_mask.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for UpdateSnapshotRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for UpdateSnapshotRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct Snapshot {
pub name: ::std::string::String,
pub topic: ::std::string::String,
pub expire_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Snapshot {
fn default() -> &'a Snapshot {
<Snapshot as ::protobuf::Message>::default_instance()
}
}
impl Snapshot {
pub fn new() -> Snapshot {
::std::default::Default::default()
}
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_name(&mut self) {
self.name.clear();
}
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
pub fn get_topic(&self) -> &str {
&self.topic
}
pub fn clear_topic(&mut self) {
self.topic.clear();
}
pub fn set_topic(&mut self, v: ::std::string::String) {
self.topic = v;
}
pub fn mut_topic(&mut self) -> &mut ::std::string::String {
&mut self.topic
}
pub fn take_topic(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.topic, ::std::string::String::new())
}
pub fn get_expire_time(&self) -> &::protobuf::well_known_types::Timestamp {
self.expire_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance())
}
pub fn clear_expire_time(&mut self) {
self.expire_time.clear();
}
pub fn has_expire_time(&self) -> bool {
self.expire_time.is_some()
}
pub fn set_expire_time(&mut self, v: ::protobuf::well_known_types::Timestamp) {
self.expire_time = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_expire_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
if self.expire_time.is_none() {
self.expire_time.set_default();
}
self.expire_time.as_mut().unwrap()
}
pub fn take_expire_time(&mut self) -> ::protobuf::well_known_types::Timestamp {
self.expire_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
}
pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
&self.labels
}
pub fn clear_labels(&mut self) {
self.labels.clear();
}
pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
self.labels = v;
}
pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
&mut self.labels
}
pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new())
}
}
impl ::protobuf::Message for Snapshot {
fn is_initialized(&self) -> bool {
for v in &self.expire_time {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?;
},
3 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.expire_time)?;
},
4 => {
::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.name.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.name);
}
if !self.topic.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.topic);
}
if let Some(ref v) = self.expire_time.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(4, &self.labels);
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.name.is_empty() {
os.write_string(1, &self.name)?;
}
if !self.topic.is_empty() {
os.write_string(2, &self.topic)?;
}
if let Some(ref v) = self.expire_time.as_ref() {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(4, &self.labels, os)?;
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> Snapshot {
Snapshot::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"name",
|m: &Snapshot| { &m.name },
|m: &mut Snapshot| { &mut m.name },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"topic",
|m: &Snapshot| { &m.topic },
|m: &mut Snapshot| { &mut m.topic },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
"expire_time",
|m: &Snapshot| { &m.expire_time },
|m: &mut Snapshot| { &mut m.expire_time },
));
fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
"labels",
|m: &Snapshot| { &m.labels },
|m: &mut Snapshot| { &mut m.labels },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Snapshot>(
"Snapshot",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Snapshot {
static instance: ::protobuf::rt::LazyV2<Snapshot> = ::protobuf::rt::LazyV2::INIT;
instance.get(Snapshot::new)
}
}
impl ::protobuf::Clear for Snapshot {
fn clear(&mut self) {
self.name.clear();
self.topic.clear();
self.expire_time.clear();
self.labels.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Snapshot {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Snapshot {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct GetSnapshotRequest {
pub snapshot: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a GetSnapshotRequest {
fn default() -> &'a GetSnapshotRequest {
<GetSnapshotRequest as ::protobuf::Message>::default_instance()
}
}
impl GetSnapshotRequest {
pub fn new() -> GetSnapshotRequest {
::std::default::Default::default()
}
pub fn get_snapshot(&self) -> &str {
&self.snapshot
}
pub fn clear_snapshot(&mut self) {
self.snapshot.clear();
}
pub fn set_snapshot(&mut self, v: ::std::string::String) {
self.snapshot = v;
}
pub fn mut_snapshot(&mut self) -> &mut ::std::string::String {
&mut self.snapshot
}
pub fn take_snapshot(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.snapshot, ::std::string::String::new())
}
}
impl ::protobuf::Message for GetSnapshotRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.snapshot)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.snapshot.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.snapshot);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.snapshot.is_empty() {
os.write_string(1, &self.snapshot)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> GetSnapshotRequest {
GetSnapshotRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"snapshot",
|m: &GetSnapshotRequest| { &m.snapshot },
|m: &mut GetSnapshotRequest| { &mut m.snapshot },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<GetSnapshotRequest>(
"GetSnapshotRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static GetSnapshotRequest {
static instance: ::protobuf::rt::LazyV2<GetSnapshotRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(GetSnapshotRequest::new)
}
}
impl ::protobuf::Clear for GetSnapshotRequest {
fn clear(&mut self) {
self.snapshot.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for GetSnapshotRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for GetSnapshotRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ListSnapshotsRequest {
pub project: ::std::string::String,
pub page_size: i32,
pub page_token: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ListSnapshotsRequest {
fn default() -> &'a ListSnapshotsRequest {
<ListSnapshotsRequest as ::protobuf::Message>::default_instance()
}
}
impl ListSnapshotsRequest {
pub fn new() -> ListSnapshotsRequest {
::std::default::Default::default()
}
pub fn get_project(&self) -> &str {
&self.project
}
pub fn clear_project(&mut self) {
self.project.clear();
}
pub fn set_project(&mut self, v: ::std::string::String) {
self.project = v;
}
pub fn mut_project(&mut self) -> &mut ::std::string::String {
&mut self.project
}
pub fn take_project(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.project, ::std::string::String::new())
}
pub fn get_page_size(&self) -> i32 {
self.page_size
}
pub fn clear_page_size(&mut self) {
self.page_size = 0;
}
pub fn set_page_size(&mut self, v: i32) {
self.page_size = v;
}
pub fn get_page_token(&self) -> &str {
&self.page_token
}
pub fn clear_page_token(&mut self) {
self.page_token.clear();
}
pub fn set_page_token(&mut self, v: ::std::string::String) {
self.page_token = v;
}
pub fn mut_page_token(&mut self) -> &mut ::std::string::String {
&mut self.page_token
}
pub fn take_page_token(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.page_token, ::std::string::String::new())
}
}
impl ::protobuf::Message for ListSnapshotsRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.page_size = tmp;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.project.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.project);
}
if self.page_size != 0 {
my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint);
}
if !self.page_token.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.page_token);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.project.is_empty() {
os.write_string(1, &self.project)?;
}
if self.page_size != 0 {
os.write_int32(2, self.page_size)?;
}
if !self.page_token.is_empty() {
os.write_string(3, &self.page_token)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ListSnapshotsRequest {
ListSnapshotsRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"project",
|m: &ListSnapshotsRequest| { &m.project },
|m: &mut ListSnapshotsRequest| { &mut m.project },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"page_size",
|m: &ListSnapshotsRequest| { &m.page_size },
|m: &mut ListSnapshotsRequest| { &mut m.page_size },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"page_token",
|m: &ListSnapshotsRequest| { &m.page_token },
|m: &mut ListSnapshotsRequest| { &mut m.page_token },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ListSnapshotsRequest>(
"ListSnapshotsRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ListSnapshotsRequest {
static instance: ::protobuf::rt::LazyV2<ListSnapshotsRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(ListSnapshotsRequest::new)
}
}
impl ::protobuf::Clear for ListSnapshotsRequest {
fn clear(&mut self) {
self.project.clear();
self.page_size = 0;
self.page_token.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ListSnapshotsRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ListSnapshotsRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ListSnapshotsResponse {
pub snapshots: ::protobuf::RepeatedField<Snapshot>,
pub next_page_token: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ListSnapshotsResponse {
fn default() -> &'a ListSnapshotsResponse {
<ListSnapshotsResponse as ::protobuf::Message>::default_instance()
}
}
impl ListSnapshotsResponse {
pub fn new() -> ListSnapshotsResponse {
::std::default::Default::default()
}
pub fn get_snapshots(&self) -> &[Snapshot] {
&self.snapshots
}
pub fn clear_snapshots(&mut self) {
self.snapshots.clear();
}
pub fn set_snapshots(&mut self, v: ::protobuf::RepeatedField<Snapshot>) {
self.snapshots = v;
}
pub fn mut_snapshots(&mut self) -> &mut ::protobuf::RepeatedField<Snapshot> {
&mut self.snapshots
}
pub fn take_snapshots(&mut self) -> ::protobuf::RepeatedField<Snapshot> {
::std::mem::replace(&mut self.snapshots, ::protobuf::RepeatedField::new())
}
pub fn get_next_page_token(&self) -> &str {
&self.next_page_token
}
pub fn clear_next_page_token(&mut self) {
self.next_page_token.clear();
}
pub fn set_next_page_token(&mut self, v: ::std::string::String) {
self.next_page_token = v;
}
pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String {
&mut self.next_page_token
}
pub fn take_next_page_token(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.next_page_token, ::std::string::String::new())
}
}
impl ::protobuf::Message for ListSnapshotsResponse {
fn is_initialized(&self) -> bool {
for v in &self.snapshots {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.snapshots)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.snapshots {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
if !self.next_page_token.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.next_page_token);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.snapshots {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
if !self.next_page_token.is_empty() {
os.write_string(2, &self.next_page_token)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ListSnapshotsResponse {
ListSnapshotsResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Snapshot>>(
"snapshots",
|m: &ListSnapshotsResponse| { &m.snapshots },
|m: &mut ListSnapshotsResponse| { &mut m.snapshots },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"next_page_token",
|m: &ListSnapshotsResponse| { &m.next_page_token },
|m: &mut ListSnapshotsResponse| { &mut m.next_page_token },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ListSnapshotsResponse>(
"ListSnapshotsResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ListSnapshotsResponse {
static instance: ::protobuf::rt::LazyV2<ListSnapshotsResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(ListSnapshotsResponse::new)
}
}
impl ::protobuf::Clear for ListSnapshotsResponse {
fn clear(&mut self) {
self.snapshots.clear();
self.next_page_token.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ListSnapshotsResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ListSnapshotsResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct DeleteSnapshotRequest {
pub snapshot: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a DeleteSnapshotRequest {
fn default() -> &'a DeleteSnapshotRequest {
<DeleteSnapshotRequest as ::protobuf::Message>::default_instance()
}
}
impl DeleteSnapshotRequest {
pub fn new() -> DeleteSnapshotRequest {
::std::default::Default::default()
}
pub fn get_snapshot(&self) -> &str {
&self.snapshot
}
pub fn clear_snapshot(&mut self) {
self.snapshot.clear();
}
pub fn set_snapshot(&mut self, v: ::std::string::String) {
self.snapshot = v;
}
pub fn mut_snapshot(&mut self) -> &mut ::std::string::String {
&mut self.snapshot
}
pub fn take_snapshot(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.snapshot, ::std::string::String::new())
}
}
impl ::protobuf::Message for DeleteSnapshotRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.snapshot)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.snapshot.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.snapshot);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.snapshot.is_empty() {
os.write_string(1, &self.snapshot)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> DeleteSnapshotRequest {
DeleteSnapshotRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"snapshot",
|m: &DeleteSnapshotRequest| { &m.snapshot },
|m: &mut DeleteSnapshotRequest| { &mut m.snapshot },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<DeleteSnapshotRequest>(
"DeleteSnapshotRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static DeleteSnapshotRequest {
static instance: ::protobuf::rt::LazyV2<DeleteSnapshotRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(DeleteSnapshotRequest::new)
}
}
impl ::protobuf::Clear for DeleteSnapshotRequest {
fn clear(&mut self) {
self.snapshot.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for DeleteSnapshotRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DeleteSnapshotRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct SeekRequest {
pub subscription: ::std::string::String,
pub target: ::std::option::Option<SeekRequest_oneof_target>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a SeekRequest {
fn default() -> &'a SeekRequest {
<SeekRequest as ::protobuf::Message>::default_instance()
}
}
#[derive(Clone,PartialEq,Debug)]
pub enum SeekRequest_oneof_target {
time(::protobuf::well_known_types::Timestamp),
snapshot(::std::string::String),
}
impl SeekRequest {
pub fn new() -> SeekRequest {
::std::default::Default::default()
}
pub fn get_subscription(&self) -> &str {
&self.subscription
}
pub fn clear_subscription(&mut self) {
self.subscription.clear();
}
pub fn set_subscription(&mut self, v: ::std::string::String) {
self.subscription = v;
}
pub fn mut_subscription(&mut self) -> &mut ::std::string::String {
&mut self.subscription
}
pub fn take_subscription(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.subscription, ::std::string::String::new())
}
pub fn get_time(&self) -> &::protobuf::well_known_types::Timestamp {
match self.target {
::std::option::Option::Some(SeekRequest_oneof_target::time(ref v)) => v,
_ => <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_time(&mut self) {
self.target = ::std::option::Option::None;
}
pub fn has_time(&self) -> bool {
match self.target {
::std::option::Option::Some(SeekRequest_oneof_target::time(..)) => true,
_ => false,
}
}
pub fn set_time(&mut self, v: ::protobuf::well_known_types::Timestamp) {
self.target = ::std::option::Option::Some(SeekRequest_oneof_target::time(v))
}
pub fn mut_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
if let ::std::option::Option::Some(SeekRequest_oneof_target::time(_)) = self.target {
} else {
self.target = ::std::option::Option::Some(SeekRequest_oneof_target::time(::protobuf::well_known_types::Timestamp::new()));
}
match self.target {
::std::option::Option::Some(SeekRequest_oneof_target::time(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_time(&mut self) -> ::protobuf::well_known_types::Timestamp {
if self.has_time() {
match self.target.take() {
::std::option::Option::Some(SeekRequest_oneof_target::time(v)) => v,
_ => panic!(),
}
} else {
::protobuf::well_known_types::Timestamp::new()
}
}
pub fn get_snapshot(&self) -> &str {
match self.target {
::std::option::Option::Some(SeekRequest_oneof_target::snapshot(ref v)) => v,
_ => "",
}
}
pub fn clear_snapshot(&mut self) {
self.target = ::std::option::Option::None;
}
pub fn has_snapshot(&self) -> bool {
match self.target {
::std::option::Option::Some(SeekRequest_oneof_target::snapshot(..)) => true,
_ => false,
}
}
pub fn set_snapshot(&mut self, v: ::std::string::String) {
self.target = ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(v))
}
pub fn mut_snapshot(&mut self) -> &mut ::std::string::String {
if let ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(_)) = self.target {
} else {
self.target = ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(::std::string::String::new()));
}
match self.target {
::std::option::Option::Some(SeekRequest_oneof_target::snapshot(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_snapshot(&mut self) -> ::std::string::String {
if self.has_snapshot() {
match self.target.take() {
::std::option::Option::Some(SeekRequest_oneof_target::snapshot(v)) => v,
_ => panic!(),
}
} else {
::std::string::String::new()
}
}
}
impl ::protobuf::Message for SeekRequest {
fn is_initialized(&self) -> bool {
if let Some(SeekRequest_oneof_target::time(ref v)) = self.target {
if !v.is_initialized() {
return false;
}
}
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.target = ::std::option::Option::Some(SeekRequest_oneof_target::time(is.read_message()?));
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.target = ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(is.read_string()?));
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.subscription.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.subscription);
}
if let ::std::option::Option::Some(ref v) = self.target {
match v {
&SeekRequest_oneof_target::time(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&SeekRequest_oneof_target::snapshot(ref v) => {
my_size += ::protobuf::rt::string_size(3, &v);
},
};
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.subscription.is_empty() {
os.write_string(1, &self.subscription)?;
}
if let ::std::option::Option::Some(ref v) = self.target {
match v {
&SeekRequest_oneof_target::time(ref v) => {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&SeekRequest_oneof_target::snapshot(ref v) => {
os.write_string(3, v)?;
},
};
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> SeekRequest {
SeekRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"subscription",
|m: &SeekRequest| { &m.subscription },
|m: &mut SeekRequest| { &mut m.subscription },
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Timestamp>(
"time",
SeekRequest::has_time,
SeekRequest::get_time,
));
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
"snapshot",
SeekRequest::has_snapshot,
SeekRequest::get_snapshot,
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<SeekRequest>(
"SeekRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static SeekRequest {
static instance: ::protobuf::rt::LazyV2<SeekRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(SeekRequest::new)
}
}
impl ::protobuf::Clear for SeekRequest {
fn clear(&mut self) {
self.subscription.clear();
self.target = ::std::option::Option::None;
self.target = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for SeekRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for SeekRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct SeekResponse {
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a SeekResponse {
fn default() -> &'a SeekResponse {
<SeekResponse as ::protobuf::Message>::default_instance()
}
}
impl SeekResponse {
pub fn new() -> SeekResponse {
::std::default::Default::default()
}
}
impl ::protobuf::Message for SeekResponse {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> SeekResponse {
SeekResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new_pb_name::<SeekResponse>(
"SeekResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static SeekResponse {
static instance: ::protobuf::rt::LazyV2<SeekResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(SeekResponse::new)
}
}
impl ::protobuf::Clear for SeekResponse {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for SeekResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for SeekResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x1dgoogle/pubsub/v1/pubsub.proto\x12\x10google.pubsub.v1\x1a\x1cgoogl\
e/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/pro\
tobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x20google/pr\
otobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"V\n\x14M\
essageStoragePolicy\x12>\n\x1ballowed_persistence_regions\x18\x01\x20\
\x03(\tR\x19allowedPersistenceRegions\"\x93\x02\n\x05Topic\x12\x12\n\x04\
name\x18\x01\x20\x01(\tR\x04name\x12;\n\x06labels\x18\x02\x20\x03(\x0b2#\
.google.pubsub.v1.Topic.LabelsEntryR\x06labels\x12\\\n\x16message_storag\
e_policy\x18\x03\x20\x01(\x0b2&.google.pubsub.v1.MessageStoragePolicyR\
\x14messageStoragePolicy\x12\x20\n\x0ckms_key_name\x18\x05\x20\x01(\tR\n\
kmsKeyName\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\
\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\xb4\
\x02\n\rPubsubMessage\x12\x12\n\x04data\x18\x01\x20\x01(\x0cR\x04data\
\x12O\n\nattributes\x18\x02\x20\x03(\x0b2/.google.pubsub.v1.PubsubMessag\
e.AttributesEntryR\nattributes\x12\x1d\n\nmessage_id\x18\x03\x20\x01(\tR\
\tmessageId\x12=\n\x0cpublish_time\x18\x04\x20\x01(\x0b2\x1a.google.prot\
obuf.TimestampR\x0bpublishTime\x12!\n\x0cordering_key\x18\x05\x20\x01(\t\
R\x0borderingKey\x1a=\n\x0fAttributesEntry\x12\x10\n\x03key\x18\x01\x20\
\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\
\x01\"'\n\x0fGetTopicRequest\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\x05t\
opic\"\x80\x01\n\x12UpdateTopicRequest\x12-\n\x05topic\x18\x01\x20\x01(\
\x0b2\x17.google.pubsub.v1.TopicR\x05topic\x12;\n\x0bupdate_mask\x18\x02\
\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMask\"c\n\x0ePublis\
hRequest\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\x05topic\x12;\n\x08messa\
ges\x18\x02\x20\x03(\x0b2\x1f.google.pubsub.v1.PubsubMessageR\x08message\
s\"2\n\x0fPublishResponse\x12\x1f\n\x0bmessage_ids\x18\x01\x20\x03(\tR\n\
messageIds\"i\n\x11ListTopicsRequest\x12\x18\n\x07project\x18\x01\x20\
\x01(\tR\x07project\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSi\
ze\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"m\n\x12ListTopi\
csResponse\x12/\n\x06topics\x18\x01\x20\x03(\x0b2\x17.google.pubsub.v1.T\
opicR\x06topics\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageT\
oken\"q\n\x1dListTopicSubscriptionsRequest\x12\x14\n\x05topic\x18\x01\
\x20\x01(\tR\x05topic\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08page\
Size\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"n\n\x1eListTo\
picSubscriptionsResponse\x12$\n\rsubscriptions\x18\x01\x20\x03(\tR\rsubs\
criptions\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\
m\n\x19ListTopicSnapshotsRequest\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\
\x05topic\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\
\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"b\n\x1aListTopicSnapshots\
Response\x12\x1c\n\tsnapshots\x18\x01\x20\x03(\tR\tsnapshots\x12&\n\x0fn\
ext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"*\n\x12DeleteTopicReq\
uest\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\x05topic\"\x90\x05\n\x0cSubs\
cription\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x14\n\x05topi\
c\x18\x02\x20\x01(\tR\x05topic\x12=\n\x0bpush_config\x18\x04\x20\x01(\
\x0b2\x1c.google.pubsub.v1.PushConfigR\npushConfig\x120\n\x14ack_deadlin\
e_seconds\x18\x05\x20\x01(\x05R\x12ackDeadlineSeconds\x122\n\x15retain_a\
cked_messages\x18\x07\x20\x01(\x08R\x13retainAckedMessages\x12W\n\x1ames\
sage_retention_duration\x18\x08\x20\x01(\x0b2\x19.google.protobuf.Durati\
onR\x18messageRetentionDuration\x12B\n\x06labels\x18\t\x20\x03(\x0b2*.go\
ogle.pubsub.v1.Subscription.LabelsEntryR\x06labels\x126\n\x17enable_mess\
age_ordering\x18\n\x20\x01(\x08R\x15enableMessageOrdering\x12O\n\x11expi\
ration_policy\x18\x0b\x20\x01(\x0b2\".google.pubsub.v1.ExpirationPolicyR\
\x10expirationPolicy\x12P\n\x12dead_letter_policy\x18\r\x20\x01(\x0b2\".\
google.pubsub.v1.DeadLetterPolicyR\x10deadLetterPolicy\x1a9\n\x0bLabelsE\
ntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\
\x02\x20\x01(\tR\x05value:\x028\x01\"r\n\x10DeadLetterPolicy\x12*\n\x11d\
ead_letter_topic\x18\x01\x20\x01(\tR\x0fdeadLetterTopic\x122\n\x15max_de\
livery_attempts\x18\x02\x20\x01(\x05R\x13maxDeliveryAttempts\"?\n\x10Exp\
irationPolicy\x12+\n\x03ttl\x18\x01\x20\x01(\x0b2\x19.google.protobuf.Du\
rationR\x03ttl\"\xfd\x02\n\nPushConfig\x12#\n\rpush_endpoint\x18\x01\x20\
\x01(\tR\x0cpushEndpoint\x12L\n\nattributes\x18\x02\x20\x03(\x0b2,.googl\
e.pubsub.v1.PushConfig.AttributesEntryR\nattributes\x12G\n\noidc_token\
\x18\x03\x20\x01(\x0b2&.google.pubsub.v1.PushConfig.OidcTokenH\0R\toidcT\
oken\x1a[\n\tOidcToken\x122\n\x15service_account_email\x18\x01\x20\x01(\
\tR\x13serviceAccountEmail\x12\x1a\n\x08audience\x18\x02\x20\x01(\tR\x08\
audience\x1a=\n\x0fAttributesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\
\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01B\x17\n\
\x15authentication_method\"\x8e\x01\n\x0fReceivedMessage\x12\x15\n\x06ac\
k_id\x18\x01\x20\x01(\tR\x05ackId\x129\n\x07message\x18\x02\x20\x01(\x0b\
2\x1f.google.pubsub.v1.PubsubMessageR\x07message\x12)\n\x10delivery_atte\
mpt\x18\x03\x20\x01(\x05R\x0fdeliveryAttempt\"<\n\x16GetSubscriptionRequ\
est\x12\"\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscription\"\x9c\
\x01\n\x19UpdateSubscriptionRequest\x12B\n\x0csubscription\x18\x01\x20\
\x01(\x0b2\x1e.google.pubsub.v1.SubscriptionR\x0csubscription\x12;\n\x0b\
update_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdate\
Mask\"p\n\x18ListSubscriptionsRequest\x12\x18\n\x07project\x18\x01\x20\
\x01(\tR\x07project\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSi\
ze\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"\x89\x01\n\x19L\
istSubscriptionsResponse\x12D\n\rsubscriptions\x18\x01\x20\x03(\x0b2\x1e\
.google.pubsub.v1.SubscriptionR\rsubscriptions\x12&\n\x0fnext_page_token\
\x18\x02\x20\x01(\tR\rnextPageToken\"?\n\x19DeleteSubscriptionRequest\
\x12\"\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscription\"|\n\x17Mod\
ifyPushConfigRequest\x12\"\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubs\
cription\x12=\n\x0bpush_config\x18\x02\x20\x01(\x0b2\x1c.google.pubsub.v\
1.PushConfigR\npushConfig\"\x83\x01\n\x0bPullRequest\x12\"\n\x0csubscrip\
tion\x18\x01\x20\x01(\tR\x0csubscription\x12-\n\x12return_immediately\
\x18\x02\x20\x01(\x08R\x11returnImmediately\x12!\n\x0cmax_messages\x18\
\x03\x20\x01(\x05R\x0bmaxMessages\"^\n\x0cPullResponse\x12N\n\x11receive\
d_messages\x18\x01\x20\x03(\x0b2!.google.pubsub.v1.ReceivedMessageR\x10r\
eceivedMessages\"\x89\x01\n\x18ModifyAckDeadlineRequest\x12\"\n\x0csubsc\
ription\x18\x01\x20\x01(\tR\x0csubscription\x12\x17\n\x07ack_ids\x18\x04\
\x20\x03(\tR\x06ackIds\x120\n\x14ack_deadline_seconds\x18\x03\x20\x01(\
\x05R\x12ackDeadlineSeconds\"Q\n\x12AcknowledgeRequest\x12\"\n\x0csubscr\
iption\x18\x01\x20\x01(\tR\x0csubscription\x12\x17\n\x07ack_ids\x18\x02\
\x20\x03(\tR\x06ackIds\"\x81\x02\n\x14StreamingPullRequest\x12\"\n\x0csu\
bscription\x18\x01\x20\x01(\tR\x0csubscription\x12\x17\n\x07ack_ids\x18\
\x02\x20\x03(\tR\x06ackIds\x126\n\x17modify_deadline_seconds\x18\x03\x20\
\x03(\x05R\x15modifyDeadlineSeconds\x125\n\x17modify_deadline_ack_ids\
\x18\x04\x20\x03(\tR\x14modifyDeadlineAckIds\x12=\n\x1bstream_ack_deadli\
ne_seconds\x18\x05\x20\x01(\x05R\x18streamAckDeadlineSeconds\"g\n\x15Str\
eamingPullResponse\x12N\n\x11received_messages\x18\x01\x20\x03(\x0b2!.go\
ogle.pubsub.v1.ReceivedMessageR\x10receivedMessages\"\xd7\x01\n\x15Creat\
eSnapshotRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\"\n\
\x0csubscription\x18\x02\x20\x01(\tR\x0csubscription\x12K\n\x06labels\
\x18\x03\x20\x03(\x0b23.google.pubsub.v1.CreateSnapshotRequest.LabelsEnt\
ryR\x06labels\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\
\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\x8c\
\x01\n\x15UpdateSnapshotRequest\x126\n\x08snapshot\x18\x01\x20\x01(\x0b2\
\x1a.google.pubsub.v1.SnapshotR\x08snapshot\x12;\n\x0bupdate_mask\x18\
\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMask\"\xec\x01\
\n\x08Snapshot\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x14\n\
\x05topic\x18\x02\x20\x01(\tR\x05topic\x12;\n\x0bexpire_time\x18\x03\x20\
\x01(\x0b2\x1a.google.protobuf.TimestampR\nexpireTime\x12>\n\x06labels\
\x18\x04\x20\x03(\x0b2&.google.pubsub.v1.Snapshot.LabelsEntryR\x06labels\
\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\
\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"0\n\x12GetSnapsh\
otRequest\x12\x1a\n\x08snapshot\x18\x01\x20\x01(\tR\x08snapshot\"l\n\x14\
ListSnapshotsRequest\x12\x18\n\x07project\x18\x01\x20\x01(\tR\x07project\
\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_\
token\x18\x03\x20\x01(\tR\tpageToken\"y\n\x15ListSnapshotsResponse\x128\
\n\tsnapshots\x18\x01\x20\x03(\x0b2\x1a.google.pubsub.v1.SnapshotR\tsnap\
shots\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"3\n\
\x15DeleteSnapshotRequest\x12\x1a\n\x08snapshot\x18\x01\x20\x01(\tR\x08s\
napshot\"\x8b\x01\n\x0bSeekRequest\x12\"\n\x0csubscription\x18\x01\x20\
\x01(\tR\x0csubscription\x120\n\x04time\x18\x02\x20\x01(\x0b2\x1a.google\
.protobuf.TimestampH\0R\x04time\x12\x1c\n\x08snapshot\x18\x03\x20\x01(\t\
H\0R\x08snapshotB\x08\n\x06target\"\x0e\n\x0cSeekResponse2\xb1\t\n\tPubl\
isher\x12j\n\x0bCreateTopic\x12\x17.google.pubsub.v1.Topic\x1a\x17.googl\
e.pubsub.v1.Topic\")\x82\xd3\xe4\x93\x02#\x1a\x1e/v1/{name=projects/*/to\
pics/*}:\x01*\x12}\n\x0bUpdateTopic\x12$.google.pubsub.v1.UpdateTopicReq\
uest\x1a\x17.google.pubsub.v1.Topic\"/\x82\xd3\xe4\x93\x02)2$/v1/{topic.\
name=projects/*/topics/*}:\x01*\x12\x82\x01\n\x07Publish\x12\x20.google.\
pubsub.v1.PublishRequest\x1a!.google.pubsub.v1.PublishResponse\"2\x82\
\xd3\xe4\x93\x02,\"'/v1/{topic=projects/*/topics/*}:publish:\x01*\x12o\n\
\x08GetTopic\x12!.google.pubsub.v1.GetTopicRequest\x1a\x17.google.pubsub\
.v1.Topic\"'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{topic=projects/*/topics/*}\
\x12\x80\x01\n\nListTopics\x12#.google.pubsub.v1.ListTopicsRequest\x1a$.\
google.pubsub.v1.ListTopicsResponse\"'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{\
project=projects/*}/topics\x12\xb2\x01\n\x16ListTopicSubscriptions\x12/.\
google.pubsub.v1.ListTopicSubscriptionsRequest\x1a0.google.pubsub.v1.Lis\
tTopicSubscriptionsResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{topic=proje\
cts/*/topics/*}/subscriptions\x12\xa2\x01\n\x12ListTopicSnapshots\x12+.g\
oogle.pubsub.v1.ListTopicSnapshotsRequest\x1a,.google.pubsub.v1.ListTopi\
cSnapshotsResponse\"1\x82\xd3\xe4\x93\x02+\x12)/v1/{topic=projects/*/top\
ics/*}/snapshots\x12t\n\x0bDeleteTopic\x12$.google.pubsub.v1.DeleteTopic\
Request\x1a\x16.google.protobuf.Empty\"'\x82\xd3\xe4\x93\x02!*\x1f/v1/{t\
opic=projects/*/topics/*}\x1ap\xd2AUhttps://www.googleapis.com/auth/clou\
d-platform,https://www.googleapis.com/auth/pubsub\xcaA\x15pubsub.googlea\
pis.com2\xeb\x12\n\nSubscriber\x12\x86\x01\n\x12CreateSubscription\x12\
\x1e.google.pubsub.v1.Subscription\x1a\x1e.google.pubsub.v1.Subscription\
\"0\x82\xd3\xe4\x93\x02*\x1a%/v1/{name=projects/*/subscriptions/*}:\x01*\
\x12\x92\x01\n\x0fGetSubscription\x12(.google.pubsub.v1.GetSubscriptionR\
equest\x1a\x1e.google.pubsub.v1.Subscription\"5\x82\xd3\xe4\x93\x02/\x12\
-/v1/{subscription=projects/*/subscriptions/*}\x12\xa0\x01\n\x12UpdateSu\
bscription\x12+.google.pubsub.v1.UpdateSubscriptionRequest\x1a\x1e.googl\
e.pubsub.v1.Subscription\"=\x82\xd3\xe4\x93\x02722/v1/{subscription.name\
=projects/*/subscriptions/*}:\x01*\x12\x9c\x01\n\x11ListSubscriptions\
\x12*.google.pubsub.v1.ListSubscriptionsRequest\x1a+.google.pubsub.v1.Li\
stSubscriptionsResponse\".\x82\xd3\xe4\x93\x02(\x12&/v1/{project=project\
s/*}/subscriptions\x12\x90\x01\n\x12DeleteSubscription\x12+.google.pubsu\
b.v1.DeleteSubscriptionRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\
\xe4\x93\x02/*-/v1/{subscription=projects/*/subscriptions/*}\x12\xa3\x01\
\n\x11ModifyAckDeadline\x12*.google.pubsub.v1.ModifyAckDeadlineRequest\
\x1a\x16.google.protobuf.Empty\"J\x82\xd3\xe4\x93\x02D\"?/v1/{subscripti\
on=projects/*/subscriptions/*}:modifyAckDeadline:\x01*\x12\x91\x01\n\x0b\
Acknowledge\x12$.google.pubsub.v1.AcknowledgeRequest\x1a\x16.google.prot\
obuf.Empty\"D\x82\xd3\xe4\x93\x02>\"9/v1/{subscription=projects/*/subscr\
iptions/*}:acknowledge:\x01*\x12\x84\x01\n\x04Pull\x12\x1d.google.pubsub\
.v1.PullRequest\x1a\x1e.google.pubsub.v1.PullResponse\"=\x82\xd3\xe4\x93\
\x027\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\x01*\x12f\n\
\rStreamingPull\x12&.google.pubsub.v1.StreamingPullRequest\x1a'.google.p\
ubsub.v1.StreamingPullResponse\"\0(\x010\x01\x12\xa0\x01\n\x10ModifyPush\
Config\x12).google.pubsub.v1.ModifyPushConfigRequest\x1a\x16.google.prot\
obuf.Empty\"I\x82\xd3\xe4\x93\x02C\">/v1/{subscription=projects/*/subscr\
iptions/*}:modifyPushConfig:\x01*\x12~\n\x0bGetSnapshot\x12$.google.pubs\
ub.v1.GetSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"-\x82\xd3\
\xe4\x93\x02'\x12%/v1/{snapshot=projects/*/snapshots/*}\x12\x8c\x01\n\rL\
istSnapshots\x12&.google.pubsub.v1.ListSnapshotsRequest\x1a'.google.pubs\
ub.v1.ListSnapshotsResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/v1/{project=pr\
ojects/*}/snapshots\x12\x83\x01\n\x0eCreateSnapshot\x12'.google.pubsub.v\
1.CreateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\",\x82\xd3\xe4\
\x93\x02&\x1a!/v1/{name=projects/*/snapshots/*}:\x01*\x12\x8c\x01\n\x0eU\
pdateSnapshot\x12'.google.pubsub.v1.UpdateSnapshotRequest\x1a\x1a.google\
.pubsub.v1.Snapshot\"5\x82\xd3\xe4\x93\x02/2*/v1/{snapshot.name=projects\
/*/snapshots/*}:\x01*\x12\x80\x01\n\x0eDeleteSnapshot\x12'.google.pubsub\
.v1.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty\"-\x82\xd3\xe4\
\x93\x02'*%/v1/{snapshot=projects/*/snapshots/*}\x12\x84\x01\n\x04Seek\
\x12\x1d.google.pubsub.v1.SeekRequest\x1a\x1e.google.pubsub.v1.SeekRespo\
nse\"=\x82\xd3\xe4\x93\x027\"2/v1/{subscription=projects/*/subscriptions\
/*}:seek:\x01*\x1ap\xd2AUhttps://www.googleapis.com/auth/cloud-platform,\
https://www.googleapis.com/auth/pubsub\xcaA\x15pubsub.googleapis.comB\
\xae\x01\n\x14com.google.pubsub.v1B\x0bPubsubProtoP\x01Z6google.golang.o\
rg/genproto/googleapis/pubsub/v1;pubsub\xf8\x01\x01\xaa\x02\x16Google.Cl\
oud.PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cl\
oud::PubSub::V1J\xf6\xd3\x02\n\x07\x12\x05\x0f\0\xaa\x08\x17\n\xbe\x04\n\
\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LL\
C.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202\
.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fil\
e\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20m\
ay\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\
\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\
ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\
\x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\
buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\
\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\
\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\
guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\
e\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x19\n\t\n\x02\x03\0\x12\
\x03\x13\0&\n\t\n\x02\x03\x01\x12\x03\x14\0!\n\t\n\x02\x03\x02\x12\x03\
\x15\0(\n\t\n\x02\x03\x03\x12\x03\x16\0%\n\t\n\x02\x03\x04\x12\x03\x17\0\
*\n\t\n\x02\x03\x05\x12\x03\x18\0)\n\x08\n\x01\x08\x12\x03\x1a\0\x1f\n\t\
\n\x02\x08\x1f\x12\x03\x1a\0\x1f\n\x08\n\x01\x08\x12\x03\x1b\03\n\t\n\
\x02\x08%\x12\x03\x1b\03\n\x08\n\x01\x08\x12\x03\x1c\0M\n\t\n\x02\x08\
\x0b\x12\x03\x1c\0M\n\x08\n\x01\x08\x12\x03\x1d\0\"\n\t\n\x02\x08\n\x12\
\x03\x1d\0\"\n\x08\n\x01\x08\x12\x03\x1e\0,\n\t\n\x02\x08\x08\x12\x03\
\x1e\0,\n\x08\n\x01\x08\x12\x03\x1f\0-\n\t\n\x02\x08\x01\x12\x03\x1f\0-\
\n\x08\n\x01\x08\x12\x03\x20\03\n\t\n\x02\x08)\x12\x03\x20\03\n\x08\n\
\x01\x08\x12\x03!\02\n\t\n\x02\x08-\x12\x03!\02\nj\n\x02\x06\0\x12\x04%\
\0t\x01\x1a^\x20The\x20service\x20that\x20an\x20application\x20uses\x20t\
o\x20manipulate\x20topics,\x20and\x20to\x20send\n\x20messages\x20to\x20a\
\x20topic.\n\n\n\n\x03\x06\0\x01\x12\x03%\x08\x11\n\n\n\x03\x06\0\x03\
\x12\x03&\x02=\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03&\x02=\n\x0b\n\x03\
\x06\0\x03\x12\x04'\x02)/\n\r\n\x05\x06\0\x03\x9a\x08\x12\x04'\x02)/\n\
\xa5\x01\n\x04\x06\0\x02\0\x12\x04.\x023\x03\x1a\x96\x01\x20Creates\x20t\
he\x20given\x20topic\x20with\x20the\x20given\x20name.\x20See\x20the\n\
\x20<a\x20href=\"https://cloud.google.com/pubsub/docs/admin#resource_nam\
es\">\n\x20resource\x20name\x20rules</a>.\n\n\x0c\n\x05\x06\0\x02\0\x01\
\x12\x03.\x06\x11\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03.\x12\x17\n\x0c\n\
\x05\x06\0\x02\0\x03\x12\x03.\"'\n\r\n\x05\x06\0\x02\0\x04\x12\x04/\x042\
\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04/\x042\x06\ng\n\x04\
\x06\0\x02\x01\x12\x047\x02<\x03\x1aY\x20Updates\x20an\x20existing\x20to\
pic.\x20Note\x20that\x20certain\x20properties\x20of\x20a\n\x20topic\x20a\
re\x20not\x20modifiable.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x037\x06\
\x11\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x037\x12$\n\x0c\n\x05\x06\0\x02\
\x01\x03\x12\x037/4\n\r\n\x05\x06\0\x02\x01\x04\x12\x048\x04;\x06\n\x11\
\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x048\x04;\x06\ni\n\x04\x06\0\
\x02\x02\x12\x04@\x02E\x03\x1a[\x20Adds\x20one\x20or\x20more\x20messages\
\x20to\x20the\x20topic.\x20Returns\x20`NOT_FOUND`\x20if\x20the\x20topic\
\n\x20does\x20not\x20exist.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03@\x06\
\r\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03@\x0e\x1c\n\x0c\n\x05\x06\0\x02\
\x02\x03\x12\x03@'6\n\r\n\x05\x06\0\x02\x02\x04\x12\x04A\x04D\x06\n\x11\
\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04A\x04D\x06\n2\n\x04\x06\0\
\x02\x03\x12\x04H\x02L\x03\x1a$\x20Gets\x20the\x20configuration\x20of\
\x20a\x20topic.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03H\x06\x0e\n\x0c\n\
\x05\x06\0\x02\x03\x02\x12\x03H\x0f\x1e\n\x0c\n\x05\x06\0\x02\x03\x03\
\x12\x03H).\n\r\n\x05\x06\0\x02\x03\x04\x12\x04I\x04K\x06\n\x11\n\t\x06\
\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04I\x04K\x06\n&\n\x04\x06\0\x02\x04\
\x12\x04O\x02S\x03\x1a\x18\x20Lists\x20matching\x20topics.\n\n\x0c\n\x05\
\x06\0\x02\x04\x01\x12\x03O\x06\x10\n\x0c\n\x05\x06\0\x02\x04\x02\x12\
\x03O\x11\"\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03O-?\n\r\n\x05\x06\0\x02\
\x04\x04\x12\x04P\x04R\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\
\x04P\x04R\x06\nC\n\x04\x06\0\x02\x05\x12\x04V\x02[\x03\x1a5\x20Lists\
\x20the\x20names\x20of\x20the\x20subscriptions\x20on\x20this\x20topic.\n\
\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03V\x06\x1c\n\x0c\n\x05\x06\0\x02\
\x05\x02\x12\x03V\x1d:\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03W\x0f-\n\r\n\
\x05\x06\0\x02\x05\x04\x12\x04X\x04Z\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\
\xca\xbc\"\x12\x04X\x04Z\x06\n\xe5\x02\n\x04\x06\0\x02\x06\x12\x04c\x02h\
\x03\x1a\xd6\x02\x20Lists\x20the\x20names\x20of\x20the\x20snapshots\x20o\
n\x20this\x20topic.\x20Snapshots\x20are\x20used\x20in\n\x20<a\x20href=\"\
https://cloud.google.com/pubsub/docs/replay-overview\">Seek</a>\n\x20ope\
rations,\x20which\x20allow\n\x20you\x20to\x20manage\x20message\x20acknow\
ledgments\x20in\x20bulk.\x20That\x20is,\x20you\x20can\x20set\x20the\n\
\x20acknowledgment\x20state\x20of\x20messages\x20in\x20an\x20existing\
\x20subscription\x20to\x20the\x20state\n\x20captured\x20by\x20a\x20snaps\
hot.\n\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03c\x06\x18\n\x0c\n\x05\x06\0\
\x02\x06\x02\x12\x03c\x192\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03d\x0f)\n\
\r\n\x05\x06\0\x02\x06\x04\x12\x04e\x04g\x06\n\x11\n\t\x06\0\x02\x06\x04\
\xb0\xca\xbc\"\x12\x04e\x04g\x06\n\xf3\x02\n\x04\x06\0\x02\x07\x12\x04o\
\x02s\x03\x1a\xe4\x02\x20Deletes\x20the\x20topic\x20with\x20the\x20given\
\x20name.\x20Returns\x20`NOT_FOUND`\x20if\x20the\x20topic\n\x20does\x20n\
ot\x20exist.\x20After\x20a\x20topic\x20is\x20deleted,\x20a\x20new\x20top\
ic\x20may\x20be\x20created\x20with\n\x20the\x20same\x20name;\x20this\x20\
is\x20an\x20entirely\x20new\x20topic\x20with\x20none\x20of\x20the\x20old\
\n\x20configuration\x20or\x20subscriptions.\x20Existing\x20subscriptions\
\x20to\x20this\x20topic\x20are\n\x20not\x20deleted,\x20but\x20their\x20`\
topic`\x20field\x20is\x20set\x20to\x20`_deleted-topic_`.\n\n\x0c\n\x05\
\x06\0\x02\x07\x01\x12\x03o\x06\x11\n\x0c\n\x05\x06\0\x02\x07\x02\x12\
\x03o\x12$\n\x0c\n\x05\x06\0\x02\x07\x03\x12\x03o/D\n\r\n\x05\x06\0\x02\
\x07\x04\x12\x04p\x04r\x06\n\x11\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\
\x04p\x04r\x06\n\n\n\x02\x04\0\x12\x04v\0}\x01\n\n\n\x03\x04\0\x01\x12\
\x03v\x08\x1c\n\xf4\x02\n\x04\x04\0\x02\0\x12\x03|\x022\x1a\xe6\x02\x20A\
\x20list\x20of\x20IDs\x20of\x20GCP\x20regions\x20where\x20messages\x20th\
at\x20are\x20published\x20to\x20the\x20topic\n\x20may\x20be\x20persisted\
\x20in\x20storage.\x20Messages\x20published\x20by\x20publishers\x20runni\
ng\x20in\n\x20non-allowed\x20GCP\x20regions\x20(or\x20running\x20outside\
\x20of\x20GCP\x20altogether)\x20will\x20be\n\x20routed\x20for\x20storage\
\x20in\x20one\x20of\x20the\x20allowed\x20regions.\x20An\x20empty\x20list\
\x20means\x20that\n\x20no\x20regions\x20are\x20allowed,\x20and\x20is\x20\
not\x20a\x20valid\x20configuration.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\
\x03|\x02\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03|\x0b\x11\n\x0c\n\x05\x04\
\0\x02\0\x01\x12\x03|\x12-\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03|01\n!\n\
\x02\x04\x01\x12\x06\x80\x01\0\x97\x01\x01\x1a\x13\x20A\x20topic\x20reso\
urce.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x80\x01\x08\r\n\x82\x03\n\x04\
\x04\x01\x02\0\x12\x04\x87\x01\x02\x12\x1a\xf3\x02\x20The\x20name\x20of\
\x20the\x20topic.\x20It\x20must\x20have\x20the\x20format\n\x20`\"project\
s/{project}/topics/{topic}\"`.\x20`{topic}`\x20must\x20start\x20with\x20\
a\x20letter,\n\x20and\x20contain\x20only\x20letters\x20(`[A-Za-z]`),\x20\
numbers\x20(`[0-9]`),\x20dashes\x20(`-`),\n\x20underscores\x20(`_`),\x20\
periods\x20(`.`),\x20tildes\x20(`~`),\x20plus\x20(`+`)\x20or\x20percent\
\n\x20signs\x20(`%`).\x20It\x20must\x20be\x20between\x203\x20and\x20255\
\x20characters\x20in\x20length,\x20and\x20it\n\x20must\x20not\x20start\
\x20with\x20`\"goog\"`.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x87\x01\
\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x87\x01\t\r\n\r\n\x05\x04\
\x01\x02\0\x03\x12\x04\x87\x01\x10\x11\nm\n\x04\x04\x01\x02\x01\x12\x04\
\x8b\x01\x02!\x1a_\x20See\x20<a\x20href=\"https://cloud.google.com/pubsu\
b/docs/labels\">\x20Creating\x20and\n\x20managing\x20labels</a>.\n\n\r\n\
\x05\x04\x01\x02\x01\x06\x12\x04\x8b\x01\x02\x15\n\r\n\x05\x04\x01\x02\
\x01\x01\x12\x04\x8b\x01\x16\x1c\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\
\x8b\x01\x1f\x20\n\xb7\x01\n\x04\x04\x01\x02\x02\x12\x04\x90\x01\x022\
\x1a\xa8\x01\x20Policy\x20constraining\x20the\x20set\x20of\x20Google\x20\
Cloud\x20Platform\x20regions\x20where\x20messages\n\x20published\x20to\
\x20the\x20topic\x20may\x20be\x20stored.\x20If\x20not\x20present,\x20the\
n\x20no\x20constraints\n\x20are\x20in\x20effect.\n\n\r\n\x05\x04\x01\x02\
\x02\x06\x12\x04\x90\x01\x02\x16\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\
\x90\x01\x17-\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\x90\x0101\n\xcb\x01\
\n\x04\x04\x01\x02\x03\x12\x04\x96\x01\x02\x1a\x1a\xbc\x01\x20The\x20res\
ource\x20name\x20of\x20the\x20Cloud\x20KMS\x20CryptoKey\x20to\x20be\x20u\
sed\x20to\x20protect\x20access\n\x20to\x20messages\x20published\x20on\
\x20this\x20topic.\n\n\x20The\x20expected\x20format\x20is\x20`projects/*\
/locations/*/keyRings/*/cryptoKeys/*`.\n\n\r\n\x05\x04\x01\x02\x03\x05\
\x12\x04\x96\x01\x02\x08\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\x96\x01\t\
\x15\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\x96\x01\x18\x19\n\x8e\x04\n\
\x02\x04\x02\x12\x06\xa1\x01\0\xbc\x01\x01\x1a\xff\x03\x20A\x20message\
\x20that\x20is\x20published\x20by\x20publishers\x20and\x20consumed\x20by\
\x20subscribers.\x20The\n\x20message\x20must\x20contain\x20either\x20a\
\x20non-empty\x20data\x20field\x20or\x20at\x20least\x20one\x20attribute.\
\n\x20Note\x20that\x20client\x20libraries\x20represent\x20this\x20object\
\x20differently\n\x20depending\x20on\x20the\x20language.\x20See\x20the\
\x20corresponding\n\x20<a\x20href=\"https://cloud.google.com/pubsub/docs\
/reference/libraries\">client\n\x20library\x20documentation</a>\x20for\
\x20more\x20information.\x20See\n\x20<a\x20href=\"https://cloud.google.c\
om/pubsub/quotas\">Quotas\x20and\x20limits</a>\n\x20for\x20more\x20infor\
mation\x20about\x20message\x20limits.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\
\xa1\x01\x08\x15\nq\n\x04\x04\x02\x02\0\x12\x04\xa4\x01\x02\x11\x1ac\x20\
The\x20message\x20data\x20field.\x20If\x20this\x20field\x20is\x20empty,\
\x20the\x20message\x20must\x20contain\n\x20at\x20least\x20one\x20attribu\
te.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xa4\x01\x02\x07\n\r\n\x05\x04\
\x02\x02\0\x01\x12\x04\xa4\x01\x08\x0c\n\r\n\x05\x04\x02\x02\0\x03\x12\
\x04\xa4\x01\x0f\x10\n5\n\x04\x04\x02\x02\x01\x12\x04\xa7\x01\x02%\x1a'\
\x20Optional\x20attributes\x20for\x20this\x20message.\n\n\r\n\x05\x04\
\x02\x02\x01\x06\x12\x04\xa7\x01\x02\x15\n\r\n\x05\x04\x02\x02\x01\x01\
\x12\x04\xa7\x01\x16\x20\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xa7\x01#$\
\n\xb3\x02\n\x04\x04\x02\x02\x02\x12\x04\xad\x01\x02\x18\x1a\xa4\x02\x20\
ID\x20of\x20this\x20message,\x20assigned\x20by\x20the\x20server\x20when\
\x20the\x20message\x20is\x20published.\n\x20Guaranteed\x20to\x20be\x20un\
ique\x20within\x20the\x20topic.\x20This\x20value\x20may\x20be\x20read\
\x20by\x20a\n\x20subscriber\x20that\x20receives\x20a\x20`PubsubMessage`\
\x20via\x20a\x20`Pull`\x20call\x20or\x20a\x20push\n\x20delivery.\x20It\
\x20must\x20not\x20be\x20populated\x20by\x20the\x20publisher\x20in\x20a\
\x20`Publish`\x20call.\n\n\r\n\x05\x04\x02\x02\x02\x05\x12\x04\xad\x01\
\x02\x08\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xad\x01\t\x13\n\r\n\x05\
\x04\x02\x02\x02\x03\x12\x04\xad\x01\x16\x17\n\xbb\x01\n\x04\x04\x02\x02\
\x03\x12\x04\xb2\x01\x02-\x1a\xac\x01\x20The\x20time\x20at\x20which\x20t\
he\x20message\x20was\x20published,\x20populated\x20by\x20the\x20server\
\x20when\n\x20it\x20receives\x20the\x20`Publish`\x20call.\x20It\x20must\
\x20not\x20be\x20populated\x20by\x20the\n\x20publisher\x20in\x20a\x20`Pu\
blish`\x20call.\n\n\r\n\x05\x04\x02\x02\x03\x06\x12\x04\xb2\x01\x02\x1b\
\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xb2\x01\x1c(\n\r\n\x05\x04\x02\
\x02\x03\x03\x12\x04\xb2\x01+,\n\x92\x04\n\x04\x04\x02\x02\x04\x12\x04\
\xbb\x01\x02\x1a\x1a\x83\x04\x20Identifies\x20related\x20messages\x20for\
\x20which\x20publish\x20order\x20should\x20be\x20respected.\n\x20If\x20a\
\x20`Subscription`\x20has\x20`enable_message_ordering`\x20set\x20to\x20`\
true`,\x20messages\n\x20published\x20with\x20the\x20same\x20`ordering_ke\
y`\x20value\x20will\x20be\x20delivered\x20to\n\x20subscribers\x20in\x20t\
he\x20order\x20in\x20which\x20they\x20are\x20received\x20by\x20the\x20Pu\
b/Sub\x20system.\n\x20<b>EXPERIMENTAL:</b>\x20This\x20feature\x20is\x20p\
art\x20of\x20a\x20closed\x20alpha\x20release.\x20This\n\x20API\x20might\
\x20be\x20changed\x20in\x20backward-incompatible\x20ways\x20and\x20is\
\x20not\x20recommended\n\x20for\x20production\x20use.\x20It\x20is\x20not\
\x20subject\x20to\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\r\n\
\x05\x04\x02\x02\x04\x05\x12\x04\xbb\x01\x02\x08\n\r\n\x05\x04\x02\x02\
\x04\x01\x12\x04\xbb\x01\t\x15\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\xbb\
\x01\x18\x19\n0\n\x02\x04\x03\x12\x06\xbf\x01\0\xc3\x01\x01\x1a\"\x20Req\
uest\x20for\x20the\x20GetTopic\x20method.\n\n\x0b\n\x03\x04\x03\x01\x12\
\x04\xbf\x01\x08\x17\n]\n\x04\x04\x03\x02\0\x12\x04\xc2\x01\x02\x13\x1aO\
\x20The\x20name\x20of\x20the\x20topic\x20to\x20get.\n\x20Format\x20is\
\x20`projects/{project}/topics/{topic}`.\n\n\r\n\x05\x04\x03\x02\0\x05\
\x12\x04\xc2\x01\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xc2\x01\t\
\x0e\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xc2\x01\x11\x12\n3\n\x02\x04\
\x04\x12\x06\xc6\x01\0\xd0\x01\x01\x1a%\x20Request\x20for\x20the\x20Upda\
teTopic\x20method.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xc6\x01\x08\x1a\n)\
\n\x04\x04\x04\x02\0\x12\x04\xc8\x01\x02\x12\x1a\x1b\x20The\x20updated\
\x20topic\x20object.\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\xc8\x01\x02\
\x07\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xc8\x01\x08\r\n\r\n\x05\x04\x04\
\x02\0\x03\x12\x04\xc8\x01\x10\x11\n\xe1\x02\n\x04\x04\x04\x02\x01\x12\
\x04\xcf\x01\x02,\x1a\xd2\x02\x20Indicates\x20which\x20fields\x20in\x20t\
he\x20provided\x20topic\x20to\x20update.\x20Must\x20be\x20specified\n\
\x20and\x20non-empty.\x20Note\x20that\x20if\x20`update_mask`\x20contains\
\n\x20\"message_storage_policy\"\x20then\x20the\x20new\x20value\x20will\
\x20be\x20determined\x20based\x20on\x20the\n\x20policy\x20configured\x20\
at\x20the\x20project\x20or\x20organization\x20level.\x20The\n\x20`messag\
e_storage_policy`\x20must\x20not\x20be\x20set\x20in\x20the\x20`topic`\
\x20provided\x20above.\n\n\r\n\x05\x04\x04\x02\x01\x06\x12\x04\xcf\x01\
\x02\x1b\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xcf\x01\x1c'\n\r\n\x05\
\x04\x04\x02\x01\x03\x12\x04\xcf\x01*+\n/\n\x02\x04\x05\x12\x06\xd3\x01\
\0\xda\x01\x01\x1a!\x20Request\x20for\x20the\x20Publish\x20method.\n\n\
\x0b\n\x03\x04\x05\x01\x12\x04\xd3\x01\x08\x16\n|\n\x04\x04\x05\x02\0\
\x12\x04\xd6\x01\x02\x13\x1an\x20The\x20messages\x20in\x20the\x20request\
\x20will\x20be\x20published\x20on\x20this\x20topic.\n\x20Format\x20is\
\x20`projects/{project}/topics/{topic}`.\n\n\r\n\x05\x04\x05\x02\0\x05\
\x12\x04\xd6\x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xd6\x01\t\
\x0e\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xd6\x01\x11\x12\n(\n\x04\x04\
\x05\x02\x01\x12\x04\xd9\x01\x02&\x1a\x1a\x20The\x20messages\x20to\x20pu\
blish.\n\n\r\n\x05\x04\x05\x02\x01\x04\x12\x04\xd9\x01\x02\n\n\r\n\x05\
\x04\x05\x02\x01\x06\x12\x04\xd9\x01\x0b\x18\n\r\n\x05\x04\x05\x02\x01\
\x01\x12\x04\xd9\x01\x19!\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xd9\x01$\
%\n2\n\x02\x04\x06\x12\x06\xdd\x01\0\xe2\x01\x01\x1a$\x20Response\x20for\
\x20the\x20`Publish`\x20method.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xdd\
\x01\x08\x17\n\xa8\x01\n\x04\x04\x06\x02\0\x12\x04\xe1\x01\x02\"\x1a\x99\
\x01\x20The\x20server-assigned\x20ID\x20of\x20each\x20published\x20messa\
ge,\x20in\x20the\x20same\x20order\x20as\n\x20the\x20messages\x20in\x20th\
e\x20request.\x20IDs\x20are\x20guaranteed\x20to\x20be\x20unique\x20withi\
n\n\x20the\x20topic.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xe1\x01\x02\n\
\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xe1\x01\x0b\x11\n\r\n\x05\x04\x06\
\x02\0\x01\x12\x04\xe1\x01\x12\x1d\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\
\xe1\x01\x20!\n4\n\x02\x04\x07\x12\x06\xe5\x01\0\xf1\x01\x01\x1a&\x20Req\
uest\x20for\x20the\x20`ListTopics`\x20method.\n\n\x0b\n\x03\x04\x07\x01\
\x12\x04\xe5\x01\x08\x19\nd\n\x04\x04\x07\x02\0\x12\x04\xe8\x01\x02\x15\
\x1aV\x20The\x20name\x20of\x20the\x20project\x20in\x20which\x20to\x20lis\
t\x20topics.\n\x20Format\x20is\x20`projects/{project-id}`.\n\n\r\n\x05\
\x04\x07\x02\0\x05\x12\x04\xe8\x01\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\
\x12\x04\xe8\x01\t\x10\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xe8\x01\x13\
\x14\n3\n\x04\x04\x07\x02\x01\x12\x04\xeb\x01\x02\x16\x1a%\x20Maximum\
\x20number\x20of\x20topics\x20to\x20return.\n\n\r\n\x05\x04\x07\x02\x01\
\x05\x12\x04\xeb\x01\x02\x07\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xeb\
\x01\x08\x11\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xeb\x01\x14\x15\n\xc4\
\x01\n\x04\x04\x07\x02\x02\x12\x04\xf0\x01\x02\x18\x1a\xb5\x01\x20The\
\x20value\x20returned\x20by\x20the\x20last\x20`ListTopicsResponse`;\x20i\
ndicates\x20that\x20this\x20is\n\x20a\x20continuation\x20of\x20a\x20prio\
r\x20`ListTopics`\x20call,\x20and\x20that\x20the\x20system\x20should\n\
\x20return\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\x07\x02\
\x02\x05\x12\x04\xf0\x01\x02\x08\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\
\xf0\x01\t\x13\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\xf0\x01\x16\x17\n5\
\n\x02\x04\x08\x12\x06\xf4\x01\0\xfb\x01\x01\x1a'\x20Response\x20for\x20\
the\x20`ListTopics`\x20method.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xf4\x01\
\x08\x1a\n%\n\x04\x04\x08\x02\0\x12\x04\xf6\x01\x02\x1c\x1a\x17\x20The\
\x20resulting\x20topics.\n\n\r\n\x05\x04\x08\x02\0\x04\x12\x04\xf6\x01\
\x02\n\n\r\n\x05\x04\x08\x02\0\x06\x12\x04\xf6\x01\x0b\x10\n\r\n\x05\x04\
\x08\x02\0\x01\x12\x04\xf6\x01\x11\x17\n\r\n\x05\x04\x08\x02\0\x03\x12\
\x04\xf6\x01\x1a\x1b\n\x99\x01\n\x04\x04\x08\x02\x01\x12\x04\xfa\x01\x02\
\x1d\x1a\x8a\x01\x20If\x20not\x20empty,\x20indicates\x20that\x20there\
\x20may\x20be\x20more\x20topics\x20that\x20match\x20the\n\x20request;\
\x20this\x20value\x20should\x20be\x20passed\x20in\x20a\x20new\x20`ListTo\
picsRequest`.\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xfa\x01\x02\x08\n\
\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xfa\x01\t\x18\n\r\n\x05\x04\x08\x02\
\x01\x03\x12\x04\xfa\x01\x1b\x1c\n@\n\x02\x04\t\x12\x06\xfe\x01\0\x8a\
\x02\x01\x1a2\x20Request\x20for\x20the\x20`ListTopicSubscriptions`\x20me\
thod.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xfe\x01\x08%\ny\n\x04\x04\t\x02\0\
\x12\x04\x81\x02\x02\x13\x1ak\x20The\x20name\x20of\x20the\x20topic\x20th\
at\x20subscriptions\x20are\x20attached\x20to.\n\x20Format\x20is\x20`proj\
ects/{project}/topics/{topic}`.\n\n\r\n\x05\x04\t\x02\0\x05\x12\x04\x81\
\x02\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x81\x02\t\x0e\n\r\n\x05\
\x04\t\x02\0\x03\x12\x04\x81\x02\x11\x12\n?\n\x04\x04\t\x02\x01\x12\x04\
\x84\x02\x02\x16\x1a1\x20Maximum\x20number\x20of\x20subscription\x20name\
s\x20to\x20return.\n\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\x84\x02\x02\x07\
\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x84\x02\x08\x11\n\r\n\x05\x04\t\x02\
\x01\x03\x12\x04\x84\x02\x14\x15\n\xdc\x01\n\x04\x04\t\x02\x02\x12\x04\
\x89\x02\x02\x18\x1a\xcd\x01\x20The\x20value\x20returned\x20by\x20the\
\x20last\x20`ListTopicSubscriptionsResponse`;\x20indicates\n\x20that\x20\
this\x20is\x20a\x20continuation\x20of\x20a\x20prior\x20`ListTopicSubscri\
ptions`\x20call,\x20and\n\x20that\x20the\x20system\x20should\x20return\
\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\t\x02\x02\x05\x12\
\x04\x89\x02\x02\x08\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\x89\x02\t\x13\n\
\r\n\x05\x04\t\x02\x02\x03\x12\x04\x89\x02\x16\x17\nA\n\x02\x04\n\x12\
\x06\x8d\x02\0\x95\x02\x01\x1a3\x20Response\x20for\x20the\x20`ListTopicS\
ubscriptions`\x20method.\n\n\x0b\n\x03\x04\n\x01\x12\x04\x8d\x02\x08&\nF\
\n\x04\x04\n\x02\0\x12\x04\x8f\x02\x02$\x1a8\x20The\x20names\x20of\x20th\
e\x20subscriptions\x20that\x20match\x20the\x20request.\n\n\r\n\x05\x04\n\
\x02\0\x04\x12\x04\x8f\x02\x02\n\n\r\n\x05\x04\n\x02\0\x05\x12\x04\x8f\
\x02\x0b\x11\n\r\n\x05\x04\n\x02\0\x01\x12\x04\x8f\x02\x12\x1f\n\r\n\x05\
\x04\n\x02\0\x03\x12\x04\x8f\x02\"#\n\xc7\x01\n\x04\x04\n\x02\x01\x12\
\x04\x94\x02\x02\x1d\x1a\xb8\x01\x20If\x20not\x20empty,\x20indicates\x20\
that\x20there\x20may\x20be\x20more\x20subscriptions\x20that\x20match\n\
\x20the\x20request;\x20this\x20value\x20should\x20be\x20passed\x20in\x20\
a\x20new\n\x20`ListTopicSubscriptionsRequest`\x20to\x20get\x20more\x20su\
bscriptions.\n\n\r\n\x05\x04\n\x02\x01\x05\x12\x04\x94\x02\x02\x08\n\r\n\
\x05\x04\n\x02\x01\x01\x12\x04\x94\x02\t\x18\n\r\n\x05\x04\n\x02\x01\x03\
\x12\x04\x94\x02\x1b\x1c\n<\n\x02\x04\x0b\x12\x06\x98\x02\0\xa4\x02\x01\
\x1a.\x20Request\x20for\x20the\x20`ListTopicSnapshots`\x20method.\n\n\
\x0b\n\x03\x04\x0b\x01\x12\x04\x98\x02\x08!\nu\n\x04\x04\x0b\x02\0\x12\
\x04\x9b\x02\x02\x13\x1ag\x20The\x20name\x20of\x20the\x20topic\x20that\
\x20snapshots\x20are\x20attached\x20to.\n\x20Format\x20is\x20`projects/{\
project}/topics/{topic}`.\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\x9b\x02\
\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\x9b\x02\t\x0e\n\r\n\x05\x04\
\x0b\x02\0\x03\x12\x04\x9b\x02\x11\x12\n;\n\x04\x04\x0b\x02\x01\x12\x04\
\x9e\x02\x02\x16\x1a-\x20Maximum\x20number\x20of\x20snapshot\x20names\
\x20to\x20return.\n\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\x9e\x02\x02\
\x07\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\x9e\x02\x08\x11\n\r\n\x05\x04\
\x0b\x02\x01\x03\x12\x04\x9e\x02\x14\x15\n\xd4\x01\n\x04\x04\x0b\x02\x02\
\x12\x04\xa3\x02\x02\x18\x1a\xc5\x01\x20The\x20value\x20returned\x20by\
\x20the\x20last\x20`ListTopicSnapshotsResponse`;\x20indicates\n\x20that\
\x20this\x20is\x20a\x20continuation\x20of\x20a\x20prior\x20`ListTopicSna\
pshots`\x20call,\x20and\n\x20that\x20the\x20system\x20should\x20return\
\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\x0b\x02\x02\x05\
\x12\x04\xa3\x02\x02\x08\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\xa3\x02\t\
\x13\n\r\n\x05\x04\x0b\x02\x02\x03\x12\x04\xa3\x02\x16\x17\n=\n\x02\x04\
\x0c\x12\x06\xa7\x02\0\xaf\x02\x01\x1a/\x20Response\x20for\x20the\x20`Li\
stTopicSnapshots`\x20method.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xa7\x02\
\x08\"\nB\n\x04\x04\x0c\x02\0\x12\x04\xa9\x02\x02\x20\x1a4\x20The\x20nam\
es\x20of\x20the\x20snapshots\x20that\x20match\x20the\x20request.\n\n\r\n\
\x05\x04\x0c\x02\0\x04\x12\x04\xa9\x02\x02\n\n\r\n\x05\x04\x0c\x02\0\x05\
\x12\x04\xa9\x02\x0b\x11\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xa9\x02\x12\
\x1b\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xa9\x02\x1e\x1f\n\xbb\x01\n\x04\
\x04\x0c\x02\x01\x12\x04\xae\x02\x02\x1d\x1a\xac\x01\x20If\x20not\x20emp\
ty,\x20indicates\x20that\x20there\x20may\x20be\x20more\x20snapshots\x20t\
hat\x20match\n\x20the\x20request;\x20this\x20value\x20should\x20be\x20pa\
ssed\x20in\x20a\x20new\n\x20`ListTopicSnapshotsRequest`\x20to\x20get\x20\
more\x20snapshots.\n\n\r\n\x05\x04\x0c\x02\x01\x05\x12\x04\xae\x02\x02\
\x08\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xae\x02\t\x18\n\r\n\x05\x04\
\x0c\x02\x01\x03\x12\x04\xae\x02\x1b\x1c\n5\n\x02\x04\r\x12\x06\xb2\x02\
\0\xb6\x02\x01\x1a'\x20Request\x20for\x20the\x20`DeleteTopic`\x20method.\
\n\n\x0b\n\x03\x04\r\x01\x12\x04\xb2\x02\x08\x1a\n\\\n\x04\x04\r\x02\0\
\x12\x04\xb5\x02\x02\x13\x1aN\x20Name\x20of\x20the\x20topic\x20to\x20del\
ete.\n\x20Format\x20is\x20`projects/{project}/topics/{topic}`.\n\n\r\n\
\x05\x04\r\x02\0\x05\x12\x04\xb5\x02\x02\x08\n\r\n\x05\x04\r\x02\0\x01\
\x12\x04\xb5\x02\t\x0e\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xb5\x02\x11\x12\
\n\xe2\x01\n\x02\x06\x01\x12\x06\xbb\x02\0\x91\x04\x01\x1a\xd3\x01\x20Th\
e\x20service\x20that\x20an\x20application\x20uses\x20to\x20manipulate\
\x20subscriptions\x20and\x20to\n\x20consume\x20messages\x20from\x20a\x20\
subscription\x20via\x20the\x20`Pull`\x20method\x20or\x20by\n\x20establis\
hing\x20a\x20bi-directional\x20stream\x20using\x20the\x20`StreamingPull`\
\x20method.\n\n\x0b\n\x03\x06\x01\x01\x12\x04\xbb\x02\x08\x12\n\x0b\n\
\x03\x06\x01\x03\x12\x04\xbc\x02\x02=\n\r\n\x05\x06\x01\x03\x99\x08\x12\
\x04\xbc\x02\x02=\n\r\n\x03\x06\x01\x03\x12\x06\xbd\x02\x02\xbf\x02/\n\
\x0f\n\x05\x06\x01\x03\x9a\x08\x12\x06\xbd\x02\x02\xbf\x02/\n\xa6\x05\n\
\x04\x06\x01\x02\0\x12\x06\xce\x02\x02\xd3\x02\x03\x1a\x95\x05\x20Create\
s\x20a\x20subscription\x20to\x20a\x20given\x20topic.\x20See\x20the\n\x20\
<a\x20href=\"https://cloud.google.com/pubsub/docs/admin#resource_names\"\
>\n\x20resource\x20name\x20rules</a>.\n\x20If\x20the\x20subscription\x20\
already\x20exists,\x20returns\x20`ALREADY_EXISTS`.\n\x20If\x20the\x20cor\
responding\x20topic\x20doesn't\x20exist,\x20returns\x20`NOT_FOUND`.\n\n\
\x20If\x20the\x20name\x20is\x20not\x20provided\x20in\x20the\x20request,\
\x20the\x20server\x20will\x20assign\x20a\x20random\n\x20name\x20for\x20t\
his\x20subscription\x20on\x20the\x20same\x20project\x20as\x20the\x20topi\
c,\x20conforming\n\x20to\x20the\n\x20[resource\x20name\n\x20format](http\
s://cloud.google.com/pubsub/docs/admin#resource_names).\x20The\n\x20gene\
rated\x20name\x20is\x20populated\x20in\x20the\x20returned\x20Subscriptio\
n\x20object.\x20Note\x20that\n\x20for\x20REST\x20API\x20requests,\x20you\
\x20must\x20specify\x20a\x20name\x20in\x20the\x20request.\n\n\r\n\x05\
\x06\x01\x02\0\x01\x12\x04\xce\x02\x06\x18\n\r\n\x05\x06\x01\x02\0\x02\
\x12\x04\xce\x02\x19%\n\r\n\x05\x06\x01\x02\0\x03\x12\x04\xce\x020<\n\
\x0f\n\x05\x06\x01\x02\0\x04\x12\x06\xcf\x02\x04\xd2\x02\x06\n\x13\n\t\
\x06\x01\x02\0\x04\xb0\xca\xbc\"\x12\x06\xcf\x02\x04\xd2\x02\x06\nC\n\
\x04\x06\x01\x02\x01\x12\x06\xd6\x02\x02\xda\x02\x03\x1a3\x20Gets\x20the\
\x20configuration\x20details\x20of\x20a\x20subscription.\n\n\r\n\x05\x06\
\x01\x02\x01\x01\x12\x04\xd6\x02\x06\x15\n\r\n\x05\x06\x01\x02\x01\x02\
\x12\x04\xd6\x02\x16,\n\r\n\x05\x06\x01\x02\x01\x03\x12\x04\xd6\x027C\n\
\x0f\n\x05\x06\x01\x02\x01\x04\x12\x06\xd7\x02\x04\xd9\x02\x06\n\x13\n\t\
\x06\x01\x02\x01\x04\xb0\xca\xbc\"\x12\x06\xd7\x02\x04\xd9\x02\x06\n\x8b\
\x01\n\x04\x06\x01\x02\x02\x12\x06\xde\x02\x02\xe3\x02\x03\x1a{\x20Updat\
es\x20an\x20existing\x20subscription.\x20Note\x20that\x20certain\x20prop\
erties\x20of\x20a\n\x20subscription,\x20such\x20as\x20its\x20topic,\x20a\
re\x20not\x20modifiable.\n\n\r\n\x05\x06\x01\x02\x02\x01\x12\x04\xde\x02\
\x06\x18\n\r\n\x05\x06\x01\x02\x02\x02\x12\x04\xde\x02\x192\n\r\n\x05\
\x06\x01\x02\x02\x03\x12\x04\xde\x02=I\n\x0f\n\x05\x06\x01\x02\x02\x04\
\x12\x06\xdf\x02\x04\xe2\x02\x06\n\x13\n\t\x06\x01\x02\x02\x04\xb0\xca\
\xbc\"\x12\x06\xdf\x02\x04\xe2\x02\x06\n/\n\x04\x06\x01\x02\x03\x12\x06\
\xe6\x02\x02\xeb\x02\x03\x1a\x1f\x20Lists\x20matching\x20subscriptions.\
\n\n\r\n\x05\x06\x01\x02\x03\x01\x12\x04\xe6\x02\x06\x17\n\r\n\x05\x06\
\x01\x02\x03\x02\x12\x04\xe6\x02\x180\n\r\n\x05\x06\x01\x02\x03\x03\x12\
\x04\xe7\x02\x0f(\n\x0f\n\x05\x06\x01\x02\x03\x04\x12\x06\xe8\x02\x04\
\xea\x02\x06\n\x13\n\t\x06\x01\x02\x03\x04\xb0\xca\xbc\"\x12\x06\xe8\x02\
\x04\xea\x02\x06\n\xef\x02\n\x04\x06\x01\x02\x04\x12\x06\xf2\x02\x02\xf7\
\x02\x03\x1a\xde\x02\x20Deletes\x20an\x20existing\x20subscription.\x20Al\
l\x20messages\x20retained\x20in\x20the\x20subscription\n\x20are\x20immed\
iately\x20dropped.\x20Calls\x20to\x20`Pull`\x20after\x20deletion\x20will\
\x20return\n\x20`NOT_FOUND`.\x20After\x20a\x20subscription\x20is\x20dele\
ted,\x20a\x20new\x20one\x20may\x20be\x20created\x20with\n\x20the\x20same\
\x20name,\x20but\x20the\x20new\x20one\x20has\x20no\x20association\x20wit\
h\x20the\x20old\n\x20subscription\x20or\x20its\x20topic\x20unless\x20the\
\x20same\x20topic\x20is\x20specified.\n\n\r\n\x05\x06\x01\x02\x04\x01\
\x12\x04\xf2\x02\x06\x18\n\r\n\x05\x06\x01\x02\x04\x02\x12\x04\xf2\x02\
\x192\n\r\n\x05\x06\x01\x02\x04\x03\x12\x04\xf3\x02\x0f$\n\x0f\n\x05\x06\
\x01\x02\x04\x04\x12\x06\xf4\x02\x04\xf6\x02\x06\n\x13\n\t\x06\x01\x02\
\x04\x04\xb0\xca\xbc\"\x12\x06\xf4\x02\x04\xf6\x02\x06\n\xe7\x02\n\x04\
\x06\x01\x02\x05\x12\x06\xfe\x02\x02\x84\x03\x03\x1a\xd6\x02\x20Modifies\
\x20the\x20ack\x20deadline\x20for\x20a\x20specific\x20message.\x20This\
\x20method\x20is\x20useful\n\x20to\x20indicate\x20that\x20more\x20time\
\x20is\x20needed\x20to\x20process\x20a\x20message\x20by\x20the\n\x20subs\
criber,\x20or\x20to\x20make\x20the\x20message\x20available\x20for\x20red\
elivery\x20if\x20the\n\x20processing\x20was\x20interrupted.\x20Note\x20t\
hat\x20this\x20does\x20not\x20modify\x20the\n\x20subscription-level\x20`\
ackDeadlineSeconds`\x20used\x20for\x20subsequent\x20messages.\n\n\r\n\
\x05\x06\x01\x02\x05\x01\x12\x04\xfe\x02\x06\x17\n\r\n\x05\x06\x01\x02\
\x05\x02\x12\x04\xfe\x02\x180\n\r\n\x05\x06\x01\x02\x05\x03\x12\x04\xff\
\x02\x0f$\n\x0f\n\x05\x06\x01\x02\x05\x04\x12\x06\x80\x03\x04\x83\x03\
\x06\n\x13\n\t\x06\x01\x02\x05\x04\xb0\xca\xbc\"\x12\x06\x80\x03\x04\x83\
\x03\x06\n\xed\x02\n\x04\x06\x01\x02\x06\x12\x06\x8d\x03\x02\x92\x03\x03\
\x1a\xdc\x02\x20Acknowledges\x20the\x20messages\x20associated\x20with\
\x20the\x20`ack_ids`\x20in\x20the\n\x20`AcknowledgeRequest`.\x20The\x20P\
ub/Sub\x20system\x20can\x20remove\x20the\x20relevant\x20messages\n\x20fr\
om\x20the\x20subscription.\n\n\x20Acknowledging\x20a\x20message\x20whose\
\x20ack\x20deadline\x20has\x20expired\x20may\x20succeed,\n\x20but\x20suc\
h\x20a\x20message\x20may\x20be\x20redelivered\x20later.\x20Acknowledging\
\x20a\x20message\x20more\n\x20than\x20once\x20will\x20not\x20result\x20i\
n\x20an\x20error.\n\n\r\n\x05\x06\x01\x02\x06\x01\x12\x04\x8d\x03\x06\
\x11\n\r\n\x05\x06\x01\x02\x06\x02\x12\x04\x8d\x03\x12$\n\r\n\x05\x06\
\x01\x02\x06\x03\x12\x04\x8d\x03/D\n\x0f\n\x05\x06\x01\x02\x06\x04\x12\
\x06\x8e\x03\x04\x91\x03\x06\n\x13\n\t\x06\x01\x02\x06\x04\xb0\xca\xbc\"\
\x12\x06\x8e\x03\x04\x91\x03\x06\n\xab\x01\n\x04\x06\x01\x02\x07\x12\x06\
\x97\x03\x02\x9c\x03\x03\x1a\x9a\x01\x20Pulls\x20messages\x20from\x20the\
\x20server.\x20The\x20server\x20may\x20return\x20`UNAVAILABLE`\x20if\n\
\x20there\x20are\x20too\x20many\x20concurrent\x20pull\x20requests\x20pen\
ding\x20for\x20the\x20given\n\x20subscription.\n\n\r\n\x05\x06\x01\x02\
\x07\x01\x12\x04\x97\x03\x06\n\n\r\n\x05\x06\x01\x02\x07\x02\x12\x04\x97\
\x03\x0b\x16\n\r\n\x05\x06\x01\x02\x07\x03\x12\x04\x97\x03!-\n\x0f\n\x05\
\x06\x01\x02\x07\x04\x12\x06\x98\x03\x04\x9b\x03\x06\n\x13\n\t\x06\x01\
\x02\x07\x04\xb0\xca\xbc\"\x12\x06\x98\x03\x04\x9b\x03\x06\n\xe2\x03\n\
\x04\x06\x01\x02\x08\x12\x06\xa5\x03\x02\xa6\x03/\x1a\xd1\x03\x20Establi\
shes\x20a\x20stream\x20with\x20the\x20server,\x20which\x20sends\x20messa\
ges\x20down\x20to\x20the\n\x20client.\x20The\x20client\x20streams\x20ack\
nowledgements\x20and\x20ack\x20deadline\x20modifications\n\x20back\x20to\
\x20the\x20server.\x20The\x20server\x20will\x20close\x20the\x20stream\
\x20and\x20return\x20the\x20status\n\x20on\x20any\x20error.\x20The\x20se\
rver\x20may\x20close\x20the\x20stream\x20with\x20status\x20`UNAVAILABLE`\
\x20to\n\x20reassign\x20server-side\x20resources,\x20in\x20which\x20case\
,\x20the\x20client\x20should\n\x20re-establish\x20the\x20stream.\x20Flow\
\x20control\x20can\x20be\x20achieved\x20by\x20configuring\x20the\n\x20un\
derlying\x20RPC\x20channel.\n\n\r\n\x05\x06\x01\x02\x08\x01\x12\x04\xa5\
\x03\x06\x13\n\r\n\x05\x06\x01\x02\x08\x05\x12\x04\xa5\x03\x14\x1a\n\r\n\
\x05\x06\x01\x02\x08\x02\x12\x04\xa5\x03\x1b/\n\r\n\x05\x06\x01\x02\x08\
\x06\x12\x04\xa6\x03\x0f\x15\n\r\n\x05\x06\x01\x02\x08\x03\x12\x04\xa6\
\x03\x16+\n\xf7\x02\n\x04\x06\x01\x02\t\x12\x06\xae\x03\x02\xb4\x03\x03\
\x1a\xe6\x02\x20Modifies\x20the\x20`PushConfig`\x20for\x20a\x20specified\
\x20subscription.\n\n\x20This\x20may\x20be\x20used\x20to\x20change\x20a\
\x20push\x20subscription\x20to\x20a\x20pull\x20one\x20(signified\x20by\n\
\x20an\x20empty\x20`PushConfig`)\x20or\x20vice\x20versa,\x20or\x20change\
\x20the\x20endpoint\x20URL\x20and\x20other\n\x20attributes\x20of\x20a\
\x20push\x20subscription.\x20Messages\x20will\x20accumulate\x20for\x20de\
livery\n\x20continuously\x20through\x20the\x20call\x20regardless\x20of\
\x20changes\x20to\x20the\x20`PushConfig`.\n\n\r\n\x05\x06\x01\x02\t\x01\
\x12\x04\xae\x03\x06\x16\n\r\n\x05\x06\x01\x02\t\x02\x12\x04\xae\x03\x17\
.\n\r\n\x05\x06\x01\x02\t\x03\x12\x04\xaf\x03\x0f$\n\x0f\n\x05\x06\x01\
\x02\t\x04\x12\x06\xb0\x03\x04\xb3\x03\x06\n\x13\n\t\x06\x01\x02\t\x04\
\xb0\xca\xbc\"\x12\x06\xb0\x03\x04\xb3\x03\x06\n\xe4\x02\n\x04\x06\x01\
\x02\n\x12\x06\xbb\x03\x02\xbf\x03\x03\x1a\xd3\x02\x20Gets\x20the\x20con\
figuration\x20details\x20of\x20a\x20snapshot.\x20Snapshots\x20are\x20use\
d\x20in\n\x20<a\x20href=\"https://cloud.google.com/pubsub/docs/replay-ov\
erview\">Seek</a>\n\x20operations,\x20which\x20allow\x20you\x20to\x20man\
age\x20message\x20acknowledgments\x20in\x20bulk.\x20That\n\x20is,\x20you\
\x20can\x20set\x20the\x20acknowledgment\x20state\x20of\x20messages\x20in\
\x20an\x20existing\n\x20subscription\x20to\x20the\x20state\x20captured\
\x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\x01\x02\n\x01\x12\x04\xbb\x03\
\x06\x11\n\r\n\x05\x06\x01\x02\n\x02\x12\x04\xbb\x03\x12$\n\r\n\x05\x06\
\x01\x02\n\x03\x12\x04\xbb\x03/7\n\x0f\n\x05\x06\x01\x02\n\x04\x12\x06\
\xbc\x03\x04\xbe\x03\x06\n\x13\n\t\x06\x01\x02\n\x04\xb0\xca\xbc\"\x12\
\x06\xbc\x03\x04\xbe\x03\x06\n\xd5\x02\n\x04\x06\x01\x02\x0b\x12\x06\xc7\
\x03\x02\xcb\x03\x03\x1a\xc4\x02\x20Lists\x20the\x20existing\x20snapshot\
s.\x20Snapshots\x20are\x20used\x20in\n\x20<a\x20href=\"https://cloud.goo\
gle.com/pubsub/docs/replay-overview\">Seek</a>\n\x20operations,\x20which\
\x20allow\n\x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\
\x20bulk.\x20That\x20is,\x20you\x20can\x20set\x20the\n\x20acknowledgment\
\x20state\x20of\x20messages\x20in\x20an\x20existing\x20subscription\x20t\
o\x20the\x20state\n\x20captured\x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\
\x01\x02\x0b\x01\x12\x04\xc7\x03\x06\x13\n\r\n\x05\x06\x01\x02\x0b\x02\
\x12\x04\xc7\x03\x14(\n\r\n\x05\x06\x01\x02\x0b\x03\x12\x04\xc7\x033H\n\
\x0f\n\x05\x06\x01\x02\x0b\x04\x12\x06\xc8\x03\x04\xca\x03\x06\n\x13\n\t\
\x06\x01\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xc8\x03\x04\xca\x03\x06\n\xb9\
\x08\n\x04\x06\x01\x02\x0c\x12\x06\xdf\x03\x02\xe4\x03\x03\x1a\xa8\x08\
\x20Creates\x20a\x20snapshot\x20from\x20the\x20requested\x20subscription\
.\x20Snapshots\x20are\x20used\x20in\n\x20<a\x20href=\"https://cloud.goog\
le.com/pubsub/docs/replay-overview\">Seek</a>\n\x20operations,\x20which\
\x20allow\n\x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\
\x20bulk.\x20That\x20is,\x20you\x20can\x20set\x20the\n\x20acknowledgment\
\x20state\x20of\x20messages\x20in\x20an\x20existing\x20subscription\x20t\
o\x20the\x20state\n\x20captured\x20by\x20a\x20snapshot.\n\x20<br><br>If\
\x20the\x20snapshot\x20already\x20exists,\x20returns\x20`ALREADY_EXISTS`\
.\n\x20If\x20the\x20requested\x20subscription\x20doesn't\x20exist,\x20re\
turns\x20`NOT_FOUND`.\n\x20If\x20the\x20backlog\x20in\x20the\x20subscrip\
tion\x20is\x20too\x20old\x20--\x20and\x20the\x20resulting\x20snapshot\n\
\x20would\x20expire\x20in\x20less\x20than\x201\x20hour\x20--\x20then\x20\
`FAILED_PRECONDITION`\x20is\x20returned.\n\x20See\x20also\x20the\x20`Sna\
pshot.expire_time`\x20field.\x20If\x20the\x20name\x20is\x20not\x20provid\
ed\x20in\n\x20the\x20request,\x20the\x20server\x20will\x20assign\x20a\
\x20random\n\x20name\x20for\x20this\x20snapshot\x20on\x20the\x20same\x20\
project\x20as\x20the\x20subscription,\x20conforming\n\x20to\x20the\n\x20\
[resource\x20name\n\x20format](https://cloud.google.com/pubsub/docs/admi\
n#resource_names).\x20The\n\x20generated\x20name\x20is\x20populated\x20i\
n\x20the\x20returned\x20Snapshot\x20object.\x20Note\x20that\x20for\n\x20\
REST\x20API\x20requests,\x20you\x20must\x20specify\x20a\x20name\x20in\
\x20the\x20request.\n\n\r\n\x05\x06\x01\x02\x0c\x01\x12\x04\xdf\x03\x06\
\x14\n\r\n\x05\x06\x01\x02\x0c\x02\x12\x04\xdf\x03\x15*\n\r\n\x05\x06\
\x01\x02\x0c\x03\x12\x04\xdf\x035=\n\x0f\n\x05\x06\x01\x02\x0c\x04\x12\
\x06\xe0\x03\x04\xe3\x03\x06\n\x13\n\t\x06\x01\x02\x0c\x04\xb0\xca\xbc\"\
\x12\x06\xe0\x03\x04\xe3\x03\x06\n\xd5\x02\n\x04\x06\x01\x02\r\x12\x06\
\xec\x03\x02\xf1\x03\x03\x1a\xc4\x02\x20Updates\x20an\x20existing\x20sna\
pshot.\x20Snapshots\x20are\x20used\x20in\n\x20<a\x20href=\"https://cloud\
.google.com/pubsub/docs/replay-overview\">Seek</a>\n\x20operations,\x20w\
hich\x20allow\n\x20you\x20to\x20manage\x20message\x20acknowledgments\x20\
in\x20bulk.\x20That\x20is,\x20you\x20can\x20set\x20the\n\x20acknowledgme\
nt\x20state\x20of\x20messages\x20in\x20an\x20existing\x20subscription\
\x20to\x20the\x20state\n\x20captured\x20by\x20a\x20snapshot.\n\n\r\n\x05\
\x06\x01\x02\r\x01\x12\x04\xec\x03\x06\x14\n\r\n\x05\x06\x01\x02\r\x02\
\x12\x04\xec\x03\x15*\n\r\n\x05\x06\x01\x02\r\x03\x12\x04\xec\x035=\n\
\x0f\n\x05\x06\x01\x02\r\x04\x12\x06\xed\x03\x04\xf0\x03\x06\n\x13\n\t\
\x06\x01\x02\r\x04\xb0\xca\xbc\"\x12\x06\xed\x03\x04\xf0\x03\x06\n\x81\
\x05\n\x04\x06\x01\x02\x0e\x12\x06\xfd\x03\x02\x81\x04\x03\x1a\xf0\x04\
\x20Removes\x20an\x20existing\x20snapshot.\x20Snapshots\x20are\x20used\
\x20in\n\x20<a\x20href=\"https://cloud.google.com/pubsub/docs/replay-ove\
rview\">Seek</a>\n\x20operations,\x20which\x20allow\n\x20you\x20to\x20ma\
nage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\x20you\
\x20can\x20set\x20the\n\x20acknowledgment\x20state\x20of\x20messages\x20\
in\x20an\x20existing\x20subscription\x20to\x20the\x20state\n\x20captured\
\x20by\x20a\x20snapshot.<br><br>\n\x20When\x20the\x20snapshot\x20is\x20d\
eleted,\x20all\x20messages\x20retained\x20in\x20the\x20snapshot\n\x20are\
\x20immediately\x20dropped.\x20After\x20a\x20snapshot\x20is\x20deleted,\
\x20a\x20new\x20one\x20may\x20be\n\x20created\x20with\x20the\x20same\x20\
name,\x20but\x20the\x20new\x20one\x20has\x20no\x20association\x20with\
\x20the\x20old\n\x20snapshot\x20or\x20its\x20subscription,\x20unless\x20\
the\x20same\x20subscription\x20is\x20specified.\n\n\r\n\x05\x06\x01\x02\
\x0e\x01\x12\x04\xfd\x03\x06\x14\n\r\n\x05\x06\x01\x02\x0e\x02\x12\x04\
\xfd\x03\x15*\n\r\n\x05\x06\x01\x02\x0e\x03\x12\x04\xfd\x035J\n\x0f\n\
\x05\x06\x01\x02\x0e\x04\x12\x06\xfe\x03\x04\x80\x04\x06\n\x13\n\t\x06\
\x01\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xfe\x03\x04\x80\x04\x06\n\xf5\x03\
\n\x04\x06\x01\x02\x0f\x12\x06\x8b\x04\x02\x90\x04\x03\x1a\xe4\x03\x20Se\
eks\x20an\x20existing\x20subscription\x20to\x20a\x20point\x20in\x20time\
\x20or\x20to\x20a\x20given\x20snapshot,\n\x20whichever\x20is\x20provided\
\x20in\x20the\x20request.\x20Snapshots\x20are\x20used\x20in\n\x20<a\x20h\
ref=\"https://cloud.google.com/pubsub/docs/replay-overview\">Seek</a>\n\
\x20operations,\x20which\x20allow\n\x20you\x20to\x20manage\x20message\
\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\x20you\x20can\x20set\
\x20the\n\x20acknowledgment\x20state\x20of\x20messages\x20in\x20an\x20ex\
isting\x20subscription\x20to\x20the\x20state\n\x20captured\x20by\x20a\
\x20snapshot.\x20Note\x20that\x20both\x20the\x20subscription\x20and\x20t\
he\x20snapshot\n\x20must\x20be\x20on\x20the\x20same\x20topic.\n\n\r\n\
\x05\x06\x01\x02\x0f\x01\x12\x04\x8b\x04\x06\n\n\r\n\x05\x06\x01\x02\x0f\
\x02\x12\x04\x8b\x04\x0b\x16\n\r\n\x05\x06\x01\x02\x0f\x03\x12\x04\x8b\
\x04!-\n\x0f\n\x05\x06\x01\x02\x0f\x04\x12\x06\x8c\x04\x04\x8f\x04\x06\n\
\x13\n\t\x06\x01\x02\x0f\x04\xb0\xca\xbc\"\x12\x06\x8c\x04\x04\x8f\x04\
\x06\n(\n\x02\x04\x0e\x12\x06\x94\x04\0\xf0\x04\x01\x1a\x1a\x20A\x20subs\
cription\x20resource.\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\x94\x04\x08\x14\
\n\x9e\x03\n\x04\x04\x0e\x02\0\x12\x04\x9b\x04\x02\x12\x1a\x8f\x03\x20Th\
e\x20name\x20of\x20the\x20subscription.\x20It\x20must\x20have\x20the\x20\
format\n\x20`\"projects/{project}/subscriptions/{subscription}\"`.\x20`{\
subscription}`\x20must\n\x20start\x20with\x20a\x20letter,\x20and\x20cont\
ain\x20only\x20letters\x20(`[A-Za-z]`),\x20numbers\n\x20(`[0-9]`),\x20da\
shes\x20(`-`),\x20underscores\x20(`_`),\x20periods\x20(`.`),\x20tildes\
\x20(`~`),\n\x20plus\x20(`+`)\x20or\x20percent\x20signs\x20(`%`).\x20It\
\x20must\x20be\x20between\x203\x20and\x20255\x20characters\n\x20in\x20le\
ngth,\x20and\x20it\x20must\x20not\x20start\x20with\x20`\"goog\"`.\n\n\r\
\n\x05\x04\x0e\x02\0\x05\x12\x04\x9b\x04\x02\x08\n\r\n\x05\x04\x0e\x02\0\
\x01\x12\x04\x9b\x04\t\r\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\x9b\x04\x10\
\x11\n\xdd\x01\n\x04\x04\x0e\x02\x01\x12\x04\xa1\x04\x02\x13\x1a\xce\x01\
\x20The\x20name\x20of\x20the\x20topic\x20from\x20which\x20this\x20subscr\
iption\x20is\x20receiving\x20messages.\n\x20Format\x20is\x20`projects/{p\
roject}/topics/{topic}`.\n\x20The\x20value\x20of\x20this\x20field\x20wil\
l\x20be\x20`_deleted-topic_`\x20if\x20the\x20topic\x20has\x20been\n\x20d\
eleted.\n\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\xa1\x04\x02\x08\n\r\n\
\x05\x04\x0e\x02\x01\x01\x12\x04\xa1\x04\t\x0e\n\r\n\x05\x04\x0e\x02\x01\
\x03\x12\x04\xa1\x04\x11\x12\n\xc9\x01\n\x04\x04\x0e\x02\x02\x12\x04\xa6\
\x04\x02\x1d\x1a\xba\x01\x20If\x20push\x20delivery\x20is\x20used\x20with\
\x20this\x20subscription,\x20this\x20field\x20is\n\x20used\x20to\x20conf\
igure\x20it.\x20An\x20empty\x20`pushConfig`\x20signifies\x20that\x20the\
\x20subscriber\n\x20will\x20pull\x20and\x20ack\x20messages\x20using\x20A\
PI\x20methods.\n\n\r\n\x05\x04\x0e\x02\x02\x06\x12\x04\xa6\x04\x02\x0c\n\
\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\xa6\x04\r\x18\n\r\n\x05\x04\x0e\x02\
\x02\x03\x12\x04\xa6\x04\x1b\x1c\n\xc7\x08\n\x04\x04\x0e\x02\x03\x12\x04\
\xbc\x04\x02!\x1a\xb8\x08\x20The\x20approximate\x20amount\x20of\x20time\
\x20(on\x20a\x20best-effort\x20basis)\x20Pub/Sub\x20waits\x20for\n\x20th\
e\x20subscriber\x20to\x20acknowledge\x20receipt\x20before\x20resending\
\x20the\x20message.\x20In\x20the\n\x20interval\x20after\x20the\x20messag\
e\x20is\x20delivered\x20and\x20before\x20it\x20is\x20acknowledged,\x20it\
\n\x20is\x20considered\x20to\x20be\x20<i>outstanding</i>.\x20During\x20t\
hat\x20time\x20period,\x20the\n\x20message\x20will\x20not\x20be\x20redel\
ivered\x20(on\x20a\x20best-effort\x20basis).\n\n\x20For\x20pull\x20subsc\
riptions,\x20this\x20value\x20is\x20used\x20as\x20the\x20initial\x20valu\
e\x20for\x20the\x20ack\n\x20deadline.\x20To\x20override\x20this\x20value\
\x20for\x20a\x20given\x20message,\x20call\n\x20`ModifyAckDeadline`\x20wi\
th\x20the\x20corresponding\x20`ack_id`\x20if\x20using\n\x20non-streaming\
\x20pull\x20or\x20send\x20the\x20`ack_id`\x20in\x20a\n\x20`StreamingModi\
fyAckDeadlineRequest`\x20if\x20using\x20streaming\x20pull.\n\x20The\x20m\
inimum\x20custom\x20deadline\x20you\x20can\x20specify\x20is\x2010\x20sec\
onds.\n\x20The\x20maximum\x20custom\x20deadline\x20you\x20can\x20specify\
\x20is\x20600\x20seconds\x20(10\x20minutes).\n\x20If\x20this\x20paramete\
r\x20is\x200,\x20a\x20default\x20value\x20of\x2010\x20seconds\x20is\x20u\
sed.\n\n\x20For\x20push\x20delivery,\x20this\x20value\x20is\x20also\x20u\
sed\x20to\x20set\x20the\x20request\x20timeout\x20for\n\x20the\x20call\
\x20to\x20the\x20push\x20endpoint.\n\n\x20If\x20the\x20subscriber\x20nev\
er\x20acknowledges\x20the\x20message,\x20the\x20Pub/Sub\n\x20system\x20w\
ill\x20eventually\x20redeliver\x20the\x20message.\n\n\r\n\x05\x04\x0e\
\x02\x03\x05\x12\x04\xbc\x04\x02\x07\n\r\n\x05\x04\x0e\x02\x03\x01\x12\
\x04\xbc\x04\x08\x1c\n\r\n\x05\x04\x0e\x02\x03\x03\x12\x04\xbc\x04\x1f\
\x20\n\x80\x03\n\x04\x04\x0e\x02\x04\x12\x04\xc5\x04\x02!\x1a\xf1\x02\
\x20Indicates\x20whether\x20to\x20retain\x20acknowledged\x20messages.\
\x20If\x20true,\x20then\n\x20messages\x20are\x20not\x20expunged\x20from\
\x20the\x20subscription's\x20backlog,\x20even\x20if\x20they\x20are\n\x20\
acknowledged,\x20until\x20they\x20fall\x20out\x20of\x20the\x20`message_r\
etention_duration`\n\x20window.\x20This\x20must\x20be\x20true\x20if\x20y\
ou\x20would\x20like\x20to\n\x20<a\n\x20href=\"https://cloud.google.com/p\
ubsub/docs/replay-overview#seek_to_a_time\">\n\x20Seek\x20to\x20a\x20tim\
estamp</a>.\n\n\r\n\x05\x04\x0e\x02\x04\x05\x12\x04\xc5\x04\x02\x06\n\r\
\n\x05\x04\x0e\x02\x04\x01\x12\x04\xc5\x04\x07\x1c\n\r\n\x05\x04\x0e\x02\
\x04\x03\x12\x04\xc5\x04\x1f\x20\n\xf4\x02\n\x04\x04\x0e\x02\x05\x12\x04\
\xcd\x04\x02:\x1a\xe5\x02\x20How\x20long\x20to\x20retain\x20unacknowledg\
ed\x20messages\x20in\x20the\x20subscription's\x20backlog,\n\x20from\x20t\
he\x20moment\x20a\x20message\x20is\x20published.\n\x20If\x20`retain_acke\
d_messages`\x20is\x20true,\x20then\x20this\x20also\x20configures\x20the\
\x20retention\n\x20of\x20acknowledged\x20messages,\x20and\x20thus\x20con\
figures\x20how\x20far\x20back\x20in\x20time\x20a\x20`Seek`\n\x20can\x20b\
e\x20done.\x20Defaults\x20to\x207\x20days.\x20Cannot\x20be\x20more\x20th\
an\x207\x20days\x20or\x20less\x20than\x2010\n\x20minutes.\n\n\r\n\x05\
\x04\x0e\x02\x05\x06\x12\x04\xcd\x04\x02\x1a\n\r\n\x05\x04\x0e\x02\x05\
\x01\x12\x04\xcd\x04\x1b5\n\r\n\x05\x04\x0e\x02\x05\x03\x12\x04\xcd\x048\
9\nm\n\x04\x04\x0e\x02\x06\x12\x04\xd1\x04\x02!\x1a_\x20See\x20<a\x20hre\
f=\"https://cloud.google.com/pubsub/docs/labels\">\x20Creating\x20and\n\
\x20managing\x20labels</a>.\n\n\r\n\x05\x04\x0e\x02\x06\x06\x12\x04\xd1\
\x04\x02\x15\n\r\n\x05\x04\x0e\x02\x06\x01\x12\x04\xd1\x04\x16\x1c\n\r\n\
\x05\x04\x0e\x02\x06\x03\x12\x04\xd1\x04\x1f\x20\n\xd1\x03\n\x04\x04\x0e\
\x02\x07\x12\x04\xda\x04\x02$\x1a\xc2\x03\x20If\x20true,\x20messages\x20\
published\x20with\x20the\x20same\x20`ordering_key`\x20in\x20`PubsubMessa\
ge`\n\x20will\x20be\x20delivered\x20to\x20the\x20subscribers\x20in\x20th\
e\x20order\x20in\x20which\x20they\n\x20are\x20received\x20by\x20the\x20P\
ub/Sub\x20system.\x20Otherwise,\x20they\x20may\x20be\x20delivered\x20in\
\n\x20any\x20order.\n\x20<b>EXPERIMENTAL:</b>\x20This\x20feature\x20is\
\x20part\x20of\x20a\x20closed\x20alpha\x20release.\x20This\n\x20API\x20m\
ight\x20be\x20changed\x20in\x20backward-incompatible\x20ways\x20and\x20i\
s\x20not\x20recommended\n\x20for\x20production\x20use.\x20It\x20is\x20no\
t\x20subject\x20to\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\r\n\
\x05\x04\x0e\x02\x07\x05\x12\x04\xda\x04\x02\x06\n\r\n\x05\x04\x0e\x02\
\x07\x01\x12\x04\xda\x04\x07\x1e\n\r\n\x05\x04\x0e\x02\x07\x03\x12\x04\
\xda\x04!#\n\xa9\x03\n\x04\x04\x0e\x02\x08\x12\x04\xe2\x04\x02*\x1a\x9a\
\x03\x20A\x20policy\x20that\x20specifies\x20the\x20conditions\x20for\x20\
this\x20subscription's\x20expiration.\n\x20A\x20subscription\x20is\x20co\
nsidered\x20active\x20as\x20long\x20as\x20any\x20connected\x20subscriber\
\x20is\n\x20successfully\x20consuming\x20messages\x20from\x20the\x20subs\
cription\x20or\x20is\x20issuing\n\x20operations\x20on\x20the\x20subscrip\
tion.\x20If\x20`expiration_policy`\x20is\x20not\x20set,\x20a\n\x20*defau\
lt\x20policy*\x20with\x20`ttl`\x20of\x2031\x20days\x20will\x20be\x20used\
.\x20The\x20minimum\x20allowed\n\x20value\x20for\x20`expiration_policy.t\
tl`\x20is\x201\x20day.\n\n\r\n\x05\x04\x0e\x02\x08\x06\x12\x04\xe2\x04\
\x02\x12\n\r\n\x05\x04\x0e\x02\x08\x01\x12\x04\xe2\x04\x13$\n\r\n\x05\
\x04\x0e\x02\x08\x03\x12\x04\xe2\x04')\n\xef\x04\n\x04\x04\x0e\x02\t\x12\
\x04\xef\x04\x02+\x1a\xe0\x04\x20A\x20policy\x20that\x20specifies\x20the\
\x20conditions\x20for\x20dead\x20lettering\x20messages\x20in\n\x20this\
\x20subscription.\x20If\x20dead_letter_policy\x20is\x20not\x20set,\x20de\
ad\x20lettering\n\x20is\x20disabled.\n\n\x20The\x20Cloud\x20Pub/Sub\x20s\
ervice\x20account\x20associated\x20with\x20this\x20subscriptions's\n\x20\
parent\x20project\x20(i.e.,\n\x20service-{project_number}@gcp-sa-pubsub.\
iam.gserviceaccount.com)\x20must\x20have\n\x20permission\x20to\x20Acknow\
ledge()\x20messages\x20on\x20this\x20subscription.\n\x20<b>EXPERIMENTAL:\
</b>\x20This\x20feature\x20is\x20part\x20of\x20a\x20closed\x20alpha\x20r\
elease.\x20This\n\x20API\x20might\x20be\x20changed\x20in\x20backward-inc\
ompatible\x20ways\x20and\x20is\x20not\x20recommended\n\x20for\x20product\
ion\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20d\
eprecation\x20policy.\n\n\r\n\x05\x04\x0e\x02\t\x06\x12\x04\xef\x04\x02\
\x12\n\r\n\x05\x04\x0e\x02\t\x01\x12\x04\xef\x04\x13%\n\r\n\x05\x04\x0e\
\x02\t\x03\x12\x04\xef\x04(*\n\xf9\x01\n\x02\x04\x0f\x12\x06\xf7\x04\0\
\x91\x05\x01\x1a\xea\x01\x20Dead\x20lettering\x20is\x20done\x20on\x20a\
\x20best\x20effort\x20basis.\x20The\x20same\x20message\x20might\x20be\n\
\x20dead\x20lettered\x20multiple\x20times.\n\n\x20If\x20validation\x20on\
\x20any\x20of\x20the\x20fields\x20fails\x20at\x20subscription\x20creatio\
n/updation,\n\x20the\x20create/update\x20subscription\x20request\x20will\
\x20fail.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xf7\x04\x08\x18\n\xa6\x04\n\
\x04\x04\x0f\x02\0\x12\x04\x81\x05\x02\x1f\x1a\x97\x04\x20The\x20name\
\x20of\x20the\x20topic\x20to\x20which\x20dead\x20letter\x20messages\x20s\
hould\x20be\x20published.\n\x20Format\x20is\x20`projects/{project}/topic\
s/{topic}`.The\x20Cloud\x20Pub/Sub\x20service\n\x20account\x20associated\
\x20with\x20the\x20enclosing\x20subscription's\x20parent\x20project\x20(\
i.e.,\n\x20service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.co\
m)\x20must\x20have\n\x20permission\x20to\x20Publish()\x20to\x20this\x20t\
opic.\n\n\x20The\x20operation\x20will\x20fail\x20if\x20the\x20topic\x20d\
oes\x20not\x20exist.\n\x20Users\x20should\x20ensure\x20that\x20there\x20\
is\x20a\x20subscription\x20attached\x20to\x20this\x20topic\n\x20since\
\x20messages\x20published\x20to\x20a\x20topic\x20with\x20no\x20subscript\
ions\x20are\x20lost.\n\n\r\n\x05\x04\x0f\x02\0\x05\x12\x04\x81\x05\x02\
\x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\x81\x05\t\x1a\n\r\n\x05\x04\x0f\
\x02\0\x03\x12\x04\x81\x05\x1d\x1e\n\x84\x04\n\x04\x04\x0f\x02\x01\x12\
\x04\x90\x05\x02\"\x1a\xf5\x03\x20The\x20maximum\x20number\x20of\x20deli\
very\x20attempts\x20for\x20any\x20message.\x20The\x20value\x20must\x20be\
\n\x20between\x205\x20and\x20100.\n\n\x20The\x20number\x20of\x20delivery\
\x20attempts\x20is\x20defined\x20as\x201\x20+\x20(the\x20sum\x20of\x20nu\
mber\x20of\n\x20NACKs\x20and\x20number\x20of\x20times\x20the\x20acknowle\
dgement\x20deadline\x20has\x20been\x20exceeded\n\x20for\x20the\x20messag\
e).\n\n\x20A\x20NACK\x20is\x20any\x20call\x20to\x20ModifyAckDeadline\x20\
with\x20a\x200\x20deadline.\x20Note\x20that\n\x20client\x20libraries\x20\
may\x20automatically\x20extend\x20ack_deadlines.\n\n\x20This\x20field\
\x20will\x20be\x20honored\x20on\x20a\x20best\x20effort\x20basis.\n\n\x20\
If\x20this\x20parameter\x20is\x200,\x20a\x20default\x20value\x20of\x205\
\x20is\x20used.\n\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\x90\x05\x02\x07\
\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\x90\x05\x08\x1d\n\r\n\x05\x04\x0f\
\x02\x01\x03\x12\x04\x90\x05\x20!\nt\n\x02\x04\x10\x12\x06\x95\x05\0\x9d\
\x05\x01\x1af\x20A\x20policy\x20that\x20specifies\x20the\x20conditions\
\x20for\x20resource\x20expiration\x20(i.e.,\n\x20automatic\x20resource\
\x20deletion).\n\n\x0b\n\x03\x04\x10\x01\x12\x04\x95\x05\x08\x18\n\x89\
\x03\n\x04\x04\x10\x02\0\x12\x04\x9c\x05\x02#\x1a\xfa\x02\x20Specifies\
\x20the\x20\"time-to-live\"\x20duration\x20for\x20an\x20associated\x20re\
source.\x20The\n\x20resource\x20expires\x20if\x20it\x20is\x20not\x20acti\
ve\x20for\x20a\x20period\x20of\x20`ttl`.\x20The\x20definition\n\x20of\
\x20\"activity\"\x20depends\x20on\x20the\x20type\x20of\x20the\x20associa\
ted\x20resource.\x20The\x20minimum\n\x20and\x20maximum\x20allowed\x20val\
ues\x20for\x20`ttl`\x20depend\x20on\x20the\x20type\x20of\x20the\x20assoc\
iated\n\x20resource,\x20as\x20well.\x20If\x20`ttl`\x20is\x20not\x20set,\
\x20the\x20associated\x20resource\x20never\n\x20expires.\n\n\r\n\x05\x04\
\x10\x02\0\x06\x12\x04\x9c\x05\x02\x1a\n\r\n\x05\x04\x10\x02\0\x01\x12\
\x04\x9c\x05\x1b\x1e\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\x9c\x05!\"\n;\n\
\x02\x04\x11\x12\x06\xa0\x05\0\xda\x05\x01\x1a-\x20Configuration\x20for\
\x20a\x20push\x20delivery\x20endpoint.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\
\xa0\x05\x08\x12\n\x9a\x01\n\x04\x04\x11\x03\0\x12\x06\xa4\x05\x02\xb3\
\x05\x03\x1a\x89\x01\x20Contains\x20information\x20needed\x20for\x20gene\
rating\x20an\n\x20[OpenID\x20Connect\n\x20token](https://developers.goog\
le.com/identity/protocols/OpenIDConnect).\n\n\r\n\x05\x04\x11\x03\0\x01\
\x12\x04\xa4\x05\n\x13\n\xab\x02\n\x06\x04\x11\x03\0\x02\0\x12\x04\xaa\
\x05\x04%\x1a\x9a\x02\x20[Service\x20account\n\x20email](https://cloud.g\
oogle.com/iam/docs/service-accounts)\n\x20to\x20be\x20used\x20for\x20gen\
erating\x20the\x20OIDC\x20token.\x20The\x20caller\x20(for\n\x20CreateSub\
scription,\x20UpdateSubscription,\x20and\x20ModifyPushConfig\x20RPCs)\
\x20must\n\x20have\x20the\x20iam.serviceAccounts.actAs\x20permission\x20\
for\x20the\x20service\x20account.\n\n\x0f\n\x07\x04\x11\x03\0\x02\0\x05\
\x12\x04\xaa\x05\x04\n\n\x0f\n\x07\x04\x11\x03\0\x02\0\x01\x12\x04\xaa\
\x05\x0b\x20\n\x0f\n\x07\x04\x11\x03\0\x02\0\x03\x12\x04\xaa\x05#$\n\xb0\
\x03\n\x06\x04\x11\x03\0\x02\x01\x12\x04\xb2\x05\x04\x18\x1a\x9f\x03\x20\
Audience\x20to\x20be\x20used\x20when\x20generating\x20OIDC\x20token.\x20\
The\x20audience\x20claim\n\x20identifies\x20the\x20recipients\x20that\
\x20the\x20JWT\x20is\x20intended\x20for.\x20The\x20audience\n\x20value\
\x20is\x20a\x20single\x20case-sensitive\x20string.\x20Having\x20multiple\
\x20values\x20(array)\n\x20for\x20the\x20audience\x20field\x20is\x20not\
\x20supported.\x20More\x20info\x20about\x20the\x20OIDC\x20JWT\n\x20token\
\x20audience\x20here:\x20https://tools.ietf.org/html/rfc7519#section-4.1\
.3\n\x20Note:\x20if\x20not\x20specified,\x20the\x20Push\x20endpoint\x20U\
RL\x20will\x20be\x20used.\n\n\x0f\n\x07\x04\x11\x03\0\x02\x01\x05\x12\
\x04\xb2\x05\x04\n\n\x0f\n\x07\x04\x11\x03\0\x02\x01\x01\x12\x04\xb2\x05\
\x0b\x13\n\x0f\n\x07\x04\x11\x03\0\x02\x01\x03\x12\x04\xb2\x05\x16\x17\n\
\x97\x01\n\x04\x04\x11\x02\0\x12\x04\xb7\x05\x02\x1b\x1a\x88\x01\x20A\
\x20URL\x20locating\x20the\x20endpoint\x20to\x20which\x20messages\x20sho\
uld\x20be\x20pushed.\n\x20For\x20example,\x20a\x20Webhook\x20endpoint\
\x20might\x20use\x20\"https://example.com/push\".\n\n\r\n\x05\x04\x11\
\x02\0\x05\x12\x04\xb7\x05\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\
\xb7\x05\t\x16\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xb7\x05\x19\x1a\n\x82\
\x08\n\x04\x04\x11\x02\x01\x12\x04\xce\x05\x02%\x1a\xf3\x07\x20Endpoint\
\x20configuration\x20attributes\x20that\x20can\x20be\x20used\x20to\x20co\
ntrol\x20different\n\x20aspects\x20of\x20the\x20message\x20delivery.\n\n\
\x20The\x20only\x20currently\x20supported\x20attribute\x20is\x20`x-goog-\
version`,\x20which\x20you\x20can\n\x20use\x20to\x20change\x20the\x20form\
at\x20of\x20the\x20pushed\x20message.\x20This\x20attribute\n\x20indicate\
s\x20the\x20version\x20of\x20the\x20data\x20expected\x20by\x20the\x20end\
point.\x20This\n\x20controls\x20the\x20shape\x20of\x20the\x20pushed\x20m\
essage\x20(i.e.,\x20its\x20fields\x20and\x20metadata).\n\n\x20If\x20not\
\x20present\x20during\x20the\x20`CreateSubscription`\x20call,\x20it\x20w\
ill\x20default\x20to\n\x20the\x20version\x20of\x20the\x20Pub/Sub\x20API\
\x20used\x20to\x20make\x20such\x20call.\x20If\x20not\x20present\x20in\
\x20a\n\x20`ModifyPushConfig`\x20call,\x20its\x20value\x20will\x20not\
\x20be\x20changed.\x20`GetSubscription`\n\x20calls\x20will\x20always\x20\
return\x20a\x20valid\x20version,\x20even\x20if\x20the\x20subscription\
\x20was\n\x20created\x20without\x20this\x20attribute.\n\n\x20The\x20only\
\x20supported\x20values\x20for\x20the\x20`x-goog-version`\x20attribute\
\x20are:\n\n\x20*\x20`v1beta1`:\x20uses\x20the\x20push\x20format\x20defi\
ned\x20in\x20the\x20v1beta1\x20Pub/Sub\x20API.\n\x20*\x20`v1`\x20or\x20`\
v1beta2`:\x20uses\x20the\x20push\x20format\x20defined\x20in\x20the\x20v1\
\x20Pub/Sub\x20API.\n\n\x20For\x20example:\n\x20<pre><code>attributes\
\x20{\x20\"x-goog-version\":\x20\"v1\"\x20}\x20</code></pre>\n\n\r\n\x05\
\x04\x11\x02\x01\x06\x12\x04\xce\x05\x02\x15\n\r\n\x05\x04\x11\x02\x01\
\x01\x12\x04\xce\x05\x16\x20\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xce\
\x05#$\n\xca\x02\n\x04\x04\x11\x08\0\x12\x06\xd5\x05\x02\xd9\x05\x03\x1a\
\xb9\x02\x20An\x20authentication\x20method\x20used\x20by\x20push\x20endp\
oints\x20to\x20verify\x20the\x20source\x20of\n\x20push\x20requests.\x20T\
his\x20can\x20be\x20used\x20with\x20push\x20endpoints\x20that\x20are\x20\
private\x20by\n\x20default\x20to\x20allow\x20requests\x20only\x20from\
\x20the\x20Cloud\x20Pub/Sub\x20system,\x20for\x20example.\n\x20This\x20f\
ield\x20is\x20optional\x20and\x20should\x20be\x20set\x20only\x20by\x20us\
ers\x20interested\x20in\n\x20authenticated\x20push.\n\n\r\n\x05\x04\x11\
\x08\0\x01\x12\x04\xd5\x05\x08\x1d\n\x9d\x01\n\x04\x04\x11\x02\x02\x12\
\x04\xd8\x05\x04\x1d\x1a\x8e\x01\x20If\x20specified,\x20Pub/Sub\x20will\
\x20generate\x20and\x20attach\x20an\x20OIDC\x20JWT\x20token\x20as\x20an\
\n\x20`Authorization`\x20header\x20in\x20the\x20HTTP\x20request\x20for\
\x20every\x20pushed\x20message.\n\n\r\n\x05\x04\x11\x02\x02\x06\x12\x04\
\xd8\x05\x04\r\n\r\n\x05\x04\x11\x02\x02\x01\x12\x04\xd8\x05\x0e\x18\n\r\
\n\x05\x04\x11\x02\x02\x03\x12\x04\xd8\x05\x1b\x1c\nB\n\x02\x04\x12\x12\
\x06\xdd\x05\0\xf5\x05\x01\x1a4\x20A\x20message\x20and\x20its\x20corresp\
onding\x20acknowledgment\x20ID.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xdd\
\x05\x08\x17\nH\n\x04\x04\x12\x02\0\x12\x04\xdf\x05\x02\x14\x1a:\x20This\
\x20ID\x20can\x20be\x20used\x20to\x20acknowledge\x20the\x20received\x20m\
essage.\n\n\r\n\x05\x04\x12\x02\0\x05\x12\x04\xdf\x05\x02\x08\n\r\n\x05\
\x04\x12\x02\0\x01\x12\x04\xdf\x05\t\x0f\n\r\n\x05\x04\x12\x02\0\x03\x12\
\x04\xdf\x05\x12\x13\n\x1c\n\x04\x04\x12\x02\x01\x12\x04\xe2\x05\x02\x1c\
\x1a\x0e\x20The\x20message.\n\n\r\n\x05\x04\x12\x02\x01\x06\x12\x04\xe2\
\x05\x02\x0f\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xe2\x05\x10\x17\n\r\n\
\x05\x04\x12\x02\x01\x03\x12\x04\xe2\x05\x1a\x1b\n\xc6\x06\n\x04\x04\x12\
\x02\x02\x12\x04\xf4\x05\x02\x1d\x1a\xb7\x06\x20Delivery\x20attempt\x20c\
ounter\x20is\x201\x20+\x20(the\x20sum\x20of\x20number\x20of\x20NACKs\x20\
and\x20number\x20of\n\x20ack_deadline\x20exceeds)\x20for\x20this\x20mess\
age.\n\n\x20A\x20NACK\x20is\x20any\x20call\x20to\x20ModifyAckDeadline\
\x20with\x20a\x200\x20deadline.\x20An\x20ack_deadline\n\x20exceeds\x20ev\
ent\x20is\x20whenever\x20a\x20message\x20is\x20not\x20acknowledged\x20wi\
thin\n\x20ack_deadline.\x20Note\x20that\x20ack_deadline\x20is\x20initial\
ly\n\x20Subscription.ackDeadlineSeconds,\x20but\x20may\x20get\x20extende\
d\x20automatically\x20by\n\x20the\x20client\x20library.\n\n\x20The\x20fi\
rst\x20delivery\x20of\x20a\x20given\x20message\x20will\x20have\x20this\
\x20value\x20as\x201.\x20The\x20value\n\x20is\x20calculated\x20at\x20bes\
t\x20effort\x20and\x20is\x20approximate.\n\n\x20If\x20a\x20DeadLetterPol\
icy\x20is\x20not\x20set\x20on\x20the\x20subscription,\x20this\x20will\
\x20be\x200.\n\x20<b>EXPERIMENTAL:</b>\x20This\x20feature\x20is\x20part\
\x20of\x20a\x20closed\x20alpha\x20release.\x20This\n\x20API\x20might\x20\
be\x20changed\x20in\x20backward-incompatible\x20ways\x20and\x20is\x20not\
\x20recommended\n\x20for\x20production\x20use.\x20It\x20is\x20not\x20sub\
ject\x20to\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\r\n\x05\x04\
\x12\x02\x02\x05\x12\x04\xf4\x05\x02\x07\n\r\n\x05\x04\x12\x02\x02\x01\
\x12\x04\xf4\x05\x08\x18\n\r\n\x05\x04\x12\x02\x02\x03\x12\x04\xf4\x05\
\x1b\x1c\n7\n\x02\x04\x13\x12\x06\xf8\x05\0\xfc\x05\x01\x1a)\x20Request\
\x20for\x20the\x20GetSubscription\x20method.\n\n\x0b\n\x03\x04\x13\x01\
\x12\x04\xf8\x05\x08\x1e\ni\n\x04\x04\x13\x02\0\x12\x04\xfb\x05\x02\x1a\
\x1a[\x20The\x20name\x20of\x20the\x20subscription\x20to\x20get.\n\x20For\
mat\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\n\x05\x04\
\x13\x02\0\x05\x12\x04\xfb\x05\x02\x08\n\r\n\x05\x04\x13\x02\0\x01\x12\
\x04\xfb\x05\t\x15\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xfb\x05\x18\x19\n\
:\n\x02\x04\x14\x12\x06\xff\x05\0\x86\x06\x01\x1a,\x20Request\x20for\x20\
the\x20UpdateSubscription\x20method.\n\n\x0b\n\x03\x04\x14\x01\x12\x04\
\xff\x05\x08!\n0\n\x04\x04\x14\x02\0\x12\x04\x81\x06\x02\x20\x1a\"\x20Th\
e\x20updated\x20subscription\x20object.\n\n\r\n\x05\x04\x14\x02\0\x06\
\x12\x04\x81\x06\x02\x0e\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\x81\x06\x0f\
\x1b\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\x81\x06\x1e\x1f\np\n\x04\x04\
\x14\x02\x01\x12\x04\x85\x06\x02,\x1ab\x20Indicates\x20which\x20fields\
\x20in\x20the\x20provided\x20subscription\x20to\x20update.\n\x20Must\x20\
be\x20specified\x20and\x20non-empty.\n\n\r\n\x05\x04\x14\x02\x01\x06\x12\
\x04\x85\x06\x02\x1b\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\x85\x06\x1c'\
\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\x85\x06*+\n;\n\x02\x04\x15\x12\
\x06\x89\x06\0\x95\x06\x01\x1a-\x20Request\x20for\x20the\x20`ListSubscri\
ptions`\x20method.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\x89\x06\x08\x20\nk\
\n\x04\x04\x15\x02\0\x12\x04\x8c\x06\x02\x15\x1a]\x20The\x20name\x20of\
\x20the\x20project\x20in\x20which\x20to\x20list\x20subscriptions.\n\x20F\
ormat\x20is\x20`projects/{project-id}`.\n\n\r\n\x05\x04\x15\x02\0\x05\
\x12\x04\x8c\x06\x02\x08\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\x8c\x06\t\
\x10\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\x8c\x06\x13\x14\n:\n\x04\x04\
\x15\x02\x01\x12\x04\x8f\x06\x02\x16\x1a,\x20Maximum\x20number\x20of\x20\
subscriptions\x20to\x20return.\n\n\r\n\x05\x04\x15\x02\x01\x05\x12\x04\
\x8f\x06\x02\x07\n\r\n\x05\x04\x15\x02\x01\x01\x12\x04\x8f\x06\x08\x11\n\
\r\n\x05\x04\x15\x02\x01\x03\x12\x04\x8f\x06\x14\x15\n\xd2\x01\n\x04\x04\
\x15\x02\x02\x12\x04\x94\x06\x02\x18\x1a\xc3\x01\x20The\x20value\x20retu\
rned\x20by\x20the\x20last\x20`ListSubscriptionsResponse`;\x20indicates\
\x20that\n\x20this\x20is\x20a\x20continuation\x20of\x20a\x20prior\x20`Li\
stSubscriptions`\x20call,\x20and\x20that\x20the\n\x20system\x20should\
\x20return\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\x15\x02\
\x02\x05\x12\x04\x94\x06\x02\x08\n\r\n\x05\x04\x15\x02\x02\x01\x12\x04\
\x94\x06\t\x13\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\x94\x06\x16\x17\n<\
\n\x02\x04\x16\x12\x06\x98\x06\0\xa0\x06\x01\x1a.\x20Response\x20for\x20\
the\x20`ListSubscriptions`\x20method.\n\n\x0b\n\x03\x04\x16\x01\x12\x04\
\x98\x06\x08!\n9\n\x04\x04\x16\x02\0\x12\x04\x9a\x06\x02*\x1a+\x20The\
\x20subscriptions\x20that\x20match\x20the\x20request.\n\n\r\n\x05\x04\
\x16\x02\0\x04\x12\x04\x9a\x06\x02\n\n\r\n\x05\x04\x16\x02\0\x06\x12\x04\
\x9a\x06\x0b\x17\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\x9a\x06\x18%\n\r\n\
\x05\x04\x16\x02\0\x03\x12\x04\x9a\x06()\n\xc2\x01\n\x04\x04\x16\x02\x01\
\x12\x04\x9f\x06\x02\x1d\x1a\xb3\x01\x20If\x20not\x20empty,\x20indicates\
\x20that\x20there\x20may\x20be\x20more\x20subscriptions\x20that\x20match\
\n\x20the\x20request;\x20this\x20value\x20should\x20be\x20passed\x20in\
\x20a\x20new\n\x20`ListSubscriptionsRequest`\x20to\x20get\x20more\x20sub\
scriptions.\n\n\r\n\x05\x04\x16\x02\x01\x05\x12\x04\x9f\x06\x02\x08\n\r\
\n\x05\x04\x16\x02\x01\x01\x12\x04\x9f\x06\t\x18\n\r\n\x05\x04\x16\x02\
\x01\x03\x12\x04\x9f\x06\x1b\x1c\n:\n\x02\x04\x17\x12\x06\xa3\x06\0\xa7\
\x06\x01\x1a,\x20Request\x20for\x20the\x20DeleteSubscription\x20method.\
\n\n\x0b\n\x03\x04\x17\x01\x12\x04\xa3\x06\x08!\n`\n\x04\x04\x17\x02\0\
\x12\x04\xa6\x06\x02\x1a\x1aR\x20The\x20subscription\x20to\x20delete.\n\
\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\n\
\x05\x04\x17\x02\0\x05\x12\x04\xa6\x06\x02\x08\n\r\n\x05\x04\x17\x02\0\
\x01\x12\x04\xa6\x06\t\x15\n\r\n\x05\x04\x17\x02\0\x03\x12\x04\xa6\x06\
\x18\x19\n8\n\x02\x04\x18\x12\x06\xaa\x06\0\xb6\x06\x01\x1a*\x20Request\
\x20for\x20the\x20ModifyPushConfig\x20method.\n\n\x0b\n\x03\x04\x18\x01\
\x12\x04\xaa\x06\x08\x1f\nb\n\x04\x04\x18\x02\0\x12\x04\xad\x06\x02\x1a\
\x1aT\x20The\x20name\x20of\x20the\x20subscription.\n\x20Format\x20is\x20\
`projects/{project}/subscriptions/{sub}`.\n\n\r\n\x05\x04\x18\x02\0\x05\
\x12\x04\xad\x06\x02\x08\n\r\n\x05\x04\x18\x02\0\x01\x12\x04\xad\x06\t\
\x15\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\xad\x06\x18\x19\n\xb8\x02\n\x04\
\x04\x18\x02\x01\x12\x04\xb5\x06\x02\x1d\x1a\xa9\x02\x20The\x20push\x20c\
onfiguration\x20for\x20future\x20deliveries.\n\n\x20An\x20empty\x20`push\
Config`\x20indicates\x20that\x20the\x20Pub/Sub\x20system\x20should\n\x20\
stop\x20pushing\x20messages\x20from\x20the\x20given\x20subscription\x20a\
nd\x20allow\n\x20messages\x20to\x20be\x20pulled\x20and\x20acknowledged\
\x20-\x20effectively\x20pausing\n\x20the\x20subscription\x20if\x20`Pull`\
\x20or\x20`StreamingPull`\x20is\x20not\x20called.\n\n\r\n\x05\x04\x18\
\x02\x01\x06\x12\x04\xb5\x06\x02\x0c\n\r\n\x05\x04\x18\x02\x01\x01\x12\
\x04\xb5\x06\r\x18\n\r\n\x05\x04\x18\x02\x01\x03\x12\x04\xb5\x06\x1b\x1c\
\n.\n\x02\x04\x19\x12\x06\xb9\x06\0\xc8\x06\x01\x1a\x20\x20Request\x20fo\
r\x20the\x20`Pull`\x20method.\n\n\x0b\n\x03\x04\x19\x01\x12\x04\xb9\x06\
\x08\x13\n{\n\x04\x04\x19\x02\0\x12\x04\xbc\x06\x02\x1a\x1am\x20The\x20s\
ubscription\x20from\x20which\x20messages\x20should\x20be\x20pulled.\n\
\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\n\
\x05\x04\x19\x02\0\x05\x12\x04\xbc\x06\x02\x08\n\r\n\x05\x04\x19\x02\0\
\x01\x12\x04\xbc\x06\t\x15\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\xbc\x06\
\x18\x19\n\xa9\x02\n\x04\x04\x19\x02\x01\x12\x04\xc2\x06\x02\x1e\x1a\x9a\
\x02\x20If\x20this\x20field\x20set\x20to\x20true,\x20the\x20system\x20wi\
ll\x20respond\x20immediately\x20even\x20if\n\x20it\x20there\x20are\x20no\
\x20messages\x20available\x20to\x20return\x20in\x20the\x20`Pull`\x20resp\
onse.\n\x20Otherwise,\x20the\x20system\x20may\x20wait\x20(for\x20a\x20bo\
unded\x20amount\x20of\x20time)\x20until\x20at\n\x20least\x20one\x20messa\
ge\x20is\x20available,\x20rather\x20than\x20returning\x20no\x20messages.\
\n\n\r\n\x05\x04\x19\x02\x01\x05\x12\x04\xc2\x06\x02\x06\n\r\n\x05\x04\
\x19\x02\x01\x01\x12\x04\xc2\x06\x07\x19\n\r\n\x05\x04\x19\x02\x01\x03\
\x12\x04\xc2\x06\x1c\x1d\n\xa8\x01\n\x04\x04\x19\x02\x02\x12\x04\xc7\x06\
\x02\x19\x1a\x99\x01\x20The\x20maximum\x20number\x20of\x20messages\x20to\
\x20return\x20for\x20this\x20request.\x20Must\x20be\x20a\n\x20positive\
\x20integer.\x20The\x20Pub/Sub\x20system\x20may\x20return\x20fewer\x20th\
an\x20the\x20number\n\x20specified.\n\n\r\n\x05\x04\x19\x02\x02\x05\x12\
\x04\xc7\x06\x02\x07\n\r\n\x05\x04\x19\x02\x02\x01\x12\x04\xc7\x06\x08\
\x14\n\r\n\x05\x04\x19\x02\x02\x03\x12\x04\xc7\x06\x17\x18\n/\n\x02\x04\
\x1a\x12\x06\xcb\x06\0\xd1\x06\x01\x1a!\x20Response\x20for\x20the\x20`Pu\
ll`\x20method.\n\n\x0b\n\x03\x04\x1a\x01\x12\x04\xcb\x06\x08\x14\n\xaa\
\x02\n\x04\x04\x1a\x02\0\x12\x04\xd0\x06\x021\x1a\x9b\x02\x20Received\
\x20Pub/Sub\x20messages.\x20The\x20list\x20will\x20be\x20empty\x20if\x20\
there\x20are\x20no\x20more\n\x20messages\x20available\x20in\x20the\x20ba\
cklog.\x20For\x20JSON,\x20the\x20response\x20can\x20be\x20entirely\n\x20\
empty.\x20The\x20Pub/Sub\x20system\x20may\x20return\x20fewer\x20than\x20\
the\x20`maxMessages`\x20requested\n\x20even\x20if\x20there\x20are\x20mor\
e\x20messages\x20available\x20in\x20the\x20backlog.\n\n\r\n\x05\x04\x1a\
\x02\0\x04\x12\x04\xd0\x06\x02\n\n\r\n\x05\x04\x1a\x02\0\x06\x12\x04\xd0\
\x06\x0b\x1a\n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\xd0\x06\x1b,\n\r\n\x05\
\x04\x1a\x02\0\x03\x12\x04\xd0\x06/0\n9\n\x02\x04\x1b\x12\x06\xd4\x06\0\
\xe5\x06\x01\x1a+\x20Request\x20for\x20the\x20ModifyAckDeadline\x20metho\
d.\n\n\x0b\n\x03\x04\x1b\x01\x12\x04\xd4\x06\x08\x20\nb\n\x04\x04\x1b\
\x02\0\x12\x04\xd7\x06\x02\x1a\x1aT\x20The\x20name\x20of\x20the\x20subsc\
ription.\n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\
\n\n\r\n\x05\x04\x1b\x02\0\x05\x12\x04\xd7\x06\x02\x08\n\r\n\x05\x04\x1b\
\x02\0\x01\x12\x04\xd7\x06\t\x15\n\r\n\x05\x04\x1b\x02\0\x03\x12\x04\xd7\
\x06\x18\x19\n+\n\x04\x04\x1b\x02\x01\x12\x04\xda\x06\x02\x1e\x1a\x1d\
\x20List\x20of\x20acknowledgment\x20IDs.\n\n\r\n\x05\x04\x1b\x02\x01\x04\
\x12\x04\xda\x06\x02\n\n\r\n\x05\x04\x1b\x02\x01\x05\x12\x04\xda\x06\x0b\
\x11\n\r\n\x05\x04\x1b\x02\x01\x01\x12\x04\xda\x06\x12\x19\n\r\n\x05\x04\
\x1b\x02\x01\x03\x12\x04\xda\x06\x1c\x1d\n\xaa\x04\n\x04\x04\x1b\x02\x02\
\x12\x04\xe4\x06\x02!\x1a\x9b\x04\x20The\x20new\x20ack\x20deadline\x20wi\
th\x20respect\x20to\x20the\x20time\x20this\x20request\x20was\x20sent\x20\
to\n\x20the\x20Pub/Sub\x20system.\x20For\x20example,\x20if\x20the\x20val\
ue\x20is\x2010,\x20the\x20new\n\x20ack\x20deadline\x20will\x20expire\x20\
10\x20seconds\x20after\x20the\x20`ModifyAckDeadline`\x20call\n\x20was\
\x20made.\x20Specifying\x20zero\x20might\x20immediately\x20make\x20the\
\x20message\x20available\x20for\n\x20delivery\x20to\x20another\x20subscr\
iber\x20client.\x20This\x20typically\x20results\x20in\x20an\n\x20increas\
e\x20in\x20the\x20rate\x20of\x20message\x20redeliveries\x20(that\x20is,\
\x20duplicates).\n\x20The\x20minimum\x20deadline\x20you\x20can\x20specif\
y\x20is\x200\x20seconds.\n\x20The\x20maximum\x20deadline\x20you\x20can\
\x20specify\x20is\x20600\x20seconds\x20(10\x20minutes).\n\n\r\n\x05\x04\
\x1b\x02\x02\x05\x12\x04\xe4\x06\x02\x07\n\r\n\x05\x04\x1b\x02\x02\x01\
\x12\x04\xe4\x06\x08\x1c\n\r\n\x05\x04\x1b\x02\x02\x03\x12\x04\xe4\x06\
\x1f\x20\n3\n\x02\x04\x1c\x12\x06\xe8\x06\0\xf0\x06\x01\x1a%\x20Request\
\x20for\x20the\x20Acknowledge\x20method.\n\n\x0b\n\x03\x04\x1c\x01\x12\
\x04\xe8\x06\x08\x1a\nz\n\x04\x04\x1c\x02\0\x12\x04\xeb\x06\x02\x1a\x1al\
\x20The\x20subscription\x20whose\x20message\x20is\x20being\x20acknowledg\
ed.\n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\
\n\x05\x04\x1c\x02\0\x05\x12\x04\xeb\x06\x02\x08\n\r\n\x05\x04\x1c\x02\0\
\x01\x12\x04\xeb\x06\t\x15\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\xeb\x06\
\x18\x19\n\x9e\x01\n\x04\x04\x1c\x02\x01\x12\x04\xef\x06\x02\x1e\x1a\x8f\
\x01\x20The\x20acknowledgment\x20ID\x20for\x20the\x20messages\x20being\
\x20acknowledged\x20that\x20was\x20returned\n\x20by\x20the\x20Pub/Sub\
\x20system\x20in\x20the\x20`Pull`\x20response.\x20Must\x20not\x20be\x20e\
mpty.\n\n\r\n\x05\x04\x1c\x02\x01\x04\x12\x04\xef\x06\x02\n\n\r\n\x05\
\x04\x1c\x02\x01\x05\x12\x04\xef\x06\x0b\x11\n\r\n\x05\x04\x1c\x02\x01\
\x01\x12\x04\xef\x06\x12\x19\n\r\n\x05\x04\x1c\x02\x01\x03\x12\x04\xef\
\x06\x1c\x1d\n\xe1\x01\n\x02\x04\x1d\x12\x06\xf5\x06\0\x9c\x07\x01\x1a\
\xd2\x01\x20Request\x20for\x20the\x20`StreamingPull`\x20streaming\x20RPC\
\x20method.\x20This\x20request\x20is\x20used\x20to\n\x20establish\x20the\
\x20initial\x20stream\x20as\x20well\x20as\x20to\x20stream\x20acknowledge\
ments\x20and\x20ack\n\x20deadline\x20modifications\x20from\x20the\x20cli\
ent\x20to\x20the\x20server.\n\n\x0b\n\x03\x04\x1d\x01\x12\x04\xf5\x06\
\x08\x1c\n\xfc\x01\n\x04\x04\x1d\x02\0\x12\x04\xfa\x06\x02\x1a\x1a\xed\
\x01\x20The\x20subscription\x20for\x20which\x20to\x20initialize\x20the\
\x20new\x20stream.\x20This\x20must\x20be\n\x20provided\x20in\x20the\x20f\
irst\x20request\x20on\x20the\x20stream,\x20and\x20must\x20not\x20be\x20s\
et\x20in\n\x20subsequent\x20requests\x20from\x20client\x20to\x20server.\
\n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\n\
\x05\x04\x1d\x02\0\x05\x12\x04\xfa\x06\x02\x08\n\r\n\x05\x04\x1d\x02\0\
\x01\x12\x04\xfa\x06\t\x15\n\r\n\x05\x04\x1d\x02\0\x03\x12\x04\xfa\x06\
\x18\x19\n\x85\x03\n\x04\x04\x1d\x02\x01\x12\x04\x81\x07\x02\x1e\x1a\xf6\
\x02\x20List\x20of\x20acknowledgement\x20IDs\x20for\x20acknowledging\x20\
previously\x20received\x20messages\n\x20(received\x20on\x20this\x20strea\
m\x20or\x20a\x20different\x20stream).\x20If\x20an\x20ack\x20ID\x20has\
\x20expired,\n\x20the\x20corresponding\x20message\x20may\x20be\x20redeli\
vered\x20later.\x20Acknowledging\x20a\x20message\n\x20more\x20than\x20on\
ce\x20will\x20not\x20result\x20in\x20an\x20error.\x20If\x20the\x20acknow\
ledgement\x20ID\x20is\n\x20malformed,\x20the\x20stream\x20will\x20be\x20\
aborted\x20with\x20status\x20`INVALID_ARGUMENT`.\n\n\r\n\x05\x04\x1d\x02\
\x01\x04\x12\x04\x81\x07\x02\n\n\r\n\x05\x04\x1d\x02\x01\x05\x12\x04\x81\
\x07\x0b\x11\n\r\n\x05\x04\x1d\x02\x01\x01\x12\x04\x81\x07\x12\x19\n\r\n\
\x05\x04\x1d\x02\x01\x03\x12\x04\x81\x07\x1c\x1d\n\x89\x06\n\x04\x04\x1d\
\x02\x02\x12\x04\x8e\x07\x02-\x1a\xfa\x05\x20The\x20list\x20of\x20new\
\x20ack\x20deadlines\x20for\x20the\x20IDs\x20listed\x20in\n\x20`modify_d\
eadline_ack_ids`.\x20The\x20size\x20of\x20this\x20list\x20must\x20be\x20\
the\x20same\x20as\x20the\n\x20size\x20of\x20`modify_deadline_ack_ids`.\
\x20If\x20it\x20differs\x20the\x20stream\x20will\x20be\x20aborted\n\x20w\
ith\x20`INVALID_ARGUMENT`.\x20Each\x20element\x20in\x20this\x20list\x20i\
s\x20applied\x20to\x20the\n\x20element\x20in\x20the\x20same\x20position\
\x20in\x20`modify_deadline_ack_ids`.\x20The\x20new\x20ack\n\x20deadline\
\x20is\x20with\x20respect\x20to\x20the\x20time\x20this\x20request\x20was\
\x20sent\x20to\x20the\x20Pub/Sub\n\x20system.\x20Must\x20be\x20>=\x200.\
\x20For\x20example,\x20if\x20the\x20value\x20is\x2010,\x20the\x20new\x20\
ack\x20deadline\n\x20will\x20expire\x2010\x20seconds\x20after\x20this\
\x20request\x20is\x20received.\x20If\x20the\x20value\x20is\x200,\n\x20th\
e\x20message\x20is\x20immediately\x20made\x20available\x20for\x20another\
\x20streaming\x20or\n\x20non-streaming\x20pull\x20request.\x20If\x20the\
\x20value\x20is\x20<\x200\x20(an\x20error),\x20the\x20stream\x20will\n\
\x20be\x20aborted\x20with\x20status\x20`INVALID_ARGUMENT`.\n\n\r\n\x05\
\x04\x1d\x02\x02\x04\x12\x04\x8e\x07\x02\n\n\r\n\x05\x04\x1d\x02\x02\x05\
\x12\x04\x8e\x07\x0b\x10\n\r\n\x05\x04\x1d\x02\x02\x01\x12\x04\x8e\x07\
\x11(\n\r\n\x05\x04\x1d\x02\x02\x03\x12\x04\x8e\x07+,\n\xc8\x02\n\x04\
\x04\x1d\x02\x03\x12\x04\x95\x07\x02.\x1a\xb9\x02\x20List\x20of\x20ackno\
wledgement\x20IDs\x20whose\x20deadline\x20will\x20be\x20modified\x20base\
d\x20on\x20the\n\x20corresponding\x20element\x20in\x20`modify_deadline_s\
econds`.\x20This\x20field\x20can\x20be\x20used\n\x20to\x20indicate\x20th\
at\x20more\x20time\x20is\x20needed\x20to\x20process\x20a\x20message\x20b\
y\x20the\n\x20subscriber,\x20or\x20to\x20make\x20the\x20message\x20avail\
able\x20for\x20redelivery\x20if\x20the\n\x20processing\x20was\x20interru\
pted.\n\n\r\n\x05\x04\x1d\x02\x03\x04\x12\x04\x95\x07\x02\n\n\r\n\x05\
\x04\x1d\x02\x03\x05\x12\x04\x95\x07\x0b\x11\n\r\n\x05\x04\x1d\x02\x03\
\x01\x12\x04\x95\x07\x12)\n\r\n\x05\x04\x1d\x02\x03\x03\x12\x04\x95\x07,\
-\n\xb4\x02\n\x04\x04\x1d\x02\x04\x12\x04\x9b\x07\x02(\x1a\xa5\x02\x20Th\
e\x20ack\x20deadline\x20to\x20use\x20for\x20the\x20stream.\x20This\x20mu\
st\x20be\x20provided\x20in\x20the\n\x20first\x20request\x20on\x20the\x20\
stream,\x20but\x20it\x20can\x20also\x20be\x20updated\x20on\x20subsequent\
\n\x20requests\x20from\x20client\x20to\x20server.\x20The\x20minimum\x20d\
eadline\x20you\x20can\x20specify\x20is\x2010\n\x20seconds.\x20The\x20max\
imum\x20deadline\x20you\x20can\x20specify\x20is\x20600\x20seconds\x20(10\
\x20minutes).\n\n\r\n\x05\x04\x1d\x02\x04\x05\x12\x04\x9b\x07\x02\x07\n\
\r\n\x05\x04\x1d\x02\x04\x01\x12\x04\x9b\x07\x08#\n\r\n\x05\x04\x1d\x02\
\x04\x03\x12\x04\x9b\x07&'\n\x81\x01\n\x02\x04\x1e\x12\x06\xa0\x07\0\xa3\
\x07\x01\x1as\x20Response\x20for\x20the\x20`StreamingPull`\x20method.\
\x20This\x20response\x20is\x20used\x20to\x20stream\n\x20messages\x20from\
\x20the\x20server\x20to\x20the\x20client.\n\n\x0b\n\x03\x04\x1e\x01\x12\
\x04\xa0\x07\x08\x1d\nB\n\x04\x04\x1e\x02\0\x12\x04\xa2\x07\x021\x1a4\
\x20Received\x20Pub/Sub\x20messages.\x20This\x20will\x20not\x20be\x20emp\
ty.\n\n\r\n\x05\x04\x1e\x02\0\x04\x12\x04\xa2\x07\x02\n\n\r\n\x05\x04\
\x1e\x02\0\x06\x12\x04\xa2\x07\x0b\x1a\n\r\n\x05\x04\x1e\x02\0\x01\x12\
\x04\xa2\x07\x1b,\n\r\n\x05\x04\x1e\x02\0\x03\x12\x04\xa2\x07/0\n8\n\x02\
\x04\x1f\x12\x06\xa6\x07\0\xbe\x07\x01\x1a*\x20Request\x20for\x20the\x20\
`CreateSnapshot`\x20method.\n\n\x0b\n\x03\x04\x1f\x01\x12\x04\xa6\x07\
\x08\x1d\n\xa3\x03\n\x04\x04\x1f\x02\0\x12\x04\xae\x07\x02\x12\x1a\x94\
\x03\x20Optional\x20user-provided\x20name\x20for\x20this\x20snapshot.\n\
\x20If\x20the\x20name\x20is\x20not\x20provided\x20in\x20the\x20request,\
\x20the\x20server\x20will\x20assign\x20a\x20random\n\x20name\x20for\x20t\
his\x20snapshot\x20on\x20the\x20same\x20project\x20as\x20the\x20subscrip\
tion.\n\x20Note\x20that\x20for\x20REST\x20API\x20requests,\x20you\x20mus\
t\x20specify\x20a\x20name.\x20\x20See\x20the\n\x20<a\x20href=\"https://c\
loud.google.com/pubsub/docs/admin#resource_names\">\n\x20resource\x20nam\
e\x20rules</a>.\n\x20Format\x20is\x20`projects/{project}/snapshots/{snap\
}`.\n\n\r\n\x05\x04\x1f\x02\0\x05\x12\x04\xae\x07\x02\x08\n\r\n\x05\x04\
\x1f\x02\0\x01\x12\x04\xae\x07\t\r\n\r\n\x05\x04\x1f\x02\0\x03\x12\x04\
\xae\x07\x10\x11\n\xad\x04\n\x04\x04\x1f\x02\x01\x12\x04\xb9\x07\x02\x1a\
\x1a\x9e\x04\x20The\x20subscription\x20whose\x20backlog\x20the\x20snapsh\
ot\x20retains.\n\x20Specifically,\x20the\x20created\x20snapshot\x20is\
\x20guaranteed\x20to\x20retain:\n\x20\x20(a)\x20The\x20existing\x20backl\
og\x20on\x20the\x20subscription.\x20More\x20precisely,\x20this\x20is\n\
\x20\x20\x20\x20\x20\x20defined\x20as\x20the\x20messages\x20in\x20the\
\x20subscription's\x20backlog\x20that\x20are\n\x20\x20\x20\x20\x20\x20un\
acknowledged\x20upon\x20the\x20successful\x20completion\x20of\x20the\n\
\x20\x20\x20\x20\x20\x20`CreateSnapshot`\x20request;\x20as\x20well\x20as\
:\n\x20\x20(b)\x20Any\x20messages\x20published\x20to\x20the\x20subscript\
ion's\x20topic\x20following\x20the\n\x20\x20\x20\x20\x20\x20successful\
\x20completion\x20of\x20the\x20CreateSnapshot\x20request.\n\x20Format\
\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\n\x05\x04\x1f\
\x02\x01\x05\x12\x04\xb9\x07\x02\x08\n\r\n\x05\x04\x1f\x02\x01\x01\x12\
\x04\xb9\x07\t\x15\n\r\n\x05\x04\x1f\x02\x01\x03\x12\x04\xb9\x07\x18\x19\
\nm\n\x04\x04\x1f\x02\x02\x12\x04\xbd\x07\x02!\x1a_\x20See\x20<a\x20href\
=\"https://cloud.google.com/pubsub/docs/labels\">\x20Creating\x20and\n\
\x20managing\x20labels</a>.\n\n\r\n\x05\x04\x1f\x02\x02\x06\x12\x04\xbd\
\x07\x02\x15\n\r\n\x05\x04\x1f\x02\x02\x01\x12\x04\xbd\x07\x16\x1c\n\r\n\
\x05\x04\x1f\x02\x02\x03\x12\x04\xbd\x07\x1f\x20\n6\n\x02\x04\x20\x12\
\x06\xc1\x07\0\xc8\x07\x01\x1a(\x20Request\x20for\x20the\x20UpdateSnapsh\
ot\x20method.\n\n\x0b\n\x03\x04\x20\x01\x12\x04\xc1\x07\x08\x1d\n,\n\x04\
\x04\x20\x02\0\x12\x04\xc3\x07\x02\x18\x1a\x1e\x20The\x20updated\x20snap\
shot\x20object.\n\n\r\n\x05\x04\x20\x02\0\x06\x12\x04\xc3\x07\x02\n\n\r\
\n\x05\x04\x20\x02\0\x01\x12\x04\xc3\x07\x0b\x13\n\r\n\x05\x04\x20\x02\0\
\x03\x12\x04\xc3\x07\x16\x17\nl\n\x04\x04\x20\x02\x01\x12\x04\xc7\x07\
\x02,\x1a^\x20Indicates\x20which\x20fields\x20in\x20the\x20provided\x20s\
napshot\x20to\x20update.\n\x20Must\x20be\x20specified\x20and\x20non-empt\
y.\n\n\r\n\x05\x04\x20\x02\x01\x06\x12\x04\xc7\x07\x02\x1b\n\r\n\x05\x04\
\x20\x02\x01\x01\x12\x04\xc7\x07\x1c'\n\r\n\x05\x04\x20\x02\x01\x03\x12\
\x04\xc7\x07*+\n\xca\x02\n\x02\x04!\x12\x06\xd0\x07\0\xe6\x07\x01\x1a\
\xbb\x02\x20A\x20snapshot\x20resource.\x20Snapshots\x20are\x20used\x20in\
\n\x20<a\x20href=\"https://cloud.google.com/pubsub/docs/replay-overview\
\">Seek</a>\n\x20operations,\x20which\x20allow\n\x20you\x20to\x20manage\
\x20message\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\x20you\x20c\
an\x20set\x20the\n\x20acknowledgment\x20state\x20of\x20messages\x20in\
\x20an\x20existing\x20subscription\x20to\x20the\x20state\n\x20captured\
\x20by\x20a\x20snapshot.\n\n\x0b\n\x03\x04!\x01\x12\x04\xd0\x07\x08\x10\
\n)\n\x04\x04!\x02\0\x12\x04\xd2\x07\x02\x12\x1a\x1b\x20The\x20name\x20o\
f\x20the\x20snapshot.\n\n\r\n\x05\x04!\x02\0\x05\x12\x04\xd2\x07\x02\x08\
\n\r\n\x05\x04!\x02\0\x01\x12\x04\xd2\x07\t\r\n\r\n\x05\x04!\x02\0\x03\
\x12\x04\xd2\x07\x10\x11\nU\n\x04\x04!\x02\x01\x12\x04\xd5\x07\x02\x13\
\x1aG\x20The\x20name\x20of\x20the\x20topic\x20from\x20which\x20this\x20s\
napshot\x20is\x20retaining\x20messages.\n\n\r\n\x05\x04!\x02\x01\x05\x12\
\x04\xd5\x07\x02\x08\n\r\n\x05\x04!\x02\x01\x01\x12\x04\xd5\x07\t\x0e\n\
\r\n\x05\x04!\x02\x01\x03\x12\x04\xd5\x07\x11\x12\n\xd4\x05\n\x04\x04!\
\x02\x02\x12\x04\xe1\x07\x02,\x1a\xc5\x05\x20The\x20snapshot\x20is\x20gu\
aranteed\x20to\x20exist\x20up\x20until\x20this\x20time.\n\x20A\x20newly-\
created\x20snapshot\x20expires\x20no\x20later\x20than\x207\x20days\x20fr\
om\x20the\x20time\x20of\x20its\n\x20creation.\x20Its\x20exact\x20lifetim\
e\x20is\x20determined\x20at\x20creation\x20by\x20the\x20existing\n\x20ba\
cklog\x20in\x20the\x20source\x20subscription.\x20Specifically,\x20the\
\x20lifetime\x20of\x20the\n\x20snapshot\x20is\x20`7\x20days\x20-\x20(age\
\x20of\x20oldest\x20unacked\x20message\x20in\x20the\x20subscription)`.\n\
\x20For\x20example,\x20consider\x20a\x20subscription\x20whose\x20oldest\
\x20unacked\x20message\x20is\x203\x20days\n\x20old.\x20If\x20a\x20snapsh\
ot\x20is\x20created\x20from\x20this\x20subscription,\x20the\x20snapshot\
\x20--\x20which\n\x20will\x20always\x20capture\x20this\x203-day-old\x20b\
acklog\x20as\x20long\x20as\x20the\x20snapshot\n\x20exists\x20--\x20will\
\x20expire\x20in\x204\x20days.\x20The\x20service\x20will\x20refuse\x20to\
\x20create\x20a\n\x20snapshot\x20that\x20would\x20expire\x20in\x20less\
\x20than\x201\x20hour\x20after\x20creation.\n\n\r\n\x05\x04!\x02\x02\x06\
\x12\x04\xe1\x07\x02\x1b\n\r\n\x05\x04!\x02\x02\x01\x12\x04\xe1\x07\x1c'\
\n\r\n\x05\x04!\x02\x02\x03\x12\x04\xe1\x07*+\nm\n\x04\x04!\x02\x03\x12\
\x04\xe5\x07\x02!\x1a_\x20See\x20<a\x20href=\"https://cloud.google.com/p\
ubsub/docs/labels\">\x20Creating\x20and\n\x20managing\x20labels</a>.\n\n\
\r\n\x05\x04!\x02\x03\x06\x12\x04\xe5\x07\x02\x15\n\r\n\x05\x04!\x02\x03\
\x01\x12\x04\xe5\x07\x16\x1c\n\r\n\x05\x04!\x02\x03\x03\x12\x04\xe5\x07\
\x1f\x20\n3\n\x02\x04\"\x12\x06\xe9\x07\0\xed\x07\x01\x1a%\x20Request\
\x20for\x20the\x20GetSnapshot\x20method.\n\n\x0b\n\x03\x04\"\x01\x12\x04\
\xe9\x07\x08\x1a\nb\n\x04\x04\"\x02\0\x12\x04\xec\x07\x02\x16\x1aT\x20Th\
e\x20name\x20of\x20the\x20snapshot\x20to\x20get.\n\x20Format\x20is\x20`p\
rojects/{project}/snapshots/{snap}`.\n\n\r\n\x05\x04\"\x02\0\x05\x12\x04\
\xec\x07\x02\x08\n\r\n\x05\x04\"\x02\0\x01\x12\x04\xec\x07\t\x11\n\r\n\
\x05\x04\"\x02\0\x03\x12\x04\xec\x07\x14\x15\n7\n\x02\x04#\x12\x06\xf0\
\x07\0\xfc\x07\x01\x1a)\x20Request\x20for\x20the\x20`ListSnapshots`\x20m\
ethod.\n\n\x0b\n\x03\x04#\x01\x12\x04\xf0\x07\x08\x1c\ng\n\x04\x04#\x02\
\0\x12\x04\xf3\x07\x02\x15\x1aY\x20The\x20name\x20of\x20the\x20project\
\x20in\x20which\x20to\x20list\x20snapshots.\n\x20Format\x20is\x20`projec\
ts/{project-id}`.\n\n\r\n\x05\x04#\x02\0\x05\x12\x04\xf3\x07\x02\x08\n\r\
\n\x05\x04#\x02\0\x01\x12\x04\xf3\x07\t\x10\n\r\n\x05\x04#\x02\0\x03\x12\
\x04\xf3\x07\x13\x14\n6\n\x04\x04#\x02\x01\x12\x04\xf6\x07\x02\x16\x1a(\
\x20Maximum\x20number\x20of\x20snapshots\x20to\x20return.\n\n\r\n\x05\
\x04#\x02\x01\x05\x12\x04\xf6\x07\x02\x07\n\r\n\x05\x04#\x02\x01\x01\x12\
\x04\xf6\x07\x08\x11\n\r\n\x05\x04#\x02\x01\x03\x12\x04\xf6\x07\x14\x15\
\n\xca\x01\n\x04\x04#\x02\x02\x12\x04\xfb\x07\x02\x18\x1a\xbb\x01\x20The\
\x20value\x20returned\x20by\x20the\x20last\x20`ListSnapshotsResponse`;\
\x20indicates\x20that\x20this\n\x20is\x20a\x20continuation\x20of\x20a\
\x20prior\x20`ListSnapshots`\x20call,\x20and\x20that\x20the\x20system\n\
\x20should\x20return\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\
\x04#\x02\x02\x05\x12\x04\xfb\x07\x02\x08\n\r\n\x05\x04#\x02\x02\x01\x12\
\x04\xfb\x07\t\x13\n\r\n\x05\x04#\x02\x02\x03\x12\x04\xfb\x07\x16\x17\n8\
\n\x02\x04$\x12\x06\xff\x07\0\x86\x08\x01\x1a*\x20Response\x20for\x20the\
\x20`ListSnapshots`\x20method.\n\n\x0b\n\x03\x04$\x01\x12\x04\xff\x07\
\x08\x1d\n(\n\x04\x04$\x02\0\x12\x04\x81\x08\x02\"\x1a\x1a\x20The\x20res\
ulting\x20snapshots.\n\n\r\n\x05\x04$\x02\0\x04\x12\x04\x81\x08\x02\n\n\
\r\n\x05\x04$\x02\0\x06\x12\x04\x81\x08\x0b\x13\n\r\n\x05\x04$\x02\0\x01\
\x12\x04\x81\x08\x14\x1d\n\r\n\x05\x04$\x02\0\x03\x12\x04\x81\x08\x20!\n\
\x9e\x01\n\x04\x04$\x02\x01\x12\x04\x85\x08\x02\x1d\x1a\x8f\x01\x20If\
\x20not\x20empty,\x20indicates\x20that\x20there\x20may\x20be\x20more\x20\
snapshot\x20that\x20match\x20the\n\x20request;\x20this\x20value\x20shoul\
d\x20be\x20passed\x20in\x20a\x20new\x20`ListSnapshotsRequest`.\n\n\r\n\
\x05\x04$\x02\x01\x05\x12\x04\x85\x08\x02\x08\n\r\n\x05\x04$\x02\x01\x01\
\x12\x04\x85\x08\t\x18\n\r\n\x05\x04$\x02\x01\x03\x12\x04\x85\x08\x1b\
\x1c\n8\n\x02\x04%\x12\x06\x89\x08\0\x8d\x08\x01\x1a*\x20Request\x20for\
\x20the\x20`DeleteSnapshot`\x20method.\n\n\x0b\n\x03\x04%\x01\x12\x04\
\x89\x08\x08\x1d\ne\n\x04\x04%\x02\0\x12\x04\x8c\x08\x02\x16\x1aW\x20The\
\x20name\x20of\x20the\x20snapshot\x20to\x20delete.\n\x20Format\x20is\x20\
`projects/{project}/snapshots/{snap}`.\n\n\r\n\x05\x04%\x02\0\x05\x12\
\x04\x8c\x08\x02\x08\n\r\n\x05\x04%\x02\0\x01\x12\x04\x8c\x08\t\x11\n\r\
\n\x05\x04%\x02\0\x03\x12\x04\x8c\x08\x14\x15\n.\n\x02\x04&\x12\x06\x90\
\x08\0\xa7\x08\x01\x1a\x20\x20Request\x20for\x20the\x20`Seek`\x20method.\
\n\n\x0b\n\x03\x04&\x01\x12\x04\x90\x08\x08\x13\n+\n\x04\x04&\x02\0\x12\
\x04\x92\x08\x02\x1a\x1a\x1d\x20The\x20subscription\x20to\x20affect.\n\n\
\r\n\x05\x04&\x02\0\x05\x12\x04\x92\x08\x02\x08\n\r\n\x05\x04&\x02\0\x01\
\x12\x04\x92\x08\t\x15\n\r\n\x05\x04&\x02\0\x03\x12\x04\x92\x08\x18\x19\
\n\x0e\n\x04\x04&\x08\0\x12\x06\x94\x08\x02\xa6\x08\x03\n\r\n\x05\x04&\
\x08\0\x01\x12\x04\x94\x08\x08\x0e\n\xbe\x05\n\x04\x04&\x02\x01\x12\x04\
\xa0\x08\x04'\x1a\xaf\x05\x20The\x20time\x20to\x20seek\x20to.\n\x20Messa\
ges\x20retained\x20in\x20the\x20subscription\x20that\x20were\x20publishe\
d\x20before\x20this\n\x20time\x20are\x20marked\x20as\x20acknowledged,\
\x20and\x20messages\x20retained\x20in\x20the\n\x20subscription\x20that\
\x20were\x20published\x20after\x20this\x20time\x20are\x20marked\x20as\n\
\x20unacknowledged.\x20Note\x20that\x20this\x20operation\x20affects\x20o\
nly\x20those\x20messages\n\x20retained\x20in\x20the\x20subscription\x20(\
configured\x20by\x20the\x20combination\x20of\n\x20`message_retention_dur\
ation`\x20and\x20`retain_acked_messages`).\x20For\x20example,\n\x20if\
\x20`time`\x20corresponds\x20to\x20a\x20point\x20before\x20the\x20messag\
e\x20retention\n\x20window\x20(or\x20to\x20a\x20point\x20before\x20the\
\x20system's\x20notion\x20of\x20the\x20subscription\n\x20creation\x20tim\
e),\x20only\x20retained\x20messages\x20will\x20be\x20marked\x20as\x20una\
cknowledged,\n\x20and\x20already-expunged\x20messages\x20will\x20not\x20\
be\x20restored.\n\n\r\n\x05\x04&\x02\x01\x06\x12\x04\xa0\x08\x04\x1d\n\r\
\n\x05\x04&\x02\x01\x01\x12\x04\xa0\x08\x1e\"\n\r\n\x05\x04&\x02\x01\x03\
\x12\x04\xa0\x08%&\n\xa8\x01\n\x04\x04&\x02\x02\x12\x04\xa5\x08\x04\x18\
\x1a\x99\x01\x20The\x20snapshot\x20to\x20seek\x20to.\x20The\x20snapshot'\
s\x20topic\x20must\x20be\x20the\x20same\x20as\x20that\x20of\n\x20the\x20\
provided\x20subscription.\n\x20Format\x20is\x20`projects/{project}/snaps\
hots/{snap}`.\n\n\r\n\x05\x04&\x02\x02\x05\x12\x04\xa5\x08\x04\n\n\r\n\
\x05\x04&\x02\x02\x01\x12\x04\xa5\x08\x0b\x13\n\r\n\x05\x04&\x02\x02\x03\
\x12\x04\xa5\x08\x16\x17\nF\n\x02\x04'\x12\x04\xaa\x08\0\x17\x1a:\x20Res\
ponse\x20for\x20the\x20`Seek`\x20method\x20(this\x20response\x20is\x20em\
pty).\n\n\x0b\n\x03\x04'\x01\x12\x04\xaa\x08\x08\x14b\x06proto3\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}