Protobuf...
This commit is contained in:
430
SampleAudioData.cs
Normal file
430
SampleAudioData.cs
Normal file
@@ -0,0 +1,430 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: circuits_v2/sample_audio_data.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021, 8981
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace CircuitsV2.Protobuf {
|
||||
|
||||
/// <summary>Holder for reflection information generated from circuits_v2/sample_audio_data.proto</summary>
|
||||
public static partial class SampleAudioDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for circuits_v2/sample_audio_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static SampleAudioDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CiNjaXJjdWl0c192Mi9zYW1wbGVfYXVkaW9fZGF0YS5wcm90bxILY2lyY3Vp",
|
||||
"dHNfdjIinAEKD1NhbXBsZUF1ZGlvRGF0YRIQCghibG9iTmFtZRgBIAEoCRIP",
|
||||
"CgdwcmVsb2FkGAQgASgIEhQKDHNhbXBsZUxlbmd0aBgFIAEoAhISCgphdWRp",
|
||||
"b19uYW1lGAYgASgJEh4KFkRFUFJFQ0FURURfc3RhcnRPZmZzZXQYAiABKAIS",
|
||||
"HAoUREVQUkVDQVRFRF9lbmRPZmZzZXQYAyABKAJCFqoCE0NpcmN1aXRzVjIu",
|
||||
"UHJvdG9idWZiBnByb3RvMw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::CircuitsV2.Protobuf.SampleAudioData), global::CircuitsV2.Protobuf.SampleAudioData.Parser, new[]{ "BlobName", "Preload", "SampleLength", "AudioName", "DEPRECATEDStartOffset", "DEPRECATEDEndOffset" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class SampleAudioData : pb::IMessage<SampleAudioData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<SampleAudioData> _parser = new pb::MessageParser<SampleAudioData>(() => new SampleAudioData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<SampleAudioData> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::CircuitsV2.Protobuf.SampleAudioDataReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public SampleAudioData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public SampleAudioData(SampleAudioData other) : this() {
|
||||
blobName_ = other.blobName_;
|
||||
preload_ = other.preload_;
|
||||
sampleLength_ = other.sampleLength_;
|
||||
audioName_ = other.audioName_;
|
||||
dEPRECATEDStartOffset_ = other.dEPRECATEDStartOffset_;
|
||||
dEPRECATEDEndOffset_ = other.dEPRECATEDEndOffset_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public SampleAudioData Clone() {
|
||||
return new SampleAudioData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "blobName" field.</summary>
|
||||
public const int BlobNameFieldNumber = 1;
|
||||
private string blobName_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string BlobName {
|
||||
get { return blobName_; }
|
||||
set {
|
||||
blobName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "preload" field.</summary>
|
||||
public const int PreloadFieldNumber = 4;
|
||||
private bool preload_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Preload {
|
||||
get { return preload_; }
|
||||
set {
|
||||
preload_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "sampleLength" field.</summary>
|
||||
public const int SampleLengthFieldNumber = 5;
|
||||
private float sampleLength_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float SampleLength {
|
||||
get { return sampleLength_; }
|
||||
set {
|
||||
sampleLength_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "audio_name" field.</summary>
|
||||
public const int AudioNameFieldNumber = 6;
|
||||
private string audioName_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string AudioName {
|
||||
get { return audioName_; }
|
||||
set {
|
||||
audioName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "DEPRECATED_startOffset" field.</summary>
|
||||
public const int DEPRECATEDStartOffsetFieldNumber = 2;
|
||||
private float dEPRECATEDStartOffset_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float DEPRECATEDStartOffset {
|
||||
get { return dEPRECATEDStartOffset_; }
|
||||
set {
|
||||
dEPRECATEDStartOffset_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "DEPRECATED_endOffset" field.</summary>
|
||||
public const int DEPRECATEDEndOffsetFieldNumber = 3;
|
||||
private float dEPRECATEDEndOffset_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float DEPRECATEDEndOffset {
|
||||
get { return dEPRECATEDEndOffset_; }
|
||||
set {
|
||||
dEPRECATEDEndOffset_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as SampleAudioData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(SampleAudioData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (BlobName != other.BlobName) return false;
|
||||
if (Preload != other.Preload) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SampleLength, other.SampleLength)) return false;
|
||||
if (AudioName != other.AudioName) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DEPRECATEDStartOffset, other.DEPRECATEDStartOffset)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DEPRECATEDEndOffset, other.DEPRECATEDEndOffset)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (BlobName.Length != 0) hash ^= BlobName.GetHashCode();
|
||||
if (Preload != false) hash ^= Preload.GetHashCode();
|
||||
if (SampleLength != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SampleLength);
|
||||
if (AudioName.Length != 0) hash ^= AudioName.GetHashCode();
|
||||
if (DEPRECATEDStartOffset != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DEPRECATEDStartOffset);
|
||||
if (DEPRECATEDEndOffset != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DEPRECATEDEndOffset);
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (BlobName.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(BlobName);
|
||||
}
|
||||
if (DEPRECATEDStartOffset != 0F) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(DEPRECATEDStartOffset);
|
||||
}
|
||||
if (DEPRECATEDEndOffset != 0F) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(DEPRECATEDEndOffset);
|
||||
}
|
||||
if (Preload != false) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(Preload);
|
||||
}
|
||||
if (SampleLength != 0F) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(SampleLength);
|
||||
}
|
||||
if (AudioName.Length != 0) {
|
||||
output.WriteRawTag(50);
|
||||
output.WriteString(AudioName);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (BlobName.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(BlobName);
|
||||
}
|
||||
if (DEPRECATEDStartOffset != 0F) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(DEPRECATEDStartOffset);
|
||||
}
|
||||
if (DEPRECATEDEndOffset != 0F) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(DEPRECATEDEndOffset);
|
||||
}
|
||||
if (Preload != false) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(Preload);
|
||||
}
|
||||
if (SampleLength != 0F) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(SampleLength);
|
||||
}
|
||||
if (AudioName.Length != 0) {
|
||||
output.WriteRawTag(50);
|
||||
output.WriteString(AudioName);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (BlobName.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(BlobName);
|
||||
}
|
||||
if (Preload != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (SampleLength != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (AudioName.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioName);
|
||||
}
|
||||
if (DEPRECATEDStartOffset != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (DEPRECATEDEndOffset != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(SampleAudioData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.BlobName.Length != 0) {
|
||||
BlobName = other.BlobName;
|
||||
}
|
||||
if (other.Preload != false) {
|
||||
Preload = other.Preload;
|
||||
}
|
||||
if (other.SampleLength != 0F) {
|
||||
SampleLength = other.SampleLength;
|
||||
}
|
||||
if (other.AudioName.Length != 0) {
|
||||
AudioName = other.AudioName;
|
||||
}
|
||||
if (other.DEPRECATEDStartOffset != 0F) {
|
||||
DEPRECATEDStartOffset = other.DEPRECATEDStartOffset;
|
||||
}
|
||||
if (other.DEPRECATEDEndOffset != 0F) {
|
||||
DEPRECATEDEndOffset = other.DEPRECATEDEndOffset;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
if ((tag & 7) == 4) {
|
||||
// Abort on any end group tag.
|
||||
return;
|
||||
}
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
BlobName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
DEPRECATEDStartOffset = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
DEPRECATEDEndOffset = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Preload = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
SampleLength = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
AudioName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
if ((tag & 7) == 4) {
|
||||
// Abort on any end group tag.
|
||||
return;
|
||||
}
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 10: {
|
||||
BlobName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
DEPRECATEDStartOffset = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
DEPRECATEDEndOffset = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Preload = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
SampleLength = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
AudioName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user