context: // Generated by ProtoGen, Version=2.4.1.473, Culture=neutral, PublicKeyToken=55f7125234beb589.  DO NOT EDIT!
  #pragma warning disable 1591, 0612
  #region Designer generated code
  
  using pb = global::Google.ProtocolBuffers;
  using pbc = global::Google.ProtocolBuffers.Collections;
  using pbd = global::Google.ProtocolBuffers.Descriptors;
  using scg = global::System.Collections.Generic;
  namespace bnet.protocol.resources {
    
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
    public static partial class ResourceService {
    
      #region Extension registration
      public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
      }
      #endregion
      #region Static variables
      internal static pbd::MessageDescriptor internal__static_bnet_protocol_resources_ContentHandleRequest__Descriptor;
      internal static pb::FieldAccess.FieldAccessorTable<global::bnet.protocol.resources.ContentHandleRequest, global::bnet.protocol.resources.ContentHandleRequest.Builder> internal__static_bnet_protocol_resources_ContentHandleRequest__FieldAccessorTable;
      #endregion
      #region Descriptor
      public static pbd::FileDescriptor Descriptor {
        get { return descriptor; }
      }
      private static pbd::FileDescriptor descriptor;
      
      static ResourceService() {
        byte[] descriptorData = global::System.Convert.FromBase64String(
            "ChtibmV0L3Jlc291cmNlX3NlcnZpY2UucHJvdG8SF2JuZXQucHJvdG9jb2wu" + 
            "cmVzb3VyY2VzGhlibmV0L2NvbnRlbnRfaGFuZGxlLnByb3RvGg5ibmV0L3Jw" + 
            "Yy5wcm90byJZChRDb250ZW50SGFuZGxlUmVxdWVzdBISCgpwcm9ncmFtX2lk" + 
            "GAEgAigHEhEKCXN0cmVhbV9pZBgCIAIoBxIaCgZsb2NhbGUYAyABKAc6CjE3" + 
            "MDE3Mjk2MTkycgoJUmVzb3VyY2VzEmUKEEdldENvbnRlbnRIYW5kbGUSLS5i" + 
            "bmV0LnByb3RvY29sLnJlc291cmNlcy5Db250ZW50SGFuZGxlUmVxdWVzdBoc" + 
            "LmJuZXQucHJvdG9jb2wuQ29udGVudEhhbmRsZSIEgLUYAUIDgAEA");
        pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
          descriptor = root;
          internal__static_bnet_protocol_resources_ContentHandleRequest__Descriptor = Descriptor.MessageTypes[0];
          internal__static_bnet_protocol_resources_ContentHandleRequest__FieldAccessorTable = 
              new pb::FieldAccess.FieldAccessorTable<global::bnet.protocol.resources.ContentHandleRequest, global::bnet.protocol.resources.ContentHandleRequest.Builder>(internal__static_bnet_protocol_resources_ContentHandleRequest__Descriptor,
                  new string[] { "ProgramId", "StreamId", "Locale", });
          pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance();
          RegisterAllExtensions(registry);
          global::bnet.protocol.Proto.ContentHandle.RegisterAllExtensions(registry);
          global::bnet.protocol.Rpc.RegisterAllExtensions(registry);
          return registry;
        };
        pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
            new pbd::FileDescriptor[] {
            global::bnet.protocol.Proto.ContentHandle.Descriptor, 
            global::bnet.protocol.Rpc.Descriptor, 
            }, assigner);
      }
      #endregion
      
    }
    #region Messages
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
    public sealed partial class ContentHandleRequest : pb::GeneratedMessage<ContentHandleRequest, ContentHandleRequest.Builder> {
      private ContentHandleRequest() { }
      private static readonly ContentHandleRequest defaultInstance = new ContentHandleRequest().MakeReadOnly();
      private static readonly string[] _contentHandleRequestFieldNames = new string[] { "locale", "program_id", "stream_id" };
      private static readonly uint[] _contentHandleRequestFieldTags = new uint[] { 29, 13, 21 };
      public static ContentHandleRequest DefaultInstance {
        get { return defaultInstance; }
      }
      
      public override ContentHandleRequest DefaultInstanceForType {
        get { return DefaultInstance; }
      }
      
      protected override ContentHandleRequest ThisMessage {
        get { return this; }
      }
      
      public static pbd::MessageDescriptor Descriptor {
        get { return global::bnet.protocol.resources.ResourceService.internal__static_bnet_protocol_resources_ContentHandleRequest__Descriptor; }
      }
      
      protected override pb::FieldAccess.FieldAccessorTable<ContentHandleRequest, ContentHandleRequest.Builder> InternalFieldAccessors {
        get { return global::bnet.protocol.resources.ResourceService.internal__static_bnet_protocol_resources_ContentHandleRequest__FieldAccessorTable; }
      }
      
      public const int ProgramIdFieldNumber = 1;
      private bool hasProgramId;
      private uint programId_;
      public bool HasProgramId {
        get { return hasProgramId; }
      }
      public uint ProgramId {
        get { return programId_; }
      }
      
      public const int StreamIdFieldNumber = 2;
      private bool hasStreamId;
      private uint streamId_;
      public bool HasStreamId {
        get { return hasStreamId; }
      }
      public uint StreamId {
        get { return streamId_; }
      }
      
      public const int LocaleFieldNumber = 3;
      private bool hasLocale;
      private uint locale_ = 1701729619;
      public bool HasLocale {
        get { return hasLocale; }
      }
      public uint Locale {
        get { return locale_; }
      }
      
      public override bool IsInitialized {
        get {
          if (!hasProgramId) return false;
          if (!hasStreamId) return false;
          return true;
        }
      }
      
      public override void WriteTo(pb::ICodedOutputStream output) {
        int size = SerializedSize;
        string[] field_names = _contentHandleRequestFieldNames;
        if (hasProgramId) {
          output.WriteFixed32(1, field_names[1], ProgramId);
        }
        if (hasStreamId) {
          output.WriteFixed32(2, field_names[2], StreamId);
        }
        if (hasLocale) {
          output.WriteFixed32(3, field_names[0], Locale);
        }
        UnknownFields.WriteTo(output);
      }
      
      private int memoizedSerializedSize = -1;
      public override int SerializedSize {
        get {
          int size = memoizedSerializedSize;
          if (size != -1) return size;
          
          size = 0;
          if (hasProgramId) {
            size += pb::CodedOutputStream.ComputeFixed32Size(1, ProgramId);
          }
          if (hasStreamId) {
            size += pb::CodedOutputStream.ComputeFixed32Size(2, StreamId);
          }
          if (hasLocale) {
            size += pb::CodedOutputStream.ComputeFixed32Size(3, Locale);
          }
          size += UnknownFields.SerializedSize;
          memoizedSerializedSize = size;
          return size;
        }
      }
      
      public static ContentHandleRequest ParseFrom(pb::ByteString data) {
        return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
      }
      public static ContentHandleRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
        return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
      }
      public static ContentHandleRequest ParseFrom(byte[] data) {
        return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
      }
      public static ContentHandleRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
        return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
      }
      public static ContentHandleRequest ParseFrom(global::System.IO.Stream input) {
        return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
      }
      public static ContentHandleRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
        return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
      }
      public static ContentHandleRequest ParseDelimitedFrom(global::System.IO.Stream input) {
        return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
      }
      public static ContentHandleRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
        return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
      }
      public static ContentHandleRequest ParseFrom(pb::ICodedInputStream input) {
        return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
      }
      public static ContentHandleRequest ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
        return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
      }
      private ContentHandleRequest MakeReadOnly() {
        return this;
      }
      
      public static Builder CreateBuilder() { return new Builder(); }
      public override Builder ToBuilder() { return CreateBuilder(this); }
      public override Builder CreateBuilderForType() { return new Builder(); }
      public static Builder CreateBuilder(ContentHandleRequest prototype) {
        return new Builder(prototype);
      }
      
      [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
      [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
      [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
      public sealed partial class Builder : pb::GeneratedBuilder<ContentHandleRequest, Builder> {
        protected override Builder ThisBuilder {
          get { return this; }
        }
        public Builder() {
          result = DefaultInstance;
          resultIsReadOnly = true;
        }
        internal Builder(ContentHandleRequest cloneFrom) {
          result = cloneFrom;
          resultIsReadOnly = true;
        }
        
        private bool resultIsReadOnly;
        private ContentHandleRequest result;
        
        private ContentHandleRequest PrepareBuilder() {
  
gt:         if (resultIsReadOnly) {