public void MergeFrom(BytesContent other) { if (other == null) { return; } if (other.FileSize != 0L) { FileSize = other.FileSize; } if (other.Buffer.Length != 0) { Buffer = other.Buffer; } if (other.ReadedByte != 0) { ReadedByte = other.ReadedByte; } if (other.info_ != null) { if (info_ == null) { Info = new global::grpcFileTransportDownloadClient.FileInfo(); } Info.MergeFrom(other.Info); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { FileSize = input.ReadInt64(); break; } case 18: { Buffer = input.ReadBytes(); break; } case 24: { ReadedByte = input.ReadInt32(); break; } case 34: { if (info_ == null) { Info = new global::grpcFileTransportDownloadClient.FileInfo(); } input.ReadMessage(Info); break; } } } #endif }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { FileSize = input.ReadInt64(); break; } case 18: { Buffer = input.ReadBytes(); break; } case 24: { ReadedByte = input.ReadInt32(); break; } case 34: { if (info_ == null) { Info = new global::grpcFileTransportDownloadClient.FileInfo(); } input.ReadMessage(Info); break; } } } }
public virtual grpc::AsyncServerStreamingCall <global::grpcFileTransportDownloadClient.BytesContent> FileDownload(global::grpcFileTransportDownloadClient.FileInfo request, grpc::CallOptions options) { return(CallInvoker.AsyncServerStreamingCall(__Method_FileDownload, null, options, request)); }
public virtual grpc::AsyncServerStreamingCall <global::grpcFileTransportDownloadClient.BytesContent> FileDownload(global::grpcFileTransportDownloadClient.FileInfo request, grpc::Metadata headers = null, global::System.DateTime?deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return(FileDownload(request, new grpc::CallOptions(headers, deadline, cancellationToken))); }